/* Shared game interface. Scene artwork and seasonal animation remain in their own layer. */
#shell{
 --ui-ink:#f3f5f7;--ui-muted:#b3c1ce;--ui-panel:#142333;--ui-raised:#203448;
 --ui-line:#a6c0d32e;--ui-accent:#f1d39a;--ui-shadow:0 12px 36px #020b1938;
 font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
#shell :is(button,input,select,textarea,h1,h2,h3,h4,strong,b){font-family:inherit;letter-spacing:normal}
#shell :is(button,input,select,textarea){font-weight:550}
#shell :is(h2,h3,h4,strong,b){font-weight:700}
#shell :is(h2,h3){letter-spacing:-.025em;text-shadow:none}
#shell button{transition:background-color .16s,border-color .16s,box-shadow .16s;touch-action:manipulation}
#shell button:hover{filter:none}
#shell button:active{transform:none}
#shell button:focus-visible,#shell :is(input,select,summary):focus-visible{outline:3px solid #ffe2a4;outline-offset:3px}
#shell button:disabled{cursor:default}
#shell :is(.primary,.secondary,.text-button,.back-button){border-radius:12px;text-shadow:none;box-shadow:none;min-height:44px;line-height:1.25}
#shell .primary{background:linear-gradient(135deg,#f8e3b6,#dfb873);border:1px solid #fff0cb;color:#302717;font-weight:750;box-shadow:inset 0 1px #fff6,0 4px 14px #0002;text-shadow:none}
#shell .primary:hover:not(:disabled){background:#ffe8b7;box-shadow:0 0 0 3px #edce8f22}
#shell :is(.secondary,.back-button,.text-button){background:#233a4e;color:var(--ui-ink);border:1px solid var(--ui-line)}
#shell :is(.secondary,.back-button,.text-button):hover:not(:disabled){background:#304a60;border-color:#a6c0d366}
#shell :is(input:not([type=range]):not([type=checkbox]),select,textarea){border:1px solid #97b7cd55;border-radius:10px;background:#102031;color:var(--ui-ink);color-scheme:dark;padding:10px 12px;min-height:42px;font-size:.875rem;box-shadow:none}
#shell input::placeholder{color:#9baebe}
#shell :is(input[type=range],input[type=checkbox],progress){accent-color:var(--ui-accent)}
#shell input[type=checkbox]{width:18px;height:18px;flex-shrink:0;vertical-align:middle}
#shell progress{border:0;border-radius:99px;overflow:hidden;background:#071522}
#shell progress::-webkit-progress-bar{background:#071522;border-radius:99px}
#shell progress::-webkit-progress-value{background:linear-gradient(90deg,#bf995f,#f4dca8);border-radius:99px}
#shell progress::-moz-progress-bar{background:#f1d39a}
/* Quiet, opaque-enough controls keep labels legible over every seasonal scene. */
#shell #lobby :is(.dock-button,.profile-plaque,.ranked-shortcut,.career-strip>button,#collection-open,#modes-open,.menu-panel-toggle),
#shell #main-topbar :is(.icon-button,.best-plaque,.coin-plaque){
 background:linear-gradient(140deg,#1c3045f2,#102031e8)!important;border:1px solid #c5d6e14d!important;
 color:var(--ui-ink)!important;box-shadow:inset 0 1px #ffffff0d,0 5px 18px #06132226!important;
 text-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:14px;
}
#shell #lobby :is(.dock-button,.profile-plaque,.career-strip>button,#collection-open,#modes-open):hover{border-color:#f1d39a99!important;background:#263d51f5!important}
#shell #main-topbar .wordmark{font-family:Fredoka,'Trebuchet MS',sans-serif;font-size:clamp(24px,2.7vw,38px);transform:none;-webkit-text-stroke:3px #14283a;text-shadow:0 2px 6px #07152366;letter-spacing:-.04em}
#shell #main-topbar .icon-button{width:44px;height:44px;border-radius:12px}
#shell #main-topbar .icon-button svg{width:21px;height:21px;filter:none}
#shell #main-topbar :is(.best-plaque,.coin-plaque){min-height:40px;padding:7px 12px;gap:8px;border-radius:12px;font-variant-numeric:tabular-nums}
#shell #main-topbar :is(.best-plaque strong,.coin-plaque b){font-size:.9rem}
#shell #main-topbar .best-plaque>span{font-size:17px;color:var(--ui-accent);text-shadow:none}
#shell #lobby .player-dock{gap:9px}
#shell #lobby .dock-button{padding:12px 14px;gap:12px;text-align:left}
#shell #lobby :is(.dock-button,.ranked-shortcut){font-size:1rem;font-weight:650}
#shell #lobby .dock-button small{font-size:.72rem;font-weight:450;color:#bacbd8;line-height:1.35;margin-top:5px}
#shell #lobby .dock-icon{width:30px;height:30px;min-width:30px;color:#e9d2a4}
#shell #lobby .dock-icon svg{width:27px;height:27px;filter:none!important;stroke-width:1.7}
#shell #lobby .profile-plaque{font-size:.9rem;font-weight:600;padding:10px 13px}
#shell #lobby .career-strip{gap:9px}
#shell #lobby .career-strip>button{padding:14px;gap:5px}
#shell #lobby .career-strip strong{font-size:1rem}
#shell #lobby .career-strip span:not(.feature-icon){font-size:.75rem;color:#bdcbd7;line-height:1.35;font-weight:450}
#shell #lobby .career-strip .feature-icon{color:var(--ui-accent)}
#shell #lobby .career-strip b{color:#f4dca8;font-size:.7rem}
#shell #lobby .career-strip progress{height:4px}
#shell #lobby #collection-open{border-radius:16px;padding:10px 18px;gap:13px}
#shell #lobby #collection-open span{font-size:1rem;font-weight:650}
#shell #lobby #collection-open small{color:#bdcbd7;font-size:.72rem;font-weight:450;margin-top:4px}
#shell #lobby #collection-open svg{width:27px;height:27px;stroke-width:1.8}
#shell #lobby #auto-join{background:linear-gradient(115deg,#f6dfad,#dcb477)!important;border:1px solid #ffedc4!important;color:#2c261b!important;box-shadow:inset 0 1px #fff8,0 8px 24px #251d1733!important;text-shadow:none!important;border-radius:16px;font-size:clamp(1.35rem,3vw,2rem);letter-spacing:.12em;font-weight:800}
#shell #lobby #auto-join:hover{background:#ffe6b1!important}
#shell #lobby #auto-join svg{width:22px;height:22px;fill:currentColor}
#shell #lobby #modes-open{font-size:.75rem;font-weight:650;min-height:36px;padding:8px 18px;border-radius:99px}
#shell #lobby .menu-panel-toggle{border-radius:10px;min-height:32px;height:32px;width:32px;min-width:32px;padding:6px}
#shell #lobby :is(#ranked,#party-open,#rooms-open,#modes-open):disabled{color:#afbdc9!important}
/* One panel and navigation language across collection, settings, career and hub. */
#shell :is(.dialog,.expansion-dialog,.party-lobby-room,.revive-card,.admin-confirm>div,.purchase-confirm-card){background:linear-gradient(145deg,#1c3042,#112132);border:1px solid #b9cfdf40;border-radius:22px;color:var(--ui-ink);box-shadow:var(--ui-shadow);text-shadow:none}
#shell :is(.collection-header,.panel-heading,.party-lobby-heading){gap:14px;align-items:center}
#shell :is(.collection-header,.panel-heading,.party-lobby-heading) h2{color:var(--ui-ink);font-size:clamp(1.25rem,2.5vw,1.85rem);line-height:1.15}
#shell :is(.panel-heading,.party-lobby-heading) small{font-size:.63rem;letter-spacing:.13em;color:var(--ui-accent)}
#shell .back-button{width:44px;min-width:44px;height:44px;padding:0;font-size:1.5rem}
#shell :is(.settings-tabs,.career-tabs,.expansion-tabs){padding:4px;gap:4px;background:#0c1c2cc9;border:1px solid var(--ui-line);border-radius:13px}
#shell :is(.settings-tabs,.career-tabs,.expansion-tabs) button{border:1px solid transparent;border-radius:9px;background:transparent;color:#c3d0dc;padding:10px 14px;min-height:42px;font-size:.875rem;font-weight:600;box-shadow:none;text-shadow:none}
#shell :is(.settings-tabs,.career-tabs,.expansion-tabs) [aria-selected=true]{background:#f0d6a2;color:#2b2b24;border-color:#fce6bc;box-shadow:0 2px 5px #0002}
#shell :is(.setting-tile,.party-choice,.mode-card,.solo-world-card,.achievement-card,.social-grid article,.guide-grid article,.quest,.quest-card,.party-settings-card,.party-players,.party-chat,.control-preview,.admin-grid>section){background:#1c3145;color:var(--ui-ink);border:1px solid #aac5d633;border-radius:15px;box-shadow:none}
#shell :is(.setting-tile,.party-choice,.solo-world-card,.social-grid article,.guide-grid article){padding:20px}
#shell :is(.setting-tile,.party-choice,.mode-card,.solo-world-card,.social-grid,.guide-grid,.expansion-dialog) :is(h3,h4){color:var(--ui-ink)}
#shell :is(.setting-tile,.party-choice,.solo-world-card,.achievement-card,.social-grid article,.guide-grid article,.expansion-dialog) p,
#shell :is(.mode-card small,.feature-note,.career-note,.party-note,.party-setting-note,.settings-dialog .graphics-status){color:#b6c7d4;font-size:.8125rem;line-height:1.55;font-weight:400;text-shadow:none}
#shell .setting-tile>label:not(.graphics-label){display:flex;align-items:flex-start;gap:10px;line-height:1.45;margin-block:12px;font-size:.85rem}
#shell .setting-tile .setting-tile{padding:15px;background:#102235;margin-block:16px}
#shell :is(.segmented,.control-choices){gap:5px}
#shell .segmented{background:#0e2031;padding:4px;border-radius:11px;flex-wrap:wrap}
#shell :is(.segmented button,.control-choices button){background:transparent;border:1px solid transparent;color:#c4d1dc;border-radius:8px;font-size:.8rem;min-height:40px;box-shadow:none;text-shadow:none}
#shell :is(.segmented,.control-choices) [aria-pressed=true]{background:#d7e6ee;color:#152c3c;border-color:#eff8ff;box-shadow:none}
#shell :is(.control-diagram,.solo-worlds,.challenge-menu,.exploration-journal,.loadout-menu,.boss-journal){background:#13283b;border:1px solid var(--ui-line);border-radius:13px;color:var(--ui-ink)}
#shell :is(.solo-worlds,.challenge-menu,.exploration-journal,.loadout-menu,.boss-journal)>summary{padding:14px 16px;font-size:.9rem;line-height:1.4}
#shell .solo-worlds>summary small{color:#b6c7d4}
#shell .solo-world-progress{background:#102437;color:#d6e3eb}
#shell .mode-cards{gap:10px}
#shell .mode-card{min-height:122px;padding:16px 12px;text-align:left}
#shell .mode-card b{font-size:.93rem;margin:9px 0 5px}
#shell .mode-icon{font-size:1.3rem}
#shell .mode-card:hover{background:#284157;border-color:#a6c4d366}
#shell .mode-card[aria-pressed=true],#shell .achievement-card.earned{border-color:#e4c48b;background:#374237;color:#fff0d2;box-shadow:inset 0 0 0 1px #e4c48b33}
#shell :is(.mode-card[aria-pressed=true],.achievement-card.earned) :is(b,p,small){color:#ede4d1}
#shell .achievement-card{opacity:1}
#shell .achievement-card:not(.earned){color:#adbfcd;background:#182b3d}
#shell :is(.room-list>*,.daily-leaders li,.quest-list>*,.finish-list>*){border-radius:12px;box-shadow:none}
#shell .season-banner{background:linear-gradient(120deg,#30485a,#323550);border:1px solid #d0bc8a55;border-radius:16px}
#shell .career-dialog>header{align-items:center;padding-bottom:12px;border-bottom:1px solid var(--ui-line)}
#shell :is(.career-dialog>header small,.menu-pill){color:var(--ui-accent);font-size:.65rem;letter-spacing:.08em}
#shell .coin-pill{font-variant-numeric:tabular-nums}
#shell #collection-panel .collection-tabs button{font-size:.875rem;font-weight:600}
#shell #collection-panel :is(.collection-preview,.store-detail,.collection-card,.store-card){border-radius:16px}
#shell #collection-panel :is(.collection-card strong,.store-card strong){font-size:.85rem;font-weight:650}
#shell #collection-panel :is(.collection-footer,.store-detail,.collection-preview) .primary{background:linear-gradient(135deg,#f8e3b6,#dfb873);border:1px solid #fff0cb;color:#302717;text-shadow:none;box-shadow:none}
#shell #settings-panel .settings-dialog{width:min(1140px,100%);max-width:1140px;gap:16px}
#shell #settings-panel .settings-tabs{margin-left:0;max-width:none;width:100%}
#shell #settings-panel .settings-grid{gap:14px}
#shell .admin-pagination button{background:#233a4e;color:var(--ui-ink);border:1px solid var(--ui-line);border-radius:8px;min-height:40px}
/* Match UI: stable numbers, clear cooldowns, low visual weight around the arena. */
#shell :is(.score-card,.leaderboard,.room-chip,.leader-caption,#boost-meter,#minimap,.signal-controls,#menu-button){text-shadow:none;box-shadow:0 4px 16px #05111c20}
#shell :is(.score-card,.leaderboard,.room-chip,.leader-caption,.signal-controls){background:#102235e8;border:1px solid #c3d7e238;border-radius:13px;color:#f3f6f8;backdrop-filter:none}
#shell .score-card{padding:12px 16px}
#shell .score-card strong{font-size:clamp(2rem,3.4vw,3rem);font-weight:750;letter-spacing:-.045em;text-shadow:none;line-height:1.05;font-variant-numeric:tabular-nums}
#shell .score-card :is(small,span){color:#bfcfda;font-size:.67rem;letter-spacing:.06em}
#shell .run-stats{font-variant-numeric:tabular-nums;color:#c2d2de;font-size:.7rem}
#shell .leaderboard{padding:12px;width:188px}
#shell .leaderboard h2{font-size:.7rem;letter-spacing:.12em;color:#e8cf9e;margin-bottom:9px;text-transform:uppercase}
#shell .leaderboard li{font-size:.75rem;line-height:1.55;font-weight:500;font-variant-numeric:tabular-nums;border-radius:5px}
#shell .room-chip{font-size:.65rem;padding:6px 10px;border-radius:8px}
#shell #menu-button{background:#102235ed;color:#f1f5f7;border:1px solid #c3d7e24d;border-radius:11px;padding:9px 15px;font-size:.75rem;min-height:40px}
#shell .skill-button{border:1px solid #b5d2e566;border-radius:15px;background:#183b54eb;box-shadow:inset 0 1px #ffffff16,0 4px 12px #0002;color:#f3f8fb}
#shell .skill-button.laser{background:#3a355de8;border-color:#c6b9ee70}
#shell .skill-button.ability{background:#285048e8;border-color:#b8e4cd66}
#shell .skill-button svg{filter:none;stroke-width:4}
#shell .skill-button small{font-size:.56rem;font-weight:650;letter-spacing:.05em;text-shadow:none}
#shell .skill-button kbd{font:500 .6rem inherit;color:#e8d7af}
#shell .skill-time{font-variant-numeric:tabular-nums;font-weight:700}
#shell #boost{border:2px solid #e9d4a57a;background:#152b3ed9;color:#f4d99f;box-shadow:inset 0 0 0 6px #ffffff08}
#shell #boost:active{background:#685536de;border-color:#ffe4a7}
#shell #joystick{background:#12283f55;border:1px solid #ecf6fc66;box-shadow:inset 0 0 0 7px #ffffff08}
#shell #stick{background:#e2ebf0e6;box-shadow:0 3px 10px #04142140}
#shell #minimap{border:1px solid #bed1df55;border-radius:12px;overflow:hidden}
#shell #death :is(.result-summary,.result-quests,.result-season){border:1px solid var(--ui-line);border-radius:14px;background:#1c3145}
#shell #death .round-score{font-variant-numeric:tabular-nums;letter-spacing:-.045em;color:#f5dfb1;text-shadow:none}
#shell :is(.results-table,.round-stats){font-variant-numeric:tabular-nums}
#shell :is(.loading-card,.rotate-card){border:1px solid #d2dfeb66;border-radius:24px;box-shadow:var(--ui-shadow)}
#shell .rotate-card h2{letter-spacing:-.035em;font-weight:750}
#shell :is(.error,[role=alert]){line-height:1.45}
@media(orientation:landscape) and (max-height:600px){
 #shell #main-topbar .wordmark{font-size:26px}
 #shell #main-topbar .icon-button{width:38px;height:38px}
 #shell #main-topbar :is(.best-plaque,.coin-plaque){min-height:36px;padding:5px 9px}
 #shell #main-topbar :is(.best-plaque strong,.coin-plaque b){font-size:.8rem}
 #shell #lobby :is(.dock-button,.ranked-shortcut){font-size:.8rem;padding:8px 10px;gap:9px;border-radius:11px}
 #shell #lobby .dock-icon,#shell #lobby .dock-icon svg{width:23px;height:23px;min-width:23px}
 #shell #lobby .profile-plaque{font-size:.75rem;padding:8px 10px}
 #shell #lobby .career-strip>button{padding:10px;border-radius:12px}
 #shell #lobby .career-strip strong{font-size:.85rem}
 #shell #lobby .career-strip span:not(.feature-icon){font-size:.64rem}
 #shell #lobby #collection-open{padding:8px 14px;border-radius:13px}
 #shell #lobby #collection-open span{font-size:.86rem}
 #shell #lobby #collection-open small{font-size:.65rem}
 #shell #lobby #auto-join{font-size:1.4rem;border-radius:13px}
 #shell #lobby #modes-open{font-size:.68rem;min-height:32px;padding:6px 13px}
 #shell :is(.dialog,.expansion-dialog){border-radius:16px}
 #shell :is(.setting-tile,.party-choice,.solo-world-card,.social-grid article,.guide-grid article){padding:14px}
 #shell :is(.settings-tabs,.career-tabs,.expansion-tabs) button{font-size:.75rem;padding:8px 10px;min-height:38px}
 #shell .mode-card{min-height:104px;padding:11px}
 #shell .mode-card b{font-size:.8rem}
 #shell .mode-card small{font-size:.7rem}
 #shell .score-card{padding:8px 11px;min-width:130px}
 #shell .score-card strong{font-size:2rem}
 #shell .leaderboard{width:153px;padding:9px}
 #shell .leaderboard li{font-size:.66rem}
 #shell .skill-button{border-radius:12px}
}
@media(max-width:740px){#shell .mode-cards{grid-template-columns:repeat(2,minmax(0,1fr))}#shell .settings-grid{grid-template-columns:1fr}#shell .achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){#shell button{transition:none}}
#shell.high-contrast :is(.dialog,.setting-tile,.mode-card,.leaderboard,.score-card){background:#0b1928;border-color:#eff7ff;color:#fff}
/* Explicit panel roots outrank legacy seasonal glass; the scene behind stays intact. */
#shell :is(#party-panel,#rooms-panel,#career-panel,#tutorial,#account-panel,#create-panel)>.dialog,
#shell :is(.settings-dialog,.expansion-dialog,.admin-dialog,.party-lobby-room){background:linear-gradient(145deg,#1c3042f5,#112132f5);border:1px solid #b9cfdf40;box-shadow:var(--ui-shadow);backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--ui-ink)}
#shell :is(.menu-page.small-overlay,.small-overlay.party-lobby) :is(h1,h2,h3,h4,strong,label,p,small){font-family:inherit}
#shell :is(.secondary,.back-button,.settings-tabs,.setting-tile,.party-choice,.public-rooms,.room-row,.control-instructions,.guide-grid article){backdrop-filter:none;-webkit-backdrop-filter:none}
#shell :is(.public-rooms,.room-row,.control-instructions){background:#1c3145;color:var(--ui-ink);border:1px solid var(--ui-line);border-radius:13px}
/* Replace the old seasonal control overrides, without changing scene colors. */
#shell :is(#settings-panel,#career-panel,#party-panel,#rooms-panel,#expansion-panel,#account-panel,#admin-panel,#create-panel,#pause,#death,#tutorial) :is(.secondary,.back-button,.text-button):not(.section-switch button){background:#243b50!important;border-color:#c3d5e13d!important;color:#eff5f9!important;box-shadow:inset 0 1px #ffffff0a!important;text-shadow:none!important;backdrop-filter:none;-webkit-backdrop-filter:none}
#shell :is(#settings-panel,#career-panel,#expansion-panel) :is(.settings-tabs,.career-tabs,.expansion-tabs){background:#0c1c2ce6!important;border:1px solid #a6c0d32e!important;box-shadow:none!important;backdrop-filter:none;-webkit-backdrop-filter:none}
#shell #settings-panel :is(.segmented,.control-choices button,.guide-grid article){background:#142a3d!important;border:1px solid #a6c0d333!important;color:#d6e1e9!important;box-shadow:none!important}
#shell #settings-panel .control-choices button[aria-pressed=true]{background:#d9e7ee!important;border-color:#e9f6fc!important;color:#163043!important}
#shell #settings-panel .control-instructions{background:#1c3145!important;border:1px solid #a6c0d333!important;box-shadow:none}
#shell #settings-panel .settings-dialog{height:100%;max-height:100%;min-height:0;padding:18px;border-radius:20px;overflow:hidden}
#shell #settings-panel :is(.collection-header,.settings-tabs){flex-shrink:0}
#shell #settings-panel :is(.settings-grid,.control-settings,.guide-grid){flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#647c90 transparent;padding:2px 5px 6px 2px}
#shell #settings-panel .settings-tabs button{font-size:.85rem}
#shell #settings-panel .settings-tabs [aria-selected=false]{background:transparent;color:#c3d0dc;border-color:transparent}
#shell #settings-panel .settings-tabs [aria-selected=true]{background:#f0d6a2;color:#2b2b24;border-color:#fce6bc}
#shell #expansion-panel .collection-header small{color:#dbbf8b;letter-spacing:.12em;font-size:.65rem}
#shell #lobby #auto-join{-webkit-text-stroke:0}
#shell #lobby #auto-join svg{stroke:currentColor;stroke-width:0}
#shell #hud :is(.score-card strong,.score-card>#best,.run-stats){font-family:inherit;-webkit-text-stroke:0;text-shadow:none}
#shell #hud :is(.score-card>#best,.run-stats){font-size:.72rem;color:#c3d2de;font-weight:500;letter-spacing:0}
#shell #admin-panel :is(.admin-grid>section,.admin-member,.admin-offer,.admin-ip-area){background:#1c3145!important;border-color:#a6c0d333!important;color:#eff5f9}
#shell #create-panel .party-play{background:linear-gradient(135deg,#f8e3b6,#dfb873)!important;border:1px solid #ffedc4!important;color:#302717!important;text-shadow:none!important;box-shadow:none!important}
#shell #create-panel .party-play::before{content:none}
@media(orientation:landscape) and (max-height:600px){
 #shell #settings-panel .settings-dialog{padding:12px;gap:10px;border-radius:16px}
 #shell #settings-panel .settings-tabs button{font-size:.75rem;min-height:38px}
}
#shell :is(#collection-panel,#photo-panel) :is(.secondary,.back-button):not(.section-switch button):not(.preview-toggle){background:#243b50!important;border-color:#c3d5e13d!important;color:#eff5f9!important;box-shadow:none!important;text-shadow:none!important;backdrop-filter:none;-webkit-backdrop-filter:none}
#shell #collection-panel .segmented{background:#142a3d!important;border-color:#a6c0d333!important;box-shadow:none}
/* Signal and power controls are positioned UI, never document-flow content. */
#shell .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#shell #hud .signal-controls{position:absolute;inset:auto auto max(12px,env(safe-area-inset-bottom)) 50%;transform:translateX(-50%);display:flex;align-items:center;gap:3px;width:174px;padding:3px;pointer-events:auto;border-radius:10px}
#shell #hud .signal-controls label{display:block;flex:1;min-width:0}
#shell #hud .signal-controls select{width:100%;min-height:34px;height:34px;padding:5px 8px;border:0;background:transparent;font-size:.7rem;border-radius:7px}
#shell #signal-send{min-height:34px;padding:6px 10px;border:0;border-radius:7px;background:#d9e7ef;color:#153042;font-size:.7rem;font-weight:700}
#shell #signal-send:disabled{opacity:.5}
#shell #hud #boost-meter{bottom:max(64px,calc(env(safe-area-inset-bottom) + 54px));padding:6px 10px;border-radius:10px;background:#102235c9;width:min(240px,30%)}
#shell #hud #hint{bottom:104px;max-width:40%;font-size:.7rem}
#shell #hud #ability-skill{position:relative;gap:2px;font-size:.6rem;line-height:1.05;padding:6px 4px}
#shell #hud #ability-skill svg{width:24px;height:24px;stroke-width:2.5}
#shell #hud #ability-label{display:block;width:100%;font-size:.54rem;line-height:1.05;letter-spacing:0;font-weight:650;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#shell #hud #ability-skill>kbd{position:absolute;top:4px;right:5px;font-family:inherit;font-size:.55rem;color:#e8d7af}
#shell #hud #ability-skill.cooling>kbd{opacity:.38}
#shell #hud #gate-status{border:1px solid #bad0de66;background:#102235e8;box-shadow:none;font-family:inherit;font-weight:650;letter-spacing:.03em;border-radius:9px;font-size:.66rem;padding:8px 10px}
#shell #hud #scoreboard{border:1px solid #bad0de55;background:#102235e8;box-shadow:none;border-radius:12px}
#shell #hud #scoreboard-toggle{border:1px solid #c0d2df4d;background:#30495c;color:#f5f8fa;width:24px;height:24px;border-radius:8px}
#shell #hud #scoreboard-toggle svg{width:14px;height:14px}
#shell #hud #menu-button{width:42px;height:42px;min-height:42px;padding:10px}
#shell #hud #menu-button svg{width:20px;height:20px}
@media(orientation:landscape) and (max-height:500px){
 #shell #hud #minimap{display:none}
 #shell #hud #hint{display:none}
 #shell #hud .signal-controls{width:160px;bottom:max(8px,env(safe-area-inset-bottom))}
 #shell #hud #boost-meter{bottom:max(58px,calc(env(safe-area-inset-bottom) + 50px))}
 #shell #hud .score-card{min-width:112px;padding:8px 12px}
 #shell #hud .score-card strong{font-size:1.9rem}
 #shell #hud .score-card>#best{font-size:.67rem;margin-top:3px}
 #shell #hud .run-stats,#shell #hud .run-stats span{font-size:.6rem;letter-spacing:0}
}
#shell #collection-panel .collection-preview{background:linear-gradient(150deg,#284554,#12283b);color:#eff5f6;border:1px solid #c5d5dd4d;box-shadow:var(--ui-shadow)}
#shell #collection-panel .collection-preview :is(h3,.collection-name){color:#f2eee2}
#shell #collection-panel .collection-name{background:#0d2033;border:1px solid #aec9da33}
#shell #collection-panel .collection-preview :is(.growth-preview,.selection-tag){color:#b7cbd5}
#shell #collection-panel .collection-preview .favorite-button{color:#e8d6b4;background:#ffffff08;border-color:#d1c5a94d}
#shell #collection-panel .collection-preview .favorite-button[aria-pressed=true]{background:#74516a;color:#fff}
#shell #collection-panel .collection-card{background:linear-gradient(145deg,#263e50,#182c3e);border-color:#b5cbdc38;box-shadow:none}
#shell #collection-panel .collection-card strong{color:#eef4f7}
#shell #collection-panel .collection-card small{color:#b9c9d6}
#shell #collection-panel .collection-card[aria-pressed=true]{background:linear-gradient(140deg,#3f514c,#263d3f);border-color:#ebd09a;box-shadow:inset 0 0 0 1px #e8cb8c22}
#shell #collection-panel .card-badge{color:#efd7a8}
#shell #collection-panel .collection-filters [aria-pressed=true]{background:#cde2e6;color:#173240;box-shadow:none}
@media(orientation:landscape){
 #shell #collection-panel .collection-body{grid-template-rows:minmax(0,1fr);width:100%;min-width:0}
 #shell #collection-panel .collection-filters{grid-column:1;grid-row:1;flex-direction:column;overflow:auto;min-width:0;padding:0}
 #shell #collection-panel .collection-filters button{white-space:normal;min-width:0}
 #shell #collection-panel .collection-preview{grid-column:2;grid-row:1;min-width:0}
 #shell #collection-panel .collection-catalog{grid-column:3;grid-row:1;min-width:0}
 #shell #collection-panel .store-sidebar{flex-direction:column;overflow:auto;min-height:0}
 #shell #collection-panel :is(.store-filters,.store-collections){flex-direction:column;flex:none}
}
@media(orientation:landscape) and (max-width:760px){
 #shell #collection-panel .collection-body{grid-template-columns:72px 122px minmax(0,1fr);gap:8px}
 #shell #collection-panel .collection-tabs button{font-size:11px;padding:5px 4px;white-space:nowrap}
 #shell #collection-panel .collection-header .coin-pill{font-size:.75rem;padding:8px}
 #shell #collection-panel .catalog-tools{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,.8fr);gap:5px}
 #shell #collection-panel .catalog-tools label{min-width:0}
 #shell #collection-panel .catalog-heading small{font-size:9px;letter-spacing:.1em}
 #shell #collection-panel .collection-footer p{display:none}
 #shell #collection-panel .collection-footer{display:flex;justify-content:flex-end}
 #shell #collection-panel .collection-actions{width:100%;max-width:none}
 #shell #collection-panel .collection-card strong{font-size:9px}
 #shell #collection-panel .collection-card small{font-size:8px}
}
#shell #collection-panel #snake-builder-panel{height:100%;min-height:0;max-height:100%;padding:0;gap:14px;grid-template-columns:minmax(155px,.8fr) minmax(235px,1.2fr) minmax(190px,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden}
#shell #snake-builder-panel :is(.snake-builder-stage,.snake-builder-controls,.snake-builder-library){min-width:0;min-height:0;border-radius:16px;border:1px solid #b9cfdf33;background:#142c3fe8;padding:16px;overflow:auto;scrollbar-width:thin}
#shell #snake-builder-panel .snake-builder-stage{display:grid;grid-template-rows:minmax(110px,1fr) minmax(0,1fr);gap:12px;overflow:hidden}
#shell #snake-builder-stage #snake-builder-preview{display:block;min-height:0;height:100%;max-height:100%;width:100%;object-fit:contain}
#shell #snake-builder-stage .snake-builder-preview-options{min-height:0;overflow:auto;align-content:start;scrollbar-width:thin;font-size:.7rem}
#shell #snake-builder-panel :is(p,label){font-size:.82rem;line-height:1.5;color:#bccdd9}
#shell #snake-builder-panel h3{font-size:1.1rem;margin:0 0 8px;color:#f2f5f7}
#shell #snake-builder-panel .snake-builder-library{grid-column:3;grid-row:1}
#shell #snake-builder-panel .snake-builder-controls{gap:9px}
#shell #snake-builder-panel .snake-builder-controls>*{flex-shrink:0}
#shell #snake-builder-panel .snake-builder-actions{gap:8px}
#shell #snake-builder-panel .snake-builder-actions button{flex:1 1 100%;font-size:.8rem;padding:9px}
#shell #snake-builder-panel .snake-builder-parts{margin:4px 0}
#shell #snake-builder-panel .snake-builder-part select{font-size:.75rem}
#shell #snake-builder-panel .snake-builder-random>button{font-size:.8rem;padding:10px}
#shell #snake-builder-panel .design-sharing,#shell #snake-builder-panel .creator-challenges{background:#203c50;border:1px solid #bad0de33;border-radius:11px;font-size:.8rem;padding:10px}
@media(orientation:landscape) and (max-height:600px){
 #shell #collection-panel #snake-builder-panel{grid-template-columns:minmax(140px,.8fr) minmax(210px,1.2fr) minmax(180px,1fr);gap:10px}
 #shell #snake-builder-panel :is(.snake-builder-stage,.snake-builder-controls,.snake-builder-library){padding:11px;border-radius:12px}
 #shell #snake-builder-panel :is(h3){font-size:.92rem}
 #shell #snake-builder-panel :is(p,label){font-size:.72rem}
}
#shell #hud #scoreboard-toggle{top:-8px;right:-20px;width:44px;height:44px;min-width:44px;min-height:44px;padding:12px;background:transparent;border:0;box-shadow:none}
#shell #hud #scoreboard-toggle svg{width:20px;height:20px;padding:2px;background:#263f52;border:1px solid #c0d2df80;color:#f5f8fa;border-radius:50%}
#shell #hud .leaderboard li{font-family:inherit;font-weight:550;text-shadow:none;font-size:.7rem}
#shell #hud .leaderboard .own{background:#d8e7ee;color:#173144}
@media(orientation:landscape) and (max-width:760px){
 #shell #collection-panel .growth-preview{display:flex;flex-direction:column;align-items:stretch;gap:2px;font-size:9px}
 #shell #collection-panel .growth-preview select{flex:none;width:100%;max-width:none;min-height:24px;height:24px}
}
#shell #snake-builder-stage .snake-builder-preview-options{height:100%;align-self:stretch}
#shell #snake-builder-stage[data-preview-light=true]{background:#d9edf0;border-color:#8bb9c2}
#shell #snake-builder-stage[data-preview-light=true] .snake-builder-preview-options{color:#173950}
#shell #photo-panel .photo-dialog{background:#172d40;color:#f2f5f7;border:1px solid #b9cfdf40;border-radius:18px;box-shadow:var(--ui-shadow)}
#shell #photo-panel :is(h2,h3,label){color:#f2f5f7}
#shell #photo-panel p{color:#becfdb}
#shell :is(.collection-book,.snake-home){border-color:#b9cfdf33}
#shell .collection-book :is(.book-entry,.book-card){background:#1d3648;border:1px solid #bdd2df33;border-radius:12px;color:#eef5f7}
#shell:is([data-text-size=large],[data-text-size=extra]) #settings-panel .settings-tabs{overflow-x:auto}
#shell:is([data-text-size=large],[data-text-size=extra]) #settings-panel .settings-tabs button{flex-shrink:0;min-width:max-content}
#shell:is([data-text-size=large],[data-text-size=extra]) #collection-panel{overflow:auto}
#shell:is([data-text-size=large],[data-text-size=extra]) #collection-panel .collection-dialog{height:auto;min-height:100%;max-height:none;overflow:visible;grid-template-rows:auto auto}
#shell:is([data-text-size=large],[data-text-size=extra]) #collection-panel .collection-header{height:auto;flex-wrap:wrap}
#shell:is([data-text-size=large],[data-text-size=extra]) #collection-panel .collection-tabs{order:3;flex-basis:100%;overflow-x:auto}
#shell:is([data-text-size=large],[data-text-size=extra]) #collection-panel .collection-tabs button{flex:none;white-space:nowrap}
#shell:is([data-text-size=large],[data-text-size=extra]) #collection-panel .collection-body{grid-row:2;grid-template-columns:minmax(130px,1fr) minmax(0,3fr);grid-template-rows:auto auto;min-height:650px}
#shell:is([data-text-size=large],[data-text-size=extra]) #collection-panel .collection-filters{grid-row:1;grid-column:1/-1;flex-direction:row;flex-wrap:wrap}
#shell:is([data-text-size=large],[data-text-size=extra]) #collection-panel .collection-preview{grid-row:2;grid-column:1}
#shell:is([data-text-size=large],[data-text-size=extra]) #collection-panel .collection-catalog{grid-row:2;grid-column:2;overflow:visible;grid-template-rows:auto auto auto auto auto}
#shell:is([data-text-size=large],[data-text-size=extra]) #collection-panel .collection-cards{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(170px,1fr))}
#shell:is([data-text-size=large],[data-text-size=extra]) #collection-panel .catalog-tools{grid-template-columns:1fr}
#shell:is([data-text-size=large],[data-text-size=extra]) #collection-panel .collection-footer{height:auto;flex-wrap:wrap}
/* Secondary views share the same readable surfaces as the main tabs. */
#shell :is(.stat-card,.history-row,.family-profile-menu,.family-profile-card){background:#20394d;color:#eef4f7;border:1px solid #bed3e133;border-radius:12px;box-shadow:none}
#shell .stat-card b{color:#f0d5a2;font-variant-numeric:tabular-nums}
#shell :is(.stat-card span,.history-empty,.family-profile-card p){color:#bdcdd9}
#shell #powerup-shop{background:#172d40;color:#edf4f7;border:1px solid #bed3e133;border-radius:16px}
#shell #powerup-shop .powerup-card{background:#223a50;border:1px solid #b9c9e244;border-radius:13px;box-shadow:none;color:#d1dfe8}
#shell #powerup-shop .powerup-card.shield{background:#203d46;border-color:#b9ddd444}
#shell #powerup-shop :is(h3,.powerup-duration){color:#f3d9a6}
#shell #powerup-shop :is(p,small,.powerup-next,#powerup-status){color:#c0d0db}
#shell #account-panel :is(.account-hero strong,.account-form label,#account-signed-in h3){color:#edf3f8}
#shell #account-panel :is(.account-hero p,.account-note,.account-status,.account-divider,.guest-divider,.account-person span){color:#b6c8d6}
#shell #account-panel .account-input{background:#102336;color:#b6c8d6;border:1px solid #aac6d84d;box-shadow:none;border-radius:11px;overflow:hidden}
#shell #account-panel .account-input:focus-within{border-color:#f1d39a;box-shadow:0 0 0 3px #f1d39a22}
#shell #account-panel .account-input input{background:transparent;border:0;border-radius:0;box-shadow:none;color:#eff5fa}
#shell #account-panel .password-toggle{color:#ecd5a5;background:#213b4e;font-size:.72rem;padding:0 12px}
#shell #account-panel .account-person{background:#20394d;border:1px solid #bed3e133;color:#f1f5f8}
#shell #account-panel .facebook-login{flex-wrap:wrap;font-size:.8rem;padding:10px}
#shell #account-panel .facebook-login small{position:static;flex:none;font-size:.58rem;padding:3px 7px}
@media(orientation:landscape) and (max-height:650px){#shell #collection-store #powerup-shop{grid-column:2;grid-row:1;min-height:0}}
@media(orientation:portrait){#shell #collection-store #powerup-shop{grid-column:1;grid-row:3}}
/* Screen composition: a clear play dock, persistent navigation and focused content. */
#shell .section-eyebrow,#shell .rail-heading{font-size:.65rem;font-weight:750;letter-spacing:.14em;color:#dec79b;line-height:1.3}
#shell #lobby .lobby-card{grid-template-rows:minmax(0,1fr) 76px;gap:20px}
#shell #lobby .player-dock{grid-template-rows:auto auto repeat(4,minmax(44px,1fr));gap:7px}
#shell #lobby .rail-heading{display:block;padding:0 12px 4px;text-shadow:0 2px 5px #000;color:#fff0cf}
#shell #lobby .career-strip{grid-template-rows:auto repeat(3,minmax(0,1fr));gap:7px}
#shell #lobby .career-strip>button{position:relative;border-left:3px solid #b9daca!important}
#shell #lobby #open-season{border-left-color:#c7a7e7!important}
#shell #lobby #open-daily{border-left-color:#ecc979!important}
#shell #lobby #ranked{display:flex;gap:12px;align-items:center;min-height:44px}
#shell #lobby #ranked small{display:block;font-size:.6rem;color:#c3ccd4;font-weight:400;margin-top:3px}
#shell #lobby .loadout-bar{grid-column:1/-1;grid-template-columns:minmax(140px,.8fr) minmax(180px,1fr) minmax(220px,1.3fr);gap:12px}
#shell #lobby #modes-open{position:static;inset:auto;transform:none;width:auto;max-width:none;height:100%;border-radius:16px;order:0;text-align:left;padding:12px 20px;font-size:1rem}
#shell #lobby #modes-open small{display:block;color:#bdcbd7;font-size:.72rem;font-weight:450;margin-top:5px}
#shell #lobby #collection-open{order:1;justify-content:flex-start}
#shell #lobby #auto-join{order:2;letter-spacing:.05em}
#shell #lobby .equipped-stage{padding-bottom:8px}
#shell #lobby .equipped-heading{display:none!important;position:absolute;left:50%;bottom:0;transform:translateX(-50%);z-index:2;pointer-events:none;text-align:center;background:#102235e8;border:1px solid #c5d6e138;border-radius:12px;padding:7px 24px;min-width:140px;white-space:nowrap}
#shell #lobby .equipped-heading>span{font-size:.55rem;letter-spacing:.17em;color:#c2d4dd}
#shell #lobby .equipped-heading h2{font-size:1.05rem;margin:2px 0 0;color:#fff0d2}
#shell #lobby #menu-snake-growth-label{display:none}
#shell #lobby .menu-panel-toggle{min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important;top:50px!important;padding:12px;background:#142c3ce6!important;z-index:15}
#shell #lobby .menu-panel-toggle-left{left:0!important}
#shell #lobby .menu-panel-toggle-right{right:0!important}
/* Fixed navigation, independently scrollable page content. */
#shell #career-panel .career-dialog{display:grid;grid-template-rows:auto auto auto minmax(0,1fr);width:min(1120px,100%);height:min(760px,100%);max-height:100%;overflow:hidden;padding:24px;gap:12px}
#shell #career-panel .career-dialog>header{padding:0 0 12px}
#shell #career-panel .career-tabs{margin:0}
#shell #career-status{margin:0;color:#afc4d3;font-size:.75rem;line-height:1.4}
#shell #career-panel [role=tabpanel]{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:6px}
#shell #pane-quests{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(230px,1fr);gap:18px;align-content:start}
#shell #pane-quests[hidden]{display:none}
#shell .journey-overview{grid-column:1/-1;padding:18px 22px;border:1px solid #a9d8cd44;border-radius:16px;background:linear-gradient(110deg,#27474b,#1b3046)}
#shell .journey-overview .level-summary{margin:8px 0 10px}
#shell .journey-overview .level-summary strong{font-size:1.8rem;color:#f4d9a6}
#shell .journey-overview progress{display:block;width:100%;height:8px;margin:0}
#shell :is(.journey-quests,.journey-adventures)>h3{font-size:.95rem;margin:0 0 12px;color:#eef3f6}
#shell .journey-quests .quest-card{padding:16px;border-left:3px solid #8db7b5;display:grid;gap:9px}
#shell .journey-quests .quest-card strong{font-size:.85rem;line-height:1.3}
#shell .journey-quests .quest-card progress{height:6px;margin:0}
#shell .journey-quests .quest-card span{font-size:.72rem;color:#bcd0dd}
#shell .journey-quests .quest-card.complete{border-left-color:#efce8f;background:#29473f}
#shell .journey-adventures details{margin:0 0 9px}
#shell .journey-adventures summary{min-height:48px;cursor:pointer}
#shell #expansion-panel .expansion-dialog{display:grid;grid-template-columns:160px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:16px;height:min(760px,100%);overflow:hidden;padding:22px}
#shell #expansion-panel .collection-header{grid-column:1/-1;margin:0;padding-bottom:12px;border-bottom:1px solid var(--ui-line)}
#shell #expansion-tabs{display:flex;flex-direction:column;align-self:start;margin:0;padding:6px;gap:5px}
#shell #expansion-tabs button{min-height:48px;text-align:left;padding:12px;font-size:.82rem}
#shell #expansion-panel .expansion-pane{grid-column:2;grid-row:2;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:0 5px 4px 0;scrollbar-width:thin}
#shell #expansion-panel .mode-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#shell #expansion-panel .mode-card{position:relative;padding:18px;min-height:140px;border-top:3px solid #688698;background:linear-gradient(145deg,#294254,#182d40)}
#shell #expansion-panel .mode-card[aria-pressed=true]{border-color:#e9cf99;background:linear-gradient(145deg,#43534a,#243d41)}
#shell #expansion-panel .mode-icon{display:block;width:32px;height:32px;border-radius:10px;background:#ffffff0b;color:#edcf98;text-align:center;line-height:32px;font-size:1.2rem}
#shell #expansion-panel .mode-card b{display:block;font-size:.95rem;margin-top:12px}
#shell #expansion-panel .mode-card small{font-size:.75rem;line-height:1.5}
/* The item, ownership and purchase action have distinct visual weight. */
#shell #collection-panel .store-card{background:linear-gradient(145deg,#294355,#152a3c);border:1px solid #b5cbdc38;box-shadow:none;position:relative}
#shell #collection-panel .store-card[aria-pressed=true]{border-color:#ecd09a;background:linear-gradient(145deg,#3e5653,#20394b);box-shadow:inset 0 0 0 1px #ecd09a55}
#shell #collection-panel .store-card strong{color:#f4f6f7}
#shell #collection-panel .store-price{display:block;border-radius:6px;background:#091b2a80;padding:4px 8px;color:#e9cf9d;font-size:.67rem;line-height:1.25;margin:4px auto 0;width:max-content;max-width:100%}
#shell #collection-panel .store-card[data-ownership=equipped] .store-price{color:#c4e9d7;background:#35594b}
#shell #collection-panel .store-card[data-ownership=owned] .store-price{color:#bad5df}
#shell #collection-panel :is(.store-footer,.collection-footer){background:#11283ce8;border:1px solid #bbd1de26;border-radius:13px;padding:10px;gap:12px}
#shell #collection-panel .store-footer p{line-height:1.5;color:#b9ccd8}
#shell #collection-panel :is(.collection-tabs,.store-sidebar){backdrop-filter:none;-webkit-backdrop-filter:none}
#shell #collection-panel .collection-tabs{background:#102436e8!important;border:1px solid #b8cede33!important;box-shadow:none!important;padding:4px;border-radius:13px}
#shell #collection-panel .collection-tabs button{min-height:40px;border-radius:9px}
/* A compact match report with a prominent score and stable action bar. */
#shell #death .results-dialog{background:#13283bed;border:1px solid #b7cfdf44;border-radius:20px;padding:20px;gap:14px}
#shell #death .results-heading{border-bottom:1px solid var(--ui-line);padding-bottom:12px}
#shell #death .results-heading h2{font-size:1.7rem}
#shell #death :is(.result-rank-badge,.ruby-wallet){background:#233d50;border:1px solid var(--ui-line);box-shadow:none;border-radius:12px}
#shell #death :is(.result-summary,.result-quests,.result-season){padding:16px;overflow:auto;min-height:0;scrollbar-width:thin}
#shell #death .result-summary{background:linear-gradient(145deg,#294749,#1b3247);border-color:#d7ca974d}
#shell #death .round-score strong{font-size:clamp(2.4rem,5vw,4.5rem);color:#f4dbab;line-height:1;letter-spacing:-.05em}
#shell #death .round-score span{color:#bbd0d9;font-size:.7rem;text-transform:uppercase;letter-spacing:.1em}
#shell #death .results-table{font-size:.8rem}
#shell #death .result-actions{border-top:1px solid var(--ui-line);padding-top:12px;gap:10px}
#shell #death .result-actions button{min-height:44px;font-size:.8rem;padding:10px 15px}
#shell #pause .dialog{width:min(460px,100%);padding:28px;gap:12px;border-top:3px solid #e8d09d}
#shell #pause h2{margin:4px 0;font-size:1.8rem}
#shell #pause p{color:#bdd0dd;line-height:1.5;font-size:.85rem}
#shell #pause #resume{min-height:52px;font-size:1rem}
#shell #pause #exit{color:#f2bdb4!important}
@media(orientation:landscape) and (max-height:600px){
 #shell #lobby .lobby-card{grid-template-columns:150px minmax(0,1fr) 150px;grid-template-rows:minmax(0,1fr) 54px;gap:12px}
 #shell #lobby .rail-heading{font-size:.52rem;padding:0 8px}
 #shell #lobby .player-dock{grid-template-rows:auto auto repeat(4,minmax(32px,1fr));gap:5px}
 #shell #lobby .career-strip{gap:5px}
 #shell #lobby .dock-button,#shell #lobby #ranked{padding:6px 10px;min-height:32px}
 #shell #lobby .profile-plaque{min-height:34px;padding:6px 10px}
 #shell #lobby #ranked small{display:inline;margin-left:6px;font-size:.5rem}
 #shell #lobby .loadout-bar{grid-template-columns:minmax(120px,.8fr) minmax(175px,1.1fr) minmax(180px,1.3fr);gap:10px}
 #shell #lobby #modes-open{padding:8px 14px;font-size:.85rem;border-radius:13px}
 #shell #lobby #modes-open small{font-size:.62rem;margin-top:3px}
 #shell #lobby .equipped-heading{padding:5px 18px;bottom:2px}
 #shell #lobby .equipped-heading h2{font-size:.85rem}
 #shell #lobby .equipped-heading>span{font-size:.48rem}
 #shell #career-panel .career-dialog{padding:14px;gap:8px}
 #shell #career-panel .career-dialog>header{padding-bottom:6px}
 #shell #career-panel .career-dialog>header h2{font-size:1.4rem}
 #shell #career-panel .career-dialog>header small{font-size:.55rem}
 #shell #career-panel .career-tabs button{min-height:38px;font-size:.75rem}
 #shell .journey-overview{padding:12px 16px}
 #shell .journey-overview .level-summary strong{font-size:1.4rem}
 #shell #pane-quests{gap:14px}
 #shell #expansion-panel .expansion-dialog{grid-template-columns:112px minmax(0,1fr);padding:12px;gap:10px}
 #shell #expansion-panel .collection-header{padding-bottom:6px}
 #shell #expansion-tabs button{font-size:.7rem;padding:10px 8px;min-height:44px}
 #shell #expansion-panel .mode-cards{gap:9px}
 #shell #expansion-panel .mode-card{padding:12px;min-height:126px}
 #shell #expansion-panel .mode-card b{font-size:.8rem;margin-top:8px}
 #shell #expansion-panel .mode-card small{font-size:.68rem}
 #shell #death .results-dialog{padding:12px;gap:10px}
 #shell #death :is(.result-summary,.result-quests,.result-season){padding:10px}
 #shell #death .results-heading{padding-bottom:6px}
 #shell #death .result-actions{padding-top:7px;gap:6px}
 #shell #pause .dialog{padding:18px 24px;gap:8px;max-height:100%;overflow:auto}
}
@media(max-width:700px){
 #shell #lobby .lobby-card{grid-template-columns:132px minmax(0,1fr) 128px}
 #shell #lobby .loadout-bar{grid-template-columns:1fr 1.35fr 1.4fr}
 #shell #lobby #collection-open{padding:8px 10px;gap:8px}
 #shell #lobby #collection-open span{font-size:.75rem}
 #shell #lobby #collection-open svg{width:22px}
 #shell #expansion-panel .mode-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 #shell #pane-quests{grid-template-columns:1fr}
 #shell .journey-overview{grid-column:1}
}
@media(orientation:portrait){
 #shell #expansion-panel .expansion-dialog{display:flex;flex-direction:column;padding:14px;gap:12px}
 #shell #expansion-tabs{flex-direction:row;flex-shrink:0;overflow:auto;align-self:stretch}
 #shell #expansion-tabs button{white-space:nowrap;text-align:center;flex:1;padding:10px 8px}
 #shell #expansion-panel .expansion-pane{flex:1}
 #shell #career-panel .career-dialog{padding:16px}
 #shell #pane-quests{grid-template-columns:1fr}
 #shell #death .results-dialog{height:auto;overflow:visible;padding:16px}
}
#shell #lobby .player-dock{grid-row:1;grid-column:1}
#shell #lobby .career-strip{grid-row:1;grid-column:3}
#shell #lobby .loadout-bar{grid-row:2}
#shell #lobby .dock-tip{display:none}
#shell #lobby .career-strip>.rail-heading{grid-column:1;grid-row:1;font-size:.65rem;line-height:1.3;color:#fff0cf;margin:0}
#shell #lobby .career-strip>button{grid-column:1;grid-row:auto}
@media(orientation:landscape) and (max-height:600px){
 #shell #lobby .career-strip>.rail-heading{font-size:.52rem}
 #shell .journey-overview{padding:10px 14px}
 #shell .journey-overview>.section-eyebrow{display:none}
 #shell .journey-overview .level-summary{margin:0 0 8px}
 #shell #pane-quests{gap:10px}
 #shell :is(.journey-quests,.journey-adventures)>h3{margin-bottom:8px;font-size:.82rem}
 #shell .journey-quests .quest-card{padding:11px;gap:6px}
}
#shell #lobby .menu-panel-toggle-right{left:auto!important;right:0!important}
#shell #lobby .player-dock>.rail-heading{padding-left:34px}
#shell #lobby .career-strip>.rail-heading{padding-right:34px}
#shell #lobby .menu-panel-toggle{border:0!important;box-shadow:none!important;background:transparent!important}
#shell #lobby .menu-panel-toggle svg{display:block;border:1px solid #b7ccdc77;border-radius:7px;background:#183248;color:#eff5f8}

#shell #lobby :is(#ranked,#party-open,#rooms-open,#modes-open):disabled{opacity:.65}
#shell #death :is(h2,h3,strong,b,p,small,span,th,td){text-shadow:none;-webkit-text-stroke:0}
#shell #death .quest-card{background:#243f53;border:1px solid #b8ccda44;border-left:3px solid #9ebeb8;box-shadow:none;border-radius:9px;color:#f2f6f8}
#shell #death .quest-card.complete{background:#2d4d42;border-left-color:#ecd499}
#shell #death .quest-card progress{height:5px;accent-color:#dcca9b}
#shell #death .season-medal{background:#263b52;border:1px solid #b4c9dd44;border-radius:9px;color:#c7d6e3}
#shell #death .ruby-reward{background:#3b334b;border:1px solid #d0a7bf44;border-radius:10px;box-shadow:none}

/* Explicit, persistent return controls throughout the menu system. */
#shell :is(#party-close,#rooms-close,#career-close,#collection-close,#photo-close,#expansion-close,#account-close,#admin-close,#settings-close,#create-cancel,#account-signed-in-close){display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:76px;min-height:44px;height:44px;padding:8px 12px;font-size:.8rem;line-height:1;border-radius:10px;white-space:nowrap;flex-shrink:0;text-decoration:none}
#shell :is(.party-dialog,.rooms-dialog,.account-dialog,.admin-dialog,.photo-dialog)>.panel-heading,
#shell .account-dialog>.account-heading,
#shell .photo-dialog>.collection-header,
#shell .admin-dialog>.collection-header{position:sticky;top:-1px;z-index:5;background:#172c3f;padding-block:8px;margin-top:-1px;border-bottom:1px solid #b8ccdc33}
#shell #account-signed-in-close{position:static;margin:0 0 10px auto;background:#243b50;color:#eff5f9;border:1px solid #c3d5e13d}
@media(orientation:landscape) and (max-width:760px){#shell #collection-panel .collection-tabs button{font-size:10px}}

#shell #tutorial-back,#shell .name-form-card #cancel-name{width:auto;min-width:76px;min-height:44px;padding:8px 12px;font-size:.8rem;white-space:nowrap;border-radius:10px}
#shell #tutorial-back{align-self:flex-start;margin-bottom:12px}
/* Shop: category navigation above the merchandise, with a dedicated purchase rail. */
#shell #collection-panel .store-item-details{min-width:0;align-self:center}
#shell #collection-panel .store-item-details summary{font-size:.8rem;color:#d0dee6;cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;list-style:none}
#shell #collection-panel .store-item-details summary::before{content:'+';font-size:1.1rem;color:#ead09c}
#shell #collection-panel .store-item-details[open] summary::before{content:'−'}
#shell #collection-panel .store-item-details p{max-height:100px;overflow:auto;scrollbar-width:thin;display:block;margin:0 0 8px;white-space:normal}
#shell #collection-panel .store-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#shell #collection-panel .store-actions button{min-height:44px;font-size:.85rem;padding:10px 16px;line-height:1.2}
#shell #collection-panel .store-detail{background:linear-gradient(160deg,#30565a,#182f44);border:1px solid #c1d5d84d;box-shadow:none;padding:14px;gap:8px}
#shell #collection-panel #store-detail-tag{display:block;position:static;align-self:center;max-width:100%;padding:5px 9px;border:1px solid #c7d9d633;border-radius:7px;color:#e9d4aa;background:#142a3b;font-size:.62rem;letter-spacing:.05em;text-align:center;line-height:1.4;white-space:normal}
#shell #collection-panel #store-edition-label{font-size:.58rem;line-height:1.4;letter-spacing:.1em;color:#c6d9da;text-align:center}
#shell #collection-panel #store-detail-name{font-size:clamp(1rem,1.7vw,1.5rem);line-height:1.15;color:#f3e6ca;margin:2px 0 0}
#shell #collection-panel .store-card{display:flex;flex-direction:column;min-width:0;padding:9px 7px;gap:5px;overflow:hidden}
#shell #collection-panel .store-card canvas{display:block;flex:1;min-height:0;height:0;width:100%;object-fit:contain}
#shell #collection-panel .store-card strong{font-size:.85rem;line-height:1.2;min-height:2.4em;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin:0}
#shell #collection-panel .store-price{min-height:22px;margin:0 auto;flex-shrink:0;font-size:.67rem}
#shell #collection-panel #store-status:not(:empty){font-size:.72rem;line-height:1.4;color:#f0d7a8;padding:7px 10px;border-radius:9px;background:#213b4d;border:1px solid #d6c39a44}
#shell #collection-panel .atelier-store-tools label{font-size:.65rem;color:#bfd3df;letter-spacing:.02em}
#shell #collection-panel .atelier-store-tools :is(input:not([type=checkbox]),select){min-height:36px;font-size:.8rem;border:1px solid #9bb9ce55;background:#112a3d;border-radius:8px;color:#eff4f8}
@media(orientation:landscape) and (max-height:650px){
 #shell #collection-panel .collection-dialog{grid-template-rows:44px minmax(0,1fr)}
 #shell #collection-panel .collection-header{height:44px}
 #shell #collection-store{grid-template-columns:minmax(0,1fr);grid-template-rows:44px minmax(0,1fr);gap:9px}
 #shell #collection-store>.store-sidebar{grid-column:1;grid-row:1;display:flex;flex-direction:row;gap:10px;align-items:stretch;overflow:visible;padding:0;min-width:0;background:none;border:0}
 #shell #collection-store .store-filters{display:flex;flex-direction:row;flex:1;gap:5px;min-width:0;overflow:auto;scrollbar-width:none}
 #shell #collection-store .store-filters button{flex:1;white-space:nowrap;min-height:44px;padding:8px 12px;border:1px solid #aec7d32e;border-radius:10px;background:#173247;font-size:.78rem;display:flex;align-items:center;justify-content:center;gap:7px}
 #shell #collection-store .store-filters [aria-pressed=true]{background:#d2e6e5;color:#183846;border-color:#effaf6;box-shadow:none}
 #shell #collection-store .store-filters button span{display:inline;font-size:.62rem;opacity:.75}
 #shell #collection-store #store-collections{display:none}
 #shell #collection-store #store-quests{flex:none;min-height:44px;margin:0;padding:8px 12px;font-size:.7rem;text-decoration:none;border-radius:10px}
 #shell #collection-store>.store-layout{grid-column:1;grid-row:2;grid-template-columns:145px minmax(0,1fr);gap:12px}
 #shell #collection-store #powerup-shop{grid-column:1;grid-row:2;overflow:auto}
 #shell #collection-panel .store-browser{display:grid;grid-template-rows:auto minmax(104px,1fr) auto auto;grid-template-columns:minmax(0,1fr);gap:7px;overflow:auto;min-height:0;padding:0 3px 0 0}
 #shell #collection-panel .atelier-store-tools{grid-row:1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) auto;gap:8px}
 #shell #collection-panel .atelier-store-tools label{min-width:0}
 #shell #collection-panel .atelier-store-tools .atelier-owned{align-self:end;min-height:36px;display:flex;align-items:center;gap:5px}
 #shell #collection-panel .store-cards{grid-row:2;grid-template-rows:minmax(104px,1fr);grid-auto-rows:minmax(104px,1fr);min-height:104px;gap:8px;padding:0;overflow:visible}
 #shell #collection-panel .store-card{padding:6px;gap:3px}
 #shell #collection-panel .store-card strong{font-size:.75rem}
 #shell #collection-panel .store-price{font-size:.6rem;padding:3px 5px;min-height:19px}
 #shell #collection-panel .store-footer{grid-row:3;display:grid;grid-template-columns:minmax(70px,1fr) auto;gap:6px;padding:5px 8px;margin:0;min-height:54px}
 #shell #collection-panel .store-item-details summary{font-size:.7rem}
 #shell #collection-panel .store-actions{justify-content:flex-end;gap:5px}
 #shell #collection-panel .store-actions button{font-size:.7rem;padding:8px 12px;min-height:44px}
 #shell #collection-panel .store-browser>.catalog-paging{grid-row:4;min-height:44px;justify-content:flex-end;position:static;gap:8px}
 #shell #collection-panel .store-browser>.catalog-paging button{min-width:44px;width:44px;height:44px;min-height:44px}
 #shell #collection-panel .store-browser>.catalog-paging span{margin-right:auto;font-size:.7rem}
 #shell #collection-panel .store-detail{padding:10px 8px;gap:5px}
 #shell #collection-panel #store-preview{flex:1;min-height:0;height:0;width:100%;object-fit:contain}
 #shell #collection-panel #store-detail-name{font-size:1rem}
 #shell #collection-panel #store-status{grid-row:5;margin:0}
}
@media(orientation:landscape) and (max-width:740px){
 #shell #collection-store>.store-layout{grid-template-columns:120px minmax(0,1fr);gap:9px}
 #shell #collection-store .store-filters button{font-size:.68rem;padding:7px 8px;gap:4px}
 #shell #collection-store .store-filters button span{display:none}
 #shell #collection-store #store-quests{font-size:.64rem;padding:7px 9px}
 #shell #collection-panel .store-cards{grid-template-columns:repeat(4,minmax(92px,1fr));overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin}
 #shell #collection-panel .store-card{scroll-snap-align:start}
 #shell #collection-panel .atelier-store-tools{gap:6px}
 #shell #collection-panel .atelier-store-tools :is(input:not([type=checkbox]),select){font-size:.7rem}
}

#shell #collection-store>.store-sidebar>.catalog-paging{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;flex-shrink:0}
#shell #collection-store>.store-sidebar>.catalog-paging button{min-width:44px;min-height:44px;width:44px;height:44px}
#shell #collection-store>.store-sidebar>.catalog-paging span{font-size:.65rem}
@media(orientation:landscape) and (max-height:650px){
 #shell #collection-panel .store-browser{grid-template-rows:auto minmax(104px,1fr) auto auto}
 #shell #collection-store>.store-sidebar>.catalog-paging{margin:0;gap:4px;min-height:44px;flex-wrap:nowrap}
 #shell #collection-store>.store-sidebar>.catalog-paging span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #shell #collection-panel #store-status{grid-row:4}
}
@media(orientation:landscape) and (max-height:650px){
 #shell #collection-panel .atelier-store-tools:has(#store-slot:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr) auto}
 #shell #collection-panel #store-slot{align-self:end}
 #shell #collection-panel .store-footer{position:static;inset:auto;transform:none}
 #shell #collection-store .store-filters [aria-pressed=true]{background:#d2e6e5!important;color:#183846!important;border-color:#effaf6!important;box-shadow:none!important}
}
#shell #collection-store>.store-sidebar>.catalog-paging{height:auto;min-height:70px}
#shell #collection-store>.store-sidebar>.catalog-paging span{flex-basis:100%;text-align:center;margin:0}
@media(orientation:landscape) and (max-height:650px){#shell #collection-store>.store-sidebar>.catalog-paging{height:44px;min-height:44px}#shell #collection-store>.store-sidebar>.catalog-paging span{flex-basis:auto}}
/* Refinement: consistent surfaces, readable hierarchy and compact match information. */
#shell{--ui-panel:#142638;--ui-raised:#20384c;--ui-muted:#c0cfdb;--ui-line:#b5cadb30}
#shell :is(.collection-dialog,.photo-dialog){background:linear-gradient(145deg,#1b3245fa,#102234fa)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#shell :is(.collection-header,.panel-heading) h2{font-weight:750;letter-spacing:-.035em}
#shell :is(.setting-tile,.guide-grid article,.social-grid article,.stat-card){border-color:#bed1df2b;background:#1c3347}
#shell :is(.setting-tile,.guide-grid article,.social-grid article)>h3{margin:0 0 16px;font-size:1rem;line-height:1.25;letter-spacing:-.015em}
#shell :is(.setting-tile,.guide-grid article,.social-grid article)>p{line-height:1.55}
#shell :is(.settings-grid,.guide-grid,.control-settings,.expansion-pane,.career-tabs,.collection-filters){scrollbar-color:#668295 #102234;scrollbar-width:thin}
#shell #settings-panel .settings-grid{align-items:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#shell #settings-panel .setting-tile{padding:20px;min-width:0}
#shell #settings-panel .setting-tile>label:not(.graphics-label){padding-block:8px;margin:0;min-height:44px;align-items:center;font-size:.8125rem;border-bottom:1px solid #bed1df12}
#shell #settings-panel .setting-tile input[type=checkbox]{accent-color:#e9cf9c;width:19px;height:19px;margin:0 2px 0 0}
#shell #settings-panel .segmented{gap:4px;padding:4px}
#shell #settings-panel .segmented button{min-height:44px;font-size:.78rem}
#shell #settings-panel .audio-mixer{display:grid;grid-template-columns:minmax(100px,.85fr) minmax(0,1.15fr);align-items:center;gap:10px;margin-block:18px}
#shell #settings-panel .audio-mixer label{display:flex;justify-content:space-between;gap:12px;font-size:.8rem;margin:0}
#shell #settings-panel .audio-mixer output{color:#efd5a1;font-variant-numeric:tabular-nums}
#shell #settings-panel .audio-mixer input{width:100%;height:32px;margin:0}
#shell #settings-panel .setting-tile .setting-tile{padding:14px;margin:12px 0;background:#142a3d}
#shell #settings-panel .control-settings fieldset{border:1px solid #bed1df30;border-radius:12px;padding:14px;min-width:0;background:#172e42}
#shell #settings-panel .control-settings legend{padding:0 6px;color:#e1eaf0;font-size:.8rem;font-weight:650}
#shell #settings-panel .guide-grid article{border-top:3px solid #c6b18a;padding:20px}
#shell #expansion-panel .mode-card{padding:18px;border-radius:16px;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
#shell #expansion-panel .mode-card b{font-size:.92rem;margin:7px 0 0}
#shell #expansion-panel .mode-card small{font-size:.77rem;line-height:1.5;margin:0}
#shell #expansion-panel .mode-card[aria-pressed=true]{background:#30463f;box-shadow:inset 0 0 0 1px #e7cf9c66;border-color:#e7cf9c}
#shell #expansion-panel .mode-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#aec5d31a;color:#efd5a1;font-size:1.1rem}
#shell #lobby .career-strip>button{border-left-width:1px!important;border-top:3px solid #b9daca!important}
#shell #lobby #open-daily{border-top-color:#ecc979!important}
#shell #lobby #open-season{border-top-color:#c7a7e7!important}
#shell #lobby .career-strip strong{letter-spacing:-.015em}
#shell #lobby .loadout-bar{padding:6px;background:#1022349c;border:1px solid #c1d5e12b;border-radius:20px;gap:8px}
#shell #lobby #auto-join{box-shadow:inset 0 1px #fff8,0 3px 12px #0002!important}
#shell #collection-panel .collection-preview{background:linear-gradient(150deg,#284b54,#192e42)!important;border:1px solid #c5d9df3d!important}
#shell #collection-panel .collection-card{background:#203a4d!important;border:1px solid #b9cfdf38!important;box-shadow:none!important}
#shell #collection-panel .collection-card[aria-pressed=true]{background:#365047!important;border:2px solid #eed29a!important;box-shadow:none!important}
#shell #collection-panel .collection-footer{background:#122a3d!important;border:1px solid #b7cdd536;border-radius:12px}
#shell #collection-panel .collection-footer button{min-height:44px}
#shell #collection-panel .collection-filters button{min-height:40px;border-radius:8px;color:#c9d8e3}
#shell #collection-panel .collection-filters [aria-pressed=true]{background:#d7e7e6!important;color:#183340!important;border-color:#eaf6f3!important}
#shell #hud .score-card{display:grid;grid-template-columns:minmax(52px,auto) auto;grid-template-rows:auto auto;column-gap:14px;row-gap:3px;min-width:196px;padding:10px 16px;text-align:left;border-radius:14px;background:#102235f2;align-items:center}
#shell #hud .score-card strong{grid-column:1;grid-row:1/3;font-size:2.1rem;line-height:1;max-width:140px;overflow:hidden;text-overflow:ellipsis}
#shell #hud .score-card>#best{grid-column:2;grid-row:1;font-size:.7rem;line-height:1.2;color:#e8d3a7}
#shell #hud .run-stats{grid-column:2;grid-row:2;gap:9px;white-space:nowrap;font-size:.65rem}
#shell #hud .run-stats span{font-size:inherit;letter-spacing:0}
#shell #hud .leaderboard{background:#102235f2;border:1px solid #c2d4e03d;padding:10px 12px;border-radius:13px}
#shell #hud .leaderboard h2{display:block;margin:0 24px 7px 0;font-size:.58rem;letter-spacing:.12em;font-weight:650;color:#aebfcd}
#shell #hud .leaderboard li{padding-block:2px;margin-block:1px;font-size:.69rem;line-height:1.3}
#shell #hud .leaderboard .own{background:#d1e6e4;color:#183340;border-radius:5px;padding-inline:5px}
#shell #hud .leaderboard .own .rank{color:#183340}
#shell #hud .signal-controls{background:#102235f2;border-color:#b7ccdb44}
#shell #hud .skill-button{background:#18394ff2;border-color:#abc9da5c;border-radius:12px;box-shadow:inset 0 1px #ffffff10}
#shell #hud .skill-button.laser{background:#343553f2}
#shell #hud .skill-button.ability{background:#23483ff2}
#shell #hud .skill-button small{font-size:.6rem;letter-spacing:.035em}
#shell #hud .skill-button:disabled{opacity:.72}
@media(orientation:landscape) and (max-height:650px){
 #shell #settings-panel .settings-dialog{padding:14px;gap:10px}
 #shell #settings-panel .setting-tile{padding:15px}
 #shell #settings-panel .settings-grid{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
 #shell #settings-panel .guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #shell #expansion-panel .mode-card{padding:13px;min-height:118px}
 #shell #expansion-panel .mode-card b{font-size:.83rem}
 #shell #expansion-panel .mode-card small{font-size:.72rem}
 #shell #lobby .loadout-bar{padding:4px;border-radius:16px}
 #shell #lobby .career-strip>button{padding:8px}
 #shell #hud .score-card{min-width:186px;column-gap:10px;padding:9px 12px;max-width:230px}
 #shell #hud .score-card strong{font-size:1.8rem}
 #shell #hud .leaderboard{padding:7px 9px}
 #shell #hud .leaderboard li{font-size:.64rem;padding-block:0;line-height:1.25}
 #shell #hud .leaderboard h2{font-size:.53rem;margin-bottom:5px}
}
@media(orientation:portrait){#shell #settings-panel .settings-grid{grid-template-columns:1fr}}
#shell.high-contrast :is(.collection-card,.setting-tile,.score-card,.leaderboard){background:#071521!important;color:#fff!important;border-color:#fff!important}
#shell #collection-panel .collection-tabs button{white-space:nowrap;line-height:1.2}
@media(orientation:landscape) and (max-height:650px){
 #shell #collection-panel .collection-tabs button{font-size:.75rem;padding-inline:8px}
 #shell #collection-panel .collection-card strong{font-size:.72rem;line-height:1.15;white-space:normal;overflow:hidden;text-overflow:clip;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:2.3em}
}
/* Lobby counters share a fixed box; the ruby artwork cannot stretch its parent. */
#shell #main-topbar :is(.best-plaque,.coin-plaque){box-sizing:border-box;height:44px;min-height:44px;max-height:44px;display:flex;align-items:center;padding:8px 12px;line-height:1}
#shell #main-topbar .ruby-icon{width:24px;height:24px;min-width:24px;flex:0 0 24px;background-size:contain}
#shell #lobby .player-dock{grid-template-rows:auto repeat(4,minmax(44px,1fr));padding-top:20px}
#shell #lobby .career-strip{grid-template-rows:repeat(3,minmax(0,1fr));padding-top:20px}
@media(orientation:landscape) and (max-height:600px){
 #shell #main-topbar :is(.best-plaque,.coin-plaque){height:40px;min-height:40px;max-height:40px;padding:6px 10px}
 #shell #main-topbar .ruby-icon{width:22px;height:22px;min-width:22px;flex-basis:22px}
 #shell #lobby .player-dock{grid-template-rows:auto repeat(4,minmax(32px,1fr))}
}
@media(orientation:landscape) and (max-height:600px){
 #shell #lobby :is(.player-dock,.career-strip){padding-top:40px}
}
@media(orientation:landscape) and (max-height:360px){
 #shell #lobby .player-dock{padding-top:32px;grid-template-rows:36px repeat(4,minmax(32px,1fr));gap:4px}
 #shell #lobby .career-strip{padding-top:32px}
 #shell #lobby .profile-plaque{height:36px;min-height:36px;padding:6px 10px}
 #shell #lobby :is(.dock-button,.ranked-shortcut){height:32px;min-height:32px;padding:5px 10px}
}
#shell #party-snake-preview{display:block;width:100%;height:112px;min-width:0;margin:8px 0 12px;object-fit:contain}
@media(orientation:landscape) and (max-height:600px){#shell #party-snake-preview{height:88px;margin:4px 0 8px}}
#shell #control-snake-preview{display:block;width:min(250px,75%);height:74px;min-width:0;object-fit:contain}
@media(orientation:landscape) and (max-height:600px){#shell #control-snake-preview{height:60px}}
#shell .party-choice h3{background:transparent;border:0;color:#f2f6f8;text-shadow:none;letter-spacing:-.02em}
@media(orientation:landscape) and (max-height:600px){
 #shell .party-dialog{padding:12px 16px}
 #shell .party-dialog .panel-heading{margin-bottom:10px}
 #shell .party-columns{gap:12px}
 #shell .party-choice{padding:12px}
 #shell .party-choice h3{padding:0;margin:0 0 8px;font-size:1.05rem}
 #shell #party-snake-preview{height:64px;margin:4px 0}
 #shell .party-choice p{font-size:.78rem;line-height:1.4;margin:7px 0 10px}
 #shell .party-choice .primary{min-height:44px;padding:8px 12px;font-size:.85rem;margin:0}
 #shell #join-form>label{font-size:.68rem;letter-spacing:.1em;margin-bottom:5px}
 #shell .join-row input{min-height:44px;padding:8px;font-size:1.1rem}
 #shell #room-help{font-size:.68rem;line-height:1.4;margin:7px 0 10px}
 #shell .party-note{font-size:.65rem!important;margin:8px 0 0}
}

/* Catalog controls stay in their own space; card actions never select or equip. */
#shell #collection-panel .collection-tabs{box-sizing:border-box;align-items:stretch;height:100%;min-height:0}
#shell #collection-panel .collection-tabs button{box-sizing:border-box;min-height:0;height:100%;margin:0;transform:none;padding-block:4px;box-shadow:none}
#shell #collection-panel .view-switch{display:flex;align-items:center;gap:4px;flex-shrink:0}
#shell #collection-panel .view-switch button{width:auto;min-width:44px;height:32px;min-height:32px;padding:4px 9px;font-size:12px;line-height:1.1;margin:0}
#shell #collection-panel .growth-preview[hidden]{display:none}
#shell #collection-preview-grow{display:flex;flex-direction:column;flex:1;min-height:70px;width:100%;padding:0;margin:0;background:none;border:0;box-shadow:none;color:#bdced9}
#shell #collection-preview-grow #collection-preview{flex:1;min-height:0;width:100%;height:0}
#shell #collection-preview-grow span{flex:none;font-size:10px;line-height:1.4;margin:3px 0}
#shell #collection-panel .catalog-card-shell{position:relative;min-width:0;min-height:0;display:flex}
#shell #collection-panel .catalog-card-shell>:is(.collection-card,.store-card){width:100%;height:100%;min-height:0;margin:0;box-sizing:border-box;flex:1;padding-top:29px}
#shell #collection-panel .card-favorite{position:absolute;z-index:2;top:2px;right:2px;width:32px;height:32px;min-height:32px;padding:0;margin:0;font-size:23px;line-height:1;background:#132c40ed;color:#d9e5ed;border:1px solid #adc8db40;border-radius:10px;box-shadow:none}
#shell #collection-panel .card-favorite[aria-pressed=true]{color:#ffb6cc;background:#493246;border-color:#d290aa}
#shell #collection-panel .card-badge{left:7px;right:auto;top:7px;font-size:11px}
#shell #collection-panel .store-browser{display:flex;flex-direction:column;min-height:0;overflow:auto;gap:10px}
#shell #collection-panel .atelier-store-tools{flex:none;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:8px}
#shell #collection-panel #store-views{grid-column:1/-1;justify-content:flex-end;grid-row:1}
#shell #collection-panel .store-cards{display:grid;flex:1 0 280px;min-height:280px;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(125px,1fr));gap:8px;overflow:visible;padding:0}
#shell #collection-panel .store-card canvas{flex:1;min-height:0;height:0;max-height:none;width:100%;object-fit:contain}
#shell #collection-panel .store-footer{position:static;inset:auto;transform:none;flex:none;margin:0;display:flex;align-items:center;gap:10px}
#shell #collection-panel .store-item-details{flex:1;min-width:0}
#shell #collection-panel .store-item-details p{max-height:90px}
#shell #collection-panel .store-actions{flex:none}
#shell #collection-panel .collection-cards[data-view=row],#shell #collection-panel .store-cards[data-view=row]{grid-template-columns:repeat(8,minmax(90px,1fr));grid-template-rows:minmax(160px,1fr);overflow:auto;min-height:160px;scrollbar-width:thin}
#shell #collection-panel .store-cards[data-view=row]{flex-basis:190px}
@media(max-width:999px){
 #shell #collection-panel .collection-cards[data-view=row],#shell #collection-panel .store-cards[data-view=row]{grid-template-columns:repeat(6,minmax(82px,1fr))}
}
@media(orientation:landscape) and (max-height:650px){
 #shell #collection-panel .store-cards{flex-basis:250px;min-height:250px;grid-template-rows:repeat(2,minmax(120px,1fr))}
 #shell #collection-panel .store-cards[data-view=row]{flex-basis:170px;min-height:170px;grid-template-rows:minmax(170px,1fr)}
 #shell #collection-panel .collection-cards[data-view=row]{min-height:0;grid-template-rows:minmax(0,1fr)}
 #shell #collection-panel .catalog-card-shell>:is(.collection-card,.store-card){padding-top:25px}
 #shell #collection-panel .collection-card strong{font-size:10px}
 #shell #collection-panel .view-switch button{height:28px;min-height:28px;font-size:11px;padding:3px 7px}
 #shell #collection-panel .card-favorite{width:28px;height:28px;min-height:28px;font-size:20px}
}
#shell #settings-panel .control-settings{align-items:start;gap:14px}
#shell #settings-panel .control-settings fieldset{min-width:0;padding:14px;border:1px solid #b5cadb30;border-radius:12px;background:#1c3347}
#shell #settings-panel .control-settings legend{font-size:.85rem;font-weight:650;color:#e8eff3;padding:0 6px}
#shell #settings-panel .setting-tile{height:auto;min-height:0;align-self:stretch}
#shell #collection-panel #store-cards{grid-template-rows:repeat(2,minmax(125px,1fr));height:auto;max-height:none;min-height:280px;flex:1 0 280px;overflow:visible}
#shell #collection-panel #store-cards[data-view=row]{grid-template-rows:minmax(170px,1fr);min-height:170px;flex-basis:190px;overflow:auto}
#shell #collection-panel .catalog-card-shell>.collection-card{flex-basis:0}
#shell #collection-panel :is(.collection-cards,.store-cards)[data-view=row]{grid-template-columns:repeat(8,minmax(68px,1fr))}
@media(max-width:999px){#shell #collection-panel :is(.collection-cards,.store-cards)[data-view=row]{grid-template-columns:repeat(6,minmax(64px,1fr))}}
/* Collapse handles sit beside the panels rather than above both panels. */
#shell #lobby :is(.player-dock,.career-strip){padding-top:0}
#shell #lobby .menu-panel-toggle{top:calc(50% - 22px)!important}
#shell #lobby .menu-panel-toggle[aria-expanded=false]{top:max(50px,calc(env(safe-area-inset-top,0px) + 8px))!important}
#shell #lobby .menu-panel-toggle[aria-expanded=true]{top:var(--panel-toggle-top,50%)!important}
#shell #lobby .menu-panel-toggle-left[aria-expanded=true]{left:var(--panel-toggle-left,164px)!important}
#shell #lobby .menu-panel-toggle-right[aria-expanded=true]{right:auto!important;left:var(--panel-toggle-left,calc(100% - 194px))!important}
/* Android can report zero safe-area insets around a landscape camera cutout. */
@media(orientation:landscape) and (pointer:coarse){
 #shell #lobby .menu-panel-toggle-left[aria-expanded=false]{left:max(40px,calc(env(safe-area-inset-left,0px) + 8px))!important}
 #shell #lobby .menu-panel-toggle-right[aria-expanded=false]{right:max(40px,calc(env(safe-area-inset-right,0px) + 8px))!important}
}
#shell #collection-panel :is(#collection-views,#store-views) button{color:#c6d8e3;background:#183247;border-color:#a8c2d166;box-shadow:none}
#shell #collection-panel :is(#collection-views,#store-views) button[aria-pressed=true]{color:#173849;background:#e0efed;border-color:#eaf9f4}

/* Let settings groups keep their content height inside the scrolling panel. */
#shell #settings-panel .settings-grid{grid-auto-rows:max-content;align-content:start}
#shell #settings-panel .settings-grid>.setting-tile{min-height:max-content;align-self:start}
#shell #settings-panel .settings-grid>.audio-settings{grid-row:auto}
#shell #collection-panel .collection-tabs button{flex:1 1 auto;min-width:max-content;white-space:nowrap}
#shell #collection-panel #collection-tab-builder{flex-grow:1.25}
#shell #snake-builder-stage #snake-growth-stages{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#shell #snake-builder-stage .snake-growth-stage{min-height:78px;overflow:hidden}
#shell #snake-builder-stage .snake-growth-stage span{font-size:11px;line-height:1.3;white-space:normal}
@media(orientation:landscape) and (max-width:760px){
 #shell #collection-panel .collection-tabs button{font-size:11px;padding-inline:5px}
}
#shell #friend-code[data-empty=true]{font-size:.85rem;line-height:1.45;letter-spacing:0;padding:12px}
@media(orientation:landscape) and (max-height:650px){
 #shell #expansion-social .social-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #shell #expansion-social .social-grid>article:first-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,1fr);gap:8px 14px;align-items:center}
 #shell #expansion-social .social-grid>article:first-child :is(h3,p,button){margin:0}
 #shell #expansion-social .social-grid>article:first-child h3{font-size:.9rem}
 #shell #account-panel .account-dialog{width:min(760px,100%)}
 #shell #account-signed-out{display:grid;grid-template-columns:minmax(170px,.8fr) minmax(250px,1.2fr);gap:20px;align-items:start}
 #shell #account-panel .account-hero{padding:0;margin:0;text-align:left}
 #shell #account-panel .account-cloud{width:32px;height:32px;font-size:18px;margin:0 0 10px}
 #shell #account-panel .account-hero p{font-size:.8rem;line-height:1.5;margin:8px 0}
 #shell #account-panel .account-note{font-size:.72rem;line-height:1.5;text-align:left}
 #shell #account-panel .account-divider{margin:0 0 12px}
 #shell #account-panel .account-login-column{min-width:0}
 #shell #account-panel .facebook-login{margin:12px 0;font-size:.7rem;padding:8px}
 #shell #account-panel .account-form{gap:7px}
 #shell #account-panel .account-form label{font-size:.78rem}
 #shell #account-panel .account-input{min-height:44px}
 #shell #account-panel .account-submit{min-height:44px;margin-top:8px}
}

/* Shared finish: clear primary actions, calm surfaces and readable merchandise. */
#shell{--ui-muted:#bccdda;--ui-line:#bdd4e02e;--ui-panel:#142a3b;--ui-raised:#203b4e}
#shell :is(.dialog,.expansion-dialog,.party-lobby-room,.revive-card,.purchase-confirm-card){box-shadow:0 18px 60px #020b1959,inset 0 1px #ffffff0a}
#shell :is(.collection-header,.panel-heading,.party-lobby-heading) h2{font-weight:700;letter-spacing:-.025em}
#shell :is(.primary,.secondary,.text-button,.back-button){font-weight:650}
#shell :is(.primary,.secondary,.back-button):disabled{opacity:.6;box-shadow:none}
#shell :is(button,summary){-webkit-tap-highlight-color:transparent}
#shell :is(.coin-pill,.store-price,.stat-card b,.level-summary,.ruby-wallet){font-variant-numeric:tabular-nums}
#shell :is(.mode-card,.collection-card,.store-card,.achievement-card){transition:background-color .16s,border-color .16s,box-shadow .16s}
@media(hover:hover){
 #shell :is(.mode-card,.collection-card,.store-card):hover{border-color:#bddbdc99!important;box-shadow:inset 0 0 0 1px #b9d7d42b!important}
}
/* The seasonal scene and selected snake remain the centre of the main menu. */
#shell #lobby :is(.dock-button,.profile-plaque,.career-strip>button){border-color:#c5d6e12e!important;background:linear-gradient(145deg,#173044ed,#112537ed)!important;box-shadow:inset 0 1px #ffffff08,0 3px 12px #06132220!important}
#shell #lobby .career-strip>button{border-top-width:1px!important;border-left:3px solid #9fcbb9!important}
#shell #lobby #open-daily{border-left-color:#dfc27f!important}
#shell #lobby #open-season{border-left-color:#bfa9dc!important}
#shell #lobby .loadout-bar{background:#0b2035b3;border-color:#bcd3df29}
#shell #lobby #auto-join{background:linear-gradient(135deg,#ffe8b4,#eac17b)!important;border-color:#fff1cb!important;box-shadow:inset 0 1px #fff9,0 5px 18px #0a172d4d!important}
#shell #lobby :is(#modes-open,#collection-open){background:#172f42e8!important;border-color:#bcd3df29!important}
#shell #lobby :is(.dock-button,.career-strip>button) strong{font-weight:650}
/* Keep the return action in the same place in every full menu. */
#shell #career-panel .career-dialog>header{display:flex;align-items:center;justify-content:flex-start;gap:14px}
#shell #career-panel .career-dialog>header>div{flex:1}
#shell #career-close{order:-1}
#shell #career-panel .journey-overview{border-color:#b9d7cf38;background:linear-gradient(115deg,#27474b,#1b3447)}
#shell :is(.quest-card,.achievement-card,.stat-card){border-radius:12px;border-color:var(--ui-line)}
#shell .stat-card{padding:18px;background:linear-gradient(140deg,#233e51,#1a3043)}
#shell .stat-card b{color:#f2dbad;font-size:1.8rem;line-height:1.15;letter-spacing:-.03em}
#shell .stat-card span{font-size:.78rem;color:#c1d0da;margin-top:6px}
#shell :is(.history-empty,#collection-empty){padding:18px;border:1px dashed #adc8d344;border-radius:12px;color:#c5d5df;line-height:1.5;background:#12293a}
#shell #expansion-panel .mode-card{border-top-width:1px;border-color:#bcd2e033;background:linear-gradient(145deg,#233e51,#192f42)}
#shell #expansion-panel .mode-card[aria-pressed=true]{border-color:#e9d09c;background:linear-gradient(145deg,#3a514b,#243d41);box-shadow:inset 0 0 0 1px #e9d09c44}
#shell #expansion-panel .mode-card[aria-pressed=true] .mode-icon{background:#e9d09c;color:#23382f}
/* Large enough previews to recognise each snake, even on short phones. */
#shell #collection-panel #collection-cards{grid-template-rows:repeat(2,minmax(154px,1fr));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#6b8b9a #102437;padding:2px 5px 2px 1px;gap:8px}
#shell #collection-panel #collection-cards[data-view=row]{grid-template-rows:minmax(172px,1fr)}
#shell #collection-panel .catalog-card-shell>:is(.collection-card,.store-card){padding-top:35px;border-radius:12px}
#shell #collection-panel .collection-card canvas{min-height:60px;flex:1;height:0;object-fit:contain}
#shell #collection-panel .collection-card strong{line-height:1.25;min-height:2.5em;margin:4px 0 0;display:flex;align-items:center;justify-content:center;overflow:hidden}
#shell #collection-panel .collection-card small{font-size:.67rem;line-height:1.3;color:#bdced8;margin-top:2px}
#shell #collection-panel .card-favorite{width:36px;height:36px;min-height:36px;top:2px;right:2px;border-radius:9px;background:#102c3aef;font-size:23px}
#shell #collection-panel .card-favorite[aria-pressed=true]{background:#573549;color:#ffd3df;border-color:#e4a7bb}
#shell #collection-panel .collection-card[aria-pressed=true]{background:linear-gradient(145deg,#3b574e,#253f43)!important;border-color:#efd7a7!important}
#shell #collection-panel .view-switch button{min-height:36px;height:36px}
#shell #collection-panel .collection-filters button{border:1px solid transparent}
#shell #collection-panel .collection-preview,#shell #collection-panel .store-detail{border-radius:14px}
/* Room and party surfaces follow the rest of the menu, regardless of theme. */
#shell #rooms-panel .public-rooms{background:linear-gradient(140deg,#233e51,#182f42)!important;border:1px solid var(--ui-line)!important;border-radius:14px;padding:18px;color:var(--ui-ink)}
#shell #rooms-panel .rooms-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
#shell #rooms-panel .rooms-heading h3{font-size:1rem;margin:0}
#shell #rooms-panel #rooms-status{font-size:.875rem;line-height:1.6;color:#c3d3df;margin:10px 0}
#shell #rooms-panel .career-note{font-size:.75rem;line-height:1.5;color:#b8cbd8;margin-top:14px}
#shell .party-choice{background:linear-gradient(145deg,#223e50,#182f42);border-color:var(--ui-line)}
#shell .party-chat .quick-chat button{color:#dce9f0;background:#243f53;border:1px solid var(--ui-line)}
/* Compact secondary account content keeps the sign-in form prominent. */
#shell #account-panel .facebook-login.coming-soon{background:#22394a;border:1px solid #b5cbda33;color:#b9cbd7;box-shadow:none;opacity:1}
#shell #account-panel .facebook-login.coming-soon small{background:#112638;color:#b9cbd7}
#shell #account-panel .account-links{gap:6px;flex-wrap:wrap}
#shell #account-panel .account-links button{background:transparent;border-color:transparent;color:#d1e2eb;min-height:44px;font-size:.76rem;padding:8px 10px;line-height:1.4}
#shell #account-panel .account-links button:hover{background:#294357}
#shell #account-panel .account-links strong{color:#f1d49e}
#shell #account-panel .account-note{color:#b7cad6}
#shell #hud :is(.score-card,.leaderboard,.signal-controls){border-color:#b7d0df40;box-shadow:0 3px 12px #020b192b}
#shell #hud .skill-button{min-width:44px;min-height:44px}
#shell #pause .dialog{border-top-color:#edcf98}
#shell #death .results-heading h2{color:#f4f6f8;text-shadow:none;-webkit-text-stroke:0;letter-spacing:-.025em}
@media(orientation:landscape) and (max-height:650px){
 #shell #lobby .career-strip strong{font-size:.85rem}
 #shell #lobby .career-strip span:not(.feature-icon){line-height:1.4}
 #shell #collection-panel .collection-card strong{font-size:.72rem;-webkit-line-clamp:unset;max-height:none}
 #shell #collection-panel .collection-card small{font-size:.62rem}
 #shell #collection-panel .catalog-card-shell>:is(.collection-card,.store-card){padding-top:35px}
 #shell #collection-panel .collection-cards{align-content:start}
 #shell #career-panel .career-dialog>header small{display:none}
 #shell #career-panel .career-dialog>header{min-height:44px;padding-bottom:6px}
 #shell #career-panel .career-dialog>header h2{font-size:1.25rem}
 #shell #career-status{font-size:.7rem;line-height:1.4}
 #shell .journey-overview .level-summary strong{font-size:1.25rem}
 #shell #rooms-panel .public-rooms{padding:14px}
 #shell #account-panel .facebook-login.coming-soon{min-height:44px;gap:6px;padding:8px;margin:12px 0;font-size:.65rem}
 #shell #account-panel .facebook-login.coming-soon>span{width:20px;height:20px;font-size:16px}
 #shell #account-panel .account-links{margin-top:6px}
 #shell #account-panel .account-heading{padding-top:0;padding-bottom:6px;margin-bottom:10px}
 #shell #account-panel .account-divider{margin-bottom:8px}
 #shell #account-panel .account-form{gap:5px}
 #shell #account-panel .account-submit{margin-top:5px}
 #shell .stat-card{padding:14px}
 #shell .stat-card b{font-size:1.45rem}
}
#shell.high-contrast :is(.mode-card,.collection-card,.store-card,.setting-tile,.stat-card,.public-rooms){background:#071521!important;color:#fff!important;border-color:#fff!important}
@media(orientation:landscape) and (max-height:450px){
 #shell #account-signed-out{display:flex;flex-direction:column;gap:10px}
 #shell #account-panel .account-login-column{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-rows:auto auto auto;gap:8px 22px;align-items:start}
 #shell #account-panel .account-form{grid-column:1;grid-row:1/4}
 #shell #account-panel :is(.account-divider,.guest-divider){display:none}
 #shell #account-panel .account-links{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:6px;margin:0}
 #shell #account-panel .account-links button{width:100%;border:1px solid var(--ui-line);background:#203b4e}
 #shell #account-panel .account-status{grid-column:2;grid-row:2;margin:0;font-size:.75rem;line-height:1.4}
 #shell #account-panel .guest-button{grid-column:2;grid-row:3;margin:0;width:100%;min-height:44px;font-size:.8rem}
 #shell #account-panel .account-intro{order:2}
 #shell #account-panel .account-intro :is(.account-hero,.facebook-login){display:none}
 #shell #account-panel .account-note{font-size:.7rem;margin:0;line-height:1.4}
}
@media(prefers-reduced-motion:reduce){#shell :is(.mode-card,.collection-card,.store-card,.achievement-card){transition:none}}
/* Typing uses the visible area above the phone keyboard, not the full screen. */
#shell .keyboard-panel{position:fixed!important;inset:auto!important;top:var(--keyboard-top)!important;left:var(--keyboard-left)!important;width:var(--keyboard-width)!important;height:var(--keyboard-height)!important;max-height:var(--keyboard-height)!important;box-sizing:border-box;padding:48px 10px 6px!important;display:block!important;overflow:hidden!important;background:#0d2134f7!important}
#shell .keyboard-panel>.keyboard-done{position:absolute;right:12px;top:2px;z-index:100;width:auto;min-width:90px;min-height:42px;height:42px;padding:8px 14px;font-size:14px}
#shell .keyboard-panel>.keyboard-done[hidden]{display:none!important}
#shell .keyboard-panel>:is(.dialog,.expansion-dialog,.party-lobby-room){width:100%!important;height:100%!important;max-height:100%!important;min-height:0!important;margin:0!important;padding:8px 12px!important;overflow:auto!important;scroll-padding:8px;display:block!important;overscroll-behavior:contain}
#shell .keyboard-panel :is(input:not([type=checkbox]):not([type=range]),textarea){font-size:16px!important;min-height:44px;scroll-margin-block:8px}
#shell .keyboard-panel :is(.panel-heading,.collection-header,.party-lobby-heading){display:none!important}
#shell #account-panel.keyboard-panel :is(.account-intro,.account-links,.account-status,.guest-button){display:none!important}
#shell #account-panel.keyboard-panel :is(#account-signed-out,.account-login-column){display:block!important}
#shell #account-panel.keyboard-panel .account-form{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#shell #account-panel.keyboard-panel .account-form>label{display:none}
#shell #account-panel.keyboard-panel .account-input{flex:none;min-height:44px}
#shell #account-panel.keyboard-panel .account-submit{grid-column:1/-1;min-height:44px;margin:0}
#shell #collection-panel.keyboard-panel :is(.collection-filters,.collection-preview,.store-sidebar,.store-detail,.catalog-heading){display:none!important}
#shell #collection-panel.keyboard-panel :is(.collection-body,.store-layout,.collection-catalog,.store-browser,#collection-store):not([hidden]){display:block!important;height:auto!important;overflow:visible!important}
#shell #collection-panel.keyboard-panel :is(.catalog-tools,.atelier-store-tools){margin-bottom:10px}
#shell #collection-panel.keyboard-panel :is(#collection-views,#store-views,.catalog-tools>label:not(:first-child),.atelier-store-tools>label:not(.atelier-search),#store-slot){display:none!important}
#shell #collection-panel.keyboard-panel :is(.catalog-tools,.atelier-store-tools){display:flex!important;padding:0!important;margin:0 0 10px!important}
#shell #expansion-panel.keyboard-panel #expansion-tabs{display:none}
#shell #expansion-panel.keyboard-panel .expansion-pane{height:auto;overflow:visible}
#shell #expansion-panel.keyboard-panel .social-grid{display:block}
#shell #expansion-panel.keyboard-panel .social-grid>article:not(:focus-within){display:none}
#shell #expansion-panel.keyboard-panel .social-grid>article:focus-within{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:0;border:0;background:none}
#shell #expansion-panel.keyboard-panel .social-grid>article:focus-within>:is(h3,p,label){display:none}
#shell #expansion-panel.keyboard-panel #friend-form{grid-column:1/-1}
#shell #expansion-panel.keyboard-panel #save-family{min-height:44px;margin:0}
#shell #party-panel.keyboard-panel .party-columns{display:block}
#shell #party-panel.keyboard-panel .party-choice:not(:focus-within){display:none}
#shell #party-panel.keyboard-panel .party-choice:focus-within{padding:0;border:0;background:none}
#shell #party-panel.keyboard-panel .party-choice:focus-within>:is(h3,p){display:none}
#shell #hud #ability-label{white-space:normal;text-overflow:clip;overflow:visible;font-size:9px;line-height:1.15;overflow-wrap:anywhere}

.result-celebrations{margin-top:14px;padding:12px;border:1px solid #b9eadb;border-radius:14px;background:#153f4b;color:#fff}
.result-celebrations[hidden]{display:none!important}
.result-celebrations h3{margin:0 0 10px;font-size:1rem}
.result-celebrations>div{display:grid;gap:8px}
.result-celebration-card{padding:12px;border-left:4px solid #ffda80;border-radius:8px;background:linear-gradient(120deg,#285c64,#214656);overflow-wrap:anywhere}
.result-celebration-card strong{display:block;color:#fff1bb}
.result-celebration-card p{margin:5px 0 0;line-height:1.4}
.result-celebrations button{min-height:44px;max-width:100%;margin-top:10px;padding:10px 14px;border:1px solid #b9eadb;border-radius:9px;background:#e4f3ed;color:#153f4b;font:inherit}
.result-celebrations button:focus-visible{outline:3px solid #ffda80;outline-offset:2px}
