/* REQ-RENDER-020: shared menu finish. Screen owners retain layout and state. */
:root {
  --menu-ink: #151a24;
  --menu-panel: #202734;
  --menu-paper: #d7dee8;
  --menu-muted: #b7c2d2;
  --menu-line: #ffffff29;
  --menu-red: #b9485a;
  --menu-gold: #dac38b;
  --menu-ease: cubic-bezier(.18,.8,.25,1);
}

/* One clear focus and press language, scoped away from combat HUD. */
:is(#titleScreen,#select,#stageSelect,#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu) {
  -webkit-tap-highlight-color: transparent;
  accent-color: var(--menu-gold);
}
:is(#titleScreen,#select,#stageSelect,#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu) :is(button,input,select) {
  touch-action: manipulation;
}
:is(#select,#stageSelect,#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu) :is(button,input,select,a):focus-visible {
  outline: 3px solid var(--menu-gold);
  outline-offset: 3px;
}
:is(#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu) button:not(:disabled) {
  transition: background .14s,border-color .14s,color .14s,box-shadow .14s,transform .14s var(--menu-ease);
}
:is(#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu) button:active:not(:disabled) {
  translate: 0 2px;
}
:is(#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu) :is(input,select) {
  color-scheme: dark;
}
:is(#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu) :is(input,select):hover {
  border-color: #d9e1ef;
}
:is(#online,#musicSelect,#soundSelect,#ctlPanel,#trainingMenu) * {
  scrollbar-width: thin;
  scrollbar-color: #758299 #131922;
}

/* Owner correction: charcoal surfaces and restrained category colour. */
#titleScreen .homeMark { color: #fff; background: var(--menu-red); }
#titleScreen .homeTile[data-menu-id=smash],#titleScreen .homeTile[data-menu-id=singles] { --tile-colour: #a73c4b !important; }
#titleScreen .homeTile[data-menu-id=online] { --tile-colour: #365891 !important; }
#titleScreen .homeTile[data-menu-id=practice] { --tile-colour: #2e6b78 !important; }
#titleScreen .homeTile[data-menu-id=vault],#titleScreen .homeTile[data-menu-id=music] { --tile-colour: #826c46 !important; }
#titleScreen .homeTile[data-menu-id=options] { --tile-colour: #465264 !important; }
#titleScreen .homeTile[data-menu-id=doubles] { --tile-colour: #63517e !important; }
#titleScreen .homeTile[data-menu-id=ffa] { --tile-colour: #925a3c !important; }
#titleScreen .tileKicker { color: #e6ebf3; opacity: 1; }
#titleScreen .tileIcon { width: clamp(65px,9vw,135px); top: 19%; right: 7%; opacity: .65; filter: none; }
#titleScreen .tileIcon svg { stroke-width: 4; }
#titleScreen .homeTile.is-selected .tileIcon { opacity: .8; transform: rotate(-3deg) scale(1.05); }
#titleScreen .homeGrid.is-home [data-menu-id=smash] .tileIcon { width: clamp(120px,19vw,290px); top: 17%; right: 12%; }
#titleScreen .tileText strong { letter-spacing: -.02em; text-shadow: 0 2px 0 #0003; }
#titleScreen .tileArrow { width: 29px; height: 29px; display: grid; place-items: center; color: #e5ebf5; background: #10182466; border: 1px solid #ffffff40; border-radius: 50%; opacity: 1; font-size: 27px; bottom: 20px; }
#titleScreen .homeTile:active { transform: translateY(2px); box-shadow: 0 2px 0 #171b24; }
#titleScreen .homeBack:hover,#titleScreen .optionsReset:hover { background: #3a4355; }
#titleScreen .homeFooter { background: #151c27; border-radius: 3px; padding: 5px 8px; }
#titleScreen .homeLocation { border-left-color: var(--menu-gold); }
#titleScreen .optionsPane { border-top-color: var(--menu-red); }
#titleScreen .optionRow.is-selected { border-color: #c5b386; box-shadow: inset 4px 0 #c5b386; }
#titleScreen :is(button,input,select):focus-visible { outline-color: var(--menu-gold); }
#titleScreen .optionControl button[aria-pressed] { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
#titleScreen .optionControl button[aria-pressed]::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #8994a7; }
#titleScreen .optionControl button[aria-pressed=true] { background: #164c3b; color: #d9ffe6; border-color: #68d59c; }
#titleScreen .optionControl button[aria-pressed=true]::before { background: #8dffc0; }
#titleScreen .optionControl output { color: var(--menu-gold); font-variant-numeric: tabular-nums; }
#titleScreen .optionControl input { accent-color: var(--menu-gold); }
#titleScreen .optionControl :is(button,select) { border-radius: 2px; }
#titleScreen .optionsPane header p { color: #bbc5d4; }

