:root{--ink:#352b4b;--muted:#746b83;--pink:#ff7898;--coral:#ff8a76;--purple:#9274e8;--teal:#52c6b8;--yellow:#ffd36b;--cream:#fff9f1;--line:#f0e8f4;--shadow:0 14px 35px rgba(92,65,126,.11)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font:20px/1.48 'Nunito','Trebuchet MS',sans-serif;color:var(--ink);background:radial-gradient(circle at 10% 5%,#fff0e8 0,transparent 28%),radial-gradient(circle at 92% 10%,#f2eaff 0,transparent 27%),linear-gradient(145deg,#fffaf4,#fff3f7 54%,#eefaf8);min-height:100vh}
header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:16px;padding:12px clamp(14px,4vw,48px);background:rgba(255,255,255,.88);backdrop-filter:blur(14px);border-bottom:1px solid rgba(232,219,239,.8);box-shadow:0 4px 20px rgba(75,54,99,.05)}
.logo{font-size:clamp(19px,2.3vw,27px);font-weight:900;letter-spacing:-.7px;color:#684eaa}
header .b{min-height:46px;padding:0 18px;font-size:17px;background:#f1eaff;color:#684eaa;box-shadow:none}
main{max-width:1240px;margin:0 auto;padding:clamp(16px,3vw,36px)}
h1{font-size:clamp(30px,4vw,42px);line-height:1.12;letter-spacing:-1.2px;margin:7px 0 12px;font-weight:900;color:#3d3158}
h2{font-size:clamp(25px,3vw,32px);line-height:1.2;margin:8px 0 12px;font-weight:900}
p{color:var(--muted);margin:8px 0 16px}
.eyebrow{display:inline-block;color:#9a70ca;font-size:13px;font-weight:900;letter-spacing:2px;text-transform:uppercase}
.page-heading{margin:8px 0 22px}
.page-heading p{font-size:19px}
.b{font:800 18px 'Nunito',sans-serif;min-height:54px;padding:0 20px;border:0;border-radius:17px;background:#8f77e6;color:#fff;cursor:pointer;box-shadow:0 5px 0 rgba(73,52,130,.13);transition:transform .16s,box-shadow .16s,filter .16s}
.b:hover{filter:brightness(1.04);transform:translateY(-2px);box-shadow:0 8px 15px rgba(73,52,130,.13)}
.b:active{transform:translateY(2px);box-shadow:none}
.b:disabled{opacity:.4;cursor:not-allowed;transform:none}
.b.main{min-height:62px;font-size:19px;background:linear-gradient(135deg,#ff829d,#ff9a83);box-shadow:0 6px 0 rgba(207,94,117,.16)}
.b.alt{background:#a78be9}
.b.red{background:#f47e86}
.b.on{background:#ffb84f;color:#593f25;outline:3px solid #ffe5a6}
button{font-family:inherit}
select,input[type=text],input[type=search],input[type=file]{font:19px 'Nunito',sans-serif;min-height:56px;width:100%;padding:10px 15px;border:2px solid #e8dff3;border-radius:15px;background:#fff;color:var(--ink)}
input:focus,select:focus,button:focus-visible{outline:3px solid #f8c76b;outline-offset:3px}
label{display:block;margin:10px 0;font-size:18px;font-weight:800;color:#594b70}
.card{position:relative;background:rgba(255,255,255,.94);border:1px solid rgba(233,223,241,.8);border-radius:24px;padding:18px;box-shadow:var(--shadow);margin:12px 0}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:18px}
.welcome{position:relative;display:grid;grid-template-columns:1.02fr .98fr;align-items:center;gap:18px;overflow:hidden;min-height:390px;padding:clamp(24px,4vw,48px);border-radius:34px;background:linear-gradient(115deg,#fff0e9 0%,#f9eaff 55%,#e8f8f4 100%);box-shadow:0 18px 48px rgba(110,79,140,.12);border:1px solid rgba(255,255,255,.9)}
.welcome-copy{position:relative;z-index:2;max-width:600px}
.welcome h1{font-size:clamp(34px,4.3vw,54px);max-width:610px}
.welcome-copy>p{font-size:21px;max-width:510px}
.welcome-actions{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 16px}
.welcome-note{font-size:15px;font-weight:800;color:#89749f;margin-top:16px}
.hero-art{position:relative;min-height:310px;height:100%;display:flex;align-items:center;justify-content:center}
.hero-orbit{position:absolute;border:2px dashed rgba(160,128,202,.3);border-radius:50%;width:280px;height:280px}
.orbit-two{width:360px;height:360px;border-color:rgba(255,144,158,.25)}
.hero-mandala{position:absolute;width:210px;height:210px;padding:10px;border-radius:50%;background:#fff;box-shadow:0 18px 35px rgba(77,53,106,.17);overflow:hidden}
.hero-mandala svg{width:100%;height:100%}
.hero-a{z-index:2;width:235px;height:235px}
.hero-b{width:128px;height:128px;left:2%;top:8%;transform:rotate(-12deg)}
.hero-c{width:138px;height:138px;right:0;bottom:4%;transform:rotate(13deg)}
.hero-spark{position:absolute;color:#ffad50;font-size:38px;z-index:3}
.spark-one{right:16%;top:5%}.spark-two{left:10%;bottom:4%;color:#f17f9e}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:34px 2px 14px}
.section-hint{color:#9a8ba9;font-size:15px;font-weight:800}
.home-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:180px;padding:22px;border:1px solid rgba(255,255,255,.9);cursor:pointer;transition:transform .18s,box-shadow .18s}
.home-card:hover{transform:translateY(-5px);box-shadow:0 18px 36px rgba(92,65,126,.15)}
.home-card .home-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;font-size:29px;margin-bottom:12px;background:rgba(255,255,255,.7)}
.home-title{font-size:21px;font-weight:900;color:#433657}
.home-card small{font-size:15px;line-height:1.35;color:#776b85;text-align:left;margin-top:4px}
.card-arrow{position:absolute;right:18px;bottom:14px;color:#9a80cb;font-size:22px}
.c0{background:linear-gradient(145deg,#ffe2e8,#fff6f0)}.c1{background:linear-gradient(145deg,#eee5ff,#faf3ff)}.c2{background:linear-gradient(145deg,#fff0c9,#fff8e8)}.c3{background:linear-gradient(145deg,#dff7f1,#f2fffb)}.c4{background:linear-gradient(145deg,#e4edff,#f6f8ff)}.c5{background:linear-gradient(145deg,#fff0dc,#fff9ef)}.c6{background:linear-gradient(145deg,#f1e9ff,#faf6ff)}
.row{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;align-items:center}
.mandala-card{padding:13px;overflow:hidden;display:flex;flex-direction:column;gap:10px}
.th{position:relative;display:block;width:100%;aspect-ratio:1;background:linear-gradient(145deg,#fffdf9,#fff3f6);border:0;border-radius:19px;overflow:hidden;cursor:pointer;padding:8px}
.th svg,.th img{width:100%;height:100%;display:block;object-fit:contain}
.mandala-info{display:flex;flex-direction:column;gap:3px;padding:3px 5px}
.mandala-info b{font-size:19px;font-weight:900}
.mandala-info small{font-size:14px;color:#8a7e96}
.mini-tag{align-self:flex-start;background:#f1eaff;color:#795bb2;border-radius:20px;padding:3px 10px;font-size:12px;font-weight:900}
.fav-btn{position:absolute;right:22px;top:22px;z-index:2;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#b8a9c5;font-size:25px;box-shadow:0 4px 12px #55406b20;cursor:pointer}
.fav-btn.is-fav{color:#f16d91;background:#fff0f4}
.card-action{width:100%;min-height:48px;font-size:16px}
.prev{max-width:600px;margin:16px auto;padding:18px;background:#fff;border-radius:26px;box-shadow:var(--shadow)}
.prev svg{width:100%;display:block;max-height:560px}
#wrap{max-width:760px;margin:14px auto;overflow:auto;background:#fff;border-radius:24px;border:5px solid #f4d8a1;box-shadow:0 12px 32px rgba(69,48,94,.12)}
#stage{position:relative;width:100%;min-width:260px}
#art svg{width:100%;display:block}
#cv{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.sw{width:48px;height:48px;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 2px #ded4e8;cursor:pointer}
.sw.on{box-shadow:0 0 0 4px #8f77e6}
input[type=color]{width:64px;height:52px;border:0;background:none}
.ach{display:flex;gap:14px;align-items:center}.ach .e{font-size:46px}.lock{opacity:.45}
#toast{position:fixed;left:50%;bottom:24px;z-index:50;transform:translateX(-50%);background:#403354;color:#fff;padding:14px 22px;border-radius:30px;opacity:0;pointer-events:none;transition:.25s;max-width:90%;box-shadow:0 10px 25px #33234a33}
#toast.on{opacity:1}
#printArea{display:none}
@media(max-width:760px){header{padding:10px 14px}.logo{font-size:19px}.welcome{grid-template-columns:1fr;padding:24px;min-height:unset}.welcome h1{font-size:36px}.hero-art{min-height:250px;margin-top:4px}.hero-orbit{width:220px;height:220px}.orbit-two{width:280px;height:280px}.hero-a{width:180px;height:180px}.hero-b{width:105px;height:105px}.hero-c{width:110px;height:110px}.section-heading{align-items:flex-start;flex-direction:column}.home-card{min-height:158px;padding:17px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mandala-card{padding:9px;border-radius:18px}.mandala-info b{font-size:16px}.card-action{font-size:14px;padding:0 8px}.th{border-radius:14px}}
@media(max-width:390px){main{padding:12px}.home-card .home-icon{width:46px;height:46px}.home-title{font-size:18px}.home-card small{font-size:13px}.welcome-actions .b{width:100%}}
@media print{body>*:not(#printArea){display:none!important}#printArea{display:flex!important;justify-content:center;align-items:center;height:100vh}#printArea img{max-width:100%;max-height:100%}body{background:#fff}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

header .logo{white-space:nowrap;font-size:clamp(16px,2.1vw,25px);flex:1}
header .logo span{display:inline-block;margin-left:4px;padding:2px 8px;border-radius:9px;background:#f4eaff;color:#9875cf;font-size:.68em;vertical-align:middle}
.hero-mascot{position:relative;z-index:2;width:min(78%,270px);aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#fff 0 56%,#fff4e7 57% 100%);box-shadow:0 18px 38px rgba(91,63,115,.17);padding:12px}
.hero-mascot svg{width:100%;height:100%;overflow:visible}
@media(max-width:760px){header .logo{font-size:16px}.hero-mascot{width:190px}}
