/* quickbreak.brb · Standalone console skin. No remote fonts or assets. */
@font-face { font-family: 'Break Pixels'; src: url(data:font/woff;base64,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) format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #0b1423;
  --panel: #131f30;
  --line: #2c3c50;
  --ink: #edf3f8;
  --muted: #a0afc1;
  --orange: #ff954d;
  --blue: #78d7ff;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --pixel: "Break Pixels", var(--mono);
  --court-width: 640px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; color: var(--ink); background: radial-gradient(ellipse at 50% 28%, #192c4459, transparent 64%), var(--bg); }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; opacity: .17; background-image: radial-gradient(#5e7694 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, a, input { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
button, a { color: inherit; }
a { text-decoration: none; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
button, a, .option-face { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
button:disabled:hover { transform: none; }
button svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pixel { font-family: var(--pixel); font-weight: normal; }
.micro, .eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 1.5px; }
.eyebrow { line-height: 1.6; }
.orange { color: var(--orange); }
.muted { color: var(--muted); }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 7px #78d7ff28; }
.site-header { max-width: 1160px; margin: 0 auto; padding: 26px 0 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #283549; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 35px; height: 35px; display: block; background: #14263a; border: 1px solid #30435c; position: relative; border-radius: 6px; }
.brand-mark i { position: absolute; height: 3px; width: 17px; background: var(--orange); left: 10px; top: 7px; }
.brand-mark i:nth-child(2) { width: 4px; height: 4px; left: 12px; top: 15px; background: #f9edcf; }
.brand-mark i:nth-child(3) { left: 6px; top: 24px; background: var(--blue); }
.wordmark { font-size: 27px; line-height: 1.15; font-weight: 760; letter-spacing: -1.2px; }
.wordmark > span { color: var(--orange); }
.team-brand { text-align: right; display: flex; flex-direction: column; gap: 6px; }
.team-wordmark { font-size: 22px; letter-spacing: -.8px; font-weight: 700; }
.team-wordmark b { color: var(--orange); }
.team-square { display: inline-block; width: 9px; height: 9px; margin-left: 5px; border: 2px solid var(--orange); }
.team-brand .micro { font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.workspace { width: calc(var(--court-width) + 50px); max-width: calc(100% - 32px); margin: 29px auto 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 0 2px 19px; }
.section-heading .eyebrow { color: var(--muted); font-size: 11px; }
h1 { font-size: 29px; line-height: 1.3; font-weight: 650; letter-spacing: -.8px; margin-top: 4px; }
.connection { display: flex; align-items: center; gap: 8px; font: 11px var(--mono); color: #b1bdcc; letter-spacing: 1px; padding-bottom: 6px; }
.cabinet { border: 1px solid #425168; border-radius: 14px; background: linear-gradient(120deg, #29394f 0%, #1b2a3d 40%, #172437 100%); box-shadow: 0 3px 0 #09101b, 0 5px 0 #2b3c50, 0 22px 50px #02070d66, inset 0 1px 0 #ffffff0d; overflow: hidden; }
.cabinet-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 12px; font: 11px var(--mono); letter-spacing: 1.1px; color: #c6d0de; }
.tiny-square { display: inline-block; width: 6px; height: 6px; border: 1px solid var(--orange); margin-right: 6px; }
.power { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.power .status-dot { width: 5px; height: 5px; background: var(--orange); box-shadow: 0 0 8px #ff954d60; }
.scoreboard { margin: 0 24px; display: grid; grid-template-columns: 1fr 110px 1fr; align-items: center; padding: 15px 19px 14px; border: 1px solid #3a4b62; border-bottom: none; border-radius: 7px 7px 0 0; background: #101c2b; }
.score-label { display: flex; align-items: center; gap: 7px; font: 12px var(--mono); letter-spacing: 1px; color: var(--blue); }
.side-mark { width: 5px; height: 5px; background: currentColor; }
.score-role { color: #8394a9; font-size: 10px; letter-spacing: .5px; }
.score-number { display: block; font: 37px/1.4 var(--pixel); letter-spacing: 4px; margin: 7px 0 5px; color: var(--blue); }
.opponent { text-align: right; }
.opponent .score-label { justify-content: end; color: var(--orange); }
.opponent .score-number { color: var(--orange); }
.score-track { background: #26364a; height: 2px; width: 80%; }
.score-track > span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: var(--blue); transition: transform .2s; }
.opponent .score-track { margin-left: auto; }
.opponent .score-track > span { transform-origin: right; background: var(--orange); }
.match-info { text-align: center; display: flex; align-items: center; flex-direction: column; gap: 7px; }
.versus { font: 14px var(--pixel); color: #738499; }
.difficulty-label { font: 10px var(--mono); border: 1px solid #4a4a44; color: #edc59d; padding: 4px 8px; border-radius: 3px; letter-spacing: 1px; }
.goal-label { font: 10px var(--mono); color: #a5b1c2; letter-spacing: .8px; }
.goal-label b { font-weight: normal; color: white; }
.screen-surround { padding: 0 24px; }
.screen { position: relative; width: 100%; aspect-ratio: 8 / 5; background: #081521; outline: 1px solid #4b5c71; overflow: hidden; }
canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; outline-offset: -3px !important; }
.crt-layer { pointer-events: none; position: absolute; inset: 0; opacity: 0; background: repeating-linear-gradient(0deg, #00000012 0, #00000012 1px, transparent 1px, transparent 4px); box-shadow: inset 0 0 34px #01091350; }
.crt-enabled .crt-layer { opacity: 1; }
.console-status { margin: 0 24px; background: #0d1927; display: flex; align-items: center; justify-content: space-between; border: 1px solid #3a4b62; border-top: none; border-radius: 0 0 6px 6px; padding: 10px 13px; color: #a7b5c6; font: 10px var(--mono); letter-spacing: 1px; }
.console-status b { color: var(--ink); font-weight: normal; margin-left: 6px; }
.status-group { display: flex; align-items: center; gap: 7px; }
.console-status .status-dot { width: 5px; height: 5px; }
.console-controls { display: flex; align-items: center; justify-content: space-between; padding: 15px 23px 13px; gap: 12px; }
.control-group { display: flex; align-items: center; gap: 6px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 5px; min-height: 40px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.button-primary { background: var(--orange); border-color: #ffb079; color: #181d24; box-shadow: 0 2px 0 #ad542a; font-family: var(--mono); letter-spacing: 1px; }
.button-primary:hover { background: #ffb375; border-color: #ffc490; }
.button-primary:active { box-shadow: none; transform: translateY(1px); }
.button-control { background: #34485f; border-color: #51657b; color: #f2f5f8; }
.button-control:hover { background: #3e5570; }
.button-quiet { background: transparent; color: #c2cddd; }
.button-quiet:hover { background: #ffffff08; color: white; }
.button kbd { margin-left: 9px; color: #c2cbda; font-size: 10px; background: #101b2b50; border-color: #657488; padding: 3px 4px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 40px; padding: 0; color: #b4c2d2; background: transparent; border: 1px solid transparent; border-radius: 5px; }
.icon-button:hover { background: #ffffff09; color: white; }
.icon-button[aria-pressed="true"] { color: var(--blue); }
.control-divider { width: 1px; height: 18px; background: #4a596c; margin: 0 3px; }
.cabinet-base { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; background: #0e1c2d38; border-top: 1px solid #304157; color: #97a6b8; }
.cabinet-base .micro { font-size: 10px; letter-spacing: 1px; margin-left: auto; margin-right: 8px; }
.screw { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(45deg, #091523 38%, #65768a 40%, #65768a 55%, #091523 57%); box-shadow: 0 1px 0 #ffffff17; }
.speaker { width: 70px; height: 8px; background: repeating-linear-gradient(90deg, #0d1928 0, #0d1928 3px, transparent 3px, transparent 6px); }
.below-console { padding: 25px 2px 21px; display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.control-guide > .micro, .session-stats .micro { color: #91a0b5; font-size: 10px; letter-spacing: 1px; }
.control-guide p { display: flex; align-items: center; gap: 4px; margin: 9px 0; }
kbd { font-family: var(--mono); font-size: 12px; padding: 3px 5px; border: 1px solid #46566d; border-radius: 3px; background: #1a293d; box-shadow: 0 2px 0 #09121e; min-width: 22px; text-align: center; }
.control-guide p > span { color: #b7c3d1; font-size: 12px; margin: 0 5px; }
.control-tip { font-size: 12px; color: #8e9db1; }
.session-stats { display: flex; gap: 33px; text-align: right; }
.session-stats > div { display: flex; flex-direction: column; gap: 13px; }
.session-stats strong { font: 19px var(--mono); letter-spacing: 1px; color: #d2dcea; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #293649; padding: 17px 2px 8px; color: #93a1b3; font-size: 11px; }
.site-footer > span:last-child { font: 10px var(--mono); letter-spacing: .7px; }
.touch-controls { display: none; }
.pause-overlay { position: absolute; z-index: 2; inset: 0; background: #081322e8; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; text-align: center; padding: 18px; }
.pause-overlay .eyebrow { color: var(--blue); font-size: 11px; }
.pause-overlay h2 { font-size: 46px; letter-spacing: 2px; margin: 3px 0; }
.pause-overlay p { font-size: 14px; color: #bcc8d6; line-height: 1.5; }
.pause-overlay .button { margin-top: 5px; min-width: 190px; }
.pause-hint { font: 11px var(--mono); color: #9faec0; margin-top: 5px; }
.pause-hint kbd { font-size: 10px; margin-left: 3px; }

/* Native dialogs provide focus containment and make the game inert. */
dialog { padding: 0; color: var(--ink); background: #142134; border: 1px solid #526176; border-radius: 12px; box-shadow: 0 28px 110px #000000a3, 0 0 0 5px #ffffff03; max-height: calc(100dvh - 32px); max-width: calc(100vw - 32px); }
dialog::backdrop { background: #050b15c9; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
dialog[open] { animation: dialog-in .2s ease-out; }
.setup-dialog { width: 810px; }
.dialog-topline { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 0 20px; background: #1e3045; border-bottom: 1px solid #374a60; font: 10px var(--mono); color: #d1dbe7; letter-spacing: 1.2px; }
.dialog-topline > span:first-child { display: flex; align-items: center; gap: 8px; }
.dialog-topline .status-dot { background: var(--orange); width: 5px; height: 5px; }
.dialog-topline .icon-button { width: 28px; height: 28px; margin-right: -8px; }
.dialog-topline .icon { width: 16px; height: 16px; }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.setup-story { padding: 33px 31px 26px; background: radial-gradient(ellipse at 35% 48%, #274c724f, transparent 65%), #102238; border-right: 1px solid #30445a; display: flex; flex-direction: column; }
.setup-story > .eyebrow { color: var(--blue); font-size: 10px; letter-spacing: 1.2px; margin-bottom: 17px; }
.setup-story .wordmark { font-size: 35px; letter-spacing: -1.7px; }
.tagline { color: #bdccdd; font-size: 15px; line-height: 1.8; margin-top: 16px; max-width: 290px; }
.console-illustration { position: relative; text-align: center; margin: 23px -9px 22px; }
.console-illustration svg { width: 100%; height: auto; display: block; filter: drop-shadow(6px 12px 0 #040d171c); }
.console-illustration > .micro { font-size: 10px; letter-spacing: 1px; color: #8ea7c1; }
.story-footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: auto; padding-top: 19px; border-top: 1px solid #30465d; }
.story-footer > .pixel { font-size: 11px; line-height: 1.85; letter-spacing: .3px; color: #dae3ed; }
.edition-stamp { border: 1px solid #55718d; color: #8faac2; font: 10px var(--mono); letter-spacing: 1px; padding: 6px 8px; text-align: center; }
.edition-stamp b { font-size: 17px; display: inline-block; margin-top: 2px; font-weight: normal; }
.setup-form { padding: 29px 28px 22px; background: #162335; }
.form-heading { margin-bottom: 25px; }
.form-heading .eyebrow { font-size: 10px; letter-spacing: 1.3px; }
.form-heading h3 { font-size: 22px; font-weight: 600; letter-spacing: -.4px; margin-top: 8px; }
fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
legend { font: 10px var(--mono); letter-spacing: 1px; padding: 0; margin-bottom: 12px; color: #d0dbe7; }
legend > span { color: #7f92a9; margin-right: 8px; }
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-face { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 3px; border: 1px solid #3b4b61; border-radius: 5px; background: #142033; min-height: 89px; color: #c9d3e1; }
.option-face strong { font-size: 14px; font-weight: 600; }
.option-face small { font-size: 11px; color: #99a9bd; }
.option:hover .option-face { border-color: #8193aa; background: #1e2d42; }
.option input:checked + .option-face { border-color: var(--orange); color: #ffb580; background: #ff954d0b; box-shadow: inset 0 0 0 1px #ff954d12; }
.option input:checked + .option-face small { color: #dbc3b3; }
.option input:focus-visible + .option-face { outline: 2px solid var(--blue); outline-offset: 3px; }
.level-bars { display: flex; align-items: end; gap: 3px; height: 15px; color: #a8b8ca; }
.level-bars i { width: 4px; height: 5px; background: currentColor; }
.level-bars i:nth-child(2) { height: 10px; }
.level-bars i:nth-child(3) { height: 15px; }
.option input:checked + .option-face .level-bars { color: var(--orange); }
.score-options .option-face { min-height: 65px; gap: 6px; padding: 11px 3px; }
.score-options .pixel { font: 18px var(--pixel); }
.score-options small { font: 10px var(--mono); }
.sound-setting { display: flex; justify-content: space-between; align-items: center; margin: -1px 0 24px; }
.sound-setting strong { display: block; font-size: 14px; font-weight: 500; }
.sound-setting small { display: block; margin-top: 6px; font-size: 12px; color: #97a9bd; }
.switch { position: relative; display: block; padding: 5px 0 5px 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { display: block; width: 36px; height: 21px; background: #3b4e63; border: 1px solid #6c7b8e; border-radius: 20px; }
.switch-track::after { content: ""; display: block; background: #d9e3eb; border-radius: 50%; width: 13px; height: 13px; margin: 3px; transition: transform .15s; }
.switch input:checked + .switch-track { background: #32617c; border-color: #6796b0; }
.switch input:checked + .switch-track::after { background: #d4f1ff; transform: translateX(15px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--blue); outline-offset: 4px; }
.start-button { width: 100%; min-height: 46px; font-size: 13px; justify-content: space-between; padding: 12px 17px; }
.setup-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; font: 10px var(--mono); color: #a2b2c5; letter-spacing: .5px; margin-top: 17px; }
.setup-footnote .status-dot { width: 4px; height: 4px; background: #8197ad; }
.new-match-note { margin: -7px 0 13px; color: #f0c093; font-size: 12px; line-height: 1.5; }
.dialog-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 13px 20px; font: 10px var(--mono); letter-spacing: .7px; background: #0f1c2d; border-top: 1px solid #344459; color: #9aacbf; }
.result-dialog { width: 465px; text-align: center; }
.result-dialog .dialog-topline { font-size: 10px; letter-spacing: .7px; }
.result-content { padding: 28px 37px 23px; background: radial-gradient(ellipse at 50% 0%, #2b557747, transparent 70%); }
.result-emblem { display: inline-flex; justify-content: center; align-items: center; width: 64px; height: 54px; border: 1px solid #66818f; background: #78d7ff0a; color: var(--blue); font-size: 20px; transform: rotate(-5deg); margin-bottom: 24px; box-shadow: 4px 4px 0 #00000022; }
.result-content > .eyebrow { font-size: 10px; color: var(--orange); margin-bottom: 14px; }
.result-content > h2 { font-size: 27px; line-height: 1.4; }
#resultMessage { color: #b9c7d6; font-size: 14px; line-height: 1.7; margin: 15px auto 20px; max-width: 290px; min-height: 40px; }
.result-score { display: flex; align-items: center; justify-content: center; gap: 21px; padding: 19px 0; background: #0c192a; border: 1px solid #314860; border-radius: 5px; }
.result-score > span { display: flex; align-items: center; gap: 12px; font: 10px var(--mono); color: #8cafc3; }
.result-score b { font: 26px var(--pixel); color: var(--blue); }
.result-score > span:last-child b { color: var(--orange); }
.result-score .result-dash { font-size: 22px; color: #8191a3; }
.result-details { display: flex; justify-content: space-between; margin: 15px 1px 25px; color: #97aabd; font: 10px var(--mono); letter-spacing: .5px; }
.result-details b { color: #e0e8ef; margin-left: 5px; font-size: 12px; font-weight: normal; }
.result-content > .button { width: 100%; min-height: 45px; }
.result-content > .button-quiet { font-size: 12px; margin-top: 6px; }
.notice { background: #29243b; color: #ffd5b1; padding: 18px; text-align: center; font-size: 16px; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1220px) { .site-header { margin: 0 30px; } }
@media (max-height: 850px) and (min-width: 701px) {
  .site-header { padding-top: 15px; padding-bottom: 15px; }
  .workspace { margin-top: 17px; }
  .section-heading { margin-bottom: 12px; }
  .section-heading h1 { font-size: 25px; }
  .section-heading .eyebrow { font-size: 10px; }
  .cabinet-top { padding-top: 11px; padding-bottom: 10px; }
  .scoreboard { padding-top: 10px; padding-bottom: 10px; }
  .score-number { font-size: 30px; line-height: 1.1; margin-top: 6px; margin-bottom: 6px; }
  .console-controls { padding-top: 10px; padding-bottom: 10px; }
  .cabinet-base { padding-top: 8px; padding-bottom: 8px; }
  .below-console { padding-top: 19px; padding-bottom: 18px; }
}
@media (max-width: 700px) {
  .site-header { margin: 0 19px; padding: 20px 0 18px; }
  .site-header .wordmark { font-size: 23px; }
  .team-wordmark { font-size: 18px; }
  .team-brand .micro { display: none; }
  .workspace { width: calc(var(--court-width) + 26px); margin-top: 22px; max-width: calc(100% - 24px); }
  .cabinet-top { padding: 12px; font-size: 10px; letter-spacing: .8px; }
  .cabinet-top .muted { font-size: 10px; }
  .power { font-size: 10px; gap: 5px; }
  .scoreboard { margin: 0 12px; padding: 12px; grid-template-columns: 1fr 95px 1fr; }
  .score-role { display: none; }
  .score-number { font-size: 30px; }
  .score-label { font-size: 10px; }
  .screen-surround { padding: 0 12px; }
  .console-status { margin: 0 12px; font-size: 10px; padding: 9px; letter-spacing: .3px; }
  .console-controls { padding: 12px 11px; gap: 3px; }
  .console-controls .button { padding: 9px 7px; font-size: 12px; gap: 6px; }
  .console-controls .button kbd { display: none; }
  .control-group { gap: 1px; }
  .icon-button { width: 32px; }
  .crt-button { display: none; }
  .console-controls .icon { width: 17px; height: 17px; }
  .control-divider { margin: 0 4px; }
  .cabinet-base .micro { font-size: 10px; letter-spacing: .5px; }
  .speaker { width: 45px; }
  .below-console { padding: 23px 2px; }
  .session-stats { gap: 20px; }
  .session-stats strong { font-size: 16px; }
  .control-tip { max-width: 215px; display: block; line-height: 1.6; font-size: 11px; }
  .connection { font-size: 10px; letter-spacing: .5px; gap: 6px; }
  .section-heading .eyebrow { font-size: 10px; }
  h1 { font-size: 26px; }
  .site-footer { align-items: start; font-size: 10px; line-height: 1.6; }
  .site-footer > span:last-child { text-align: right; max-width: 143px; line-height: 1.7; }
  .setup-dialog { width: 440px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .setup-layout { display: block; }
  .setup-story { padding: 22px 25px 19px; border-right: none; border-bottom: 1px solid #33475e; }
  .setup-story > .eyebrow { margin-bottom: 10px; font-size: 10px; }
  .setup-story .wordmark { font-size: 33px; }
  .tagline { font-size: 14px; line-height: 1.65; margin-top: 10px; max-width: 100%; }
  .console-illustration, .story-footer { display: none; }
  .setup-form { padding: 22px 25px; }
  .form-heading { margin-bottom: 21px; }
  .form-heading h3 { font-size: 21px; }
  fieldset { margin-bottom: 21px; }
  .dialog-bottom { padding: 13px 19px; font-size: 10px; line-height: 1.6; }
  .dialog-bottom > span:last-child { display: none; }
  .pause-overlay { gap: 10px; padding: 12px; }
  .pause-overlay h2 { font-size: 31px; margin: 0; }
  .pause-overlay .eyebrow { font-size: 10px; }
  .pause-overlay p { font-size: 12px; }
  .pause-overlay .button { min-height: 37px; margin-top: 0; font-size: 11px; }
  .pause-hint { display: none; }
}
@media (pointer: coarse), (max-width: 600px) {
  .touch-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 13px 13px; }
  .touch-controls button { background: #253a51; border: 1px solid #4f6780; border-radius: 5px; color: var(--blue); min-height: 48px; width: 98px; font: 23px var(--mono); touch-action: none; }
  .touch-controls button:active { background: #42627f; }
  .touch-controls button span { font-size: 11px; vertical-align: middle; }
  .touch-controls > span { font: 10px/1.8 var(--mono); color: #9fb1c6; text-align: center; letter-spacing: .5px; }
}
@media (max-width: 370px) {
  .brand { gap: 8px; } .site-header .wordmark { font-size: 22px; } .brand-mark { width: 32px; }
  .team-wordmark { font-size: 14px; } .team-square { display: none; }
  .session-stats { gap: 13px; } .session-stats .micro { font-size: 10px; }
  .control-guide p > span { margin: 0 2px; font-size: 10px; }
  .control-guide kbd { min-width: 18px; padding: 3px; }
  .control-tip { max-width: 160px; }
  .setup-story, .setup-form { padding-left: 20px; padding-right: 20px; }
  .setup-story .wordmark { font-size: 29px; }
  .result-content { padding-left: 23px; padding-right: 23px; }
  .result-content > h2 { font-size: 23px; }
  .result-score { gap: 13px; }
  .connection { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* v3 readability: allow enlarged labels to wrap instead of clipping. */
.setup-story, .setup-form, .score-side { min-width: 0; }
.option-face { height: 100%; text-align: center; overflow-wrap: anywhere; }
.sound-setting { gap: 12px; }
.switch, .side-mark, .screw { flex-shrink: 0; }
.dialog-topline, .dialog-bottom, .console-controls, .control-group,
.below-console, .site-footer, .section-heading, .cabinet-top,
.console-status, .control-guide p, .score-label { flex-wrap: wrap; }
.dialog-topline { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.dialog-bottom, .setup-footnote, .cabinet-base .micro { line-height: 1.6; }
.setup-footnote { text-align: center; }
.score-role { letter-spacing: 0; }
.pause-overlay { overflow-y: auto; }
.controls-dialog { width: 480px; }
.controls-content { padding: 28px; text-align: center; }
.controls-content h2 { font-size: 24px; line-height: 1.3; color: var(--blue); }
.controls-content p { margin-top: 18px; font-size: 15px; line-height: 1.7; color: #bdccdd; }
.controls-content kbd { display: inline-block; font-size: 14px; }
.controls-shortcuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
.controls-shortcuts > span { white-space: nowrap; }
.controls-content .controls-ready { color: var(--orange); font-size: 13px; }
@media (max-width: 700px) {
  .control-group { row-gap: 6px; }
  .console-controls { gap: 8px; }
  .cabinet-top .muted { display: none; }
  .cabinet-base .micro { text-align: right; }
  .speaker { flex-shrink: 0; }
  .pause-overlay { justify-content: safe center; gap: 6px; }
  .pause-overlay h2 { font-size: 25px; }
  .pause-overlay .eyebrow { display: none; }
}
@media (max-width: 370px) {
  .site-header { flex-wrap: wrap; gap: 14px; }
  .setup-story, .setup-form { padding-left: 16px; padding-right: 16px; }
  .setup-story .wordmark { font-size: 27px; }
  .controls-content { padding: 20px 16px; }
  .result-score { gap: 8px; }
  .result-score > span { gap: 6px; }
  .result-score b { font-size: 22px; }
  .result-details { flex-wrap: wrap; gap: 10px; }
}