@keyframes menu-content-in {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}
#titleScreen :is(.homeGrid,.optionsShell) { animation: menu-content-in .22s var(--menu-ease) both; }

/* Setup screens: a charcoal title rail above the fighter/stage artwork. Never
   transform the fighter lanes: the renderer measures those rectangles. */
#select .selectHeader,#stageSelect .stageHeader {
  color: #edf0f5;
  background: #202733;
  border-bottom: 4px solid var(--menu-red);
}
#select .selectHeader h1,#stageSelect .stageTitle { color: #edf0f5; text-shadow: none; transform: none; letter-spacing: -.02em; }
#select .selectEyebrow,#stageSelect .stageEyebrow { color: #c5af98; letter-spacing: 2.2px; }
#select #selectPhase { color: #dbe3ef; }
#select .selectNavLegend { color: #b3bed0; }
#select .selectNavLegend b { background: #252c37; color: #fff; box-shadow: none; }
#select .selectStep { background: var(--menu-red); border: 0; text-shadow: none; }
#stageSelect .stageStep { background: var(--menu-gold); color: #141a23; }
#stageSelect .stageCurrent b { color: #edf0f5; }
#stageSelect .stageCurrent :is(small,span) { color: #b3bed0; }
#stageSelect .stageIndex { background: var(--menu-paper); color: var(--menu-ink); }
#stageSelect .stageCard.is-selected .stageIndex { background: var(--menu-gold); }
#select .char { border-radius: 2px; }
#select .charCaption { text-shadow: 0 1px 2px #000; }
#select #selInfo { border-top: 1px solid #ffffff26; background: #121823ed; }
#select .setupBtns button,#select .partyPodActions button,#select .partyFormatBtn { border-radius: 3px; }
#select .selectShowcase { border-radius: 2px; }
#select .partyPlayer { border-radius: 3px; }
#stageSelect { background: linear-gradient(115deg,#252c39 0 25%,#161c27 25.1% 75%,#10151e 75.1%); }
#stageSelect::before { opacity: .18; }
#stageRow > .stageCard { align-self: stretch; border-radius: 2px; box-shadow: 0 4px 0 #090e16; }
#stageRow > .stageCard.is-selected { box-shadow: 0 0 0 3px var(--menu-gold),0 8px 0 #080c14; filter: none; }
#stageRow > .stageCard.is-selected::before { border-color: #fff; border-width: 2px; }
#stageSelect .stageInfo { background: linear-gradient(0deg,#0b111bf5,#0b111bbb 70%,transparent); }
#stageSelect .stageName { text-shadow: 0 2px 0 #0006; }
#stageSelect .stageSubtitle { color: #d5deeb; }
#stageSelect .stageBottom { background: #0f151f; border-top: 1px solid #ffffff2b; }
#stageSelect .stageActions { grid-template-columns: auto auto; min-width: 0; }
#stageSelect .stageActions span { display: none; }
#stageSelect :is(.stageRulesBtn,.stageMusicBtn) { border-radius: 3px; background: #28313f; }

