/* Shared brand artwork; the existing parent layouts own responsive spacing. */
.product-brand-logo {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
/* Contain the transparent wordmark in its desktop/tablet menu cell.
   Absolute sizing preserves the compact menu row and the complete artwork. */
.game-hub-brand { position: relative; }
.game-hub-brand .product-brand-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(100% - 10px);
  height: calc(100% - 8px);
  max-height: 54px;
  object-fit: contain;
  object-position: center;
}
/* The desktop Replay sidebar reserves a compact header row above Rounds. */
.judge-logo { flex-direction: row; min-height: 0; color: inherit; text-decoration: none; gap: 8px; }
.judge-logo .product-brand-logo { width: clamp(36px, 3.8vw, 56px); max-height: 100%; }
body .judge-logo > strong { font-size: clamp(16px, 1.2vw, 22px); letter-spacing: .12em; }
.judge-mobile-brand .product-brand-logo { width: 48px; }
.school-brand .product-brand-logo { width: 56px; }
.security-brand .product-brand-logo, .admin-workspace-brand .product-brand-logo { width: 56px; }
.account-brand .product-brand-logo { width: 72px; }

/* Chapter soundtrack replaces random music controls only in Story Mode. */
.story-soundtrack-stage{display:grid;place-content:center;gap:8px;text-align:center;min-height:0;padding:18px 20px;background:linear-gradient(145deg,rgba(23,19,41,.78),rgba(7,21,30,.76));backdrop-filter:blur(6px);border:1px solid #c8a84b;border-radius:14px;color:#f6f0dc;max-width:560px;margin:auto;pointer-events:auto;text-shadow:0 1px 3px #0008}
.story-soundtrack-stage small{color:#e8c661;font-size:10px;line-height:1.4;letter-spacing:.1em}.story-soundtrack-stage h2{margin:0;font-size:clamp(20px,2.2vw,28px);line-height:1.15;text-wrap:balance}.story-soundtrack-stage strong{color:#87edf6;font-size:14px;line-height:1.3}.story-soundtrack-stage p{margin:0;font-size:12px;line-height:1.4}.story-soundtrack-stage button{min-height:44px;margin-top:2px;text-shadow:none}
.reference-game-ui .ref-rime-panel[hidden]{display:none!important}
.story-music-options{grid-column:1/-1;border-top:1px solid #ffffff24;padding:8px;font-size:13px;min-width:0}.story-music-options summary{cursor:pointer;color:#7ce5f1}.story-music-options[open]{display:flex;flex-wrap:wrap;gap:10px}.story-music-options label{display:grid;gap:4px;min-width:140px}.story-music-options small{flex-basis:100%;color:#adbcca;line-height:1.5}

/* Story uses a chapter card instead of the music roulette and its curved controls. */
/* Above the rhyme prompts (30), below game dialogs and result overlays. */
.reference-game-ui .ref-roulette-zone.has-story-soundtrack { z-index:31; }
.ref-roulette-zone.has-story-soundtrack::before,
.ref-roulette-zone.has-story-soundtrack > .ref-roulette-ring-anchor,
.ref-roulette-zone.has-story-soundtrack > .ref-pointer,
.ref-roulette-zone.has-story-soundtrack > .ref-roulette-center-action { display: none !important; }
.ref-roulette-zone.has-story-soundtrack .story-soundtrack-stage { position:relative; width:min(100%,560px); box-sizing:border-box; }
@media (max-width:760px) {
  .ref-roulette-zone.has-story-soundtrack .story-soundtrack-stage { padding:14px 16px; gap:7px; }
  .story-soundtrack-stage h2 { font-size:clamp(18px,5vw,24px); }
  .story-soundtrack-stage strong { font-size:13px; }
}
