/* V85 · Platinum. All rules are scoped to menus, never the playable HUD/arena. */
#home,.modal,#studio-purchase,.orientation-dialog{--lime:#0757ed;--ink:#101f33;--muted:#52677f;--line:#c6d5e2;--panel:#f4f8fb;--blue:#0757ed;--gold:#9b701c;color-scheme:light;color:var(--ink)}
#home{position:absolute;inset:0;isolation:isolate;width:100%;max-width:none;height:100dvh;min-height:0;margin:0;padding:0 max(30px,env(safe-area-inset-right)) 20px max(30px,env(safe-area-inset-left));overflow:hidden;background:repeating-linear-gradient(135deg,transparent 0 48px,#ccdbea18 49px 50px),linear-gradient(115deg,#e8f0f6,#fff 50%,#e9f1f8)}
#home::after{content:none}
#home button,.modal button,#studio-purchase button{transition:background-color .15s,border-color .15s;color:var(--ink)}
#home button:focus-visible,.modal :is(button,input,select,summary):focus-visible,#home :is(input,select,summary):focus-visible{outline:3px solid #0757ed;outline-offset:3px}
#home button:disabled,.modal button:disabled{opacity:.48}
#home svg,.modal button svg,.season-page svg{fill:none;stroke:currentColor;stroke-width:1.6;width:24px;height:24px;flex:none}
#home .topbar{height:82px;min-height:82px;gap:26px;border-bottom:1px solid #b9ccdf;background:#ffffff6b;position:relative;z-index:2;padding:0 4px}
#home .header-wordmark{color:#13253d;font-size:24px;letter-spacing:-1px;gap:9px}
#home .header-wordmark>svg{width:33px;height:33px;color:#a77c29;fill:#f8df9a;stroke-width:1.1}
#home .wordmark-domain{color:#97702d;font-weight:400}
#home .topbar nav{order:1;display:flex;align-self:stretch;align-items:stretch;gap:30px;margin:0 auto}
#home .nav-link{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 2px;border:0;border-radius:0;border-bottom:3px solid transparent;color:#52677e;font:600 18px var(--display);letter-spacing:1.5px;text-transform:uppercase;background:none;white-space:nowrap}
#home .nav-link:hover,#home .nav-link[aria-current=page]{color:#064ccc;border-bottom-color:#0757ed}
#home .nav-link{min-width:44px}#home .nav-link:last-child{width:auto}#home .nav-link::after{content:none}
#home .season-dot{width:5px;height:5px;background:#b48a37;border-radius:50%;display:inline-block}
#home .golden-wallet{order:2;background:none;border:0;padding:0;gap:9px;min-width:0;margin:0;color:#192b41}
#home .golden-wallet small{display:none}
#home .golden-wallet strong{font:700 20px var(--display);color:#192b41}
#home .golden-coin{width:28px;height:28px;font-size:18px;background:linear-gradient(125deg,#f8e4a3,#c49a45);color:#77500b;border:1px solid #b99240;box-shadow:inset 0 0 0 2px #fff4d280}
#home .header-right{order:3;gap:9px;margin:0;padding-left:18px;border-left:1px solid #c5d5e5}
#home .icon-button,#home .menu-music-toggle{width:44px;height:44px;min-height:44px;padding:10px;border:1px solid transparent;border-radius:4px;background:transparent;color:#53677e}
#home .menu-music-toggle span{display:none}
#home .icon-button:hover,#home .menu-music-toggle:hover{border-color:#b8cbdc;background:#e7f0fa}
#home .play-button,.modal .play-button,#studio-purchase .play-button{min-height:50px;background:linear-gradient(120deg,#0968ff,#0346dc);color:white;border:1px solid #1c6cff;border-radius:3px;box-shadow:inset 0 1px #ffffff40;font:600 20px var(--display);letter-spacing:1px;text-transform:uppercase;gap:16px;padding:14px 22px}
#home .play-button:hover,.modal .play-button:hover{background:#0342bd;transform:none;filter:none;box-shadow:inset 0 1px #ffffff40}
#home :is(.dash-outline,.studio-small,.entry-back,.entry-save),.modal :is(.secondary-button,.dialog-menu-button),#studio-purchase .secondary-button{color:#233c56;background:#ffffff80;border:1px solid #aebfd0;border-radius:3px;min-height:44px;padding:10px 16px;font-size:12px;box-shadow:inset 0 1px #fff}
#home :is(.dash-outline,.studio-small):hover,.modal .secondary-button:hover{background:#e4eef9;border-color:#6388b1}
#home .dashboard{padding:0;gap:0;min-height:0;flex:1;color:var(--ink)}
#home .dash-heading{min-height:60px;gap:12px;padding:12px 4px;align-items:center}
#home .dash-heading>div{display:flex;align-items:center;gap:18px}
#home .dash-heading small{font:9px var(--mono);letter-spacing:1px;color:#52677e}
#home .dash-heading h2{font:500 15px var(--text);margin:0;color:#32485f;letter-spacing:0}
#home .dash-heading h2:focus{outline:0}
#home .dash-heading .dash-outline{font-size:11px;min-height:36px;padding:8px 12px}
#home .dash-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1.65fr) minmax(330px,1fr);gap:0;border:1px solid #bccddb;border-radius:5px;background:#ffffff40;overflow:hidden;box-shadow:0 8px 24px #3952710b}
#home .dash-loadout{position:relative;isolation:isolate;border:0;border-right:1px solid #c6d5e2;border-radius:0;background:none;overflow:hidden;min-height:0;padding:0}
#home .dash-loadout::before,#home .entry-stage::before{content:'';position:absolute;inset:8% 8% 15%;z-index:-1;background:url('./platinum-mark.svg') center/contain no-repeat;opacity:.62;pointer-events:none}
#home .dash-loadout-label{position:absolute;left:30px;top:35px;display:flex;flex-direction:column;align-items:flex-start;gap:25px;z-index:1;width:31%}
#home .dash-loadout-label small{font:10px var(--mono);letter-spacing:1.7px;color:#5a7290}
#home .dash-loadout-label h3{font:600 clamp(34px,3.4vw,60px)/.98 var(--display);text-transform:uppercase;letter-spacing:0;overflow-wrap:normal;margin:16px 0;color:#0d2037}
#home .loadout-caption{font-size:12px;line-height:1.7;max-width:160px;color:#506680}
#home #dash-change{display:flex;align-items:center;justify-content:space-between;width:170px;max-width:100%;font:600 15px var(--display);letter-spacing:1px;text-transform:uppercase;gap:8px}
#home #dash-change svg{width:18px}
#home #dash-preview{position:absolute;left:28%;top:8px;width:48%;height:calc(100% - 120px);min-height:0;flex:none;object-fit:contain;pointer-events:none}
#home .lobby-wordmark{position:absolute;right:5%;top:38%;color:#283e58;font:500 clamp(20px,2.6vw,44px)/1.14 var(--display);letter-spacing:6px;text-align:center}
#home .lobby-wordmark small{display:block;font:9px/2.1 var(--mono);letter-spacing:3px;color:#6a8099;margin-top:24px}
#home .lobby-actions{position:absolute;bottom:24px;left:24px;right:24px;display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:12px}
#home #dash-play{margin:0;min-height:88px;display:flex;justify-content:space-between;padding:16px 22px;gap:12px}
#home #dash-play span{font-size:clamp(24px,2.8vw,42px);letter-spacing:.6px;white-space:nowrap}
#home #dash-play small{font:8px/1.7 var(--mono);letter-spacing:2px;text-align:left}
#home .quick-button{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-height:88px;padding:14px 22px;border:1px solid #aebfd0;border-radius:3px;background:#ffffff85;box-shadow:inset 0 1px white;color:#162c46}
#home .quick-button span{font:600 25px var(--display);text-transform:uppercase}
#home .quick-button small{font-size:11px;color:#506680;margin-top:4px}
#home .quick-button svg{position:absolute;right:15px;width:18px}
#home .dash-content{min-height:0;min-width:0;padding:26px 28px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#9aacbf transparent}
#home .dash-tabs{display:none}
#home .dash-panel{flex:none;gap:0;min-height:0}
#home .dash-board-header{gap:12px;margin-bottom:4px}
#home .dash-board-header h3{font:600 clamp(26px,2.7vw,40px)/1 var(--display);letter-spacing:1px;text-transform:uppercase;color:#182d46;margin:0}
#home #dash-rank-refresh{width:44px;padding:5px;font-size:22px;background:transparent}
#home .ranking-audience{display:flex;gap:10px;justify-content:space-between;margin:7px 0 22px;color:#536981;font-size:11px}
#home .ranking-audience span{font-size:10px}
#home .dash-global{width:100%;display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;background:linear-gradient(130deg,#fff,#edf3f9);border:1px solid #b8ccdf;border-top:2px solid #a4bacf;border-radius:2px;min-height:106px;padding:16px 20px;text-align:left;margin-bottom:22px}
#home .dash-global small{font:9px var(--mono);letter-spacing:1.4px;color:#566e87}
#home .dash-global strong{display:block;font:600 42px/.95 var(--display);color:#13283f;margin-top:9px}
#home .dash-global>span{font-size:12px;line-height:1.6;border-left:1px solid #c6d5e2;padding-left:18px;color:#52677f}
#home .rank-crown{display:none}
#home .dash-global[data-champion=true]{grid-template-columns:auto auto 1fr;background:linear-gradient(115deg,#fff6d8,#fffdf8);border-color:#c5a45b;border-top-color:#a47c2d}
#home .dash-global[data-champion=true] .rank-crown{display:block;width:62px;height:62px;color:#a77c28;fill:#f3cf76;stroke-width:1}
#home .dash-global[data-champion=true] strong{font-size:56px}
#home .dash-global[data-champion=true]>span{color:#8d661d;border-color:#dcc28b;text-transform:uppercase;font:600 18px var(--display)}
#home .ranking-columns{display:grid;grid-template-columns:48px 1fr auto;gap:8px;font:9px var(--mono);letter-spacing:1px;color:#617690;padding:0 12px 11px}
#home .dash-leaderboard{display:block;flex:none;margin:0;padding:0;border:0;border-radius:0;background:none;list-style:none}
#home .dash-leaderboard li{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:8px;align-items:center;flex:none;min-height:64px;padding:12px;border:0;border-bottom:1px solid #cfdae6;border-radius:0;background:transparent;font-size:14px;color:#193149}
#home .dash-leaderboard li>b{font:600 23px var(--display);color:#273e57;white-space:nowrap}
#home .dash-leaderboard li>span{font-weight:600;overflow-wrap:anywhere;min-width:0}
#home .dash-leaderboard li>strong{font:600 26px var(--display);color:#162d48;letter-spacing:.2px}
#home .dash-leaderboard li small{display:block;font:10px var(--text);color:#5d7189;margin-top:3px}
#home .dash-leaderboard li em{font:700 8px var(--text);letter-spacing:.7px;margin-left:8px;background:#0a59e7;color:white;padding:3px 5px;border-radius:2px;vertical-align:middle}
#home .dash-leaderboard li.is-you{background:#e3effe;border-left:2px solid #0757ed;padding-left:10px}
#home .dash-leaderboard li.is-champion{background:linear-gradient(100deg,#fcf0cc,#fff9e9);border-bottom-color:#e5d4a4}
#home .dash-leaderboard li.is-champion>b{color:#9a6d15}
#home .dash-leaderboard li.is-champion em{color:#67490d;background:#edcf83}
#home .dash-board-status{font-size:10px;line-height:1.6;color:#647990;margin:13px 0}
#home .dash-own-record{padding:13px;background:#e5effd;border-left:3px solid #0757ed;font-size:12px;color:#1a416f}
#home .lobby-progress{border-top:1px solid #c4d3e2;color:#52677f;margin-top:6px;font-size:12px}
#home .lobby-progress summary{min-height:44px;padding:14px 0;cursor:pointer}
#home .dash-rank-row{display:block;margin:8px 0}
#home .dash-rank-box{padding:16px;background:#f9fbfe;border:1px solid #c4d3e2;border-radius:3px}
#home .dash-rank-box strong{font-size:25px;color:#233a53}
#home .dash-rank-box :is(small,span){color:#546d85;font-size:10px}
#home .dash-rank-box progress{accent-color:#0757ed}
#home .dash-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;flex:none;margin:14px 0}
#home .dash-stat{border:1px solid #d3dfeb;background:#f5f9fd;border-radius:3px;padding:12px;min-height:74px;color:#20374d}
#home .dash-stat strong{font-size:26px;color:#162f4e}
#home .dash-stat span{font:8px var(--mono);color:#5c7088;line-height:1.5}
#home .season-teaser{width:100%;display:flex;align-items:center;gap:12px;text-align:left;min-height:68px;margin-top:12px;padding:12px 16px;background:linear-gradient(110deg,#f9edc9,#fff 72%);border:1px solid #d6c398;border-radius:3px}
#home .season-teaser>svg:first-child{color:#a27a21;fill:#edce82;width:32px;height:32px}
#home .season-teaser>span{flex:1;font:600 23px var(--display);text-transform:uppercase;color:#1b3047}
#home .season-teaser small{display:block;margin-top:3px;font:10px var(--text);text-transform:none;color:#54687e}
#home .dashboard:is([data-tab=snakes],[data-tab=season]) .dash-loadout{display:none}
#home .dashboard:is([data-tab=snakes],[data-tab=season]) .dash-layout{grid-template-columns:minmax(0,1fr)}
#home .dashboard[data-tab=snakes] .dash-content{display:flex;overflow:hidden}
#home #dash-collection,#home #dash-studio-host{flex:1;min-height:0}
#home .season-page{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,.9fr) minmax(0,.8fr);gap:50px;align-items:center;min-height:100%;padding:20px 16px}
#home .platinum-kicker{font:10px var(--mono);letter-spacing:2px;color:#607c99;margin:0 0 20px}
#home .season-copy h2{font:600 clamp(40px,5vw,80px)/1 var(--display);text-transform:uppercase;margin:0 0 20px;color:#11283f}
#home .season-state{display:inline-block;border:1px solid #cbb579;background:#fff2c7;color:#74521b;font:700 10px var(--text);letter-spacing:.3px;padding:7px 10px;border-radius:2px}
#home .season-copy>p:not(.platinum-kicker),#home .season-rules p{font:13px/1.8 var(--text);color:#526b85;max-width:340px}
#home .season-dates{display:flex;gap:22px;margin:30px 0}
#home .season-dates>div+div{border-left:1px solid #c9d7e4;padding-left:22px}
#home .season-page small{display:block;font:9px var(--mono);letter-spacing:1.3px;color:#5b7088}
#home .season-dates strong{display:block;font:600 20px var(--display);margin-top:7px}
#home .season-countdown{padding:16px;border:1px solid #c5d6e6;max-width:260px;margin-bottom:28px;background:#ffffff70}
#home .season-countdown strong{font:600 32px var(--display);display:block;margin-top:4px;text-transform:uppercase}
#home .season-reward{position:relative;text-align:center;border:1px solid #c2a460;border-top:3px solid #b18a34;background:linear-gradient(135deg,#fff7de,#fffdf7 55%,#e7edf3);padding:35px 16px}
#home .season-reward-crown{display:block;width:72px;height:72px;color:#ab7f21;fill:#ecd28a;margin:0 auto 24px}
#home .reward-mystery{font:500 140px/1.4 var(--display);color:#b6c8d9;background:url('./platinum-mark.svg') center/contain no-repeat;margin:15px 0}
#home .season-reward h3{font:600 25px var(--display);margin:0 0 7px;color:#20344a}
#home .season-reward p,#home .season-reward>span{font:11px/1.6 var(--text);color:#5b6c7d}
#home .season-reward>span{display:block;border-top:1px solid #d5c8a6;margin-top:20px;padding-top:17px;color:#886425}
#home .season-rules{border-left:2px solid #bdcee0;padding-left:25px}
#home .season-rules h3{font:600 30px/1.1 var(--display);color:#1e344c;margin:15px 0}
/* Collection and editor: same artwork, new light equipment workbench. */
#home #snake-studio{gap:16px;color:#1c344f}
#home .studio-heading h2{color:#152d47;font:600 36px/1 var(--display);text-transform:uppercase;letter-spacing:.8px}
/* Three model categories share the preview row; Favorites has its own footer.
   Keep a minimum artwork row and scroll on short screens instead of collapsing it. */