/* Online: bold mode cards, legible status, the same compact action chrome. */
#online { background: linear-gradient(115deg,#252f49 0 28%,#151b29 28.1% 78%,#10151f 78.1%); }
#online .onlinePanel { width: min(100%,1040px); }
#online .onlineHeader { padding-bottom: 15px; border-bottom: 3px solid #4a7ef1; }
#online .onlineHeadingLockup h1 { font-size: clamp(28px,3.5vw,46px); letter-spacing: -.02em; text-shadow: none; transform: none; }
#online .oCard { min-height: 135px; padding: 22px 24px; gap: 8px; border-radius: 3px; border: 1px solid #ffffff30; border-bottom: 4px solid var(--tone,#4a7ef1); background: linear-gradient(115deg,color-mix(in srgb,var(--tone,#4a7ef1) 26%,#202735),#202735 80%); box-shadow: 0 5px 0 #0b1019; }
#online .oCard::before { width: 5px; left: 0; top: 0; bottom: 0; transform: none; }
#online .oCard .oIcon { position: absolute; right: 17px; top: 13px; width: 50px; height: 50px; opacity: .28; }
#online .oCard b { font-size: clamp(20px,2vw,27px); letter-spacing: -.02em; max-width: 90%; }
#online .oCard small { color: #c1ccdc; max-width: 88%; font-size: 12px; }
#online .oCard:focus-visible,#online .oCard:hover:not(:disabled) { background: #344057; border-color: var(--menu-gold); box-shadow: 0 5px 0 #0b1019; }
#online :is(.oBtn,.onlineHeaderBack,.onlineRow button) { border-radius: 3px; border-width: 1px; background: #283344; min-height: 40px; }
#online .oBtn.is-primary { background: var(--menu-gold); color: #191e28; border-color: var(--menu-gold); }
#online :is(.oPing,.oSearching,.oCode,.oQueueFighter,.oOutcome) { border-radius: 3px; background-color: #202938; border-color: #ffffff30; }
#online .oKeyboard { background: #0a101be8; }
#online .onlineLegend { padding-top: 12px; border-top: 1px solid #ffffff24; color: #bdc9dc; }

/* Music and sound retain their specialised browsing layouts. */
#musicSelect { --music-accent: #ffd052; background: #0a0e18ed; }
#musicSelect .musicSheet { border-radius: 4px; border: 1px solid #ffffff30; box-shadow: 0 24px 80px #0008; }
#musicSelect .musicHeader { background: linear-gradient(115deg,#353126,#202530 65%); border-top: 5px solid var(--music-accent); }
#musicSelect .musicTitle { font-style: italic; font-weight: 900; letter-spacing: -.02em; }
#musicSelect .musicRailShell { background: #151b25; }
#musicSelect .musicRailItem { border-radius: 2px; }
#musicSelect .musicRow { border-radius: 2px; border-bottom-color: #ffffff0e; }
#musicSelect .musicRow.is-selected { border-color: #ffd05280; background: #ffd05216; box-shadow: inset 3px 0 var(--music-accent); }
#musicSelect .musicRow.is-playing { background: #ffd05223; }
#musicSelect :is(.musicSearch,.musicPreviewBtn,.musicSelectionToggle,.musicActions button,.musicArtwork) { border-radius: 3px; }
#musicSelect .musicPlayer { background: #252d39; }
#musicSelect .musicFooter { background: #111722; }
#soundSelect { background: #101722f5; }
#soundSelect .soundSheet { padding: clamp(12px,2.4vw,28px); background: #202734; border-top: 5px solid #70dcc4; box-shadow: 0 15px 65px #0005; }
#soundSelect :is(button,input,select) { border-radius: 3px; }
#soundSelect .soundRow { background: #2a3443; border-color: #ffffff17; }
#soundSelect .soundRow.selected { border-color: #70dcc4; background: #30473f; box-shadow: inset 4px 0 #70dcc4; }
#soundSelect .soundRow strong { padding: 6px 8px; border: 1px solid #77869b; border-radius: 3px; text-align: center; }
#soundSelect .soundRow[aria-checked=true] strong { border-color: #70dcc4; background: #173f35; color: #b0ffe1; }

