/* The reserved cabinets' platform screens, in the arcade's visual language: dark raised panels,
   silver rules, brass accents, the cabinet-card grid. Loaded by integration.mjs only. */
.new-cabinet-card .cabinet-card-media { display: grid; place-items: center; }
.new-cabinet-turntable { display: block; width: min(100%, 247px); aspect-ratio: 384 / 420; background: center / contain no-repeat; }
.new-cabinet-turntable[data-spin="ready"] { background-size: calc(var(--frames, 16) * 100%) 100%; background-position: 0 0; animation: new-cabinet-spin 4.8s steps(16) infinite; }
@keyframes new-cabinet-spin { to { background-position: 106.6667% 0; } }
@media (prefers-reduced-motion: reduce) { .new-cabinet-turntable[data-spin="ready"] { animation: none; background-position: 13.3333% 0; } }

/* The detail page takes the cabinet hall's place: the hall's heading and toolbar step aside. */
[data-new-cabinet-view="detail"] > .arcade-walk-in, [data-new-cabinet-view="detail"] > .cabinet-motion-toolbar, [data-new-cabinet-view="detail"] > .portal-final-cta { display: none; }
.new-cabinet-detail, .new-cabinet-sections { grid-column: 1 / -1; color: var(--site-paper, #edf2fa); }
.new-cabinet-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 13px; color: var(--site-muted, #a9b6c9); }
.new-cabinet-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--site-rule-strong, #50607a); }
.new-cabinet-crumbs a { color: var(--site-blue-text, #8dd9ff); }
.new-cabinet-hero { margin: 0 0 20px; border: 1px solid var(--site-rule, #24324a); border-radius: 12px; overflow: hidden; }
.new-cabinet-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.new-cabinet-head h1 { margin: 4px 0; font-size: clamp(30px, 6vw, 52px); line-height: 1.05; }
.new-cabinet-tag { color: var(--site-brass, #e9c46a); font-weight: 700; letter-spacing: .04em; }
.new-cabinet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.new-cabinet-actions .primary, .new-cabinet-actions .secondary, .new-cabinet-actions a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 6px; border: 1px solid var(--site-rule-strong, #50607a); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.new-cabinet-actions .primary { background: var(--site-brass, #e9c46a); color: #101c31; border-color: var(--site-brass, #e9c46a); }
.new-cabinet-actions .secondary { background: var(--site-panel-raised, #17233a); color: var(--site-paper, #edf2fa); }
.new-cabinet-actions [aria-disabled="true"], .new-cabinet-actions button:disabled { opacity: .55; cursor: not-allowed; }
.new-cabinet-note, .new-cabinet-hint { color: var(--site-muted, #a9b6c9); font-size: 14px; }
.new-cabinet-facts dl, .new-cabinet-controls dl { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.new-cabinet-facts dl div, .new-cabinet-controls dl div { padding: 14px; border: 1px solid var(--site-rule, #24324a); border-radius: 10px; background: var(--site-panel, #0e1729); }
.new-cabinet-controls [data-active-device] { border-color: var(--site-brass, #e9c46a); }
.new-cabinet-facts dt, .new-cabinet-controls dt { font-weight: 700; margin-bottom: 4px; }
.new-cabinet-facts dd, .new-cabinet-controls dd { margin: 0; color: var(--site-silver, #c8d3e8); }
.new-cabinet-cast ul { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.new-cabinet-cast li { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--site-rule, #24324a); border-radius: 10px; background: var(--site-panel, #0e1729); }
.new-cabinet-cast img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.new-cabinet-cast em { color: var(--site-muted, #a9b6c9); font-size: 13px; }

.new-cabinet-player { position: fixed; inset: 0; z-index: 10000; background: #05070f; color: var(--site-paper, #edf2fa); display: grid; grid-template-rows: 52px 1fr; }
.new-cabinet-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: #101c31; font: 600 14px system-ui, sans-serif; }
.new-cabinet-bar button { min-height: 44px; border: 1px solid #7490ac; background: #203551; color: #fff; border-radius: 5px; padding: 8px 14px; font: inherit; }
.new-cabinet-stage { position: relative; overflow: hidden; }
.new-cabinet-mount, .new-cabinet-overlay { position: absolute; inset: 0; }
.new-cabinet-frame { width: 100%; height: 100%; border: 0; display: block; }
.new-cabinet-overlay { overflow-y: auto; padding: 20px max(16px, env(safe-area-inset-left)); background: rgba(5, 7, 15, .96); }
.new-cabinet-overlay[hidden] { display: none; }
.new-cabinet-screen, .new-cabinet-loading, .new-cabinet-results { max-width: 980px; margin: 0 auto; }
.new-cabinet-modes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.new-cabinet-mode, .new-cabinet-character { display: grid; gap: 6px; width: 100%; text-align: left; padding: 16px; border: 1px solid var(--site-rule-strong, #50607a); border-radius: 12px; background: var(--site-panel, #0e1729); color: inherit; font: inherit; cursor: pointer; }
.new-cabinet-mode strong { font-size: 22px; color: var(--site-brass, #e9c46a); }
.new-cabinet-mode:disabled, .new-cabinet-character:disabled { opacity: .5; cursor: not-allowed; }
.new-cabinet-character[aria-pressed="true"] { border-color: var(--site-brass, #e9c46a); box-shadow: 0 0 0 2px rgba(233, 196, 106, .35); }
.new-cabinet-characters { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.new-cabinet-character img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #000; }
.new-cabinet-character .role, .new-cabinet-character .unlock { color: var(--site-muted, #a9b6c9); font-size: 13px; }
.new-cabinet-character .passive { font-size: 14px; color: var(--site-silver, #c8d3e8); }
.new-cabinet-stages { list-style: none; padding: 0; display: grid; gap: 6px; }
.new-cabinet-stages li { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--site-rule, #24324a); color: var(--site-muted, #a9b6c9); }
.new-cabinet-stages li[data-status="done"] { color: var(--site-mint, #7fe0b0); }
.new-cabinet-stages li[data-status="done"]::before { content: "✓ "; }
.new-cabinet-stages li[data-status="current"] { color: var(--site-paper, #edf2fa); border-color: var(--site-brass, #e9c46a); }
.new-cabinet-stages li[data-status="failed"] { color: #ffb4a8; border-color: var(--site-danger, #e5554f); }
.new-cabinet-progress { height: 8px; border-radius: 4px; background: #17233a; overflow: hidden; margin: 12px 0; }
.new-cabinet-progress i { display: block; height: 100%; background: var(--site-brass, #e9c46a); transition: width .2s; }
.new-cabinet-error { color: #ffb4a8; }
.new-cabinet-ranked-state { padding: 10px 12px; border-left: 3px solid var(--site-brass, #e9c46a); background: #101c31; }
.new-cabinet-score strong { font-size: clamp(40px, 9vw, 72px); color: var(--site-brass, #e9c46a); }
.new-cabinet-breakdown { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.new-cabinet-breakdown section { padding: 12px; border: 1px solid var(--site-rule, #24324a); border-radius: 10px; background: var(--site-panel, #0e1729); }
.new-cabinet-breakdown h3 { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 16px; }
.new-cabinet-breakdown dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.new-cabinet-breakdown dd { margin: 0; font-variant-numeric: tabular-nums; }
.new-cabinet-publishing { padding: 10px 12px; border-radius: 8px; background: #101c31; }
.new-cabinet-publishing[data-publish-state="published"] { border-left: 3px solid var(--site-mint, #7fe0b0); }
.new-cabinet-publishing[data-publish-state="rejected"] { border-left: 3px solid var(--site-danger, #e5554f); }
.new-cabinet-earned { color: var(--site-mint, #7fe0b0); font-weight: 700; }

.new-cabinet-profile, .new-cabinet-scores, .new-cabinet-locker { margin: 18px 0; padding: 20px; border: 1px solid var(--site-rule-strong, #50607a); border-radius: 12px; background: var(--site-panel, #0e1729); }
.new-cabinet-badge-note { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--site-brass, #e9c46a); vertical-align: middle; }
.new-cabinet-stats { display: flex; flex-wrap: wrap; gap: 22px; margin: 12px 0; }
.new-cabinet-stats strong { display: block; font-size: 26px; color: var(--site-brass, #e9c46a); }
.new-cabinet-stats span { font-size: 12px; color: var(--site-muted, #a9b6c9); }
.new-cabinet-table-wrap { overflow-x: auto; }
.new-cabinet-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.new-cabinet-table-wrap th, .new-cabinet-table-wrap td { padding: 7px 8px; border-bottom: 1px solid var(--site-rule, #24324a); text-align: left; white-space: nowrap; }
.new-cabinet-table-wrap .num { text-align: right; font-variant-numeric: tabular-nums; }
.new-cabinet-table-wrap .score { color: var(--site-brass, #e9c46a); font-weight: 700; }
.new-cabinet-table-wrap tr[data-you] td { background: rgba(233, 196, 106, .08); }
.new-cabinet-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 8px 12px 8px 0; }
.new-cabinet-tabs button { min-height: 40px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--site-rule-strong, #50607a); background: #101c31; color: inherit; font: inherit; }
.new-cabinet-tabs button[aria-pressed="true"] { border-color: var(--site-brass, #e9c46a); color: var(--site-brass, #e9c46a); }
.new-cabinet-achievements { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.new-cabinet-achievements li { display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px; align-items: start; padding: 10px; border-radius: 8px; border: 1px solid var(--site-rule, #24324a); }
.new-cabinet-achievements img { grid-row: span 3; image-rendering: auto; }
.new-cabinet-achievements li[data-earned="false"] strong { color: var(--site-muted, #a9b6c9); }
.new-cabinet-achievements span, .new-cabinet-achievements em { font-size: 12px; color: var(--site-muted, #a9b6c9); }
.new-cabinet-slots { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.new-cabinet-slots fieldset { border: 1px solid var(--site-rule, #24324a); border-radius: 10px; padding: 12px; margin: 0; display: grid; gap: 8px; }
.new-cabinet-slots legend { font-weight: 700; padding: 0 4px; }
.new-cabinet-slots p { margin: 0; font-size: 13px; color: var(--site-muted, #a9b6c9); }
.new-cabinet-slots button { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--site-rule-strong, #50607a); background: #101c31; color: inherit; font: inherit; text-align: left; }
.new-cabinet-slots button[aria-pressed="true"] { border-color: var(--site-brass, #e9c46a); }
.new-cabinet-slots button:disabled { opacity: .55; }
.new-cabinet-slots small { color: var(--site-muted, #a9b6c9); }
.new-cabinet-slots .swatch { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #c8d3e8, #50607a); }

@media (max-width: 480px) {
  .new-cabinet-profile, .new-cabinet-scores, .new-cabinet-locker { padding: 14px 12px; }
  .new-cabinet-table-wrap table { font-size: 12.5px; }
  .new-cabinet-table-wrap th, .new-cabinet-table-wrap td { padding: 6px 4px; }
  .new-cabinet-stats { gap: 14px; }
  .new-cabinet-bar { font-size: 13px; }
}
@media (max-height: 500px) and (orientation: landscape) { .new-cabinet-player { grid-template-rows: 40px 1fr; } .new-cabinet-bar button { min-height: 34px; padding: 4px 10px; } }

/* Buttons here carry sentence-case copy; the arcade's global button caps are for short labels. */
.new-cabinet-mode, .new-cabinet-character, .new-cabinet-slots button, .new-cabinet-tabs button, .new-cabinet-actions button, .new-cabinet-actions a, .new-cabinet-bar button { text-transform: none; letter-spacing: normal; }
.new-cabinet-character img { width: 96px; height: 120px; object-fit: cover; object-position: top; }
.new-cabinet-slots fieldset { align-content: start; }
[data-new-cabinet-screen="character"] > .new-cabinet-actions { position: sticky; bottom: 0; padding: 12px 0; margin: 0; background: linear-gradient(transparent, #05070f 30%); }
@media (max-width: 560px) {
  .new-cabinet-character { grid-template-columns: 72px 1fr; column-gap: 12px; align-items: start; }
  .new-cabinet-character img { grid-row: span 4; width: 72px; height: 90px; }
}
/* Look swatches: a hint of each look's color. Cosmetic only, like the looks themselves. */
[data-look-swatch$="dispatch"] { background: #2f6bff; } [data-look-swatch$="silverline"], [data-look-swatch$="-silver"] { background: linear-gradient(135deg, #f4f7fb, #8d9bb0); }
[data-look-swatch$="scrapyard"] { background: #8a6a3d; } [data-look-swatch$="white-courier"] { background: #f2f2ee; } [data-look-swatch$="deadchain"] { background: #6b1d24; }
[data-look-swatch$="tricolor"] { background: conic-gradient(#2f6bff 0 33%, #23c9b7 0 66%, #e33b3b 0); } [data-look-swatch$="trail-ice"] { background: linear-gradient(90deg, #ffffff, #cfeefe); }
[data-look-swatch$="fractured"] { background: linear-gradient(135deg, #d9e2ee 45%, #2a3140 50%, #d9e2ee 55%); } [data-look-swatch$="keeper"] { background: #c9b37e; }
[data-look-swatch$="warm"] { background: #f2a33a; } [data-look-swatch$="ashen"] { background: #9aa3ad; } [data-look-swatch$="runic"] { background: #4c6fff; } [data-look-swatch$="covenant"] { background: #e9c46a; }
/* Run history on a phone: each run is a small card (date, mode, racer or class, score, result, proof). */
@media (max-width: 560px) {
  .new-cabinet-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .new-cabinet-history tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--site-rule, #24324a); }
  .new-cabinet-history td { display: grid; border: 0; padding: 2px 0; white-space: normal; text-align: left; }
  .new-cabinet-history td::before { content: attr(data-label); font-size: 11px; color: var(--site-muted, #a9b6c9); }
  .new-cabinet-history td.num { text-align: left; color: var(--site-brass, #e9c46a); font-weight: 700; }
}
.new-cabinet-bar-actions { display: flex; gap: 8px; }
.new-cabinet-bar button[hidden] { display: none; }
/* 3D emblem trophies (Lite Riders): greyed when locked, as the released games' trophies are. */
.new-cabinet-achievements li { grid-template-columns: 48px 1fr; }
.new-cabinet-trophy { width: 48px; height: 48px; object-fit: contain; }
.new-cabinet-achievements li[data-earned="false"] .new-cabinet-trophy { filter: grayscale(0.85); opacity: 0.55; }
/* Locker turntables: 8 frames of 192 px in one row; a still rest frame under reduced motion. */
.new-cabinet-slots button:has(.new-cabinet-look-spin) { grid-template-columns: 64px 1fr auto; }
.new-cabinet-look-spin { width: 64px; height: 64px; background-size: 800% 100%; background-repeat: no-repeat; background-position: 0 0; animation: new-cabinet-look-spin 2.4s steps(8) infinite; }
@keyframes new-cabinet-look-spin { to { background-position: 114.2857% 0; } }
.new-cabinet-slots button:disabled .new-cabinet-look-spin { animation-play-state: paused; filter: grayscale(0.7); }
@media (prefers-reduced-motion: reduce) { .new-cabinet-look-spin { animation: none; } }
.new-cabinet-slots button:has(.new-cabinet-look-poster) { grid-template-columns: 40px 1fr auto; }
.new-cabinet-look-poster { width: 40px; height: 50px; object-fit: cover; object-position: top; border-radius: 6px; }
.new-cabinet-slots button:disabled .new-cabinet-look-poster { filter: grayscale(0.8); }

/* SH-06: a look's state line wraps under its name (conditions and progress are full sentences). */
.new-cabinet-slots button small { grid-column: 2 / -1; grid-row: 2; overflow-wrap: anywhere; }
.new-cabinet-slots button > :first-child { grid-row: 1 / span 2; }
.new-cabinet-slots button[data-state="equipped"] small { color: var(--site-brass, #e9c46a); }
.new-cabinet-racer-unlocks { margin-top: 14px; }
.new-cabinet-racer-unlocks h3 { margin: 0 0 4px; font-size: 16px; }
.new-cabinet-racer-unlocks p { margin: 0 0 8px; font-size: 13px; color: var(--site-muted, #a9b6c9); }
.new-cabinet-racer-unlocks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.new-cabinet-racer-unlocks li { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--site-rule, #24324a); border-radius: 10px; }
.new-cabinet-racer-unlocks li span { font-size: 13px; }
.new-cabinet-racer-unlocks li em { font-style: normal; font-size: 13px; color: var(--site-muted, #a9b6c9); }
.new-cabinet-racer-unlocks li[data-state="unlocked"] em { color: var(--site-brass, #e9c46a); }

/* SH-05: the completed run apart from its official status. */
.new-cabinet-result-run, .new-cabinet-result-status { display: grid; gap: 8px; }
.new-cabinet-result-status { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--site-rule, #24324a); }
.new-cabinet-run-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px 12px; margin: 0; }
.new-cabinet-run-stats div { display: grid; gap: 2px; }
.new-cabinet-run-stats dt { font-size: 12px; color: var(--site-muted, #a9b6c9); }
.new-cabinet-run-stats dd { margin: 0; font-weight: 700; }
.new-cabinet-outcome-meta { margin: 0; color: var(--site-muted, #a9b6c9); font-size: 14px; }

/* SH-04: the turntable fallback turns once in 22 s from its readable rest frame, only on screen. */
.new-cabinet-turntable[data-spin="ready"] { animation-duration: 22s; animation-delay: calc(var(--rest, 2) / 16 * -22s); }
.new-cabinet-turntable[data-onscreen="false"] { animation-play-state: paused; }
.new-cabinet-card-shell { position: relative; display: grid; }
.new-cabinet-card-shell > .new-cabinet-card { height: 100%; }
.new-cabinet-inspect { position: absolute; top: 10px; right: 10px; z-index: 2; min-height: 44px; min-width: 44px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--site-rule-strong, #50607a); background: rgb(9 15 27 / .86); color: inherit; font: inherit; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: normal; }
.new-cabinet-inspect[aria-pressed="true"] { border-color: var(--site-brass, #e9c46a); }
.cabinet-card-media { position: relative; }
.new-cabinet-cabinet-stage { position: absolute; z-index: 1; }
.new-cabinet-cabinet-stage .new-cabinet-stage-view { width: 100%; height: 100%; }

/* SH-03: the preview stage (poster first, the canvas crossfades in). */
.new-cabinet-stage-view { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; outline-offset: 2px; }
.new-cabinet-stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.new-cabinet-stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition-property: opacity; transition-timing-function: ease-out; touch-action: pan-y; cursor: grab; }
.new-cabinet-stage-canvas.is-live { opacity: 1; }
.new-cabinet-stage-view[data-stage-state="live"] .new-cabinet-stage-poster { visibility: hidden; transition: visibility 0s linear 240ms; }
.new-cabinet-stage-controls { position: absolute; left: 8px; bottom: 8px; z-index: 2; display: flex; gap: 6px; }
.new-cabinet-stage-controls button { min-height: 44px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--site-rule-strong, #50607a); background: rgb(9 15 27 / .86); color: inherit; font: inherit; font-size: 13px; text-transform: none; letter-spacing: normal; }
.new-cabinet-stage-view[data-stage-state="poster"] [data-stage-motion], .new-cabinet-stage-view[data-stage-state="failed"] [data-stage-motion] { display: none; }
@media (prefers-reduced-motion: reduce) { .new-cabinet-stage-canvas { transition: none; } }

.new-cabinet-select-layout { display: grid; gap: 16px; }
.new-cabinet-select-stage { position: relative; min-height: 220px; height: clamp(220px, 42svh, 460px); border-radius: 12px; background: radial-gradient(ellipse at 50% 85%, #26324a 0%, #0c1424 70%); background-size: cover; background-position: center; }
/* The Labyrinth's stage backdrop is the baked alcove's own render: the stage before WebGL, without
   it, and around the canvas once live (the 4:5 render on a portrait phone). */
.new-cabinet-select-stage[data-backdrop] { background-image: var(--stage-backdrop); background-size: cover; background-position: center bottom; }
@media (orientation: portrait) and (max-width: 760px) { .new-cabinet-select-stage[data-backdrop] { background-image: var(--stage-backdrop-tall, var(--stage-backdrop)); } }
.new-cabinet-stage-fallback { width: 100%; height: 100%; object-fit: contain; }
.new-cabinet-select-panel { display: grid; gap: 12px; align-content: start; min-width: 0; }
.new-cabinet-select-panel h1 { margin: 0; }
.new-cabinet-select .new-cabinet-characters { display: flex; flex-wrap: wrap; gap: 8px; }
.new-cabinet-select .new-cabinet-character { display: grid; grid-template-columns: 40px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-height: 52px; padding: 6px 12px 6px 6px; }
.new-cabinet-select .new-cabinet-character img { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.new-cabinet-select .new-cabinet-character .passive, .new-cabinet-select .new-cabinet-character .unlock { display: none; }
.new-cabinet-select .new-cabinet-character[data-locked="true"] img { filter: grayscale(0.85); }
.new-cabinet-select .new-cabinet-character .lock { font-size: 12px; color: var(--site-muted, #a9b6c9); }
.new-cabinet-selected { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--site-rule, #24324a); border-radius: 10px; }
.new-cabinet-selected h2 { margin: 0; font-size: 20px; }
.new-cabinet-selected h2 .role { font-size: 14px; font-weight: 400; color: var(--site-muted, #a9b6c9); }
.new-cabinet-selected p { margin: 0; }
.new-cabinet-selected .unlock[data-locked="true"] { color: var(--site-brass, #e9c46a); }
@media (min-width: 960px) { .new-cabinet-select-layout { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); align-items: start; } .new-cabinet-select-stage { height: min(62vh, 560px); } }
@media (orientation: landscape) and (max-height: 520px) { .new-cabinet-select-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .new-cabinet-select-stage { height: calc(100svh - 120px); min-height: 180px; } }
.new-cabinet-select-details { display: grid; gap: 12px; align-content: start; min-width: 0; }

/* SH-04: mode banners (the main banner stands in until the four mode banners land). */
.new-cabinet-mode-banner { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 3 / 1; margin-bottom: 8px; }
.new-cabinet-mode-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.new-cabinet-mode-banner b { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgb(9 15 27 / .86); font-size: 13px; }
.new-cabinet-mode:disabled .new-cabinet-mode-banner img { filter: grayscale(0.8) brightness(0.7); }
/* The owner's mode art keeps its whole 16:9 frame: a 3:1 crop would cut the riders' heads. */
.new-cabinet-mode-banner[data-banner-source="mode"] { aspect-ratio: 16 / 9; }

/* Header art over the detail page's story and controls sections (heads sit in the top third). */
.new-cabinet-section-art { margin: 0 0 12px; border-radius: 10px; overflow: hidden; border: 1px solid var(--site-rule, #24324a); }
.new-cabinet-section-art img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 760px) { .new-cabinet-section-art img { aspect-ratio: 16 / 9; } }

/* Loading: the art fills the panel and the stages sit on a darkened band along its foot. */
.new-cabinet-loading-art { position: relative; display: grid; align-content: end; min-height: clamp(220px, 46vw, 500px); margin: 12px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--site-rule, #24324a); background: #05070f; }
.new-cabinet-loading-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.new-cabinet-loading-band { position: relative; display: grid; gap: 8px; padding: 48px 16px 14px; background: linear-gradient(to bottom, rgb(5 7 15 / 0) 0%, rgb(5 7 15 / .82) 34%, rgb(5 7 15 / .92) 100%); }
.new-cabinet-loading-band .new-cabinet-phases, .new-cabinet-loading-band .new-cabinet-stage-now { margin: 0; text-shadow: 0 1px 2px #000; }
@media (orientation: landscape) and (max-height: 520px) { .new-cabinet-loading-art { min-height: calc(100svh - 170px); } }

/* The sound-effects control in the player bar. */
.new-cabinet-sound { position: relative; }
.new-cabinet-sound summary { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; cursor: pointer; border: 1px solid var(--site-rule-strong, #50607a); border-radius: 8px; list-style: none; }
.new-cabinet-sound-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: grid; gap: 8px; width: min(280px, 80vw); padding: 12px; border-radius: 10px; border: 1px solid var(--site-rule-strong, #50607a); background: var(--site-panel, #0e1729); }
.new-cabinet-sound-panel label { display: grid; gap: 4px; min-height: 44px; align-content: center; }
.new-cabinet-sound-panel label:first-child { display: flex; align-items: center; gap: 8px; }
.new-cabinet-sound-panel small { color: var(--site-muted, #a9b6c9); }

/* The card shell takes the card's place in the cabinet grid (portal-discovery.css spans cards 2). */
#officialApp #officialCabinetGrid .new-cabinet-card-shell { grid-column: span 2; min-width: 0; }
#officialApp #officialCabinetGrid .new-cabinet-card-shell > .official-cabinet-card { grid-column: auto; height: 100%; }
@media (max-width: 760px) { #officialApp #officialCabinetGrid .new-cabinet-card-shell { grid-column: auto; } }

.new-cabinet-select-panel h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }
.new-cabinet-select-panel > .new-cabinet-actions { position: sticky; bottom: 0; padding: 12px 0; margin: 0; background: linear-gradient(transparent, #05070f 30%); }
.new-cabinet-results > h1, .new-cabinet-loading > h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }
/* Short landscape phones (art brief: stage and details side by side, details scroll). The panel is
   a column: the details scroll in their own region and the Start bar sits below them, never over a
   chip (a sticky bar over a scrolling list hid the fourth class at 844x390). */
@media (orientation: landscape) and (max-height: 520px) {
  .new-cabinet-select-panel { display: flex; flex-direction: column; gap: 8px; max-height: calc(100svh - 120px); min-height: 0; overflow: hidden; }
  .new-cabinet-select-details { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; gap: 8px; }
  .new-cabinet-select-panel > .new-cabinet-actions { position: static; flex: none; padding: 0; background: none; }
  .new-cabinet-select-panel h1 { font-size: 22px; }
  .new-cabinet-select-details > p { margin: 0; font-size: 14px; }
  .new-cabinet-select .new-cabinet-character { grid-template-columns: 32px auto; min-height: 44px; padding: 4px 10px 4px 4px; }
  .new-cabinet-select .new-cabinet-character img { width: 32px; height: 32px; }
}
