:root{--rp-gold:#f4c542;--rp-gold-dark:#c79a19;--rp-ink:#0a1117;--rp-panel:#111c24;--rp-panel-2:#17252e;--rp-line:#2b3c46;--rp-text:#edf3f5;--rp-muted:#98a8b1;--rp-danger:#e56c68;--rp-ok:#68c995;--rp-radius:12px}
html{overflow-x:hidden;overflow-y:auto;background:var(--rp-ink);scroll-padding-bottom:calc(76px + env(safe-area-inset-bottom))}
body{overflow-x:hidden;overflow-y:visible;max-width:100vw;min-height:100%}
/* Keep the browser viewport and header full width. Scale only the main product
   surface from its own center, using normal auto margins. No calculated offset,
   translation or manual left/right positioning is involved. */
@supports (transform:scale(1)){html[data-csg-ui-scale]{zoom:1!important}html[data-csg-ui-scale] body{width:100%!important;max-width:100vw!important}html[data-csg-ui-scale] .site-shell>main,html[data-csg-ui-scale] .site-shell>footer{width:100%!important;max-width:100%!important;margin-inline:auto!important;transform:scale(var(--csg-ui-scale,1));transform-origin:top center}}
/* A transformed main becomes the containing block for fixed case layers. Remove
   that transform while a case layer is open, then center the overlay against the
   real viewport while keeping the selected scale on the dialog itself. */
@supports (transform:scale(1)){html[data-csg-ui-scale].v22-case-layer-active .site-shell>main{transform:none!important}html[data-csg-ui-scale].v22-case-layer-active :where(.case-preview-backdrop,.case-spin-backdrop,.case-reveal-backdrop){zoom:1!important}html[data-csg-ui-scale].v22-case-layer-active :where(.case-preview-backdrop,.case-spin-backdrop,.case-reveal-backdrop)>*{zoom:var(--csg-ui-scale,1)!important}}
button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid color-mix(in srgb,var(--rp-gold) 70%,white);outline-offset:2px}
button:not(:disabled),[role=button]:not([aria-disabled=true]){cursor:pointer}
button:disabled,[aria-disabled=true]{cursor:not-allowed;opacity:.48;filter:saturate(.5)}
html body .site-shell:is(.cosmetic-theme-chrome,.cosmetic-theme-carbon,.cosmetic-theme-afterplant) .case-card-actions .case-open-button{color:#edf3f5!important;text-shadow:0 1px 2px #000!important}
html body .site-shell .case-card-actions .case-open-button:disabled{color:#edf3f5!important;opacity:.64!important}
.v337-starter-gate,.v337-intro-theme-picker{display:none!important}

/* Handmade home: one primary choice, three visible modes, restrained accents. */
html[data-release-polish-home-ready="1"] .page-home .home-stage{display:none!important}
.rp-home{position:relative;width:min(1120px,calc(100% - 32px));margin:28px auto 42px;padding:clamp(22px,4vw,46px);overflow:hidden;border:1px solid var(--rp-line);border-radius:18px;background:linear-gradient(180deg,#111c23 0%,#0b141a 100%);box-shadow:0 18px 50px #0007;color:var(--rp-text)}
.rp-home:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.11;background-image:linear-gradient(#91a1aa22 1px,transparent 1px),linear-gradient(90deg,#91a1aa22 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,#000,transparent 72%)}
.rp-home:after{content:"";position:absolute;right:34px;top:28px;width:58px;height:58px;border:1px solid #f4c54255;border-radius:50%;box-shadow:inset 0 0 0 15px #0b141a,0 0 0 1px #0b141a;pointer-events:none}
.rp-home>*{position:relative;z-index:1}
.rp-kicker{display:flex;align-items:center;gap:10px;margin:0 0 16px;color:var(--rp-gold);font:800 12px/1.2 Inter,Arial,sans-serif;letter-spacing:.08em}
.rp-kicker:before{content:"";width:34px;height:2px;background:var(--rp-gold)}
.rp-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,310px);gap:clamp(20px,4vw,54px);align-items:end;padding-bottom:26px;border-bottom:1px solid var(--rp-line)}
.rp-hero h1{max-width:700px;margin:0;color:var(--rp-text);font:800 clamp(38px,6vw,70px)/.94 var(--font-display,Inter,Arial,sans-serif);letter-spacing:-.035em;text-transform:none}
.rp-hero h1 span{color:var(--rp-gold)}
.rp-hero p{max-width:630px;margin:18px 0 0;color:var(--rp-muted);font:500 clamp(16px,1.5vw,18px)/1.55 Inter,Arial,sans-serif}
.rp-rating{display:grid;grid-template-columns:1fr auto;gap:4px 14px;align-items:center;padding:18px 20px;border:1px solid #f4c54255;border-left:4px solid var(--rp-gold);border-radius:var(--rp-radius);background:#0a1319}
.rp-rating small{color:var(--rp-muted);font:700 12px Inter,Arial,sans-serif}.rp-rating strong{grid-row:1/3;grid-column:2;color:var(--rp-gold);font:800 clamp(30px,4vw,44px)/1 var(--font-display,Inter,Arial,sans-serif);font-variant-numeric:tabular-nums}.rp-rating span{font:700 14px Inter,Arial,sans-serif}
.rp-primary{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:26px}
.rp-mode{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:92px;padding:15px;border:1px solid var(--rp-line);border-radius:var(--rp-radius);background:var(--rp-panel);color:var(--rp-text);text-align:left;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.rp-mode:hover{transform:translateY(-2px);border-color:#667984;background:var(--rp-panel-2)}.rp-mode:active{transform:translateY(0) scale(.985)}
.rp-mode--ranked{border-color:#f4c54288;background:linear-gradient(105deg,#252316,#121d24 62%)}
.rp-mode__icon{display:grid;place-items:center;width:52px;height:52px;border:1px solid #53656f;border-radius:10px;background:#0b141a;color:var(--rp-gold);font:800 24px/1 monospace}.rp-mode b{display:block;font:800 20px/1.1 var(--font-display,Inter,Arial,sans-serif)}.rp-mode small{display:block;margin-top:6px;color:var(--rp-muted);font:500 13px/1.35 Inter,Arial,sans-serif}.rp-mode>i:last-child{color:var(--rp-gold);font-style:normal;font-size:22px}
.rp-mode--ranked b{font-size:25px}.rp-mode--ranked:before{content:"PLAY";position:absolute;right:14px;top:10px;color:var(--rp-gold);font:800 9px Inter,Arial,sans-serif;letter-spacing:.1em}
.rp-more{margin-top:12px;border:1px solid var(--rp-line);border-radius:var(--rp-radius);background:#0c151b}.rp-more>summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;color:var(--rp-text);font:700 15px Inter,Arial,sans-serif;cursor:pointer;list-style:none}.rp-more>summary::-webkit-details-marker{display:none}.rp-more>summary:after{content:"+";color:var(--rp-gold);font-size:22px}.rp-more[open]>summary:after{content:"−"}.rp-more__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:0 12px 12px}.rp-more__grid .rp-mode{min-height:72px;grid-template-columns:40px minmax(0,1fr);padding:11px}.rp-more__grid .rp-mode__icon{width:40px;height:40px;font-size:18px}.rp-more__grid .rp-mode>i:last-child{display:none}
.rp-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px;padding-top:18px;border-top:1px solid var(--rp-line)}.rp-shortcuts button{min-height:44px;padding:0 14px;border:1px solid #334650;border-radius:9px;background:#0b151b;color:#c9d3d8;font:700 13px Inter,Arial,sans-serif}.rp-shortcuts button:hover{border-color:#8e7a36;color:#fff}.rp-shortcuts button:active{background:#1b2931}
.rp-themes{margin-top:14px;padding:14px;border:1px solid var(--rp-line);border-radius:12px;background:#091219}.rp-themes>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.rp-themes>header span{color:var(--rp-text);font:750 14px Inter,Arial,sans-serif}.rp-themes>header small{color:var(--rp-muted);font:600 12px Inter,Arial,sans-serif}.rp-themes>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rp-themes button{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;min-height:64px;padding:9px;border:1px solid #31434d;border-radius:9px;background:#101a20;color:var(--rp-text);text-align:left}.rp-themes button:hover{border-color:#647984;background:#142129}.rp-themes button.active{border-color:var(--rp-gold);box-shadow:inset 3px 0 var(--rp-gold)}.rp-themes button>i{width:38px;height:38px;border:1px solid #ffffff18;border-radius:7px;background:linear-gradient(135deg,#0d151a,#52616a 55%,#171a20)}.rp-themes [data-rp-theme="theme-carbon"]>i{background:repeating-linear-gradient(125deg,#ffffff16 0 1px,transparent 1px 6px),linear-gradient(135deg,#080a0c,#252a2e)}.rp-themes [data-rp-theme="theme-afterplant"]>i{background:url('/theme-afterplant-bg.webp') center/cover}.rp-themes b,.rp-themes small{display:block}.rp-themes b{font:750 13px Inter,Arial,sans-serif}.rp-themes small{margin-top:3px;color:var(--rp-muted);font:500 11px/1.3 Inter,Arial,sans-serif}
.rp-guest-note{display:flex;gap:10px;align-items:flex-start;margin:20px 0 0;color:var(--rp-muted);font:500 14px/1.45 Inter,Arial,sans-serif}.rp-guest-note i{color:var(--rp-gold);font-style:normal}

/* Chrome Shift keeps the authored instrumentation scene visible across the full
   shell. The panels remain translucent so the scene does not vanish behind them. */
html body .site-shell.cosmetic-theme-chrome{--yellow:#b8f4ff!important;--yellow-soft:#e4fbff!important;--v17-a:#b8f4ff;--v17-b:#b78cff;--v17-1:#071016;--v17-2:#27343e;background-color:#071016!important;background-image:radial-gradient(circle at 76% 9%,#b8f4ff28,transparent 30%),radial-gradient(circle at 22% 86%,#b78cff20,transparent 28%),url('/v33-theme-scenes/chrome.svg')!important;background-size:auto,auto,cover!important;background-position:center!important;background-attachment:fixed!important}
html body .site-shell.cosmetic-theme-chrome main{position:relative;background:linear-gradient(180deg,#06101745,#07101828)!important}
html body .site-shell.cosmetic-theme-chrome main:before{content:"";position:fixed;z-index:0;pointer-events:none;inset:62px 0 0;background:url('/v33-theme-scenes/chrome.svg') center/cover no-repeat;opacity:.34;mix-blend-mode:screen}
html body .site-shell.cosmetic-theme-chrome main>*{position:relative;z-index:1}
html body .site-shell.cosmetic-theme-chrome .home-stage{background-image:linear-gradient(145deg,#071016b8,#1b2a33b0 58%,#090b13c2),url('/v33-theme-scenes/chrome.svg')!important;background-size:cover!important;background-position:center!important;background-blend-mode:normal,screen!important;border-color:#62808d!important;box-shadow:0 24px 80px #0009,inset 0 1px #dffaff18!important}
html body .site-shell.cosmetic-theme-chrome .topbar,html body .site-shell.cosmetic-theme-chrome .side-menu{background:#071016ed!important;border-color:#506d78!important}
html body .site-shell.cosmetic-theme-chrome :where(.side-menu nav button,.topbar button,.center-mode,.home-tools>button,.v337-theme-option,.v337-all-themes,.mode-switch button,.case-card-actions button,.inventory-controls button,.upgrade-sort button,.shop-filters button,.lock-button){border-color:#405e69!important;box-shadow:inset 0 1px #dffaff0c!important}
html body .site-shell.cosmetic-theme-chrome :where(.side-menu nav button,.topbar .settings-icon,.topbar .player-pill,.center-mode,.home-tools>button,.v337-theme-option,.v337-all-themes,.mode-switch button,.case-card-actions button,.inventory-controls button,.upgrade-sort button,.shop-filters button){background-image:linear-gradient(135deg,#07131be8,#172832df),url('/v33-theme-scenes/chrome.svg')!important;background-size:auto,cover!important;background-position:center!important;background-color:#08131a!important;backdrop-filter:blur(8px)!important}
html body .site-shell.cosmetic-theme-chrome :where(.side-menu nav button:hover,.center-mode:hover,.home-tools>button:hover,.v337-theme-option:hover,.v337-all-themes:hover,.case-card-actions button:hover,.inventory-controls button:hover){border-color:#a9efff!important;background-image:linear-gradient(135deg,#0b1d27e8,#293043dc),url('/v33-theme-scenes/chrome.svg')!important}
html body .site-shell.cosmetic-theme-chrome :where(.submit-top,.lock-button,.v15-primary,.primary-button){background:linear-gradient(135deg,#c9f7ff,#aa8fe0)!important;color:#081016!important;border-color:#e4fbff!important}

/* Carbon is a real woven graphite surface with a restrained gold instrument glow. */
html body .site-shell.cosmetic-theme-carbon{--yellow:#d7b85d!important;--yellow-soft:#f1d995!important;--v17-a:#d7b85d;--v17-b:#8f9da4;--v17-1:#07090b;--v17-2:#24292d;background-color:#080a0c!important;background-image:radial-gradient(circle at 78% 12%,#d7b85d2b,transparent 27%),repeating-linear-gradient(135deg,#ffffff0b 0 2px,#0000 2px 7px),repeating-linear-gradient(45deg,#00000038 0 2px,#0000 2px 7px),linear-gradient(145deg,#06080a,#1d2226)!important;background-size:auto,10px 10px,10px 10px,auto!important;background-attachment:fixed!important}
html body .site-shell.cosmetic-theme-carbon main{background:transparent!important}
html body .site-shell.cosmetic-theme-carbon .home-stage{background-image:linear-gradient(145deg,#090c0ec9,#1d2225c7 58%,#090b0dd6),repeating-linear-gradient(135deg,#ffffff12 0 2px,#0000 2px 8px),repeating-linear-gradient(45deg,#00000035 0 2px,#0000 2px 8px),radial-gradient(circle at 77% 12%,#d7b85d35,transparent 31%)!important;background-size:auto,12px 12px,12px 12px,auto!important;border-color:#7e6c3c!important;box-shadow:0 24px 80px #0009,inset 0 1px #fff1!important}
html body .site-shell.cosmetic-theme-carbon .home-rating-card,html body .site-shell.cosmetic-theme-carbon .center-mode,html body .site-shell.cosmetic-theme-carbon .v337-theme-switcher,html body .site-shell.cosmetic-theme-carbon .home-tools>button{background-color:#0a0d0fdf!important;border-color:#4b4d43!important;box-shadow:inset 0 1px #ffffff0c!important}
html body .site-shell.cosmetic-theme-carbon .topbar,html body .site-shell.cosmetic-theme-carbon .side-menu{background:#080a0cf2!important;border-color:#5b4e2d!important}
html body .site-shell.cosmetic-theme-carbon :where(.side-menu nav button,.topbar button,.center-mode,.home-tools>button,.v337-theme-option,.v337-all-themes,.mode-switch button,.case-card-actions button,.inventory-controls button,.upgrade-sort button,.shop-filters button,.lock-button){border-color:#514a35!important;box-shadow:inset 0 1px #ffffff0b!important}
html body .site-shell.cosmetic-theme-carbon :where(.side-menu nav button,.topbar .settings-icon,.topbar .player-pill,.center-mode,.home-tools>button,.v337-theme-option,.v337-all-themes,.mode-switch button,.case-card-actions button,.inventory-controls button,.upgrade-sort button,.shop-filters button){background-image:repeating-linear-gradient(135deg,#ffffff08 0 1px,#0000 1px 6px),linear-gradient(145deg,#0a0d0f,#171b1e)!important;background-color:#0b0e10!important}
html body .site-shell.cosmetic-theme-carbon :where(.side-menu nav button:hover,.center-mode:hover,.home-tools>button:hover,.v337-theme-option:hover,.v337-all-themes:hover,.case-card-actions button:hover,.inventory-controls button:hover){border-color:#a38b4b!important;background-image:repeating-linear-gradient(135deg,#ffffff0b 0 1px,#0000 1px 6px),linear-gradient(145deg,#111518,#24231b)!important}
html body .site-shell.cosmetic-theme-carbon :where(.submit-top,.lock-button,.v15-primary,.primary-button){background:linear-gradient(135deg,#e1c469,#b88f2c)!important;color:#100e09!important;border-color:#f0d584!important}

/* Afterplant exposes the authored tactical-map texture instead of hiding it
   behind nearly opaque gradients. Panels stay readable through translucent ink. */
html body .site-shell.cosmetic-theme-afterplant{--yellow:#d6b85e!important;--yellow-soft:#f0d992!important;--v17-a:#d6b85e;--v17-b:#5ba9ad;--v17-1:#080d10;--v17-2:#172127;background-color:#080d10!important;background-image:url('/theme-afterplant-bg.webp')!important;background-size:cover!important;background-position:center!important;background-attachment:fixed!important}
html body .site-shell.cosmetic-theme-afterplant main{position:relative;background:linear-gradient(180deg,#06101654,#06101628)!important}
html body .site-shell.cosmetic-theme-afterplant .home-stage{background-image:linear-gradient(145deg,#071015a8,#1421269c 58%,#080d10b8),url('/theme-afterplant-bg.webp')!important;background-size:cover!important;background-position:center!important;border-color:#76683f!important;box-shadow:0 24px 80px #0009,inset 0 1px #ffffff12!important}
html body .site-shell.cosmetic-theme-afterplant .home-rating-card,html body .site-shell.cosmetic-theme-afterplant .center-mode,html body .site-shell.cosmetic-theme-afterplant .v337-theme-switcher,html body .site-shell.cosmetic-theme-afterplant .home-tools>button{background-color:#071116dc!important;border-color:#40545b!important;backdrop-filter:blur(8px)!important;box-shadow:inset 0 1px #ffffff0b!important}
html body .site-shell.cosmetic-theme-afterplant .topbar,html body .site-shell.cosmetic-theme-afterplant .side-menu{background:#071015ed!important;border-color:#5f5435!important}
html body .site-shell.cosmetic-theme-afterplant :where(.side-menu nav button,.topbar button,.center-mode,.home-tools>button,.v337-theme-option,.v337-all-themes,.mode-switch button,.case-card-actions button,.inventory-controls button,.upgrade-sort button,.shop-filters button,.lock-button){border-color:#40585c!important;box-shadow:inset 0 1px #ffffff0c!important}
html body .site-shell.cosmetic-theme-afterplant :where(.side-menu nav button,.topbar .settings-icon,.topbar .player-pill,.center-mode,.home-tools>button,.v337-theme-option,.v337-all-themes,.mode-switch button,.case-card-actions button,.inventory-controls button,.upgrade-sort button,.shop-filters button){background-image:linear-gradient(135deg,#071116e8,#14252ae0),url('/theme-afterplant-bg.webp')!important;background-size:auto,cover!important;background-position:center!important;background-color:#071116!important;backdrop-filter:blur(8px)!important}
html body .site-shell.cosmetic-theme-afterplant :where(.side-menu nav button:hover,.center-mode:hover,.home-tools>button:hover,.v337-theme-option:hover,.v337-all-themes:hover,.case-card-actions button:hover,.inventory-controls button:hover){border-color:#65aeb0!important;background-image:linear-gradient(135deg,#0b1a20e8,#1d3438dc),url('/theme-afterplant-bg.webp')!important}
html body .site-shell.cosmetic-theme-afterplant :where(.submit-top,.lock-button,.v15-primary,.primary-button){background:linear-gradient(135deg,#e1c66f,#b69230)!important;color:#100e09!important;border-color:#f1da8b!important}

/* Simplify global shell and reduce competing progression widgets. */
.topbar{min-height:62px!important}.topbar .token-pill{display:none!important}.side-menu nav{gap:3px!important}.side-menu nav button{min-height:44px!important}html[data-release-polish-home-ready="1"] .page-home .home-pulse,html[data-release-polish-home-ready="1"] .page-home .v18-mini-tools,html[data-release-polish-home-ready="1"] .page-home .v33-home-account-tools,html[data-release-polish-home-ready="1"] .page-home .home-tools{display:none!important}
html[data-release-polish-home-ready="1"] .page-home .leaderboard-section,html[data-release-polish-home-ready="1"] .page-home .how,html[data-release-polish-home-ready="1"] .page-home .submit-banner{display:none!important}
.page-play .operation-progress,.page-play .xp-widget,.page-play .token-widget,.page-play .mission-widget,.leaderboard-section .token-pill,.profile-page .token-pill{display:none!important}
.result-panel,.guess-result,.round-result{max-width:100%;overflow:hidden}.rp-reward-summary{display:grid;gap:7px;margin:12px 0;padding:13px;border:1px solid var(--rp-line);border-radius:10px;background:#0d181f}.rp-reward-summary b{font-size:18px}.rp-reward-summary [data-kind=rating]{color:var(--rp-gold)}

/* Native document scrolling is the default. Modal code may temporarily add the
   v22 lock class, but stale inline overflow from an interrupted reveal must not
   freeze the whole application. */
html:not(.v22-modal-open):not(.v22-case-layer-active),html:not(.v22-modal-open):not(.v22-case-layer-active) body{overflow-y:auto!important;overscroll-behavior-y:auto}
html:not(.v22-modal-open):not(.v22-case-layer-active) body{min-height:100%;height:auto!important}

/* Keep the large rating and its stage label on separate lines at every zoom. */
.page-home .home-rating-card{display:grid!important;grid-template-rows:auto minmax(0,auto) auto!important;align-content:center!important;row-gap:8px!important;min-height:142px!important;padding-top:18px!important;padding-bottom:18px!important}
.page-home .home-rating-card small,.page-home .home-rating-card strong,.page-home .home-rating-card span{position:static!important;line-height:1!important;margin:0!important;transform:none!important}
.page-home .home-rating-card strong{line-height:1!important;padding:2px 0 8px!important}
.page-home .home-rating-card span{line-height:1.25!important;margin-top:2px!important}

/* Case economics are decision-critical, so do not render them as decorative
   microcopy. These values remain readable on dark themes and small cards. */
.cases-page .v22-case-intel b{color:#f3f7f9!important;font-size:12px!important;line-height:1.2!important}
.cases-page .v22-case-intel small{color:#a9bac4!important;font-size:8px!important;line-height:1.25!important}
.cases-page .case-card>small,.cases-page .case-card p,.cases-page .case-card-meta{color:#aebdc6!important;font-size:max(9px,.62rem)!important;line-height:1.45!important}

/* Report and onboarding UI. */
.rp-report-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.rp-report-actions button{min-height:44px;padding:0 13px;border:1px solid #4a3a37;border-radius:8px;background:#171719;color:#d7b9b6;font:700 13px Inter,Arial,sans-serif}.rp-report-actions button:hover{border-color:var(--rp-danger);color:#fff}.rp-report-actions button[disabled]{opacity:.58}
.rp-first-hint{margin:0 0 10px;padding:10px 12px;border-left:3px solid var(--rp-gold);border-radius:5px;background:#f4c54212;color:#d7dfe3;font:600 14px/1.4 Inter,Arial,sans-serif}
.rp-currency-help{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 12px;padding:11px 13px;border:1px solid var(--rp-line);border-radius:9px;background:#101b22;color:var(--rp-muted);font:500 14px/1.4 Inter,Arial,sans-serif}.rp-currency-help b{color:var(--rp-text)}.rp-currency-help button{min-width:44px;min-height:44px;border:0;background:transparent;color:var(--rp-muted);font-size:20px}
.rp-account-prompt{position:fixed;z-index:220000;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(520px,calc(100% - 24px));padding:16px;border:1px solid #685b2d;border-radius:12px;background:#101a20;box-shadow:0 18px 55px #000a;color:var(--rp-text)}.rp-account-prompt h3{margin:0 36px 5px 0;font:800 20px var(--font-display,Inter,Arial,sans-serif)}.rp-account-prompt p{margin:0 0 12px;color:var(--rp-muted);font:500 14px/1.45 Inter,Arial,sans-serif}.rp-account-prompt footer{display:flex;gap:8px}.rp-account-prompt button{min-height:44px;padding:0 14px;border:1px solid var(--rp-line);border-radius:8px;background:#17252e;color:#fff;font-weight:750}.rp-account-prompt [data-rp-login]{background:var(--rp-gold);color:#15120a;border-color:var(--rp-gold)}.rp-account-prompt [data-rp-dismiss]{position:absolute;right:9px;top:9px;width:36px;min-height:36px;padding:0;background:transparent}

/* Diagnostics panel, intentionally loaded only on Admin. */
.rp-diagnostics{margin:14px 0;padding:14px;border:1px solid var(--rp-line);border-radius:10px;background:#0d171d;color:var(--rp-text)}.rp-diagnostics header{display:flex;justify-content:space-between;gap:12px;align-items:center}.rp-diagnostics h3{margin:0;font-size:19px}.rp-diagnostics header div{display:flex;gap:7px}.rp-diagnostics button{min-height:44px;padding:0 12px;border:1px solid var(--rp-line);border-radius:8px;background:#16242c;color:#fff;font-weight:700}.rp-diagnostics table{width:100%;margin-top:12px;border-collapse:collapse;font-size:13px}.rp-diagnostics th,.rp-diagnostics td{padding:9px 7px;border-bottom:1px solid #263943;text-align:left}.rp-diagnostics th{color:var(--rp-muted)}

/* Whole-site mobile safety pass. */
main,section,article,aside,div,nav,header,footer{min-width:0}
img,video,iframe,canvas,svg{max-width:100%}
.site-shell,.page-home,.page-play,.cases-page,.inventory-page,.upgrader-page,.operation-page,.shop-page,.settings-page,.profile-page,.moderation-page,.admin-page,.my-clips-page{max-width:100vw;overflow-x:clip}

.modal,.v9-modal,.v15-overlay,.csg-v32-modal,[role=dialog]{max-width:100vw}
.duel-scoreboard,.duel-score-grid,.duel-board{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important}.duel-scoreboard>*,.duel-score-grid>*,.duel-board>*{min-width:0!important}.duel-scoreboard b,.duel-score-grid b,.duel-board b{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:768px){
  body{font-size:16px}.topbar{padding-left:max(10px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important}.topbar .submit-top{display:none!important}
  button,a,input,select,textarea{font-size:max(16px,1em)}button,.side-menu nav button,.mode-switch button,.range-option,.lock-button{min-height:44px}
  .page-title,.arena-wrap,.leaderboard-section,.cases-page,.inventory-page,.upgrader-page,.operation-page,.shop-page,.settings-page,.profile-page,.moderation-page,.admin-page,.my-clips-page{width:100%!important;padding-left:12px!important;padding-right:12px!important}
  .settings-grid,.inventory-summary,.upgrader-builder,.admin-summary,.staff-capabilities,.case-grid,.cosmetic-grid,.profile-stat-grid{grid-template-columns:1fr!important}
  .inventory-controls,.upgrade-sort,.moderator-filters,.admin-tabs,.shop-filters{display:grid!important;grid-template-columns:1fr!important;width:100%!important}.inventory-controls>*{width:100%!important}
  .mode-switch{display:flex!important;overflow-x:auto!important;scroll-snap-type:x proximity;padding-bottom:5px}.mode-switch>button{flex:0 0 min(78vw,280px);scroll-snap-align:start}
  .arena-card,.higher-lower-arena,.hardcore-arena,.survival-arena,.duel-arena{grid-template-columns:1fr!important}.guess-panel{width:100%!important}
  .rating-range-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.range-option{padding:10px!important}
  .csg-v32-modal{padding:0!important}.csg-v32-shell{width:100vw!important;height:100dvh!important;max-height:none!important;border-radius:0!important}.csg-v32-fields,.csg-v32-form-grid,.csg-v32-stats{grid-template-columns:1fr!important}.csg-v32-shell>main{padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}
  footer{padding-bottom:calc(80px + env(safe-area-inset-bottom))!important}
}
@media(max-width:620px){
  .rp-home{width:calc(100% - 20px);margin:12px auto 24px;padding:18px 14px;border-radius:13px}.rp-home:after{display:none}.rp-hero{grid-template-columns:1fr;gap:18px}.rp-hero h1{font-size:42px}.rp-rating{grid-template-columns:1fr auto}.rp-primary{grid-template-columns:1fr}.rp-mode,.rp-mode--ranked{min-height:80px}.rp-more__grid{grid-template-columns:1fr}.rp-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.rp-shortcuts button{padding:0 9px}.rp-guest-note{font-size:13px}
  .page-title h1{font-size:clamp(34px,11vw,50px)!important;overflow-wrap:anywhere}.duel-scoreboard,.duel-score-grid,.duel-board{font-size:12px!important}.duel-scoreboard b,.duel-score-grid b,.duel-board b{font-size:clamp(20px,8vw,34px)!important}
  .rp-themes>header{align-items:flex-start;flex-direction:column}.rp-themes>div{grid-template-columns:1fr}.case-open-count,.case-disclaimer,.inventory-head,.moderator-toolbar,.admin-summary{flex-direction:column!important;align-items:stretch!important}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}.rp-mode:hover{transform:none}}