/* Modal family. Scroll stays within a sheet on short displays. */
:is(#rulesModal,#ctlPanel,#pauseMenu,#trainingMenu) { background: #090e19cf; backdrop-filter: blur(5px); }
#rulesModal .rulesSheet,#ctlPanel .sheet,#pauseMenu .pauseSheet,#trainingMenu .trainSheet {
  border-radius: 4px;
  border: 1px solid #ffffff30;
  border-top: 5px solid var(--menu-red);
  background: #202734;
  box-shadow: 0 8px 0 #0b111b,0 22px 75px #0008;
}
#pauseMenu .pauseSheet { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
#trainingMenu .trainSheet { border-top-color: #5fd2ec; }
#ctlPanel .sheet { border-top-color: var(--menu-gold); scrollbar-width: thin; }
#ctlPanel .sheet::-webkit-scrollbar { display: block; width: 6px; }
#ctlPanel h2,#rulesModal h2,#pauseMenu h2,#trainingMenu h2 { text-shadow: none; transform: none; letter-spacing: -.02em; }
#pauseMenu h2,#pauseMenu .pauseEyebrow { text-align: left; }
#pauseMenu .pauseEyebrow,#rulesModal .rulesEyebrow { color: var(--menu-gold); letter-spacing: 2px; }
#pauseMenu .pauseActions button { background: #2b3544; border-radius: 3px; border: 1px solid #ffffff25; }
#pauseMenu .pauseActions button.selected { background: #3b485c; color: #fff; border-color: #a7b5ca; transform: none; box-shadow: inset 5px 0 var(--menu-gold),0 4px 0 #0d131d; }
#pauseMenu .pauseActions button.selected small { color: #d0d9e6; }
#pauseMenu .pauseActions button small { color: #bdc8d9; }
#pauseMenu .pauseActions button[data-pause=select] { border-left: 3px solid #ed6573; }
#pauseMenu .pauseHint,#rulesModal .rulesHint,#trainingMenu .trainHint { color: #b7c2d2; line-height: 1.5; }
#rulesModal .ruleChip { border-radius: 3px; background: #2b3544; border-color: #ffffff26; }
#rulesModal .ruleChip { box-sizing: border-box; min-width: 0; }
#rulesModal .ruleChip.is-focus { transform: none; }
#rulesModal .ruleChip.is-focus { border-color: var(--menu-gold); background: #343b45; box-shadow: inset 4px 0 var(--menu-gold); }
#rulesModal .ruleStep { border-radius: 3px; color: #fff; background: #424e61; }
#rulesModal .ruleStep:hover { background: #f0c94f; color: #1a202b; }
#ctlPanel :is(.ctlB,.psel,.ctag,.tjTag) { border-radius: 3px; }
#ctlPanel .ctag,#ctlPanel .tjTag { background: #17202d; }
#ctlPanel .ctlB { background: #303c4f; border-color: #6e8099; }
#ctlPanel .ctlWizard { border-radius: 3px; border-left: 4px solid var(--menu-gold); background: #3e3928; color: #fff4ca; }
#trainingMenu .trainRows button { border-radius: 2px; background: #2a3546; border-color: #ffffff16; min-height: 36px; }
#trainingMenu .trainRows button.selected { background: #334c60; border-color: #7ddcf2; box-shadow: inset 4px 0 #7ddcf2; }
#trainingMenu .trainRows small { color: #bdc9d8; }

