@font-face { font-family: Smiley; src: url('../assets/fonts/games.woff2') format('woff2'); font-display: swap; }
:root { color-scheme: light; font: 16px/1.5 system-ui, 'Microsoft YaHei', sans-serif; color: #30364b; background: #fff8ef; --muted: #64697b; --pink: #b53658; --teal: #196f72; --line: #e8dfd5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: radial-gradient(ellipse at 95% 0, #ffe3dc, transparent 45%), radial-gradient(ellipse at 0 75%, #e8f3dc, transparent 50%), #fff8ef; }
[hidden] { display: none !important; }
button, input, select, a { font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, .button, .hub-link { min-height: 48px; min-width: 44px; padding: 10px 19px; border: 1px solid var(--line); border-radius: 15px; background: #fffcf7; color: inherit; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
button:hover, .button:hover, .hub-link:hover { background: #ffece3; }
button:disabled { opacity: .6; cursor: default; }
:is(button, a, input, select):focus-visible { outline: 3px solid #2479d8; outline-offset: 3px; }
#results:focus, #results:focus-visible { outline: none; }
a { color: inherit; text-decoration: none; }
.primary { background: linear-gradient(105deg, #ff7391, #ffb17b); color: #402438; border-color: #ffa0a3; box-shadow: 0 7px 22px #ed758523; }
.primary:hover { background: #ff9b92; }
h1, h2, p { margin: 0; }
h1, .brand, #score, #resultScore { font-family: Smiley, system-ui, sans-serif; font-weight: 400; }
p { color: var(--muted); }
.topbar { min-height: 84px; max-width: 1560px; margin: auto; padding: 14px 32px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 32px; min-height: 48px; letter-spacing: 1px; }
.brand span { font: 750 12px system-ui; padding: 5px 8px; border-radius: 7px; background: #f9dcd8; color: #a03c54; letter-spacing: 2px; }
.top-title { font-size: 15px; font-weight: 700; color: #6d5264; }
.top-title > span { margin-left: 12px; font-weight: 400; color: var(--muted); }
nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
nav button, .hub-link { font-size: 14px; padding: 9px 14px; }
main { max-width: 1500px; margin: auto; padding: 0 32px 16px; }
.intro { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 22px; gap: 20px; }
.eyebrow { color: #9b405e; font-size: 12px; letter-spacing: 1.8px; font-weight: 750; }
.intro h1 { font-size: clamp(30px, 3vw, 43px); margin-top: 6px; }
h1 em { color: #bc4d68; font-style: normal; }
.intro > p { font-size: 14px; text-align: right; line-height: 1.8; }
.stage { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: clamp(320px, 43vh, 490px); border: 2px solid #fff; border-radius: 28px; overflow: hidden; background: radial-gradient(ellipse at 15% 35%, #ffd6d5, transparent 45%), radial-gradient(ellipse at 80% 30%, #d3efdf, transparent 50%), linear-gradient(120deg, #f8ebd4, #e9e5f4); box-shadow: 0 14px 40px #9f6f6215; }
.ambient { position: absolute; width: 500px; height: 500px; border-radius: 50%; border: 1px solid #fffc; left: calc(50% - 250px); top: 5%; box-shadow: 0 0 0 35px #ffffff18, 0 0 0 70px #ffffff18, 0 0 0 110px #ffffff15; animation: breathe 5s ease-in-out infinite alternate; }
.camera-surface { position: relative; grid-area: 2 / 1; min-height: 0; margin: 0 12px; }
#video, #skeletons { position: absolute; inset: 0; width: 100%; height: 100%; }
#video { object-fit: contain; transform: scaleX(-1); opacity: .75; border-radius: 16px; }
body[data-video=off] #video, body[data-sim=true] #video { visibility: hidden; }
.stage-hud { position: relative; grid-area: 1 / 1; display: grid; grid-template-columns: 185px minmax(0, 1fr) 110px; align-items: start; gap: 24px; padding: 18px 24px; pointer-events: none; }
.score-card { background: #fffaf4ee; border: 1px solid white; border-radius: 18px; padding: 9px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; }
.score-card > span:first-child { font-size: 12px; color: #726773; }
#score { font-size: 42px; line-height: 1.1; grid-column: 2; grid-row: 1 / 3; font-variant-numeric: tabular-nums; }
#score.negative, #resultScore.negative { color: #b72c4b; }
#roundLabel { font-size: 12px; }
#combo { font-size: 12px; font-weight: 550; grid-column: 1 / -1; color: #71637c; padding-top: 5px; }
.prompt { display: flex; align-items: center; gap: 14px; border-radius: 22px; padding: 10px 18px; background: #fffdf6f2; border: 1px solid white; max-width: 640px; margin: 0 auto; width: 100%; }
.prompt h2 { font-size: clamp(18px, 1.9vw, 26px); line-height: 1.3; margin: 3px 0; }
.prompt p { font-size: 13px; line-height: 1.5; }
.prompt-copy { flex: 1; min-width: 0; }
.action-icon { width: 52px; height: 58px; color: #a64563; flex: 0 0 auto; }
.action-icon svg { width: 100%; height: 100%; }
.phase-clock { flex-shrink: 0; min-width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#b6dbcb var(--phase, 0%), #f0e8e1 0); font-size: 16px; font-weight: 800; }
.sync-ring { border-radius: 50%; width: 100px; height: 100px; background: conic-gradient(#258a83 var(--sync, 0%), #f6eee2 0); padding: 7px; box-shadow: 0 0 0 2px #fff; }
.sync-ring > div { border-radius: 50%; width: 100%; height: 100%; background: #fffaf4; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.sync-ring strong { font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sync-ring strong span { font-size: 13px; }
.sync-ring div > span { font-size: 12px; color: #5e6b70; margin-top: 3px; line-height: 1.25; text-align: center; }
.stage-welcome { position: relative; grid-area: 2 / 1; align-self: center; justify-self: center; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.welcome-symbol { font-size: 45px; color: #c05c74; line-height: 1; }
.stage-welcome b { font-size: 20px; font-weight: 550; }
.stage-welcome p { font-size: 14px; }
.stage-foot { position: relative; grid-area: 3 / 1; min-height: 32px; padding: 6px 20px; background: #fffdf5e3; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #536667; }
.feedback { position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%); border-radius: 18px; background: #fffaf3f0; padding: 7px 20px; font-size: 16px; font-weight: 700; text-align: center; width: max-content; max-width: 90%; color: #216962; }
.feedback:empty { display: none; }
.feedback[data-kind=fail] { color: #a33551; }
.players { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 20px; }
.player { background: #fffdf8; border: 1px solid var(--line); border-radius: 17px; padding: 10px 14px; min-width: 0; position: relative; }
.player.active { border-color: color-mix(in srgb, var(--player) 70%, #b7b3a5); }
.player-heading { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.player-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--player, #c9c2bd); box-shadow: 0 0 0 3px color-mix(in srgb, var(--player, #c9c2bd) 18%, transparent); }
.player-percent { margin-left: auto; color: #595366; font-size: 13px; font-variant-numeric: tabular-nums; }
.match-track { height: 6px; background: #eee9e1; border-radius: 8px; overflow: hidden; margin: 8px 0 5px; }
.match-track i { display: block; width: var(--match, 0%); height: 100%; background: var(--player, #d7cec3); transition: width .12s linear; }
.player-status { display: block; font-size: 12px; color: #696677; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player.missing { opacity: .65; }
.lobby-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 2px 10px; }
.lobby-heading h2 { font-size: 20px; font-weight: 650; }
.lobby-heading p { font-size: 14px; color: #236b68; }
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.modes button { display: grid; grid-template-columns: 28px 1fr; text-align: left; gap: 1px 9px; padding: 12px 16px; background: #fffdf7; justify-content: stretch; }
.mode-icon { font-size: 27px; color: #966175; grid-row: 1 / 3; }
.modes b { font-size: 16px; }
.modes small { font-size: 12px; color: #6d6372; font-weight: 400; }
.modes [aria-pressed=true] { border: 2px solid #d46d84; padding: 11px 15px; background: #fff0eb; }
.mode-rule { margin: 10px 3px; font-size: 13px; min-height: 20px; }
.lobby-actions { display: flex; gap: 10px; align-items: center; }
.lobby-actions .primary { margin-left: auto; min-width: 260px; }
.sim-controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; }
select { min-height: 48px; color: inherit; background: #fffaf4; border: 1px solid #a8bcb1; border-radius: 12px; padding: 8px 12px; }
footer { padding: 16px 2px 0; display: flex; gap: 10px 30px; justify-content: space-between; flex-wrap: wrap; }
footer p { font-size: 12px; }
.portrait-note { display: none; }
.recovery-actions { display: flex; justify-content: center; align-items: center; gap: 18px; font-size: 14px; }
.results { border: 1px solid #fff; background: #fffcf6; border-radius: 30px; padding: 30px 36px; margin-top: 22px; box-shadow: 0 15px 50px #ae7c6312; }
.result-heading { text-align: center; }
.result-heading h1 { font-size: clamp(26px, 3vw, 42px); margin: 8px 0; }
.result-heading > p:last-child { font-size: 14px; }
.result-body { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 48px; margin: 28px 0; }
.result-hero { display: flex; align-items: center; justify-content: center; gap: 28px; }
.grade { font: 80px/1 Smiley, system-ui; border: 3px solid #dfbc5e; color: #8c6117; background: #fff4d1; border-radius: 23px; width: 110px; height: 126px; display: grid; place-items: center; transform: rotate(-7deg); }
.result-hero > div > span { font-size: 14px; color: #6d6073; }
#resultScore { display: block; font-size: 66px; line-height: 1.2; }
.result-hero p { font-size: 13px; max-width: 220px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats > div { background: #f0f4ea; border-radius: 15px; text-align: center; padding: 12px 4px; }
.stats strong { display: block; font-size: 25px; color: #236e69; }
.stats span { display: block; font-size: 12px; margin-top: 4px; color: #666c70; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 12px; }
.chart-heading h2 { font-size: 15px; }
.chart-heading > span { font-size: 12px; color: var(--muted); }
.round-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(34px, 1fr)); gap: 8px; padding: 0; list-style: none; margin: 0; }
.round-chart li { display: flex; flex-direction: column; align-items: center; font-size: 12px; min-width: 0; gap: 4px; }
.round-chart .bar { height: 70px; width: 100%; max-width: 64px; background: #eeeae1; border-radius: 6px; display: flex; align-items: end; overflow: hidden; }
.round-chart .bar i { width: 100%; height: var(--value); background: #57ac9a; border-radius: 6px; }
.round-chart .failed .bar i { background: #d67a8a; }
.round-chart .skipped .bar { background: repeating-linear-gradient(45deg, #eee8df, #eee8df 5px, #faf6ef 5px, #faf6ef 10px); }
.result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.result-actions > * { min-width: 140px; }
.result-sim { text-align: center; font-size: 12px; margin-top: 16px; }
dialog { color: #30364b; background: #fffaf4; border: 1px solid #fff; border-radius: 26px; padding: 28px; width: min(510px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; box-shadow: 0 20px 90px #3630483b; }
dialog::backdrop { background: #36304788; backdrop-filter: blur(6px); }
dialog h2 { font-size: 24px; margin: 0 0 14px; }
dialog p { font-size: 14px; line-height: 1.7; margin: 10px 0; }
dialog > button { width: 100%; margin-top: 10px; }
#settings .pulse-row { font-size: 14px; }
#settings .pulse-row > span { flex: 1; }
#volume { min-height: 48px; max-width: 160px; width: 40%; accent-color: #b63c60; }
.load-number { font: 64px/1.3 Smiley, system-ui; display: block; color: #b63c60; }
progress { width: 100%; height: 12px; accent-color: #d3577c; }
.load-stage { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body[data-state=results] .intro { display: none; }
body[data-state=playing] .intro, body[data-state=countdown] .intro, body[data-state=roundEnd] .intro, body[data-state=paused] .intro { display: none; }
body:is([data-state=playing], [data-state=countdown], [data-state=roundEnd], [data-state=paused]) .stage { height: calc(100dvh - 244px); min-height: 340px; max-height: 760px; }
body.bonus .stage { box-shadow: 0 0 0 4px #e9c66a, 0 0 55px #eed88460; }
body.bonus .ambient { animation: resonate 1s ease-out; border-color: #d4a027; }
.reduced *, .reduced *::before, .reduced *::after { animation: none !important; transition: none !important; }
@keyframes breathe { to { transform: scale(1.06); } }
@keyframes resonate { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 700px) {
  .topbar { min-height: 72px; padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
  .brand { font-size: 26px; gap: 6px; }.brand span { font-size: 12px; letter-spacing: 1px; padding: 4px 6px; }
  .top-title { display: none; }nav { gap: 5px; }nav button, .hub-link { padding: 8px 10px; font-size: 12px; min-height: 44px; }
  .hub-link { display: none; }main { padding: 0 12px 16px; }
  .intro { padding: 8px 2px 16px; }.intro h1 { font-size: 30px; }.intro > p { display: none; }
  .eyebrow { font-size: 12px; letter-spacing: .5px; }
  .stage { height: 370px; border-radius: 22px; }
  .stage-hud { padding: 12px; grid-template-columns: 1fr 80px; gap: 10px; }
  .score-card { max-width: 210px; padding: 7px 12px; min-height: 70px; }#score { font-size: 34px; }
  .sync-ring { width: 76px; height: 76px; padding: 5px; grid-column: 2; grid-row: 1; }.sync-ring strong { font-size: 23px; }.sync-ring div > span { font-size: 12px; }
  .prompt { grid-column: 1 / -1; grid-row: 2; gap: 9px; padding: 9px 12px; border-radius: 16px; }
  .prompt h2 { font-size: 19px; }.prompt p { font-size: 12px; }.action-icon { width: 32px; height: 45px; }.phase-clock { min-width: 32px; height: 32px; font-size: 14px; }
  .camera-surface { margin: 0 6px; }
  .stage-foot { padding: 6px 10px; font-size: 12px; }.stage-foot > span:first-child { max-width: 60%; }
  .stage-welcome { padding: 0 12px; }.stage-welcome b { font-size: 17px; }.stage-welcome p { font-size: 12px; }.welcome-symbol { font-size: 32px; }
  .players { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 16px; }.player { padding: 8px 11px; }.player-heading { font-size: 13px; }
  .lobby-heading { align-items: start; flex-direction: column; gap: 4px; }.lobby-heading h2 { font-size: 18px; }.lobby-heading p { font-size: 13px; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.modes button { padding: 10px; grid-template-columns: 22px 1fr; column-gap: 6px; }.modes [aria-pressed=true] { padding: 9px; }.modes b { font-size: 14px; }.mode-icon { font-size: 22px; }.modes small { font-size: 12px; }
  .lobby-actions { flex-wrap: wrap; }.lobby-actions > button { flex: 1; padding: 10px; font-size: 14px; }.lobby-actions .primary { flex-basis: 100%; min-width: 0; order: -1; }
  .sim-controls { flex-wrap: wrap; gap: 6px 10px; }.sim-controls > span { width: 100%; }
  footer { padding-top: 14px; gap: 6px; }footer p { font-size: 12px; }.portrait-note { display: inline; }
  body:is([data-state=playing], [data-state=countdown], [data-state=roundEnd], [data-state=paused]) .stage { min-height: 365px; height: calc(100dvh - 340px); }
  .feedback { bottom: 40px; font-size: 13px; padding: 6px 12px; }.recovery-actions { gap: 8px; font-size: 12px; }.recovery-actions button { font-size: 12px; padding: 8px 12px; }
  .results { margin-top: 6px; padding: 20px 16px; border-radius: 22px; }.result-heading h1 { font-size: 27px; }.result-heading .eyebrow { font-size: 12px; }
  .result-body { grid-template-columns: 1fr; gap: 20px; margin: 22px 0; }.result-hero { gap: 22px; }.grade { width: 80px; height: 90px; font-size: 64px; }#resultScore { font-size: 54px; }.result-hero p { max-width: 180px; }
  .stats strong { font-size: 23px; }.stats > div { padding: 10px 3px; }.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.result-actions > * { min-width: 0; padding: 10px; font-size: 14px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .topbar { padding: 4px 16px; min-height: 56px; height: 56px; }.brand { font-size: 26px; }.top-title > span { display: none; }nav button, .hub-link { min-height: 44px; font-size: 12px; padding: 8px 12px; }main { padding: 0 16px 10px; }
  .intro { padding: 4px 2px 12px; }.intro h1 { font-size: 27px; }.intro > p { font-size: 12px; }
  .stage { height: 270px; }.stage-hud { padding: 9px 12px; grid-template-columns: 152px minmax(0, 1fr) 75px; gap: 12px; }.score-card { padding: 6px 10px; }#score { font-size: 32px; }.score-card > span:first-child, #roundLabel, #combo { font-size: 12px; }
  .prompt { grid-column: 2; grid-row: 1; padding: 7px 12px; gap: 9px; }.prompt h2 { font-size: 19px; }.prompt p { font-size: 12px; }.action-icon { width: 33px; height: 45px; }.phase-clock { min-width: 32px; height: 32px; font-size: 14px; }.prompt .eyebrow { font-size: 12px; letter-spacing: 0; }
  .sync-ring { grid-column: 3; grid-row: 1; width: 72px; height: 72px; padding: 5px; }.sync-ring strong { font-size: 23px; }.sync-ring div > span { font-size: 12px; }
  body:is([data-state=playing], [data-state=countdown], [data-state=roundEnd], [data-state=paused]) .stage { height: calc(100dvh - 151px); min-height: 220px; }
  .camera-surface { margin: 0 6px; }
  .players { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 7px 0 8px; gap: 8px; }.player { padding: 5px 10px; }.player-heading { font-size: 12px; }.match-track { margin: 4px 0; height: 5px; }.player-status { font-size: 12px; }
  body:is([data-state=playing], [data-state=countdown], [data-state=roundEnd], [data-state=paused]) footer { display: none; }
  .stage-foot { min-height: 28px; font-size: 12px; padding: 4px 12px; }.feedback { font-size: 13px; bottom: 34px; padding: 5px 12px; }
  .results { margin-top: 4px; padding: 12px 22px; }.result-heading { text-align: left; }.result-heading h1 { font-size: 25px; margin: 2px 0; }.result-heading .eyebrow { font-size: 12px; }.result-heading > p:last-child { font-size: 12px; }
  .result-body { grid-template-columns: .9fr 1.4fr; gap: 24px; margin: 10px 0; }.result-hero { gap: 16px; }.grade { width: 70px; height: 78px; font-size: 55px; border-radius: 16px; }#resultScore { font-size: 44px; }.result-hero p { font-size: 12px; max-width: 165px; }
  .stats > div { padding: 5px; }.stats strong { font-size: 21px; }.stats span { font-size: 12px; margin-top: 0; }.chart-heading { margin: 6px 0; }.chart-heading h2 { font-size: 13px; }.round-chart .bar { height: 30px; }.round-chart li { gap: 0; }
  .result-actions { gap: 8px; }.result-actions > * { min-height: 44px; padding: 7px 14px; font-size: 13px; min-width: 125px; }.result-sim { margin-top: 5px; font-size: 12px; }body[data-state=results] footer { padding-top: 8px; gap: 0; }
  .result-heading .eyebrow { display: none; }.result-heading h1 { line-height: 1.2; }.result-body { margin: 8px 0; }
  .stats strong, .stats span, .round-chart li, .chart-heading h2, .result-sim { line-height: 1.2; }
  body[data-state=results] footer { display: none; }
  .recovery-actions { padding-bottom: 8px; }
}

/* Whole-scene state replaces individual cards. Grid cells are regions, never people. */
.crowd-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 16px; margin: 12px 0 16px; background: #fffcf5; border: 1px solid var(--line); border-radius: 18px; }
.crowd-metrics { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; }
.crowd-metrics b { font-weight: 500; }.crowd-metrics strong { color: #226e6b; font-size: 18px; }
.crowd-metrics p { width: 100%; font-size: 12px; }
.motion-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; width: 110px; flex-shrink: 0; }
.motion-grid i { height: 10px; border-radius: 2px; background: color-mix(in srgb, #369e93 calc(var(--energy, 0) * 100%), #e7ece4); }
.recognition-toggle { display: flex; gap: 8px; flex-wrap: wrap; }.recognition-toggle button { font-size: 14px; }
.recognition-toggle [aria-pressed=true] { background: #e3f2e9; border-color: #5a9d8c; }
.venue-guide { font-size: 13px; margin: 8px 2px 14px; }.mirror-note { font-size: 12px; margin: -5px 3px 10px; }
body[data-recognition=crowd] .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.menu-heading h2 { margin: 0; }
.menu-heading button { min-height: 44px; font-size: 14px; }
.menu-recognition { display: grid; gap: 8px; font-size: 14px; }.menu-recognition select { width: 100%; }
.menu-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }.menu-controls button { padding: 10px; font-size: 14px; }
#teamMenu details { border-top: 1px solid var(--line); }#teamMenu summary { display: flex; align-items: center; min-height: 48px; font-size: 14px; cursor: pointer; font-weight: 650; }
#teamMenu summary:focus-visible { outline: 3px solid #2479d8; outline-offset: 2px; border-radius: 6px; }
.menu-return { width: 100%; margin-top: 12px; }
#poseLimitRow { gap: 12px; font-size: 14px; }
@media (max-width: 700px) {
  .topbar { flex-wrap: nowrap; }.topbar nav { flex-shrink: 0; }
  .crowd-status { gap: 8px; padding: 9px 12px; }.crowd-metrics { gap: 2px 12px; font-size: 12px; }.crowd-metrics strong { font-size: 15px; }.motion-grid { width: 72px; gap: 2px; }.motion-grid i { height: 9px; }
  .recognition-toggle { gap: 6px; }.recognition-toggle button { flex: 1; padding: 8px 6px; font-size: 12px; }
  body[data-recognition=crowd] .modes { grid-template-columns: 1fr; }.modes small { line-height: 1.4; }
  #teamMenu { padding: 20px; }.menu-controls { grid-template-columns: 1fr; }
  body[data-recognition=crowd]:is([data-state=playing], [data-state=countdown], [data-state=roundEnd], [data-state=paused]) .stage { height: calc(100dvh - 260px); min-height: 410px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .crowd-status { margin: 6px 0; padding: 5px 12px; }.crowd-metrics { gap: 2px 18px; font-size: 12px; }.crowd-metrics strong { font-size: 15px; }.crowd-metrics p { width: auto; }.motion-grid i { height: 6px; }
  body[data-recognition=crowd]:is([data-state=playing], [data-state=countdown], [data-state=roundEnd], [data-state=paused]) .stage { height: calc(100dvh - 138px); min-height: 220px; }
}
@media (max-width: 700px) {
  .topbar { position:relative; min-height:86px; padding-bottom:22px; }
  .top-title { display:block; position:absolute; left:15px; bottom:2px; font-size:12px; }
}
@media (max-height: 500px) and (orientation: landscape) { .topbar { min-height:56px; padding-bottom:4px; }.top-title { position:static; font-size:12px; } }
