
    :root{color-scheme:dark;--accent:#4b9bff;--accent2:#9ad2ff;--glow:rgba(67,143,255,.45);--ink:#f6f8ff;--muted:#8791ac;--bg:#090b17;--panel:rgba(18,23,44,.88);--edge:rgba(170,190,255,.12)}
    *,*:before,*:after{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{margin:0;min-height:100vh;background:radial-gradient(circle at 53% -13%,rgba(95,83,218,.19),transparent 43%),radial-gradient(circle at 2% 44%,rgba(47,123,210,.12),transparent 29%),#090b17;color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-x:hidden}
    body:before{content:"";position:fixed;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.015) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.015) 1px,transparent 1px);background-size:40px 40px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 80%)}
    button{font:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:2px solid var(--accent2);outline-offset:4px}button:disabled{cursor:not-allowed;opacity:.46}strong,b{font-weight:800}
    .shell{position:relative;max-width:1240px;margin:auto;padding:25px 34px 120px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:39px}.brand{display:flex;align-items:center;gap:12px}.brand-icon{display:grid;place-items:center;height:48px;width:48px;border:1px solid #7a8ffe99;border-radius:15px;background:linear-gradient(130deg,#5d4ae5,#302153);box-shadow:0 8px 36px #5246c444}.brand-icon svg{width:27px;fill:#fff}.brand-title{font-size:20px;font-weight:950;letter-spacing:.13em;line-height:1}.brand-sub{font-size:10px;letter-spacing:.21em;color:#b5aefa;margin-top:7px;font-weight:750}.topright{display:flex;gap:10px;align-items:center}.pill{display:inline-flex;gap:7px;align-items:center;border-radius:100px;background:#171c31;border:1px solid var(--edge);padding:10px 13px;color:#afb7d0;font-size:11px;font-weight:850;letter-spacing:.05em}.status-dot{width:7px;height:7px;background:#6be9b1;border-radius:50%;box-shadow:0 0 0 3px #5de9ae22}
    .layout{display:grid;grid-template-columns:minmax(0,1.29fr) minmax(335px,.88fr);gap:27px;align-items:start}.stack{display:grid;gap:22px}.eyebrow{font-size:11px;color:var(--accent2);font-weight:900;letter-spacing:.25em;text-transform:uppercase}.hero-title{margin:10px 0 8px;font-size:clamp(31px,4.1vw,58px);line-height:1.05;letter-spacing:-.06em;font-weight:950}.hero-title .gradient{color:var(--accent2);text-shadow:0 0 42px var(--glow)}.intro{color:#98a0ba;line-height:1.6;font-size:13px;margin:0 0 18px}.subtitle-row{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:21px}.subchip{padding:7px 11px;border-radius:8px;font-size:10px;font-weight:850;letter-spacing:.05em;background:#1b233c;border:1px solid #2e3858;color:#c9d1ec}.subchip.primary{background:color-mix(in srgb,var(--accent) 15%,#15192b);color:var(--accent2);border-color:color-mix(in srgb,var(--accent) 44%,transparent)}
    .panel{background:linear-gradient(145deg,rgba(23,29,53,.94),rgba(14,18,35,.92));border:1px solid var(--edge);box-shadow:0 19px 55px rgba(0,0,0,.21);border-radius:22px;overflow:hidden}.pad{padding:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.hlabel{font-size:12px;font-weight:900;letter-spacing:.13em}.small{font-size:11px;color:var(--muted)}.num{font-variant-numeric:tabular-nums}.xp-head{display:flex;justify-content:space-between;align-items:center;margin-top:18px;margin-bottom:11px;font-size:12px;color:#b4bdd9}.xp-head strong{color:white}.xpbar{height:9px;background:#080d20;border:1px solid #2a3453;border-radius:99px;overflow:hidden}.xpbar-fill{height:100%;width:0;background:linear-gradient(90deg,var(--accent),var(--accent2));box-shadow:0 0 12px var(--glow);border-radius:inherit;transition:width .25s}
    .arena{position:relative;padding:28px 19px 25px;isolation:isolate;background:radial-gradient(ellipse at 50% 36%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 62%),linear-gradient(150deg,#101a34,#0d1228 58%,#10132b)}.arena:before,.arena:after{position:absolute;content:"";z-index:-1;pointer-events:none;border-radius:100%;border:1px solid color-mix(in srgb,var(--accent) 19%,transparent);width:470px;height:470px;left:50%;top:31%;transform:translate(-50%,-50%)}.arena:after{width:345px;height:345px;opacity:.5;box-shadow:inset 0 0 32px var(--glow)}.charge-caption{text-align:center;color:#909fc7;font-size:10px;letter-spacing:.22em;text-transform:uppercase;font-weight:850}.orb-wrap{position:relative;display:grid;place-items:center;height:345px;max-width:100%;margin:auto}.flare{position:absolute;width:300px;height:300px;border-radius:50%;background:var(--glow);filter:blur(55px);opacity:.22;pointer-events:none;transition:opacity .2s}.charging .flare{opacity:.6;animation:glowing 1.1s ease-in-out infinite alternate}.orbit-ring{position:absolute;width:298px;height:298px;border-radius:50%;border:1px dashed color-mix(in srgb,var(--accent) 50%,transparent);opacity:.55;animation:spin 40s linear infinite;pointer-events:none}.orbit-ring:before,.orbit-ring:after{content:"";position:absolute;width:6px;height:6px;background:var(--accent2);border-radius:50%;top:18px;left:45px;box-shadow:0 0 18px var(--accent)}.orbit-ring:after{top:auto;bottom:18px;left:auto;right:45px}.orb-progress{position:absolute;width:271px;height:271px;border-radius:50%;background:conic-gradient(var(--accent2) var(--progress,0%),#2b334b 0%);padding:4px;box-shadow:0 0 30px #0008;pointer-events:none}.orb-progress:after{content:"";display:block;width:100%;height:100%;border-radius:50%;background:#111a35}.hold-button{position:relative;z-index:2;width:236px;height:236px;border:1px solid color-mix(in srgb,var(--accent2) 50%,transparent);border-radius:50%;background:radial-gradient(circle at 45% 26%,color-mix(in srgb,var(--accent) 24%,#1b254b),#101731 70%);box-shadow:inset 0 6px 35px #ffffff08,inset 0 -12px 30px #0008,0 0 23px var(--glow);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;touch-action:none;user-select:none;-webkit-user-select:none;transition:transform .1s,box-shadow .18s;outline-offset:7px}.charging .hold-button{transform:scale(.976);box-shadow:0 0 65px var(--glow),inset 0 0 45px color-mix(in srgb,var(--accent) 20%,transparent)}.bolt{width:55px;height:67px;fill:var(--accent2);filter:drop-shadow(0 0 21px var(--glow));margin-bottom:7px;transition:transform .2s}.charging .bolt{animation:pulse .62s ease-in-out infinite alternate}.hold-word{font-size:28px;font-weight:950;letter-spacing:.13em}.hold-second{font-size:10px;letter-spacing:.2em;font-weight:900;color:var(--accent2)}.charge-count{font-size:24px;text-align:center;font-weight:900;font-variant-numeric:tabular-nums;margin:4px 0 4px}.hint{text-align:center;color:#8b96b4;font-size:11px;min-height:15px}.meter-line{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:26px}.metric{text-align:center;background:#121a32ba;border:1px solid #293350;border-radius:12px;padding:12px 6px}.metric-value{display:block;font-weight:950;font-size:19px;color:#f5f7ff;letter-spacing:-.03em}.metric-label{display:block;font-size:9px;letter-spacing:.09em;font-weight:800;color:#8998ba;margin-top:6px}
    .palette{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:17px}.palette button{background:#0e1428;border:1px solid #29324c;border-radius:12px;padding:12px 4px 11px;min-width:0;transition:transform .15s,border-color .15s}.palette button:hover:not(:disabled){transform:translateY(-2px)}.palette button.selected{border-color:var(--accent2);box-shadow:inset 0 0 0 1px var(--accent2),0 0 18px var(--glow)}.swatch{display:block;margin:0 auto 9px;width:23px;height:23px;border-radius:8px;background:var(--swatch);box-shadow:0 0 13px color-mix(in srgb,var(--swatch) 50%,transparent)}.palette-name{display:block;color:#dee5f9;font-size:9px;letter-spacing:.03em;font-weight:900}.palette-lv{display:block;color:#71809e;font-size:9px;margin-top:4px}.palette button.locked{opacity:.39}.palette button.locked .swatch{filter:grayscale(1)}
    .panel-title{margin:0;font-size:17px;letter-spacing:-.035em}.panel-copy{font-size:11px;color:#8290b1;line-height:1.5;margin:7px 0 0}.upgrade-list{display:grid;gap:10px;margin-top:18px}.upgrade{display:flex;gap:12px;align-items:center;width:100%;text-align:left;background:#111831;border:1px solid #27304d;border-radius:13px;padding:13px 11px;transition:border-color .2s,background .2s}.upgrade:hover:not(:disabled){background:#18213e;border-color:var(--accent)}.upgrade-ico{width:42px;min-width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#252e53;color:#b9c8ff;font-size:22px}.upgrade-name{font-size:12px;font-weight:900}.upgrade-desc{font-size:10px;color:#8794b2;line-height:1.35;margin-top:5px}.cost{text-align:right;margin-left:auto;white-space:nowrap;font-size:12px;font-weight:950;color:#f8da8d}.cost small{display:block;color:#8490b0;margin-top:6px;font-size:9px;font-weight:750}
    .prestige-card{padding:18px;border-radius:15px;background:radial-gradient(circle at 90% 20%,#8746dc36,transparent 50%),linear-gradient(125deg,#231737,#141832);border:1px solid #573e7659;margin-top:15px}.prestige-top{display:flex;justify-content:space-between;gap:10px}.prestige-icon{font-size:27px}.prestige-label{font-size:10px;color:#c3a6f1;letter-spacing:.17em;font-weight:900}.prestige-card h3{margin:6px 0 6px;font-size:18px}.prestige-card p{color:#b0a7c1;font-size:11px;line-height:1.5}.action{width:100%;min-height:43px;border:0;border-radius:10px;background:linear-gradient(120deg,#8b69fd,#b56bff);color:white;font-weight:900;font-size:12px;margin-top:9px;box-shadow:0 8px 24px #7e4bf344}.action:disabled{box-shadow:none}.fusion-option{width:100%;display:flex;align-items:center;text-align:left;gap:12px;background:#10182c;border:1px solid #2b354f;border-radius:12px;padding:12px;margin-top:10px}.fusion-option.active{border-color:#be9ef8;background:#211b39}.fusion-dots{display:flex;flex-direction:column;gap:3px}.fusion-dot{width:17px;height:17px;border-radius:6px;background:var(--swatch)}.f-title{font-size:11px;font-weight:900}.f-detail{font-size:10px;color:#929cbb;margin-top:5px}.f-right{margin-left:auto;font-size:10px;font-weight:800;color:#bda8f8;white-space:nowrap}
    .coin-pill{background:linear-gradient(125deg,#2b2314,#191e2d);border-color:#8b704244;color:#ffdf8c;font-size:12px;letter-spacing:.015em;font-variant-numeric:tabular-nums}
    .coin-pill strong{font-size:15px;color:#ffe6a7}
    .coin-dot{display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;color:#402800;background:linear-gradient(145deg,#ffefa6,#d9992b);box-shadow:0 0 12px #f9c44744;font-size:12px;font-weight:950}
    .milestone-strip{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px;padding:11px 12px;border-radius:11px;border:1px solid #41436888;background:linear-gradient(95deg,#181c3b,#141932)}
    .milestone-strip strong{font-size:11px;color:#d0c5ff}
    .milestone-strip .small{font-size:10px;text-align:right}
    .wallet-line{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:12px;padding:11px 12px;background:#111d2b;border:1px solid #4b6a6259;border-radius:10px}
    .wallet-line strong{font-size:17px;color:#ffe3a0;white-space:nowrap;font-variant-numeric:tabular-nums}
    .wallet-line span{font-size:11px;color:#95aaaf}
    .vault{display:flex;gap:14px;align-items:center;padding:15px;margin-top:14px;border-radius:14px;border:1px solid #4b5d554a;background:linear-gradient(120deg,#11271e,#162338)}.vault-coin{display:grid;place-items:center;width:47px;min-width:47px;height:47px;font-size:23px;border-radius:50%;background:#2a4e44;color:#7af5cb;border:1px solid #477c6c}.vault-main{flex:1;min-width:0}.vault-value{font-size:18px;font-weight:950;color:#8ef9d8}.vault-desc{font-size:10px;color:#a0b3b6;margin-top:4px}.claim{padding:10px 13px;border:1px solid #6dbea6;border-radius:9px;font-size:11px;font-weight:900;background:#1b5947;color:#b9ffe4}.disclaimer{margin-top:14px;color:#8690a9;line-height:1.6;font-size:10px}.disclaimer b{color:#d6dcee}
    .footer{text-align:center;font-size:10px;color:#61708f;margin-top:25px}.footer button{border:0;background:none;color:#9ea9c8;text-decoration:underline;font-size:10px}.toast{position:fixed;z-index:90;top:24px;left:50%;transform:translate(-50%,-20px);background:#1d2540;border:1px solid var(--accent);box-shadow:0 14px 50px #0008,0 0 35px var(--glow);color:#fff;padding:13px 19px;border-radius:13px;max-width:min(90vw,480px);font-size:12px;font-weight:850;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-tabs{display:none}
    @keyframes spin{to{transform:rotate(360deg)}}@keyframes glowing{to{opacity:.9;transform:scale(1.07)}}@keyframes pulse{to{transform:scale(1.1)}}
    /* v0.3: separate visible upgrade-currency counter; COINS stay golden */
    .power-pill{color:#c8e1ff;border-color:#395d8a80;background:linear-gradient(110deg,#172945,#10192d)}
    .power-pill strong{font-size:15px;color:#b6ddff}
    .power-dot{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;color:#cde9ff;background:linear-gradient(145deg,#328dff,#2445af);font-size:12px;box-shadow:0 0 10px #328dff66}
    .difficulty-pill{margin-left:5px;padding:3px 7px;border:1px solid #9e76ee88;border-radius:6px;color:#e5d3ff;background:#694e9647;font-size:9px;font-weight:950;letter-spacing:.04em}
    .upgrade-balance{display:flex;gap:11px;align-items:center;border:1px solid #3664a866;background:linear-gradient(100deg,#142644,#131c35);border-radius:13px;margin-top:17px;padding:13px}
    .upgrade-balance-icon{width:41px;height:41px;display:grid;place-items:center;border-radius:11px;background:#19477b;color:#bfdeff;font-size:21px}
    .upgrade-balance-main{flex:1;min-width:0;display:grid;gap:4px}
    .upgrade-balance-main>span{font-size:9px;color:#a4bcdd;letter-spacing:.07em;font-weight:850}
    .upgrade-balance-main strong{color:#cee6ff;font-size:21px;line-height:1.1}
    .upgrade-balance-main small{font-size:10px;color:#9abce1}
    .balance-hint{font-size:10px;color:#93aaca;white-space:nowrap}
    .cost{color:#b5dcff}
    @media (max-width:530px){.topbar{gap:8px}.topright{gap:6px}.power-pill,.coin-pill{padding:7px 8px;gap:5px}.power-pill strong,.coin-pill strong{font-size:13px}.power-label{font-size:9px}.power-dot{width:18px;height:18px}}
    @media (max-width:399px){.topbar{flex-wrap:wrap}.topright{justify-content:flex-end;width:100%}.topbar{margin-bottom:18px}.balance-hint{display:none}}
    @media (max-width:900px){.shell{padding:20px 18px 100px}.layout{grid-template-columns:1fr}.topbar{margin-bottom:30px}.intro{font-size:12px}.stack{gap:16px}.panel.pad{padding:18px}.hero-title{font-size:clamp(35px,8vw,58px)}}
    @media (max-width:530px){.shell{padding:15px 13px 105px}.topbar{margin-bottom:24px}.brand-icon{width:40px;height:40px;border-radius:12px}.brand-title{font-size:17px}.brand-sub{font-size:9px}.pill{padding:8px 9px;font-size:9px}.pill.last{display:none}.hero-title{font-size:39px}.panel{border-radius:18px}.arena{padding:22px 12px 20px}.orb-wrap{height:305px}.orb-progress{width:241px;height:241px}.orbit-ring{width:267px;height:267px}.hold-button{width:210px;height:210px}.bolt{width:45px;height:55px}.hold-word{font-size:25px}.charge-count{font-size:21px}.metric-value{font-size:17px}.palette{gap:5px}.palette button{padding:10px 1px}.palette-name{font-size:8px}.palette-lv{font-size:8px}.mobile-tabs{position:fixed;left:0;right:0;bottom:0;z-index:60;background:#10162af2;backdrop-filter:blur(22px);border-top:1px solid #33405e;padding:9px 15px max(9px,env(safe-area-inset-bottom));display:flex;justify-content:space-around}.mobile-tabs button{background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:4px;color:#8e9bbd;font-size:9px;font-weight:900;letter-spacing:.05em}.mobile-tabs svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2}.mobile-tabs button.current{color:var(--accent2)}}
    /* v0.4: coin-store themes change surfaces; Spectrum colors still drive the orb. */
    :root{--theme-base:#090b17;--theme-halo:rgba(95,83,218,.19);--theme-side:rgba(47,123,210,.12);--theme-panel-a:rgba(23,29,53,.94);--theme-panel-b:rgba(14,18,35,.92);--theme-edge:rgba(170,190,255,.12);--theme-arena-a:#101a34;--theme-arena-b:#0d1228;--theme-orb:#111a35;--theme-chip:#171c31;--theme-upgrade:#111831;--theme-name:#c2b8ff}
    body{background:radial-gradient(circle at 53% -13%,var(--theme-halo),transparent 43%),radial-gradient(circle at 2% 44%,var(--theme-side),transparent 29%),var(--theme-base)}
    .panel{background:linear-gradient(145deg,var(--theme-panel-a),var(--theme-panel-b));border-color:var(--theme-edge)}
    .arena{background:radial-gradient(ellipse at 50% 36%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 62%),linear-gradient(150deg,var(--theme-arena-a),var(--theme-arena-b) 65%,var(--theme-panel-b))}
    .orb-progress:after{background:var(--theme-orb)}
    .hold-button{background:radial-gradient(circle at 45% 26%,color-mix(in srgb,var(--accent) 23%,var(--theme-arena-a)),var(--theme-orb) 74%)}
    .pill{background:var(--theme-chip);border-color:var(--theme-edge)}
    .power-pill{background:linear-gradient(110deg,color-mix(in srgb,var(--theme-arena-a) 80%,#162d51),var(--theme-chip))}
    .coin-pill{background:linear-gradient(125deg,color-mix(in srgb,var(--theme-panel-a) 65%,#60421c),var(--theme-chip))}
    .upgrade,.fusion-option,.palette button,.metric{background:var(--theme-upgrade);border-color:var(--theme-edge)}
    .upgrade:hover:not(:disabled){background:color-mix(in srgb,var(--theme-upgrade) 75%,var(--accent) 25%)}
    .store-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:16px}
    .store-item{min-width:0;display:flex;flex-direction:column;border-radius:15px;background:color-mix(in srgb,var(--theme-arena-a) 80%,#000 20%);border:1px solid var(--theme-edge);overflow:hidden;transition:border-color .18s,transform .18s}
    .store-item.active{border-color:#ffe49d;box-shadow:0 0 0 1px #ffe49d44,0 8px 28px #e2b35b14}
    .store-preview{height:91px;position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;background:radial-gradient(circle at 48% 38%,var(--preview-glow),transparent 52%),linear-gradient(145deg,var(--preview-top),var(--preview-bottom))}
    .store-preview:before{content:"";position:absolute;width:102px;height:102px;border:1px solid var(--preview-border);opacity:.8;border-radius:50%;box-shadow:inset 0 0 18px var(--preview-glow)}
    .store-preview:after{content:"";position:absolute;width:72px;height:72px;border:1px dashed var(--preview-border);opacity:.65;border-radius:50%;transform:rotate(22deg)}
    .store-emblem{position:relative;z-index:1;font-size:30px;color:var(--preview-border);filter:drop-shadow(0 0 13px var(--preview-glow));font-weight:950}
    .store-details{padding:12px;display:flex;flex-direction:column;gap:6px;flex:1}
    .store-name{font-size:12px;font-weight:950;letter-spacing:.015em}.store-sub{font-size:10px;color:#a4afc9;line-height:1.45;min-height:29px}
    .store-action{min-height:35px;border:1px solid #6e6395;color:#e1d9ff;border-radius:9px;background:#2b2447;font-size:10px;font-weight:900;letter-spacing:.04em;margin-top:auto}
    .store-action.buy{background:linear-gradient(135deg,#77592a,#4e391c);color:#ffe6a2;border-color:#9c7943}
    .store-action.equipped{background:#2b4e42;border-color:#62ac8e;color:#acffe0}
    .store-item .store-balance{color:#b0b8cf;font-size:9px;margin-top:3px}
    .shop-help{margin-top:11px;font-size:10px;color:#a2abc4;line-height:1.55}
    .shop-highlight{display:flex;gap:7px;align-items:center;background:linear-gradient(110deg,#4c361f55,#1a1f2e);border:1px solid #aa834544;border-radius:11px;padding:11px;margin-top:14px;color:#efd7a7;font-size:11px;font-weight:850}
    .shop-highlight strong{color:#ffe59e}
    .palette{grid-template-columns:repeat(5,minmax(0,1fr))}
    .spectrum-help{margin-top:12px;font-size:10px;color:#9ba5c4;line-height:1.5}
    @media(max-width:400px){.store-grid{gap:8px}.store-details{padding:9px}.store-preview{height:77px}.store-name{font-size:11px}.palette{grid-template-columns:repeat(4,minmax(0,1fr))}}
    @media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:0.01ms!important;transition-duration:0.01ms!important;scroll-behavior:auto!important}}
    @media (max-width:530px){.coin-pill{padding:7px 9px;gap:5px}.coin-pill strong{font-size:14px}.coin-pill span:last-child{font-size:9px}.milestone-strip{padding:9px 10px}.milestone-strip strong{font-size:10px}}
    /* v0.5: useful XP economics and consumable buffs, separate from permanent cosmetics */
    .xp-economy{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
    .xp-economy>div{border-radius:10px;border:1px solid var(--theme-edge);background:color-mix(in srgb,var(--theme-upgrade) 85%,transparent);padding:9px 11px;min-width:0}
    .xp-economy .tag{display:block;color:#9eabc9;font-size:9px;font-weight:800;letter-spacing:.07em;margin-bottom:5px}
    .xp-economy b{color:var(--accent2);font-size:13px;letter-spacing:-.01em}
    .xp-explainer{font-size:10px;color:#929fbc;line-height:1.55;margin:10px 0 0}
    .section-split{border:0;border-top:1px solid var(--theme-edge);margin:22px 0 18px}
    .store-subhead{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-top:1px}
    .store-subhead h3{font-size:14px;margin:0;letter-spacing:.01em}
    .store-subhead .small{text-align:right}
    .buff-grid{display:grid;gap:9px;margin-top:14px}
    .buff-item{display:flex;align-items:center;gap:12px;border-radius:13px;border:1px solid var(--theme-edge);background:var(--theme-upgrade);padding:12px}
    .buff-icon{width:42px;height:42px;min-width:42px;display:grid;place-items:center;border-radius:12px;background:#302951;font-size:23px}
    .buff-info{min-width:0;flex:1}
    .buff-title{font-size:12px;font-weight:900}
    .buff-desc{font-size:10px;line-height:1.5;color:#98a6be;margin-top:4px}
    .buff-active{display:block;color:#83f6bf;font-size:10px;font-weight:850;margin-top:6px;font-variant-numeric:tabular-nums}
    .buff-buy{min-width:89px;border-radius:10px;padding:9px 7px;background:#4d3820;border:1px solid #a98645;color:#ffe5a6;font-size:10px;font-weight:900;line-height:1.35}
    .buff-buy small{display:block;font-size:9px;opacity:.75;font-weight:650}
    .active-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
    .active-chip{font-variant-numeric:tabular-nums;font-size:10px;font-weight:850;padding:7px 9px;border-radius:7px;background:color-mix(in srgb,var(--accent) 13%,#10162a);color:var(--accent2);border:1px solid color-mix(in srgb,var(--accent) 33%,transparent)}
    @media(max-width:530px){.xp-economy{gap:6px}.xp-economy>div{padding:9px 8px}.buff-item{gap:9px;padding:10px}.buff-buy{min-width:77px}.buff-icon{width:34px;height:34px;min-width:34px;font-size:19px}}
    /* Auto Charge rainbow HUD: appears ONLY while the purchased Auto Charge buff runs.
       Theme and spectrum choices remain untouched and return automatically on expiration. */
    .auto-hud-status{display:none;align-items:center;gap:7px;font-size:10px;font-weight:950;
      letter-spacing:.04em;padding:7px 11px;border-radius:9px;border:1px solid #967dff;
      background:linear-gradient(105deg,#172641,#302347);color:#fff;box-shadow:0 0 15px #9e82ff3c}
    .auto-mode .auto-hud-status{display:inline-flex}
    .rainbow-dot{width:9px;height:9px;border-radius:50%;background:conic-gradient(#ff7a98,#ffd777,#85f9a6,#6ceafa,#aa8dff,#ff7a98);box-shadow:0 0 12px #a7acff}
    @keyframes rainbowBorder{0%{background-position:0 0,0% 50%}100%{background-position:0 0,200% 50%}}
    @keyframes rainbowBar{0%{background-position:0 50%}100%{background-position:200% 50%}}
    @keyframes rainbowAura{0%,100%{box-shadow:0 0 15px #62b9ff55,0 0 31px #8a6dff33,inset 0 0 17px #489aff17}25%{box-shadow:0 0 18px #ff85a855,0 0 35px #ffce6c33,inset 0 0 17px #ff80c917}50%{box-shadow:0 0 18px #86ffa955,0 0 35px #62eafa33,inset 0 0 17px #66ff9c17}75%{box-shadow:0 0 18px #aa8bff66,0 0 35px #f480ff33,inset 0 0 17px #b28aff17}}
    .auto-mode .panel{
      border:1px solid transparent;
      background:linear-gradient(145deg,var(--theme-panel-a),var(--theme-panel-b)) padding-box,
        linear-gradient(110deg,#66b9ff,#ba8cff,#ff81c2,#ffda79,#70f0b9,#6fd6ff,#ba8cff) border-box;
      background-size:100% 100%,300% 300%;animation:rainbowBorder 10s linear infinite;
    }
    .auto-mode .xpbar-fill,.auto-mode #rewardFill{
      background:linear-gradient(90deg,#56b9ff,#ae8bff,#ff85bd,#ffd978,#76efa8,#66dcff,#56b9ff);
      background-size:260% 100%;animation:rainbowBar 5s linear infinite;
    }
    .auto-mode .hold-button{animation:rainbowAura 5.5s linear infinite}
    .auto-mode .orbit-ring{border-color:#bb9eff;box-shadow:0 0 22px #c09eff55;}
    .auto-mode .topbar{border-bottom:2px solid transparent;padding-bottom:12px;
      background:linear-gradient(var(--theme-base),var(--theme-base)) padding-box,
        linear-gradient(90deg,#7ac5ff,#a78bff,#ff9bd3,#ffe18b,#8fffc7,#7ac5ff) border-box;
      background-size:100% 100%,300% 300%;animation:rainbowBorder 10s linear infinite;}
    .auto-mode .mobile-tabs{border-top-color:#bb8fff;box-shadow:0 -3px 17px #8b7aff33}
    @media(prefers-reduced-motion:reduce){.auto-mode .panel,.auto-mode .topbar,.auto-mode .xpbar-fill,.auto-mode #rewardFill,.auto-mode .hold-button{animation:none!important}}

    /* v0.6: in-app confirmation; native confirm() can be suppressed in previews and embedded browsers. */
    .confirm-overlay[hidden]{display:none!important}
    .confirm-overlay{position:fixed;inset:0;z-index:9999;background:rgba(2,5,15,.82);backdrop-filter:blur(8px);display:grid;place-items:center;padding:18px}
    .confirm-box{width:min(100%,440px);padding:25px;background:linear-gradient(150deg,#24203e,#11182b);border:1px solid #9280d088;border-radius:22px;box-shadow:0 26px 80px #000a}
    .confirm-icon{font-size:25px;line-height:1.2;margin-bottom:12px}
    .confirm-box h2{font-size:21px;line-height:1.25;margin:0 0 11px;color:#fff}
    .confirm-box p{font-size:13px;line-height:1.65;color:#c4c9dd;margin:0 0 22px;white-space:pre-line}
    .confirm-buttons{display:grid;grid-template-columns:1fr 1fr;gap:11px}
    .confirm-buttons button{min-height:46px;border-radius:11px;border:1px solid #68648d;font-size:12px;font-weight:900;padding:9px}
    #confirmCancel{background:#20253c;color:#d6d9ea}
    #confirmAccept{background:linear-gradient(135deg,#9b74ff,#7547cb);border-color:#b4a1ff;color:#fff}
    #confirmAccept.danger{background:linear-gradient(135deg,#a54d72,#7d2d50);border-color:#d47a9b}
    @media(max-width:390px){.confirm-box{padding:19px}.confirm-buttons{gap:8px}}

    /* v0.8: upgrade alternatives and carefully bounded permanent/temporary coin sinks */
    .upgrade{cursor:default}.upgrade:hover{background:var(--theme-upgrade)}
    .upgrade-buttons{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin-left:auto;min-width:94px;max-width:122px}
    .power-buy{border:1px solid #42689d;border-radius:9px;background:#183051;padding:8px 9px;cursor:pointer;margin:0;color:#b5dcff}
    .power-buy:hover:not(:disabled){border-color:#83bcff;background:#203f69}
    .gold-buy{display:block;width:100%;padding:8px 7px;border:1px solid #a48140;border-radius:9px;background:#4a361c;color:#ffe09a;font-size:10px;font-weight:950;white-space:nowrap}
    .gold-buy small{display:block;font-size:9px;margin-top:3px;color:#e0be83}
    .gold-upgrade-info{margin-top:12px;background:#2b233c;border:1px solid #6d5a95;border-radius:10px;color:#d9c9fc;padding:11px;font-size:11px;line-height:1.55}
    .gold-upgrade-info.available{background:#302716;border-color:#987743;color:#ffe4ab}
    .upgrade-alt-help{margin:12px 0 0;color:#8f9bb7;font-size:10px;line-height:1.5}
    .perma-stack{display:inline-flex;gap:3px;align-items:center;flex-wrap:wrap;margin-top:6px}
    .perma-dot{width:11px;height:11px;border:1px solid #796b9c;background:#251f3f;border-radius:4px;display:inline-block}
    .perma-dot.on{background:#d5b36a;border-color:#ffe1a2;box-shadow:0 0 9px #e3b96977}
    .perma-stats{display:block;margin-top:5px;color:#b6dbff;font-size:10px;font-weight:800}
    .perma-buy{min-width:97px;border-radius:10px;padding:10px 7px;background:#4d3820;border:1px solid #a98645;color:#ffe5a6;font-size:10px;font-weight:900;line-height:1.35}
    .perma-buy small{display:block;font-size:9px;opacity:.8;margin-top:5px}
    .buff-item.perma{align-items:center}
    .gold-cost-slot{display:block}
    @media(max-width:530px){.upgrade{gap:8px;padding:10px 8px}.upgrade-ico{min-width:32px;width:32px;height:36px;font-size:19px}.upgrade-buttons{min-width:87px;max-width:104px}.upgrade-name{font-size:11px}.gold-upgrade-info{font-size:10px}}
  
    /* v0.8 — tighter, denser visual design, especially for desktop and phone. */
    .shell{max-width:1160px;padding:14px 20px 70px}
    .topbar{margin-bottom:14px;gap:12px;padding-bottom:8px}
    .brand-icon{width:37px;height:37px;border-radius:11px}.brand-icon svg{width:22px}
    .brand-title{font-size:17px}.brand-sub{font-size:8px;margin-top:4px}
    .pill{padding:7px 10px;font-size:10px}.layout{grid-template-columns:minmax(0,1.1fr) minmax(310px,.9fr);gap:14px}
    .stack{gap:12px}.panel{border-radius:15px;box-shadow:0 9px 32px #0003}.panel.pad{padding:15px}
    .eyebrow{font-size:9px}.hero-title{font-size:clamp(25px,3.1vw,38px);margin:4px 0 5px}
    .intro{font-size:11px;line-height:1.43;margin:0 0 8px;max-width:640px}
    .subtitle-row{margin-top:10px;gap:6px}.subchip{padding:5px 8px;font-size:9px}
    .panel-title{font-size:15px}.panel-copy{font-size:10px;line-height:1.4;margin-top:4px}
    .hlabel{font-size:11px}.xp-head{margin-top:10px;margin-bottom:7px;font-size:11px}
    .xpbar{height:8px}.xp-economy{margin-top:8px}.xp-economy>div{padding:7px 10px}
    .xp-economy .tag{font-size:8px;margin-bottom:2px}.xp-economy b{font-size:12px}
    .xp-explainer{margin:7px 0 0;font-size:9px}
    .milestone-strip{padding:8px 9px!important;margin-top:9px!important}
    .arena{padding:13px 13px 14px}.arena:before{width:330px;height:330px}.arena:after{width:255px;height:255px}
    .orb-wrap{height:236px}.orb-progress{width:210px;height:210px;padding:3px}
    .hold-button{width:177px;height:177px;gap:1px;border-color:color-mix(in srgb,var(--hold-light) 52%,transparent);background:radial-gradient(circle at 45% 23%,color-mix(in srgb,var(--hold-accent) 33%,var(--theme-orb)),var(--theme-orb) 76%);box-shadow:0 0 var(--hold-glow-size) var(--hold-glow),inset 0 8px 25px #ffffff07,inset 0 -10px 24px #0009}
    .charging .hold-button{box-shadow:0 0 calc(var(--hold-glow-size) * 1.6) var(--hold-glow),inset 0 0 24px var(--hold-glow)}
    .bolt{width:39px;height:49px;fill:var(--hold-light);filter:drop-shadow(0 0 12px var(--hold-glow));margin-bottom:4px}
    .hold-word{font-size:21px}.hold-second{font-size:8px;letter-spacing:.15em;color:var(--hold-light)}
    .orbit-ring{width:226px;height:226px;border-color:color-mix(in srgb,var(--hold-accent) 55%,transparent)}
    .flare{width:225px;height:225px;filter:blur(36px);background:var(--hold-glow);opacity:var(--hold-flare-opacity)}
    .charge-caption{font-size:9px}.charge-count{font-size:19px;margin:0}.hint{font-size:10px}
    .meter-line{margin-top:12px;gap:6px}.metric{padding:8px 5px;border-radius:9px}.metric-value{font-size:16px}.metric-label{font-size:8px;margin-top:4px}
    .upgrade-list{gap:7px;margin-top:10px}.upgrade{padding:9px;border-radius:10px;gap:8px}.upgrade-ico{width:33px;min-width:33px;height:34px;font-size:17px;border-radius:9px}
    .upgrade-name{font-size:11px}.upgrade-desc{font-size:9px;margin-top:3px}.upgrade-buttons{gap:4px}
    .power-buy,.gold-buy{padding:6px 7px}.prestige-card{margin-top:10px;padding:12px}.prestige-card h3{font-size:16px}
    .buff-item{padding:9px;gap:9px}.buff-icon{width:34px;height:34px;min-width:34px;font-size:18px}
    .buff-title{font-size:11px}.buff-desc{font-size:9px}.buff-grid{gap:6px;margin-top:9px}
    .store-grid{gap:8px;margin-top:10px}.store-item{border-radius:11px}.store-preview{height:72px}
    .store-details{padding:10px}.footer{margin-top:12px}
    /* Spectrum: scrollbar keeps the large collection from growing the whole page. */
    .palette-toolbar{display:flex;gap:9px;align-items:center;margin-top:11px}
    .palette-toolbar input{min-width:0;flex:1;background:var(--theme-upgrade);border:1px solid var(--theme-edge);border-radius:9px;padding:9px 11px;color:#fff;font:inherit;font-size:11px;outline-offset:2px}
    .palette-toolbar span{font-size:10px;color:#adbbd7;white-space:nowrap}
    .palette{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;max-height:244px;overflow-y:auto;overscroll-behavior:contain;padding:4px 3px 6px;margin-top:9px;scrollbar-width:thin;scrollbar-color:#6273aa #161a33}
    .palette button{padding:7px 2px 6px;border-radius:9px;min-width:0}
    .palette .swatch{width:21px;height:21px;border-radius:7px;margin-bottom:5px}
    .palette-name{font-size:8px;letter-spacing:-.03em;overflow-wrap:anywhere}
    .palette-lv{font-size:8px;margin-top:2px}
    /* Hold Studio */
    .hold-studio{overflow:visible}
    .hold-studio summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;padding:11px 14px;user-select:none}
    .hold-studio summary::-webkit-details-marker{display:none}
    .studio-heading{font-size:11px;letter-spacing:.1em;font-weight:950;color:var(--accent2)}
    .studio-heading small{display:block;margin-top:3px;letter-spacing:.05em;font-size:8px;color:#8d9ab8}
    .studio-summary-right{margin-left:auto;font-size:10px;color:#b3beda}.studio-chevron{font-size:17px;transition:transform .2s}
    .hold-studio details[open] .studio-chevron{transform:rotate(180deg)}
    .studio-inner{padding:4px 14px 14px;border-top:1px solid var(--theme-edge);display:grid;gap:13px}
    .studio-group{min-width:0}.studio-label{display:block;color:#8f9dbf;font-size:9px;font-weight:950;letter-spacing:.13em;margin:9px 0 7px}
    .studio-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
    #holdShapes{grid-template-columns:repeat(4,minmax(0,1fr))}
    .studio-choices button{background:var(--theme-upgrade);border:1px solid var(--theme-edge);border-radius:9px;font-size:10px;padding:10px 4px;font-weight:800;min-width:0}
    .studio-choices button.selected{background:color-mix(in srgb,var(--accent) 19%,var(--theme-upgrade));border-color:var(--accent2);color:#fff}
    .studio-colors{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
    .studio-colors button:not(.hold-auto-swatch){width:31px;height:31px;padding:0;background:var(--preview-color);border:2px solid #ffffff42;border-radius:50%;box-shadow:0 2px 12px #0003}
    .studio-colors button.selected{outline:2px solid #fff;outline-offset:2px}
    .studio-colors .hold-auto-swatch{padding:8px;border-radius:8px;font-size:9px;font-weight:900;background:var(--theme-upgrade);border:1px solid var(--theme-edge)}
    .studio-colors .hold-auto-swatch.selected{border-color:var(--accent2)}
    .custom-pick{display:flex;align-items:center;gap:5px;font-size:10px;color:#c4cce5;margin-left:auto}
    .custom-pick input{appearance:none;width:34px;height:31px;padding:1px;border:1px solid #fff6;border-radius:8px;background:transparent;cursor:pointer}
    .studio-bottom{display:flex;align-items:center;gap:14px}.studio-bottom label{font-size:9px;color:#bbc6df;font-weight:850;white-space:nowrap}
    .studio-bottom label b{color:#fff;margin-left:4px}.studio-bottom input{flex:1;accent-color:var(--accent);min-width:0}
    .studio-note{color:#7f8fae;font-size:9px;line-height:1.45}
    .hold-shape-circle .hold-button{border-radius:50%}
    .hold-shape-squircle .hold-button{border-radius:32%}
    .hold-shape-hex .hold-button{border-radius:0;clip-path:polygon(27% 3%,73% 3%,98% 50%,73% 97%,27% 97%,2% 50%)}
    .hold-shape-diamond .hold-button{border-radius:0;clip-path:polygon(50% 3%,97% 50%,50% 97%,3% 50%)}
    @keyframes studioPulse{from{filter:brightness(1)}to{filter:brightness(1.24)}}
    @keyframes studioWave{0%,100%{transform:scale(.94);opacity:.09}50%{transform:scale(1.2);opacity:.45}}
    @keyframes studioSpark{0%,100%{filter:drop-shadow(0 0 3px var(--hold-glow));transform:rotate(-4deg)}50%{filter:drop-shadow(0 0 18px var(--hold-light));transform:rotate(4deg)}}
    .hold-motion-pulse.charging .hold-button{animation:studioPulse .58s ease-in-out infinite alternate}
    .hold-motion-pulse.charging .bolt{animation:pulse .62s ease-in-out infinite alternate}
    .hold-motion-orbit .orbit-ring{animation:spin 5s linear infinite}
    .hold-motion-orbit.charging .bolt{animation:pulse .52s ease-in-out infinite alternate}
    .hold-motion-wave .flare{animation:studioWave 1.8s ease-in-out infinite}
    .hold-motion-spark.charging .bolt{animation:studioSpark .42s ease-in-out infinite}
    .hold-motion-still .orbit-ring,.hold-motion-still.charging .bolt,.hold-motion-still.charging .hold-button{animation:none!important}
    .auto-mode .hold-motion-still .hold-button{animation:rainbowAura 5.5s linear infinite!important}
    /* Store tabs: avoids 3 long categories in a single scroll. */
    .shop-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:12px;background:#080c1c77;padding:4px;border:1px solid var(--theme-edge);border-radius:11px}
    .shop-tabs button{border:0;background:transparent;color:#8999bc;border-radius:8px;min-width:0;padding:9px 3px;font-size:10px;font-weight:900}
    .shop-tabs button[aria-selected=true]{background:color-mix(in srgb,var(--accent) 23%,var(--theme-upgrade));color:#fff;box-shadow:0 1px 6px #0004}
    .shop-pane[hidden]{display:none!important}
    @media(max-width:900px){.shell{padding:13px 14px 90px}.layout{grid-template-columns:1fr;gap:11px}.stack{gap:11px}.topbar{margin-bottom:11px}.panel.pad{padding:13px}.hero-title{font-size:30px}}
    @media(max-width:530px){.shell{padding:10px 10px 93px}.topbar{margin-bottom:9px}.brand-icon{width:34px;height:34px}.brand-title{font-size:16px}.brand-sub{font-size:7px}.topright{gap:5px}.power-pill,.coin-pill{padding:6px 8px}.pill.last{display:none}.hero-title{font-size:29px}.eyebrow{font-size:8px}.intro{font-size:10px;line-height:1.35}.subtitle-row{margin-top:7px}.arena{padding:10px 9px 12px}.orb-wrap{height:212px}.orb-progress{width:191px;height:191px}.hold-button{width:164px;height:164px}.bolt{width:36px;height:41px}.hold-word{font-size:20px}.orbit-ring{width:207px;height:207px}.flare{width:200px;height:200px}.arena:before{width:290px;height:290px}.arena:after{width:220px;height:220px}.metric{padding:7px 4px}.metric-value{font-size:15px}.metric-label{font-size:7px}.charge-count{font-size:18px}.palette{grid-template-columns:repeat(6,minmax(0,1fr));max-height:216px}.studio-choices button{font-size:9px;padding:9px 2px}.studio-summary-right{font-size:9px}.mobile-tabs{padding:7px 5px max(7px,env(safe-area-inset-bottom))}.mobile-tabs button{font-size:8px;gap:3px}.mobile-tabs svg{width:19px;height:19px}.store-grid{gap:7px}.store-preview{height:63px}}
    @media(prefers-reduced-motion:reduce){.hold-motion-wave .flare,.hold-motion-orbit .orbit-ring,.hold-motion-pulse.charging .hold-button,.hold-motion-spark.charging .bolt{animation:none!important}}

  