/* Results: finish the stats furniture without changing actor framing/reveals. */
#matchCurtain { background: #10151e; }
.matchLoading { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; overflow: hidden; }
.matchLoadingArt { height: 100%; background-size: cover; background-position: center; opacity: .7; mask-image: linear-gradient(90deg,#000 55%,transparent); }
.matchLoadingCopy { position: relative; margin-left: -8vw; padding: 30px 8vw 30px 0; color: #fff; }
.matchLoadingCopy > small { color: var(--menu-gold); font: 900 11px/1 Arial,sans-serif; letter-spacing: 4px; }
.matchLoadingCopy h2 { margin: 14px 0 26px; font: 950 italic clamp(45px,8vw,115px)/.9 Arial,sans-serif; letter-spacing: -.03em; }
.matchLoadingStage { display: block; font: 900 italic clamp(20px,2.5vw,34px)/1.1 Arial,sans-serif; }
.matchLoadingFighters { color: #c3cfdf; font: 700 13px/1.6 Arial,sans-serif; }
.matchLoadingStatus { margin-top: 35px; padding-top: 17px; border-top: 1px solid #ffffff40; display: flex; align-items: center; gap: 12px; color: #f9d36a; font: 800 10px/1.3 Arial,sans-serif; letter-spacing: 2px; }
.matchLoadingStatus i { width: 13px; height: 13px; background: var(--menu-gold); transform: rotate(45deg); animation: menu-loading-pulse 1s ease-in-out infinite alternate; }
@keyframes menu-loading-pulse { to { opacity: .25; } }
@media (max-width:700px) {
  .matchLoading { grid-template-columns: 1fr; }
  .matchLoadingArt { position: absolute; inset: 0; mask-image: linear-gradient(#0008,transparent 80%); }
  .matchLoadingCopy { margin: 0; padding: 25px; }
}
body.online-starting #matchCurtain .matchLoading { display: none; }
#victory #vic-panel { border-radius: 4px; border: 1px solid #ffffff40; border-top: 4px solid #f4cd5b; background: #141c29f2; box-shadow: 0 8px 0 #080d16b0,0 14px 45px #0006; }
#victory #vic-panel h2 { color: #dce5f2; }
#victory #vic-banner { left: 20px; right: 20px; }
#victory .vic-row-label,#victory .vic-standing-head { color: #bdc9dc; }
#victory :is(.vic-standing,.vic-team) { border-radius: 3px; }
#victory #vic-cont span { border-radius: 3px; background: #303b4c; color: #edf0f5; border: 2px solid #a2b1c7; box-shadow: 0 4px 0 #111925; text-shadow: none; }

@media (max-width:700px) {
  #titleScreen .tileIcon { width: 70px; top: 19%; }
  #titleScreen .homeGrid.is-home [data-menu-id=smash] .tileIcon { width: 120px; top: 10%; right: 10%; }
  #titleScreen .tileArrow { display: none; }
  #titleScreen .homeKeyHint { font-size: 8px; gap: 6px 10px; }
  #online .oCard { min-height: 104px; padding: 14px 20px; gap: 5px; }
  #online .oCard b { font-size: 21px; }
  #soundSelect .soundSheet { padding: 10px; }
  #select .selectCommandBar { flex-wrap: wrap; white-space: normal; gap: 5px 10px; }
  #stageSelect .stageGridLabel { gap: 8px; }
  #stageSelect .stageLegend { display: none; }
}
@media (max-width:820px), (max-height:590px) {
  #stageSelect .stageBottom { flex-wrap: wrap; gap: 8px 14px; padding: 8px 12px; }
  #stageSelect .stageBottom .rulesBar { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; }
  #stageSelect .stageBottom .ruleChip { display: none; }
  #stageSelect .stageActions { width: auto; min-width: 0; }
  #stageSelect .stageActions span { display: none; }
  #stageSelect :is(.stageRulesBtn,.stageMusicBtn) { min-height: 36px; }
}
@media (max-width:700px) and (min-height:600px) {
  body:not(.party-mode) #select .selectHeader { min-height: 68px; padding: 8px 12px; }
  body:not(.party-mode) #select .selectHeader h1 { font-size: 24px; }
  body:not(.party-mode) #roster { width: calc(100% - 16px); margin: 6px 8px; padding: 5px; gap: 5px; min-height: 0; }
  body:not(.party-mode) #partyPlayers { width: calc(100% - 16px); grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin: 0 8px 5px; }
  body:not(.party-mode) #partyPlayers .partyPlayer { grid-template-columns: 32px minmax(0,1fr); grid-template-rows: 38px 36px; min-height: 88px; padding: 5px; gap: 5px; }
  body:not(.party-mode) #partyPlayers .partyPlayer .partyPort { width: 32px; height: 36px; grid-column: 1; grid-row: 1; }
  body:not(.party-mode) #partyPlayers .partyPlayer .partyPlayerMain { grid-column: 2; grid-row: 1; min-width: 0; }
  body:not(.party-mode) #partyPlayers .partyFighter { font-size: 11px; white-space: normal; line-height: 1.1; }
  body:not(.party-mode) #partyPlayers .partyState { font-size: 8px; line-height: 1.2; }
  body:not(.party-mode) #partyPlayers .partyPlayer .partyPodActions { grid-column: 1 / -1; grid-row: 2; display: flex; width: 100%; gap: 5px; justify-content: flex-end; }
  body:not(.party-mode) #partyPlayers .partyPlayer.has-cpu-difficulty .partyPodActions { display: grid; grid-template-columns: minmax(0,1fr) auto auto; }
  body:not(.party-mode) #partyPlayers .partyPodActions button { min-width: 28px; height: 32px; padding: 0 5px; font-size: 9px; }
  body:not(.party-mode) #partyPlayers .cpuDifficultyDock { grid-template-columns: minmax(0,1fr) auto; min-width: 0; gap: 3px; }
  body:not(.party-mode) #partyPlayers .cpuDifficultyDock span { font-size: 8px; }
  body:not(.party-mode) #partyPlayers .cpuDifficultyDock output { font-size: 10px; }
  body:not(.party-mode) #selInfo { padding: 4px 8px 8px; }
  body:not(.party-mode) #selInfo .selectCommandBar { margin: 0 0 4px; min-height: 26px; }
  body:not(.party-mode) #selInfo .selectCommandBar > span:nth-child(n+5) { display: none; }
  body:not(.party-mode) #costumeControls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; width: 100%; }
  body:not(.party-mode) #costumeControls .costumeChip { width: 100%; min-width: 0; grid-template-columns: 30px minmax(0,1fr) 30px; padding: 0; }
  body:not(.party-mode) #costumeControls .costumeChip > small { display: none; }
  body:not(.party-mode) #costumeControls .costumeName { font-size: 9px; }
  body:not(.party-mode) #selInfo .setupBtns { margin-top: 5px; }
  body:not(.party-mode) #selInfo .setupBtns :is(#ctl0Btn,#ctl1Btn,#ctl2Btn,#ctl3Btn,#mapBtn,#onlineBtn) { display: none; }
  body:not(.party-mode) #selInfo .setupBtns button { min-height: 36px; font-size: 9px; }
}
@media (max-width:520px) and (min-height:700px) {
  #stageSelect #stageRow { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(var(--stage-rows-compact),minmax(0,1fr)); gap: 7px !important; overflow: hidden; padding: 5px; }
  #stageSelect #stageRow > .stageCard { min-height: 0; }
  #stageSelect #stageRow > .stageCard.is-selected { transform: none; }
  #stageSelect .stageInfo { padding: 20px 7px 5px; }
  #stageSelect .stageName { font-size: 12px; line-height: 1.08; }
  #stageSelect .stageSubtitle { display: none; }
  #stageSelect .stageBottom { justify-content: center; }
}
@media (min-width:701px) and (min-height:531px) and (max-height:800px) {
  #online .onlinePanel { padding-block: 16px; }
  #online .onlineHeadingLockup h1 { font-size: 36px; }
  #online .oCard { min-height: 110px; padding: 16px 22px; }
}
@media (min-width:761px) and (min-height:661px) and (max-height:850px) {
  #musicSelect .musicHeader { padding: 15px 24px; gap: 10px; }
  #musicSelect .musicArtwork { float: right; width: 82px; margin: 0 0 10px 12px; }
  #musicSelect :is(.musicArtLabel,.musicArtCategory) { display: none; }
  #musicSelect .musicSelectionText { min-height: 85px; padding: 2px 0 12px; }
  #musicSelect .musicSelectionText h3 { font-size: 18px; }
  #musicSelect .musicTrackFacts { clear: both; }
  #musicSelect .musicPreviewBtn { clear: both; }
}
@media (max-height:530px) {
  #titleScreen .tileIcon { width: 55px; top: 19%; }
  #titleScreen .homeGrid.is-home [data-menu-id=smash] .tileIcon { width: 116px; top: 14%; }
  #titleScreen .tileArrow { width: 23px; height: 23px; bottom: 12px; right: 10px; font-size: 22px; }
  #titleScreen .homeTile.is-selected { transform: translateY(-1px); }
  #online .oCard { min-height: 100px; padding: 12px 18px; }
  #online .onlineHeader { padding-bottom: 8px; }
  #soundSelect .soundSheet { padding: 8px; }
  #pauseMenu .pauseSheet { padding: 12px 16px; }
  #pauseMenu h2 { font-size: 29px; margin-bottom: 8px; }
  #pauseMenu .pauseActions { gap: 5px; }
  #pauseMenu .pauseActions button { min-height: 37px; padding: 6px 12px; }
  #pauseMenu .pauseActions button b { font-size: 12px; }
  #pauseMenu .pauseActions button small { font-size: 10px; }
  #pauseMenu .pauseHint { margin-top: 8px; font-size: 10px; }
}

/* Both accessibility sources cover every menu descendant and pseudo-element.
   No visibility/opacity override: cinematic reveal state remains authoritative. */
html[data-ui-motion=reduced] :is(#titleScreen,#select,#stageSelect,#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu,#victory,#matchCurtain),
html[data-ui-motion=reduced] :is(#titleScreen,#select,#stageSelect,#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu,#victory,#matchCurtain) *,
html[data-ui-motion=reduced] :is(#titleScreen,#select,#stageSelect,#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu,#victory,#matchCurtain) *::before,
html[data-ui-motion=reduced] :is(#titleScreen,#select,#stageSelect,#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu,#victory,#matchCurtain) *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion:reduce) {
  :is(#titleScreen,#select,#stageSelect,#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu,#victory,#matchCurtain),
  :is(#titleScreen,#select,#stageSelect,#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu,#victory,#matchCurtain) *,
  :is(#titleScreen,#select,#stageSelect,#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu,#victory,#matchCurtain) *::before,
  :is(#titleScreen,#select,#stageSelect,#online,#musicSelect,#soundSelect,#ctlPanel,#rulesModal,#pauseMenu,#trainingMenu,#victory,#matchCurtain) *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}