#home #dash-studio-host #snake-studio[data-stage=categories] .studio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(240px,1fr) 64px;gap:18px;max-width:1000px;width:100%;margin:auto;overflow-y:auto;overflow-x:hidden}
#home #dash-studio-host .studio-category{background:linear-gradient(130deg,#f9fcff,#e9f1f7);border:1px solid #bed0e0;border-radius:3px;box-shadow:inset 0 1px white;color:#1a3049;padding:14px 25px;min-height:0;grid-template-rows:minmax(0,1fr) auto auto;gap:6px}
#home #dash-studio-host .studio-category::after{content:'CUSTOMIZE →';font:600 15px var(--display);letter-spacing:1px;border-top:1px solid #b7cbde;width:100%;padding-top:10px;margin-top:5px;color:#0757ed}
#home #dash-studio-host .studio-category strong{font:600 28px var(--display);color:#152c45}
#home #dash-studio-host .studio-category small{font:10px var(--text);color:#5a7189}
#home #dash-studio-host .studio-category[data-category=favorites]{grid-column:1/-1;display:flex;flex-direction:row;justify-content:space-between;padding:12px 22px;background:#ffffff88}
#home #dash-studio-host .studio-category[data-category=favorites] :is(.studio-card-art,.studio-empty-icon){display:none}
#home #dash-studio-host .studio-category[data-category=favorites]::after{content:'VIEW →';width:auto;border:0;margin:0;padding:0}
#home #dash-studio-host .studio-category:hover,#home .studio-model:hover{border-color:#0757ed;background:#e8f1fd}
#home .studio-browse-note,#home .studio-paging,#home #studio-status{color:#516a84;font-size:11px}
#home .studio-model,#home .studio-favorite{background:linear-gradient(130deg,#fff,#edf3f9);border:1px solid #bccedf;border-radius:3px;color:#223b53}
#home #dash-studio-host .studio-favorite-actions{background:#eaf2fa;border-top:1px solid #bfd1e1;padding:6px;gap:6px}
#home #dash-studio-host .studio-favorite-actions button{background:#f9fcff;color:#25405b;border:1px solid #b3c9dc;border-radius:3px;min-height:44px;font-size:12px}
#home #dash-studio-host .studio-favorite-actions button:first-child{background:#0757ed;color:#fff;border-color:#0757ed}
#home .studio-model strong{color:#1d354c;font-size:15px}
#home .studio-model small{color:#566d83;font-size:10px}
#home .studio-empty{color:#576d86;font-size:14px}
#home #skin-step[data-mode=account]{padding:24px 0 0;grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr);gap:28px}
#home .entry-stage{isolation:isolate;border:1px solid #bccfdf;border-radius:3px;background:linear-gradient(145deg,#f6fafe,#e6f0f8);box-shadow:none}
#home .entry-stage-top{padding:8px 16px;min-height:60px;color:#4b637c;font-size:12px;border-bottom:1px solid #ccdbea}
#home .entry-stage-top .entry-back{border:0;background:none;padding:8px 0;font-size:12px}
#home .entry-badge{border-color:#bbcedf;color:#48637f;font:9px var(--mono);letter-spacing:.7px}
#home .studio-preview-meta{background:#ffffff85;border-color:#c2d3e2;padding:12px 18px!important}
#home .studio-preview-meta small{color:#58718e;font-size:9px}
#home .studio-preview-meta strong{color:#1a314a;font-size:14px}
#home #studio-editor-host #studio-form{gap:14px;grid-template-rows:auto minmax(0,1fr) auto}
#home .studio-custom-tabs{border-color:#baccdf;padding-bottom:8px;gap:8px}
#home .studio-custom-tabs button{border:1px solid #b8cede;background:#eaf1f7;color:#3b5874;border-radius:3px;min-height:44px;font-size:13px}
#home .studio-custom-tabs button[aria-selected=true]{background:#0757ed;border-color:#0757ed;color:#fff;box-shadow:none}
#home .studio-custom-panel{padding:6px 10px 8px 0;scrollbar-color:#9ab3cb transparent}
#home .studio-custom-note,#home .studio-custom-panel h3{color:#526c86;font-size:12px;line-height:1.65}
#home .studio-choice{height:190px;padding:12px;border:1px solid #bfd0df;border-radius:3px;background:linear-gradient(130deg,#fff,#e8f1f8);color:#233d56;box-shadow:none}
#home .studio-choice strong{font:600 12px/1.4 var(--text);color:#213a53}
#home .studio-choice small{font:10px var(--text);color:#526f88}
#home .studio-choice[aria-pressed=true]{background:linear-gradient(140deg,#fff5d7,#fffdf6);border:1px solid #b9943d;box-shadow:inset 0 0 0 1px #d8bd7955}
#home .studio-choice[aria-pressed=true]::after{background:#e9c365;color:#684910}
#home .studio-savebar{border-color:#b9ccde;background:none;gap:12px}
#home #studio-form label{color:#506984;font-size:11px}
#home #studio-form :is(input,select){background:#f8fbff;color:#243d55;border:1px solid #b6cadc;border-radius:3px;height:44px;font-size:13px}
#home #studio-form .play-button{min-height:44px;font-size:17px;letter-spacing:.5px}
#home #studio-status[data-error=true]{color:#ad2f27}
#home .studio-heading .studio-small{min-height:44px}
#home #studio-browser{min-height:0;gap:12px}
/* Guest entry and nickname surface. */
#home .entry-name{max-width:1250px;max-height:none;min-height:0;display:flex;align-items:center;padding:25px 0}
#home .menu-cobra,#home #menu-atmosphere{display:none}
#home .entry-name::before{content:'';position:absolute;inset:2% 52% 2% clamp(-180px,calc((1250px - 100vw)/2),0px);background:url('./assets/arcade-entry-v100.webp') center/contain no-repeat;opacity:1;pointer-events:none}
#home .entry-name-panel{position:relative;left:auto;top:auto;right:auto;transform:none;margin:0 6% 0 auto;width:410px;max-width:47%;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none}
#home .entry-name-panel::before,#home .entry-name-panel::after{content:none}
#home .entry-name h1{text-shadow:none}
#home .entry-name h1{font:600 clamp(46px,5vw,78px)/.95 var(--display);text-transform:uppercase;letter-spacing:0;color:#152c44;margin:0 0 26px}
#home .entry-name h1 span{display:block;color:#0757ed}
#home #name-form>label{color:#425d79;font-size:12px}
#home .name-field{background:#fff;border:1px solid #a8bfd5;border-radius:3px;height:54px;box-shadow:none}
#home #nickname{color:#142d46;background:transparent;font-size:16px}
#home #nickname::placeholder{color:#72869b}
#home .name-status{color:#5c7390;font-size:11px}
#home .name-status[data-state=available]{color:#217350}
#home .name-status:is([data-state=taken],[data-state=invalid]){color:#ac332e}
#home .entry-note{font-size:12px;color:#516a84;line-height:1.65}
#home .entry-account-links button{color:#1658ac;font-size:12px;min-height:44px;background:#ffffff90;border:1px solid #b3c7da;border-radius:3px}
#home .entry-account-links button:hover{background:#e4eefb}
#home .entry-account-links{color:#9aafc2;border-color:#c5d4e3}
#home .guest-caption{background:#f9fcff;border-color:#b9cddf;padding:12px 20px;gap:15px}
#home .guest-caption h2{color:#1c324a;font-size:28px}
#home .guest-caption span{color:#607b95;font-size:9px}
#home #guest-custom{color:#164db0;background:#e6effc;border:1px solid #8facd1;border-radius:3px;font-size:12px;min-height:44px}
#home #guest-custom span{color:#165ab6}
#home .guest-arrow{color:#285584;background:#f8fcffdc;border:1px solid #a7bfd6;border-radius:3px;width:48px;height:52px}
#home .entry-skins[data-mode=guest]{padding:18px 0;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
#home .entry-skins[data-mode=guest] .entry-stage{width:min(900px,100%)}
#home .entry-skins[data-mode=guest] .entry-options{width:min(900px,100%);gap:16px}
#home .entry-skins[data-mode=guest] .entry-save{margin:0;min-height:44px;padding:10px}
#home [data-arena-backgrounds] h3{color:#304b66}
/* Dialogs inherit light chrome; palette samples and snake artwork are untouched. */
.modal.panel-shell,#studio-purchase,.orientation-dialog{border:1px solid #acbfd1;border-radius:6px;background:linear-gradient(130deg,#fff,#edf4fa);box-shadow:0 20px 80px #0b244748;color:#182f47}
.modal::backdrop,#studio-purchase::backdrop,.orientation-dialog::backdrop{background:#1229419e;backdrop-filter:none}
.modal :is(h2,h3,strong),#studio-purchase :is(h2,h3),.orientation-dialog h2{color:#183149}
.modal h2{font-family:var(--display);text-transform:uppercase;letter-spacing:.4px}
.modal :is(.eyebrow,.modal-intro,.small-note,.local-note p,.setting-row small,.account-form label,.account-form small,.account-message,.account-switches button,.entry-text-button,.guest-custom-options p,#guest-accessory-note,#guest-accessory-status){color:#536b84}
.modal .icon-button{background:#e6eff8;color:#294864;border:1px solid #c2d3e3;border-radius:3px;min-width:44px;min-height:44px}
.modal .dialog-navigation,.modal .dialog-actions{border-color:#c8d7e6;background:transparent}
.modal .dialog-content{scrollbar-color:#9bb3ca transparent}
.modal :is(.account-form input,select){background:#fff;color:#1c364e;border:1px solid #abc3d8;border-radius:3px;min-height:44px}
.modal .setting-row{border-color:#c6d6e5;min-height:64px}
.modal .switch{background:#c1d1e0}
.modal input:checked+.switch{background:#0757ed}
.modal .local-note{background:#e4eef8;border-color:#bfd1e3;color:#486685}
.modal .account-message[data-error=true]{color:#a9342e}
.modal .account-stats span,.modal #account-verification{color:#57718b}
.modal .guest-custom-stage{background:linear-gradient(130deg,#f7fbfe,#deebf5);border-color:#bacfe1;border-radius:3px}
.modal .guest-custom-tabs button,.modal .guest-patterns button{color:#37536e;background:#eef4fa;border-color:#b5cbdf;border-radius:3px;min-height:44px}
.modal .guest-custom-tabs button[aria-selected=true],.modal .guest-patterns button[aria-pressed=true]{background:#0757ed;color:white;border-color:#0757ed}
.modal .guest-pigments label{color:#4a647e}
.modal .guest-pigments input{background:#fff;border-color:#adc5da;border-radius:3px}
/* V91: only the new Robot paint/light controls, including landscape phones. */
#studio-form .studio-custom-panel #studio-robot-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
#studio-robot-controls>p,#guest-robot-controls>p{grid-column:1/-1;margin:0;font-size:11px;line-height:1.4}
#guest-robot-controls{flex:none;gap:8px;grid-template-columns:minmax(90px,.65fr) minmax(0,1.35fr)}
#guest-robot-controls label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#4a647e;font-size:11px}
#guest-robot-controls input,#guest-robot-controls select{width:100%;min-width:0;height:36px;padding:3px 6px;border:1px solid #adc5da;border-radius:3px;color:#17344a;background:#f7fbfe;font:12px var(--text)}
.modal #guest-accessory-grid .studio-choice{background:#eff5fa;border:1px solid #b6cde1;color:#1d374e;border-radius:3px}
.modal #guest-accessory-grid .studio-choice :is(strong,small){color:#415d75}
.modal #guest-accessory-grid .studio-choice[aria-pressed=true]{background:#fff5d9;border-color:#b28d36}
.modal #guest-accessory-grid .studio-choice[aria-pressed=true]::after{background:#e9c365;color:#684910}
.modal .platinum-help{width:100%;text-align:left;margin:12px 0}
.modal .result-score,.modal .result-stats{background:#e9f2fb;border-color:#c2d5e7}
.modal .result-score>strong{color:#0757ed}
.modal .help-list>div>span{color:#0757ed}
.modal .help-list p,.modal .power-guide{color:#455f79}
#studio-purchase .studio-purchase-info :is(p,small){color:#587089}
.orientation-dialog button{color:#fff;background:#0757ed;border-radius:3px;min-height:48px}
.orientation-dialog :is(p,small){color:#4c6681}
.launch-intro{background:linear-gradient(125deg,#dbe8f3,#fff 60%,#e3edf6);color:#152a43}
.launch-intro .launch-title{color:#192e48;text-shadow:none}
.launch-intro .launch-title span{color:#0757ed}
.launch-intro :is(.launch-kicker,.launch-tagline,.launch-status,.launch-footer){color:#506d8b;text-shadow:none}
.launch-intro .launch-grid{opacity:.16}
.launch-intro .launch-emblem{filter:none}
.launch-intro .launch-crown-art{display:none}
.launch-intro .launch-crown{display:block!important;opacity:1!important}
.launch-intro .launch-track{background:#cbdbe9;border-color:#9fb9d2}
.launch-intro .launch-track i{background:#0757ed}
.launch-intro :is(.launch-fullscreen,.launch-retry){color:#24549e;background:#fff;border-color:#adc4db}
/* Landscape is the mobile layout. Scrolling stays inside the list/editor. */
@media(max-width:1100px){
 #home{padding:0 max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left))}
 #home .topbar{gap:16px;height:68px;min-height:68px}
 #home .header-wordmark{font-size:20px}#home .header-wordmark>svg{width:27px;height:27px}
 #home .topbar nav{gap:20px}#home .nav-link{font-size:16px;letter-spacing:1px}
 #home .header-right{padding-left:8px;gap:0}
 #home .dash-layout{grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr)}
 #home .dash-content{padding:20px}
 #home .dash-loadout-label{left:20px;top:25px;width:37%}
 #home .dash-loadout-label h3{font-size:38px}#home .lobby-wordmark{display:none}
 #home #dash-preview{left:31%;width:66%}
 #home #dash-play small{display:none}
 #home .lobby-actions{left:16px;right:16px;bottom:16px;gap:8px;grid-template-columns:1.25fr 1fr}
 #home #dash-play{padding:14px;min-height:76px}#home #dash-play span{font-size:26px}
 #home .quick-button{min-height:76px;padding:12px}#home .quick-button span{font-size:23px}#home .quick-button svg{display:none}
 #home .season-page{gap:25px;padding:15px 0;grid-template-columns:1fr 1fr}
 #home .season-rules{grid-column:1/-1;display:flex;align-items:center;gap:18px;padding:10px 16px;border-left:2px solid #b6cbdf}
 #home .season-rules h3{font-size:24px;max-width:130px;flex:none;margin:0}#home .season-rules p{font-size:11px;margin:0}
 #home .season-rules>small{display:none}
}
@media(orientation:landscape) and (max-height:650px){
 #home{padding-bottom:8px}
 #home .topbar{height:50px;min-height:50px;gap:12px}
 #home .header-wordmark{font-size:18px;gap:6px}#home .header-wordmark>svg{width:24px;height:24px}
 #home .topbar nav{gap:16px}#home .nav-link{font-size:15px;letter-spacing:.7px}
 #home .golden-wallet strong{font-size:17px}#home .golden-coin{width:22px;height:22px;font-size:14px}
 #home .header-right{padding-left:6px}#home .icon-button,#home .menu-music-toggle{width:40px;padding:10px}
 #home .dash-heading{min-height:30px;padding:4px 2px}
 #home .dash-heading small{font-size:8px}#home .dash-heading h2{font-size:11px}
 #home .dash-heading .dash-outline{padding:4px 10px;min-height:26px;font-size:10px}
 #home .dash-layout{grid-template-columns:minmax(0,1.2fr) minmax(285px,1fr)}
 #home .dash-loadout-label{top:16px;left:16px;width:40%;gap:10px}
 #home .dash-loadout-label small{font-size:8px;letter-spacing:1px}#home .dash-loadout-label h3{font-size:31px;margin:10px 0}
 #home .loadout-caption{font-size:10px;line-height:1.5;margin:6px 0;max-width:130px}
 #home #dash-change{min-height:40px;padding:8px 10px;font-size:13px}
 #home #dash-preview{top:0;height:calc(100% - 80px);left:35%;width:65%}
 #home .lobby-wordmark{display:none}
 #home .lobby-actions{left:12px;right:12px;bottom:12px;gap:8px}
 #home #dash-play,#home .quick-button{min-height:56px;padding:8px 12px}
 #home #dash-play span{font-size:25px}#home #dash-play svg{width:18px}
 #home .quick-button span{font-size:21px}#home .quick-button small{font-size:10px;margin-top:1px}
 #home .dash-content{padding:12px 16px}
 #home .dash-board-header h3{font-size:26px}#home #dash-rank-refresh{width:36px;min-height:34px}
 #home .ranking-audience{font-size:10px;margin:0 0 10px}#home .ranking-audience span{font-size:9px}
 #home .dash-global{min-height:68px;padding:9px 12px;gap:12px;margin-bottom:13px}
 #home .dash-global strong{font-size:29px;margin-top:5px}#home .dash-global small{font-size:8px;letter-spacing:1px}
 #home .dash-global>span{font-size:10px;padding-left:10px;line-height:1.4}
 #home .dash-global[data-champion=true] strong{font-size:38px}#home .dash-global[data-champion=true] .rank-crown{width:40px;height:40px}
 #home .dash-global[data-champion=true]>span{font-size:15px}
 #home .ranking-columns{grid-template-columns:32px 1fr auto;font-size:8px;padding:0 8px 6px;letter-spacing:.5px}
 #home .dash-leaderboard li{min-height:45px;padding:8px;grid-template-columns:32px minmax(0,1fr) auto;font-size:12px}
 #home .dash-leaderboard li.is-you{padding-left:6px}#home .dash-leaderboard li>b{font-size:18px}#home .dash-leaderboard li>strong{font-size:21px}
 #home .dash-leaderboard li small{font-size:9px;margin-top:1px}#home .dash-leaderboard li em{font-size:7px;margin-left:5px;padding:2px 3px}
 #home .dash-board-status{font-size:9px;margin:9px 0}#home .season-teaser{min-height:52px;padding:8px 10px}
 #home .season-teaser>span{font-size:21px}#home .season-teaser small{font-size:9px}
 #home #skin-step[data-mode=account]{padding:10px 0 0;gap:16px;grid-template-columns:minmax(180px,.65fr) minmax(0,1.35fr)}
 #home .entry-stage-top{min-height:40px;padding:3px 10px;gap:8px;font-size:10px}
 #home .entry-stage-top .entry-back{min-height:36px;font-size:11px}#home .entry-badge{font-size:8px;letter-spacing:0;padding:3px 5px}
 #home .studio-preview-meta{padding:6px 12px!important}#home .studio-preview-meta small{font-size:8px}#home .studio-preview-meta strong{font-size:12px}
 #home #snake-studio{gap:8px}#home .studio-heading h2{font-size:25px;letter-spacing:0}#home .studio-heading .studio-small{min-height:36px;font-size:10px;padding:5px 10px}
 #home #studio-editor-host #studio-form{gap:8px}
 #home .studio-custom-tabs{gap:5px;padding-bottom:6px}#home .studio-custom-tabs button{min-height:40px;font-size:12px;padding:8px}
 #home .studio-custom-note{font-size:10px;line-height:1.5;margin-bottom:8px}
 #home .studio-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#home .studio-choice{height:128px;padding:8px;gap:3px}
 #home .studio-choice strong{font-size:10px}#home .studio-choice small{font-size:9px}
 #home .studio-savebar{gap:8px}#home #studio-form :is(input,select){height:38px;font-size:12px}
 #home #studio-form .play-button{min-height:40px;font-size:14px;padding:8px 12px}
 #home #studio-status{font-size:9px;min-height:0;line-height:1.35}
 #home #dash-studio-host #snake-studio[data-stage=categories] .studio-grid{gap:10px;grid-template-rows:minmax(180px,1fr) 44px;overflow-y:auto;max-width:850px}
 #home #dash-studio-host .studio-category{padding:8px 18px;gap:2px}
 #home #dash-studio-host .studio-category strong{font-size:22px}#home #dash-studio-host .studio-category small{font-size:9px}
 #home #dash-studio-host .studio-category::after{font-size:12px;padding-top:5px;margin-top:3px}
 #home #dash-studio-host .studio-category[data-category=favorites]{padding:6px 18px}
 #home .studio-browse-note{display:none}
 #home .season-page{grid-template-columns:1.1fr .85fr .85fr;gap:22px;min-height:100%;padding:5px}
 #home .season-copy h2{font-size:40px;margin-bottom:8px}#home .platinum-kicker{font-size:8px;margin-bottom:10px}
 #home .season-copy .platinum-kicker{display:none}
 #home .season-state{font-size:8px;padding:5px 7px}#home .season-copy>p:not(.platinum-kicker){font-size:10px;line-height:1.5;margin:9px 0}
 #home .season-dates{margin:10px 0;gap:12px}#home .season-dates>div+div{padding-left:12px}#home .season-dates strong{font-size:16px}
 #home .season-page small{font-size:8px;letter-spacing:.8px}
 #home .season-countdown{padding:8px 12px;margin-bottom:12px}#home .season-countdown strong{font-size:25px}
 #home .season-copy .play-button{min-height:44px;font-size:16px;padding:10px 12px;gap:8px}
 #home .season-reward{padding:16px 12px}#home .season-reward-crown{width:40px;height:40px;margin-bottom:12px}
 #home .reward-mystery{font-size:66px;line-height:1.15;margin:14px 0}
 #home .season-reward h3{font-size:20px}#home .season-reward p,#home .season-reward>span{font-size:9px;margin-top:10px;padding-top:0}
 #home .season-reward>span{padding-top:10px}#home .season-rules{grid-column:auto;display:block;padding:0 0 0 15px}
 #home .season-rules h3{font-size:24px;margin:12px 0;max-width:none}#home .season-rules p{font-size:10px;line-height:1.7;margin:10px 0}
 #home .season-rules>small{display:block}
 #home .entry-name{padding:8px 0}#home .entry-name-panel{margin-right:5%;max-width:46%;width:365px}
 #home .entry-name h1{font-size:43px;margin-bottom:12px}#home .entry-name h1 span{display:inline;margin-left:8px}
 #home .name-field{height:44px}#home .entry-name .play-button{min-height:44px;padding:10px 16px;font-size:17px}
 #home .entry-note{font-size:10px;margin:8px 0 0}#home .entry-account-links button{font-size:11px;min-height:36px;padding:5px 3px}
 #home .entry-skins[data-mode=guest]{padding:8px 0 0;gap:8px}#home .guest-caption{padding:6px 14px}
 #home .guest-caption h2{font-size:23px}#home #guest-custom{padding:8px 12px;min-height:40px}
 #home .entry-skins[data-mode=guest] .entry-save{font-size:10px}#home .entry-skins[data-mode=guest] .play-button{min-height:44px;padding:9px 14px;font-size:18px}
 .modal .guest-custom-layout{height:max(160px,calc(100dvh - 160px));gap:16px;grid-template-columns:minmax(150px,.6fr) minmax(0,1.4fr)}
 .modal .guest-custom-options{justify-content:flex-start;overflow:auto;gap:10px;padding-right:4px}
 .modal .guest-custom-options h2{font-size:24px} .modal .guest-custom-tabs button{min-height:38px;font-size:11px}
}
@media(orientation:landscape) and (max-width:720px){
 #home{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
 #home .header-wordmark{font-size:15px;letter-spacing:-.5px}#home .header-wordmark>svg{width:21px;height:21px}#home .wordmark-domain{display:none}
 #home .topbar{gap:8px}#home .topbar nav{gap:11px}#home .nav-link{font-size:13px;letter-spacing:0}
 #home .golden-wallet{gap:4px}#home .golden-wallet strong{font-size:15px}#home .golden-coin{display:none}
 #home .header-right{border:0;padding:0}
 #home .dash-heading{display:none}#home .dash-layout{margin-top:8px;grid-template-columns:minmax(0,1fr) minmax(255px,1fr)}
 #home .dash-loadout-label{left:10px;top:12px;width:46%;gap:6px}#home .dash-loadout-label h3{font-size:27px}
 #home .loadout-caption{display:none}#home .dash-loadout-label small{font-size:7px}
 #home #dash-change{padding:6px 8px;font-size:11px;min-height:38px}#home #dash-change svg{display:none}
 #home #dash-preview{left:39%;width:61%;height:calc(100% - 67px)}
 #home .lobby-actions{left:8px;right:8px;bottom:8px;gap:6px}
 #home #dash-play,#home .quick-button{min-height:49px;padding:8px}#home #dash-play span{font-size:20px}#home #dash-play svg{display:none}
 #home .quick-button span{font-size:18px}#home .quick-button small{font-size:9px}
 #home .dash-content{padding:10px 12px}#home .dash-board-header h3{font-size:24px}
 #home .dash-global[data-champion=true] .rank-crown{width:30px;height:30px}
 #home .dash-global{gap:8px;padding:8px;min-height:60px}#home .dash-global[data-champion=true] strong{font-size:33px}#home .dash-global[data-champion=true]>span{font-size:13px}
 #home #skin-step[data-mode=account]{grid-template-columns:minmax(150px,.55fr) minmax(0,1.45fr);gap:10px}
 #home #entry-player-name,#home .entry-badge{display:none}#home .studio-heading h2{font-size:22px}
 #home .studio-custom-tabs button{min-height:38px;font-size:10px;padding:6px}
 #home .studio-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#home .studio-choice{height:130px}
 #home .studio-preview-meta{display:none!important}#home #studio-status{font-size:8px}
 #home .season-page{gap:14px;grid-template-columns:1.1fr 1fr}#home .season-rules{grid-column:1/-1;display:block;border-top:1px solid #c4d4e5;border-left:0;padding:12px 0}
 #home .season-rules>small{display:none}#home .season-copy h2{font-size:37px}
}
@media(orientation:landscape) and (max-height:340px){
 #home .topbar{height:46px;min-height:46px}#home .dash-heading{display:none}#home .dash-layout{margin-top:6px}
 #home .studio-heading h2{font-size:21px}#home #snake-studio{gap:6px}
 #home .entry-name h1{font-size:35px;margin-bottom:9px}#home .entry-name .platinum-kicker{display:none}
 #home .entry-note{font-size:9px}#home .entry-account-links button{min-height:30px}
 #home #studio-editor-host #studio-form{gap:6px}#home .studio-custom-tabs{padding-bottom:4px}#home .studio-savebar{gap:5px}
 #home .studio-savebar label{font-size:9px}#home #studio-form input{height:34px}#home #studio-form .play-button{min-height:38px;font-size:13px}
 #home #studio-status{display:none}#home .entry-stage-top{min-height:34px;padding:0 8px}
 #home #dash-studio-host .studio-category::after{display:none}#home #dash-studio-host .studio-category strong{font-size:20px}
}
/* Desktop portrait remains usable; phones use the existing rotation gate. */
@media(orientation:portrait){
 #home .topbar{gap:8px}#home .topbar nav{gap:12px}#home .header-wordmark{font-size:17px}#home .header-right{display:none}
 #home .dash-layout{grid-template-columns:minmax(0,1fr) minmax(270px,1fr)}
 #home #skin-step[data-mode=account]{grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);grid-template-rows:1fr}
 #home .studio-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){#home *, .modal *{scroll-behavior:auto!important;transition:none!important}}
.mask-preview-toolbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:8px 0;background:#e7eef4}
#home[data-entry-locked=true] #entry-navigation,#home[data-entry-locked=true] #platinum-profile{display:none!important}
.mask-preview-toolbar p{flex:1;margin:0!important;font-size:11px;line-height:1.4}
#home #studio-mask-apply,#guest-mask-apply{flex:none;background:#0752ed;color:#fff;border-color:#0752ed;min-height:40px;padding:8px 14px;white-space:nowrap}
@media(orientation:landscape) and (max-height:600px){.mask-preview-toolbar p{font-size:9px}.mask-preview-toolbar{gap:6px;padding:4px 0}#home #studio-mask-apply,#guest-mask-apply{min-height:36px;padding:6px 9px;font-size:11px}}
