:root {
  --paper:#f3f0e8;
  --white:#fbf9f4;
  --ink:#171b24;
  --muted:#686b71;
  --line:#dbd9d2;
  --blue:#3569da;
  --red:#cb3c4c;
  --game-blue:#538aff;
  --game-red:#ff626d;
  --radius:16px;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  font-optical-sizing:auto;
  color-scheme:light
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select {
  font:inherit
}
button {
  cursor:pointer;
  color:inherit
}
button:disabled {
  cursor:not-allowed;
  opacity:.4
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent
}
button {
  touch-action:manipulation
}
a {
  color:inherit
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible {
  outline:3px solid var(--blue);
  outline-offset:4px
}
button {
  border:0;
  background:none
}
input,select {
  border:1px solid var(--line);
  padding:12px;
  border-radius:10px;
  background:var(--white);
  min-height:44px
}
h1,h2,h3,p {
  margin:0
}
svg {
  width:20px;
  height:20px;
  display:block;
  flex:none
}
button[hidden],[hidden] {
  display:none!important
}
.blue {
  color:var(--blue)
}
.red {
  color:var(--red)
}
.muted {
  color:var(--muted)
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}
.skip-link {
  position:fixed;
  top:-60px;
  left:15px;
  background:var(--ink);
  color:white;
  padding:12px;
  z-index:100
}
.skip-link:focus {
  top:10px
}
.wrap {
  max-width:1320px;
  margin:0 auto;
  padding:0 48px
}
.topbar {
  height:96px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid var(--line)
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  padding:7px 0
}
.brand-symbol {
  display:flex;
  align-items:center;
  gap:5px
}
.brand-symbol i {
  width:17px;
  height:17px;
  background:var(--blue);
  border-radius:50%
}
.brand-symbol b {
  width:0;
  height:0;
  border-left:10px solid transparent;
  border-right:10px solid transparent;
  border-bottom:18px solid var(--red)
}
.brand-word {
  font-weight:950;
  font-size:29px;
  letter-spacing:-1.5px
}
.brand-note {
  margin-left:18px;
  border-left:1px solid var(--line);
  padding-left:20px;
  font-size:10px;
  font-weight:750;
  letter-spacing:1.8px;
  line-height:1.5;
  color:var(--muted)
}
.top-actions {
  display:flex;
  align-items:center;
  gap:10px
}
.mode-switch {
  display:flex;
  background:#e8e5dd;
  border-radius:100px;
  padding:4px
}
.mode-switch button {
  padding:10px 15px;
  border-radius:100px;
  min-height:40px;
  font-size:12px;
  font-weight:700;
  display:flex;
  gap:7px;
  align-items:center
}
.mode-switch button svg {
  width:15px;
  height:15px
}
.mode-switch button[aria-pressed=true] {
  background:var(--white);
  box-shadow:0 1px 4px #171b2410
}
.icon-btn {
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  font-size:20px
}
.icon-btn:hover {
  background:var(--white)
}
.icon-btn.dark {
  border-color:#364052;
  color:#eae9e3
}
.icon-btn.dark:hover {
  background:#283044
}
.hero {
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:64px;
  padding:60px 0 38px;
  align-items:center
}
.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  font-weight:800;
  display:flex;
  gap:9px;
  align-items:center;
  text-transform:uppercase
}
.status-dot {
  height:6px;
  width:6px;
  background:#45674f;
  border-radius:50%;
  box-shadow:0 0 0 4px #45674f12
}
.hero h1 {
  font-size:clamp(45px,5.1vw, 70px);
  line-height:1.02;
  letter-spacing:-3.4px;
  font-weight:900;
  margin:22px 0
}
.hero h1 em {
  font-style:normal;
  color:var(--blue);
  position:relative
}
.hero p {
  font-size:15px;
  line-height:1.65;
  color:var(--muted);
  max-width:365px;
  margin-bottom:27px
}
.hero-buttons {
  display:flex;
  gap:10px;
  align-items:center
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:13px 20px;
  border-radius:10px;
  font-weight:750;
  font-size:13px;
  border:1px solid var(--line);
  transition:transform .15s,background .15s
}
.btn:hover {
  transform:translateY(-1px);
  background:var(--white)
}
.btn.primary {
  background:var(--ink);
  color:var(--white);
  border-color:var(--ink)
}
.btn.primary:hover {
  background:#303746
}
.btn.primary svg {
  width:17px;
  height:17px
}
.btn.blue-btn {
  background:var(--blue);
  border-color:var(--blue);
  color:white
}
.btn.ghost {
  border-color:transparent;
  background:transparent
}
.btn.wide {
  width:100%
}
.hero-meta {
  display:flex;
  align-items:center;
  gap:17px;
  color:var(--muted);
  font-size:10px;
  font-weight:650;
  letter-spacing:.3px;
  margin-top:20px
}
.hero-meta span {
  display:flex;
  align-items:center;
  gap:5px
}
.hero-meta svg {
  width:13px;
  height:13px
}
.spotlight {
  position:relative;
  border-radius:20px;
  background:#11151f;
  color:var(--white);
  overflow:hidden;
  box-shadow:0 15px 35px #14213a0c
}
.spot-top {
  position:absolute;
  z-index:1;
  top:20px;
  left:23px;
  right:23px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  pointer-events:none
}
.spot-top span {
  font-size:9px;
  font-weight:800;
  letter-spacing:1.7px
}
.live-label {
  display:flex;
  gap:6px;
  align-items:center;
  color:#9ba8bb
}
.live-label i {
  width:5px;
  height:5px;
  background:#79dbc0;
  border-radius:50%
}
.hero-art {
  width:100%;
  height:300px;
  display:block;
  object-fit:contain;
  opacity:1
}
.spotlight-main {
  width:100%;
  display:block;
  padding:0;
  color:inherit;
  text-align:left
}
.spot-bottom {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  border-top:1px solid #ffffff12;
  padding:18px 23px 20px
}
.spot-title strong {
  font-size:21px;
  letter-spacing:-.5px;
  font-weight:850;
  display:block
}
.spot-title span {
  font-size:11px;
  color:#9ba8bb;
  display:block;
  margin-top:5px
}
.spot-play {
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#f3f0e8;
  color:#171b24;
  flex:none
}
.spot-bottom svg {
  width:15px;
  height:15px
}
.spotlight-main:hover .spot-play {
  background:#538aff;
  color:white
}
.rivalry {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:32px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px 28px;
  background:#ffffff28;
  margin-bottom:48px
}
.rival-player {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0
}
.rival-player:last-child {
  justify-content:flex-end
}
.player-badge {
  width:38px;
  height:38px;
  border-radius:50%;
  background:#3569da12;
  display:grid;
  place-items:center;
  font-size:18px;
  flex:none
}
.player-badge.red {
  background:#cb3c4c10
}
.rival-player strong {
  font-size:12px;
  letter-spacing:.5px;
  display:block;
  text-transform:uppercase;
  max-width:160px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.rival-player span.small {
  font-size:10px;
  color:var(--muted);
  margin-top:5px;
  display:block
}
.keys {
  display:flex;
  gap:4px;
  margin-left:8px
}
.keys kbd {
  font:650 10px/1 ui-monospace,monospace;
  border:1px solid var(--line);
  border-bottom-width:2px;
  min-width:23px;
  height:25px;
  display:grid;
  place-items:center;
  background:var(--white);
  border-radius:5px;
  color:var(--muted)
}
.rival-score {
  text-align:center
}
.rival-score small {
  display:block;
  font-size:8px;
  font-weight:750;
  letter-spacing:1.6px;
  color:var(--muted);
  margin-bottom:5px
}
.rival-score strong {
  font-size:23px;
  letter-spacing:4px;
  font-weight:850;
  font-variant-numeric:tabular-nums
}
.rival-score .separator {
  color:#bab9b5;
  margin:0 8px
}
.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin:8px 0 25px
}
.section-heading h2 {
  font-size:26px;
  letter-spacing:-1px;
  font-weight:850
}
.section-heading p {
  font-size:12px;
  margin-top:6px;
  color:var(--muted)
}
.text-button {
  font-size:12px;
  font-weight:750;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 4px
}
.text-button svg {
  width:15px;
  height:15px
}
.filters {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-bottom:25px
}
.filter {
  padding:10px 16px;
  border-radius:100px;
  min-height:40px;
  font-size:12px;
  font-weight:650;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:6px
}
.filter[aria-pressed=true] {
  background:var(--ink);
  color:var(--white)
}
.filter:not([aria-pressed=true]):hover {
  background:#e6e3dc
}
.filter svg {
  width:13px;
  height:13px
}
.game-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:26px 20px
}
.game-card {
  min-width:0;
  position:relative
}
.card-visual {
  width:100%;
  aspect-ratio:1.77;
  overflow:hidden;
  border-radius:12px;
  background:#171c29;
  display:block;
  padding:0;
  position:relative;
  transition:transform .18s
}
.card-visual:hover {
  transform:translateY(-3px)
}
.card-visual img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover
}
.card-play {
  position:absolute;
  right:12px;
  bottom:12px;
  background:#f7f3e9e8;
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  border-radius:50%;
  color:var(--ink);
  opacity:0;
  transform:translateX(5px);
  transition:opacity .15s,transform .15s
}
.card-visual:hover .card-play,.card-visual:focus-visible .card-play {
  opacity:1;
  transform:none
}
.card-play svg {
  width:12px;
  height:12px
}
.card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 0 0;
  gap:5px
}
.card-title {
  padding:0;
  min-height:28px;
  font-size:14px;
  font-weight:800;
  letter-spacing:-.25px;
  text-align:left
}
.favorite {
  padding:6px;
  display:flex;
  justify-content:center;
  align-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  margin-right:-5px;
  flex:none;
  color:#939497
}
.favorite svg {
  width:16px;
  height:16px
}
.favorite:hover {
  background:#e4e1d9
}
.favorite[aria-pressed=true] {
  color:var(--blue)
}
.card-description {
  font-size:10.5px;
  line-height:1.5;
  color:var(--muted);
  padding-right:20px;
  min-height:31px
}
.card-meta {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:9px;
  margin-top:8px;
  color:#6b7078
}
.card-meta .category {
  font-size:8px;
  letter-spacing:.65px;
  text-transform:uppercase;
  font-weight:750
}
.card-meta .coop {
  color:#357159
}
.card-info {
  margin-left:auto;
  padding:2px;
  min-width:25px;
  min-height:25px;
  display:grid;
  place-items:center
}
.card-info svg {
  width:14px;
  height:14px
}
.empty-state {
  grid-column:1/-1;
  padding:60px 25px;
  text-align:center;
  border:1px dashed var(--line);
  border-radius:15px
}
.empty-state p {
  margin-top:10px;
  color:var(--muted);
  font-size:13px
}
.coop-banner {
  display:flex;
  gap:30px;
  align-items:center;
  justify-content:space-between;
  border-radius:16px;
  margin-top:44px;
  padding:30px 35px;
  background:#e5e9de;
  border:1px solid #d7dece
}
.coop-banner h3 {
  font-size:22px;
  letter-spacing:-.7px
}
.coop-banner p {
  color:#687364;
  font-size:12px;
  margin-top:6px
}
.coop-banner .eyebrow {
  font-size:8px;
  margin-bottom:10px;
  color:#58734d
}
.footer {
  border-top:1px solid var(--line);
  margin-top:55px;
  padding:25px 0 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
  font-size:10px
}
.footer-left {
  display:flex;
  align-items:center;
  gap:12px
}
.footer strong {
  color:var(--ink);
  font-size:14px;
  letter-spacing:-.6px
}
.footer-actions {
  display:flex;
  gap:12px
}
.footer-actions button {
  padding:8px;
  font-size:10px;
  text-decoration:underline;
  text-underline-offset:3px;
  min-height:36px
}
body.playing {
  overflow:hidden;
  overscroll-behavior:none;
  background:#11151f
}
#play-screen {
  position:fixed;
  inset:0;
  z-index:5;
  background:#11151f;
  color:#f7f3e9;
  display:flex;
  flex-direction:column;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  height:100vh;
  height:100dvh;
  overscroll-behavior:none
}
#play-screen .blue {
  color:var(--game-blue)
}
#play-screen .red {
  color:var(--game-red)
}
.play-header {
  display:flex;
  align-items:center;
  gap:15px;
  height:76px;
  flex:none;
  padding:10px 28px;
  border-bottom:1px solid #ffffff0d
}
.play-title {
  min-width:0
}
.play-title span {
  font-size:8px;
  letter-spacing:1.7px;
  color:#9ba8bb;
  font-weight:750;
  text-transform:uppercase
}
.play-title h1 {
  font-size:21px;
  letter-spacing:-.6px;
  font-weight:800;
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.play-actions {
  margin-left:auto;
  display:flex;
  gap:9px;
  align-items:center
}
.pause-button {
  background:#293245;
  color:#f7f3e9;
  display:flex;
  align-items:center;
  gap:7px;
  padding:12px 16px;
  border-radius:100px;
  min-height:44px;
  font-size:12px;
  font-weight:650
}
.game-hud {
  height: 70px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  align-items:center;
  padding:9px 7%;
  flex:none;
  background:#151b27;
  border-bottom:1px solid #ffffff06
}
.score {
  display:flex;
  align-items:center;
  gap:20px;
  min-width:0
}
.score:last-child {
  justify-content:flex-end
}
.score span {
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  max-width:140px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.score strong {
  font-size:29px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  font-weight:850;
  letter-spacing:-.6px
}
.hud-center {
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:5px
}
.hud-center strong {
  font-size:15px;
  letter-spacing:1px
}
.hud-center span {
  font-size:10px;
  color:#9ba8bb
}
#stage {
  position:relative;
  flex:1;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#10151f;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  overscroll-behavior:none;
  overflow:hidden
}
#game-canvas {
  display:block;
  touch-action:none;
  outline:none
}
.control-rail {
  height:46px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 28px;
  border-top:1px solid #ffffff10;
  flex:none;
  gap:15px;
  font-size:10px;
  font-weight:650;
  letter-spacing:.2px
}
.control-rail #cup-hud {
  color:#9ba8bb;
  font-size:9px;
  text-align:center
}
.game-overlay {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#070b13aa;
  backdrop-filter:blur(8px);
  z-index:8;
  padding:24px;
  overflow:auto
}
.result-panel {
  background:var(--paper);
  color:var(--ink);
  padding:34px;
  border-radius:22px;
  width:430px;
  max-width:100%;
  box-shadow:0 30px 90px #00000055;
  text-align:center
}
.result-panel .eyebrow {
  justify-content:center;
  color:var(--muted);
  font-size:9px
}
.result-panel h2 {
  font-size:37px;
  letter-spacing:-1.8px;
  line-height:1.05;
  margin:18px 0 12px
}
.result-panel p {
  font-size:12px;
  color:var(--muted);
  line-height:1.6;
  margin-bottom:18px
}
.result-mark {
  width:60px;
  height:60px;
  margin:0 auto 15px;
  display:grid;
  place-items:center;
  font-size:28px;
  background:#3569da12;
  border-radius:50%;
  color:var(--blue)
}
.result-mark.red {
  background:#cb3c4c12;
  color:var(--red)
}
.result-buttons {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:20px
}
.result-buttons .btn {
  min-height:47px
}
.result-score {
  font-size:35px;
  letter-spacing:9px;
  font-weight:850;
  margin:15px 0
}
.keyboard-note {
  font-size:9px;
  color:var(--muted);
  margin-top:15px
}
.result-panel .cup-progress {
  margin-top:15px;
  background:#e7e4dc;
  border-radius:10px;
  padding:12px;
  display:flex;
  justify-content:center;
  gap:15px;
  font-size:12px;
  font-weight:700
}
.result-panel .help-rule {
  text-align:left;
  padding:14px;
  background:#e9e6de;
  border-radius:10px
}
.result-panel .help-rule strong {
  font-size:11px;
  display:block;
  margin-bottom:7px
}
.result-panel .help-rule p {
  margin:0
}
#rotate-message {
  position:absolute;
  inset:0;
  background:#11151f;
  z-index:9;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:24px
}
.rotate-symbol {
  font-size:72px;
  transform:rotate(-90deg);
  color:#538aff;
  margin-bottom:20px
}
#rotate-message h2 {
  font-size:29px;
  letter-spacing:-1px
}
#rotate-message p {
  font-size:13px;
  color:#9ba8bb;
  line-height:1.7;
  margin:15px 0 25px
}
.dialog {
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--paper);
  color:var(--ink);
  padding:30px;
  width:500px;
  max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 40px);
  overflow:auto;
  box-shadow:0 30px 100px #10152244
}
.dialog::backdrop {
  background:#10152299;
  backdrop-filter:blur(4px)
}
.dialog-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:22px
}
.dialog-top h2 {
  font-size:27px;
  letter-spacing:-1px;
  line-height:1.1
}
.dialog-top .icon-btn {
  width:36px;
  height:36px
}
.dialog>p {
  font-size:13px;
  line-height:1.65;
  color:var(--muted);
  margin-bottom:18px
}
.dialog-preview {
  width:100%;
  border-radius:12px;
  display:block;
  margin-bottom:20px;
  aspect-ratio:16/9;
  object-fit:cover
}
.dialog-controls {
  border:1px solid var(--line);
  border-radius:12px;
  padding:15px;
  margin:17px 0
}
.dialog-controls strong {
  display:block;
  text-transform:uppercase;
  font-size:9px;
  letter-spacing:1px;
  margin-bottom:8px
}
.dialog-controls p {
  font-size:12px;
  line-height:1.55;
  color:var(--muted)
}
.field {
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:12px;
  margin:17px 0
}
.field>span {
  font-weight:750
}
.field small {
  font-size:11px;
  color:var(--muted);
  line-height:1.5
}
.field-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:15px 0;
  border-bottom:1px solid var(--line)
}
.field-row label {
  font-size:13px;
  font-weight:650
}
.field-row small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:4px;
  font-weight:400
}
.field-row input[type=checkbox] {
  width:22px;
  height:22px;
  min-height:0;
  accent-color:var(--blue);
  cursor:pointer
}
.field-row input[type=range] {
  width:150px;
  padding:0;
  accent-color:var(--blue);
  border:0
}
.name-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px
}
.name-fields input {
  width:100%
}
.dialog-section {
  font-size:10px;
  letter-spacing:1.3px;
  font-weight:800;
  margin:24px 0 5px;
  text-transform:uppercase;
  color:var(--muted)
}
.dialog-footer {
  margin-top:25px;
  display:flex;
  gap:10px;
  justify-content:flex-end
}
.cup-options {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin:20px 0
}
.cup-size {
  background:#e9e6de;
  border:1px solid transparent;
  border-radius:12px;
  padding:15px 4px;
  min-height:88px
}
.cup-size[aria-pressed=true] {
  background:var(--ink);
  color:var(--paper)
}
.cup-size strong {
  display:block;
  font-size:24px
}
.cup-size span {
  font-size:9px;
  display:block;
  margin-top:5px
}
.cup-list {
  list-style:none;
  padding:0;
  margin:15px 0
}
.cup-list li {
  display:flex;
  gap:12px;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:10px 0;
  font-size:12px
}
.cup-list li span {
  color:var(--muted);
  width:22px;
  font-variant-numeric:tabular-nums
}
.data-buttons {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px
}
.data-buttons .btn {
  font-size:10px;
  min-height:40px
}
.stat-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  text-align:center;
  margin:20px 0
}
.stat-grid>div {
  background:#e8e5dd;
  border-radius:12px;
  padding:18px 8px
}
.stat-grid strong {
  display:block;
  font-size:28px
}
.stat-grid span {
  display:block;
  font-size:9px;
  color:var(--muted);
  margin-top:6px
}
.toast {
  position:fixed;
  bottom:28px;
  left:50%;
  transform:translate(-50%,15px);
  z-index:100;
  background:#151c2d;
  color:#f7f3e9;
  padding:13px 20px;
  border-radius:11px;
  font-size:12px;
  max-width:calc(100vw - 32px);
  box-shadow:0 10px 40px #0003;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
  text-align:center;
  line-height:1.5
}
.toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
@media(min-width:1450px) {
  .hero h1 {
    font-size: 70px
  }
  .hero-art {
    height:320px
  }
}
@media(max-width:1100px) {
  .wrap {
    padding:0 30px
  }
  .hero {
    gap:34px;
    padding-top:45px
  }
  .hero h1 {
    font-size:56px
  }
  .hero-art {
    height:280px
  }
  .brand-note {
    display:none
  }
  .game-grid {
    gap:24px 17px
  }
  .keys {
    display:none
  }
  .rivalry {
    gap:20px
  }
  .card-description {
    font-size:10px
  }
}
@media(max-width:800px) {
  .wrap {
    padding:0 23px
  }
  .hero {
    gap:24px;
    padding-top:36px
  }
  .hero h1 {
    font-size:46px;
    letter-spacing:-2.4px
  }
  .hero p {
    font-size:12px
  }
  .hero-art {
    height:235px
  }
  .hero .eyebrow {
    font-size:8px
  }
  .hero .btn {
    padding:12px 14px;
    font-size:11px
  }
  .hero-meta {
    gap:10px;
    font-size:8px
  }
  .spot-bottom {
    padding:14px 17px
  }
  .spot-title strong {
    font-size:17px
  }
  .spot-title span {
    font-size:10px
  }
  .topbar {
    height:79px
  }
  .game-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .rivalry {
    padding:16px 20px;
    margin-bottom:35px
  }
  .player-badge {
    width:31px;
    height:31px
  }
  .rival-player {
    gap:9px
  }
  .rival-player strong {
    font-size:10px
  }
  .rival-player span.small {
    font-size:9px
  }
  .rival-score strong {
    font-size:20px
  }
  .rival-score .separator {
    margin:0 3px
  }
  .control-rail {
    padding:9px 15px
  }
  .game-hud {
    padding-left:4%;
    padding-right:4%
  }
  .score {
    gap:10px
  }
  .score strong {
    font-size:25px
  }
}
@media(max-width:600px) {
  .wrap {
    padding:0 19px
  }
  .topbar {
    height:74px;
    gap:10px
  }
  .brand-word {
    font-size:24px
  }
  .brand {
    gap:8px
  }
  .brand-symbol {
    gap:3px
  }
  .brand-symbol i {
    width:13px;
    height:13px
  }
  .brand-symbol b {
    border-left-width:8px;
    border-right-width:8px;
    border-bottom-width:14px
  }
  .top-actions {
    gap:6px
  }
  .mode-switch button {
    padding:9px 11px;
    min-height:35px
  }
  .mode-switch .mode-label {
    display:none
  }
  .top-actions .icon-btn {
    width:37px;
    height:37px
  }
  .top-actions .icon-btn svg {
    width:16px;
    height:16px
  }
  .hero {
    grid-template-columns:1fr;
    gap:27px;
    padding:34px 0 25px
  }
  .hero h1 {
    font-size:55px;
    letter-spacing:-2.8px;
    margin:19px 0 16px
  }
  .hero p {
    font-size:13px;
    max-width:310px;
    margin-bottom:21px
  }
  .hero .eyebrow {
    font-size:9px
  }
  .hero .btn {
    padding:13px 19px;
    font-size:12px
  }
  .hero-meta {
    font-size:9px;
    margin-top:17px;
    gap:14px
  }
  .hero-art {
    height:225px
  }
  .spot-top {
    top:16px;
    left:18px;
    right:18px
  }
  .spot-top span {
    font-size:8px
  }
  .spotlight {
    border-radius:15px
  }
  .spot-title strong {
    font-size:18px
  }
  .rivalry {
    gap:10px;
    padding:15px 12px;
    margin-bottom:30px
  }
  .rival-player .player-badge {
    display:none
  }
  .rival-player strong {
    font-size:10px;
    max-width: 90px
  }
  .rival-score small {
    font-size:7px
  }
  .rival-score strong {
    font-size:20px
  }
  .rival-score .separator {
    margin:0
  }
  .section-heading {
    align-items:center;
    gap:10px;
    margin-bottom:20px
  }
  .section-heading h2 {
    font-size:23px
  }
  .section-heading p {
    font-size:10px;
    line-height:1.4;
    max-width:195px
  }
  .text-button {
    font-size:10px
  }
  .filters {
    gap:2px;
    margin-bottom:20px
  }
  .filter {
    padding:9px 11px;
    min-height:36px;
    font-size:10px
  }
  .game-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px 13px
  }
  .card-visual {
    border-radius:9px
  }
  .card-top {
    padding-top:8px
  }
  .card-title {
    font-size:12px
  }
  .card-description {
    font-size:10px;
    min-height:32px;
    padding-right:0
  }
  .favorite {
    width:30px;
    height:32px;
    padding:6px
  }
  .card-meta {
    gap:6px;
    font-size:8px
  }
  .card-meta .category {
    font-size:7px
  }
  .card-info {
    min-width:24px;
    min-height:30px
  }
  .card-meta .time-label {
    display:none
  }
  .coop-banner {
    padding:23px;
    gap:15px;
    flex-wrap:wrap;
    margin-top:32px
  }
  .coop-banner h3 {
    font-size:21px
  }
  .coop-banner p {
    font-size:11px
  }
  .coop-banner .btn {
    min-height:43px;
    font-size:11px
  }
  .footer {
    margin-top:32px;
    gap:15px;
    flex-wrap:wrap;
    font-size:9px
  }
  .footer-actions {
    gap:5px
  }
  .dialog {
    padding:22px;
    border-radius:17px
  }
  .dialog-top h2 {
    font-size:24px
  }
  .dialog-controls p {
    font-size:11px
  }
  .result-panel {
    padding:25px
  }
  .play-title h1 {
    font-size:18px
  }
  .play-header {
    padding:8px 14px;
    height:63px
  }
  .play-actions {
    gap:5px
  }
  .play-header .icon-btn {
    width:38px;
    height:38px
  }
  .pause-button {
    min-height:38px;
    padding:9px 12px
  }
  .game-hud {
    height:64px
  }
  .score span {
    font-size:9px;
    max-width:90px
  }
  .score strong {
    font-size:22px
  }
  .hud-center strong {
    font-size:11px
  }
  .hud-center span {
    font-size:8px
  }
  .control-rail {
    font-size:9px;
    gap:6px
  }
  .control-rail #cup-hud {
    font-size:8px
  }
}
@media(orientation:landscape) and (max-height:540px) {
  .play-header {
    height:46px;
    padding:4px 15px;
    gap:10px
  }
  .play-header .icon-btn {
    width:36px;
    height:36px
  }
  .play-title span {
    display:none
  }
  .play-title h1 {
    font-size:16px;
    margin:0
  }
  .play-actions {
    gap:6px
  }
  .pause-button {
    min-height:35px;
    padding:7px 13px;
    font-size:11px
  }
  .game-hud {
    height:47px;
    padding:4px 7%;
    grid-template-columns:1fr 1.5fr 1fr
  }
  .score strong {
    font-size:21px
  }
  .score span {
    font-size:9px
  }
  .hud-center {
    gap:3px
  }
  .hud-center strong {
    font-size:11px
  }
  .hud-center span {
    font-size:8px
  }
  .control-rail {
    height:30px;
    padding:5px 17px;
    font-size:9px
  }
  .result-panel {
    width:490px;
    max-height:calc(100dvh - 25px);
    overflow:auto;
    padding:20px 27px
  }
  .result-panel h2 {
    font-size:27px;
    margin:8px 0
  }
  .result-panel .result-mark {
    display:none
  }
  .result-panel .result-score {
    font-size:26px;
    margin:8px 0
  }
  .result-panel p {
    font-size:11px;
    margin-bottom:10px
  }
  .result-buttons {
    margin-top:12px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px
  }
  .result-buttons .btn:first-child {
    grid-column:1/-1
  }
  .result-buttons .btn {
    min-height:39px;
    padding:8px 14px;
    font-size:11px
  }
  .keyboard-note {
    display:none
  }
  .result-panel .cup-progress {
    margin-top:8px;
    padding:8px
  }
  .dialog {
    max-height:calc(100dvh - 20px);
    padding:20px
  }
  .game-overlay {
    padding:12px
  }
  .dialog-preview {
    max-height:140px;
    object-fit:cover
  }
  .dialog-top {
    margin-bottom:14px
  }
}
@media(pointer:coarse) {
  .favorite {
    min-width:36px;
    min-height:36px
  }
  .card-info {
    min-width:32px;
    min-height:32px
  }
  .filter {
    min-height:40px
  }
  .card-play {
    opacity:1;
    transform:none;
    width:25px;
    height:25px;
    right:8px;
    bottom:8px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important
  }
}
body.reduced-motion *,body.reduced-motion *::before,body.reduced-motion *::after {
  scroll-behavior:auto!important;
  transition:none!important;
  animation:none!important
}
/* Physical touch targets include their padding, not just the drawn glyph. */ @media(pointer:coarse) {
  .favorite,.card-info,.icon-btn,.top-actions .icon-btn {
    min-width:44px;
    min-height:44px
  }
  .filter,.mode-switch button,.pause-button {
    min-height:44px
  }
  .play-header {
    min-height:52px
  }
  .dialog-top .icon-btn {
    min-width:44px;
    min-height:44px
  }
  .field-row:has(input[type=checkbox]) {
    min-height:64px
  }
  .field-row label {
    min-height:44px;
    display:flex;
    flex-direction:column;
    justify-content:center
  }
  .result-buttons .btn {
    min-height:44px
  }
}
/* Phase 3: touch gameplay uses the screen as a play surface, not a stacked desktop page. */ #play-screen[data-mode="touch"] .play-header, #play-screen[data-mode="touch"] .game-hud, #play-screen[data-mode="touch"] .control-rail {
  transition:opacity .18s ease,transform .18s ease,background .18s ease
}
@media(orientation:landscape) and (max-height:540px) {
  #play-screen[data-mode="touch"] {
    display:block;
    padding:0;
  }
  #play-screen[data-mode="touch"] #stage {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    min-height:0;
  }
  #play-screen[data-mode="touch"] .play-header {
    position:absolute;
    z-index:7;
    top:max(4px,env(safe-area-inset-top));
    left:max(5px,env(safe-area-inset-left));
    right:max(5px,env(safe-area-inset-right));
    height:48px;
    min-height:48px;
    padding:3px 4px;
    border:0;
    background:linear-gradient(180deg,#0b101bd9 0%,#0b101b82 72%,transparent 100%);
    pointer-events:none;
  }
  #play-screen[data-mode="touch"] .play-header button {
    pointer-events:auto;
  }
  #play-screen[data-mode="touch"] .play-title {
    max-width:25vw;
    margin-left:2px;
  }
  #play-screen[data-mode="touch"] .play-title span {
    display:none;
  }
  #play-screen[data-mode="touch"] .play-title h1 {
    font-size:13px;
    margin:0;
    opacity:.86;
  }
  #play-screen[data-mode="touch"] .play-actions {
    margin-left:auto;
    gap:3px;
  }
  #play-screen[data-mode="touch"] .play-header .icon-btn, #play-screen[data-mode="touch"] .pause-button {
    min-width:44px;
    width:44px;
    height:44px;
    min-height:44px;
    padding:0;
    border-radius:12px;
    background:#111827c7;
    backdrop-filter:blur(8px);
  }
  #play-screen[data-mode="touch"] .pause-button span {
    display:none;
  }
  #play-screen[data-mode="touch"] .game-hud {
    position:absolute;
    z-index:6;
    top:max(5px,env(safe-area-inset-top));
    left:50%;
    transform:translateX(-50%);
    width:min(45vw,390px);
    height:39px;
    padding:3px 9px;
    border:1px solid #ffffff14;
    border-radius:13px;
    background:#101722c9;
    backdrop-filter:blur(8px);
    grid-template-columns:1fr 1.25fr 1fr;
    pointer-events:none;
  }
  #play-screen[data-mode="touch"] .game-hud .score {
    gap:5px;
  }
  #play-screen[data-mode="touch"] .game-hud .score span {
    font-size:7px;
    max-width:64px;
    opacity:.8;
  }
  #play-screen[data-mode="touch"] .game-hud .score strong {
    font-size:17px;
  }
  #play-screen[data-mode="touch"] .hud-center {
    gap:0;
    min-width:0;
  }
  #play-screen[data-mode="touch"] .hud-center strong {
    font-size:9px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  #play-screen[data-mode="touch"] .hud-center span {
    font-size:6.5px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  #play-screen[data-mode="touch"] .control-rail {
    position:absolute;
    z-index:7;
    left:50%;
    bottom:max(7px,env(safe-area-inset-bottom));
    transform:translate(-50%,8px);
    width:min(94vw,760px);
    height:33px;
    padding:5px 12px;
    border:1px solid #ffffff16;
    border-radius:13px;
    background:#0c121dcc;
    backdrop-filter:blur(8px);
    opacity:0;
    pointer-events:none;
    font-size:8px;
  }
  #play-screen[data-mode="touch"].show-touch-hints .control-rail {
    opacity:1;
    transform:translate(-50%,0);
  }
  #play-screen[data-mode="touch"] .control-rail #cup-hud {
    display:none;
  }
  #play-screen[data-mode="touch"] #game-canvas {
    max-width:100%;
    max-height:100%;
  }
  #play-screen[data-mode="touch"] .game-overlay {
    z-index:10;
  }
}
/* Keyboard remapping and rollover tester. */ .keyboard-settings-row > div {
  display:flex;
  flex-direction:column;
  gap:4px
}
.keyboard-settings-row small, .binding-note {
  color:var(--muted);
  font-size:10px;
  line-height:1.5
}
.binding-players {
  display:grid;
  gap:12px;
  margin:16px 0 20px
}
.binding-player {
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px
}
.binding-player-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  font-size:10px;
  color:var(--muted)
}
.binding-player-head strong {
  font-size:11px;
  letter-spacing:.6px
}
.binding-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px
}
.binding-key {
  min-width:0;
  min-height:54px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.5px
}
.binding-key kbd {
  min-width:30px;
  font-size:11px
}
.binding-key.listening {
  border-color:var(--ink);
  box-shadow:0 0 0 2px #11182718
}
.binding-key.listening kbd {
  min-width:70px
}
.key-tester {
  display:grid;
  gap:8px;
  margin:12px 0 4px
}
.key-tester-row {
  display:flex;
  align-items:center;
  gap:6px
}
.key-tester-row > span {
  width:44px;
  font-size:8px;
  font-weight:800;
  letter-spacing:.7px
}
.key-test {
  min-width:35px;
  text-align:center;
  transition:transform .08s ease,background .08s ease,color .08s ease
}
.key-test.active {
  transform:translateY(1px) scale(.96);
  background:var(--ink);
  color:#fff
}
@media(max-width:620px) {
  .binding-grid {
    grid-template-columns:repeat(2,1fr)
  }
}
/* Phase 8 — shell, discovery, cup and accessibility polish */ .section-actions {
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap
}
.quick-strip {
  display:grid;
  grid-template-columns:1.25fr repeat(4,1fr);
  gap:8px;
  align-items:stretch;
  padding:12px;
  margin:0 0 22px;
  background:#ebe8e0;
  border:1px solid var(--line);
  border-radius:15px
}
.quick-strip>div {
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px
}
.quick-strip>div .eyebrow {
  font-size:8px;
  color:var(--muted)
}
.quick-strip>div strong {
  font-size:12px;
  letter-spacing:-.2px
}
.quick-strip>button {
  min-height:66px;
  text-align:left;
  padding:9px 11px;
  border-radius:10px;
  background:var(--white);
  border:1px solid #dedbd3;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:3px;
  transition:transform .15s,border-color .15s,box-shadow .15s
}
.quick-strip>button:hover,.quick-strip>button:focus-visible {
  transform:translateY(-1px);
  border-color:#c9c6bd;
  box-shadow:0 6px 15px #171b240a
}
.quick-strip>button span {
  font-size:7px;
  letter-spacing:1px;
  font-weight:850;
  color:var(--muted)
}
.quick-strip>button strong {
  display:flex;
  gap:6px;
  align-items:center;
  font-size:11px
}
.quick-strip>button strong svg {
  width:13px;
  height:13px
}
.quick-strip>button small {
  font-size:8px;
  color:var(--muted)
}
.quick-strip .quick-surprise {
  background:var(--ink);
  color:var(--white);
  border-color:var(--ink)
}
.quick-strip .quick-surprise span,.quick-strip .quick-surprise small {
  color:#aeb6c4
}
.rival-score em {
  display:block;
  margin-top:3px;
  font-style:normal;
  font-size:7px;
  letter-spacing:1px;
  color:var(--muted);
  font-weight:800
}
.card-badges {
  position:absolute;
  top:10px;
  left:10px;
  right:10px;
  display:flex;
  align-items:center;
  gap:5px;
  pointer-events:none
}
.card-badges b,.card-badges i {
  font-style:normal;
  font-size:7px;
  line-height:1;
  padding:6px 7px;
  border-radius:100px;
  letter-spacing:.7px;
  text-transform:uppercase;
  backdrop-filter:blur(7px)
}
.card-badges b {
  background:#f5f1e6e8;
  color:#171b24;
  font-weight:900
}
.card-badges i {
  background:#111722b8;
  color:#dfe5ef;
  font-weight:700
}
.favorite,.card-info {
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px
}
.favorite {
  margin-right:-7px
}
.card-info {
  margin-right:-9px;
  border-radius:50%
}
.card-info:hover {
  background:#e4e1d9
}
.card-title {
  min-height:44px;
  display:flex;
  align-items:center
}
.filter {
  min-height:44px
}
.game-intro {
  position:absolute;
  z-index:4;
  left:50%;
  top:22px;
  transform:translateX(-50%);
  width:min(620px,calc(100% - 32px));
  padding:13px 17px;
  border-radius:13px;
  background:#0a0f19e8;
  color:#f7f4ec;
  border:1px solid #ffffff1f;
  box-shadow:0 12px 35px #0005;
  backdrop-filter:blur(9px);
  text-align:center;
  pointer-events:none;
  animation:intro-in .18s ease-out
}
.game-intro.leaving {
  opacity:0;
  transform:translate(-50%,-5px);
  transition:opacity .18s,transform .18s
}
.game-intro-kicker {
  font-size:7px;
  letter-spacing:1.4px;
  font-weight:900;
  color:#9db7fa;
  margin-bottom:5px
}
.game-intro strong {
  display:block;
  font-size:11px;
  line-height:1.4
}
.game-intro span {
  display:block;
  font-size:9px;
  line-height:1.4;
  color:#b8c0ce;
  margin-top:4px
}
@keyframes intro-in {
  from {
    opacity:0;
    transform:translate(-50%,-6px)
  }
  to {
    opacity:1;
    transform:translate(-50%,0)
  }
}
.result-panel {
  width:460px
}
.result-panel.blue-win {
  box-shadow:0 30px 90px #0008,0 0 0 1px #3569da26
}
.result-panel.red {
  box-shadow:0 30px 90px #0008,0 0 0 1px #cb3c4c26
}
.result-panel.team {
  box-shadow:0 30px 90px #0008,0 0 0 1px #3f795426
}
.result-reason {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:10px 0;
  margin:12px 0 4px
}
.result-reason>span {
  display:block;
  font-size:7px;
  letter-spacing:1.35px;
  font-weight:850;
  color:#8b8d91;
  margin-bottom:4px
}
.result-reason p {
  margin:0;
  font-size:11px;
  color:#555a63
}
.score-colon {
  color:#aaa
}
.session-result {
  display:grid;
  grid-template-columns:1fr auto auto auto 1fr;
  gap:9px;
  align-items:center;
  margin:10px 0 2px;
  padding:9px 12px;
  background:#e9e6de;
  border-radius:9px;
  font-size:11px
}
.session-result>span {
  font-size:7px;
  letter-spacing:1.1px;
  font-weight:850;
  color:var(--muted)
}
.session-result>i {
  font-style:normal;
  color:#999
}
.session-result>small {
  text-align:right;
  font-size:8px;
  color:var(--muted);
  font-weight:750
}
.result-buttons .btn.primary {
  min-height:54px;
  font-size:14px
}
.result-next {
  min-height:47px
}
.keyboard-note {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:5px
}
.keyboard-note kbd {
  background:#e5e2da;
  border:1px solid #d2cfc6;
  border-bottom-width:2px;
  border-radius:5px;
  min-width:24px;
  padding:3px 5px;
  color:#4d5159
}
.cup-track {
  list-style:none;
  padding:0;
  margin:10px 0 0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(68px,1fr));
  gap:5px
}
.cup-track li {
  min-width:0;
  padding:7px 5px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#ece9e2;
  text-align:center;
  opacity:.55
}
.cup-track li.done {
  opacity:1;
  background:#e6e3db
}
.cup-track li.next {
  opacity:1;
  border-color:#171b24;
  background:#fbf9f4
}
.cup-track li span {
  display:block;
  font-size:10px;
  font-weight:900;
  margin-bottom:2px
}
.cup-track li strong {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:7px
}
.cup-list li>div {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  flex:1
}
.cup-list li>div small {
  font-size:8px;
  color:var(--muted)
}
.cup-reorder {
  display:flex!important;
  width:auto!important;
  margin-left:auto;
  gap:3px;
  color:inherit!important
}
.cup-reorder button,.cup-exclude {
  width:34px;
  height:34px;
  border-radius:8px;
  background:#e7e4dc;
  display:grid;
  place-items:center;
  font-size:13px
}
.cup-reorder button:disabled {
  opacity:.25
}
.cup-exclude {
  margin-left:auto;
  color:#777
}
.cup-add-row {
  display:grid;
  grid-template-columns:1fr auto;
  align-items:end;
  gap:8px
}
.cup-add-row .field {
  margin:0
}
.cup-note {
  font-size:9px!important;
  color:var(--muted)!important;
  margin-top:8px!important
}
.cup-tools {
  display:flex;
  justify-content:flex-start;
  margin-top:12px
}
.exclusion-list {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin-top:15px;
  max-height:420px;
  overflow:auto
}
.exclusion-list button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:52px;
  text-align:left;
  padding:9px 10px;
  border-radius:9px;
  border:1px solid var(--line);
  background:var(--white)
}
.exclusion-list button span {
  min-width:0
}
.exclusion-list button strong,.exclusion-list button small {
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.exclusion-list button strong {
  font-size:10px
}
.exclusion-list button small {
  font-size:8px;
  color:var(--muted);
  margin-top:2px
}
.exclusion-list button b {
  font-size:7px;
  letter-spacing:.7px;
  color:#4e765d
}
.exclusion-list button[aria-pressed=true] {
  background:#f0e1e2;
  border-color:#e5c8cb
}
.exclusion-list button[aria-pressed=true] b {
  color:var(--red)
}
@media(max-width:900px) {
  .quick-strip {
    grid-template-columns:1fr 1fr
  }
  .quick-strip>div {
    grid-column:1/-1
  }
  .exclusion-list {
    grid-template-columns:1fr
  }
  .section-actions {
    gap:8px
  }
}
@media(max-width:600px) {
  .quick-strip {
    display:none
  }
  .favorite,.card-info {
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px
  }
  .card-meta {
    margin-top:3px
  }
  .card-meta>span:nth-of-type(n+4) {
    display:none
  }
  .result-panel {
    width:100%
  }
  .session-result {
    grid-template-columns:1fr auto auto auto 1fr
  }
}
@media(orientation:landscape) and (max-height:540px) {
  .game-intro {
    top:8px;
    width:min(580px,calc(100% - 120px));
    padding:8px 12px
  }
  .game-intro strong {
    font-size:9px
  }
  .game-intro span {
    font-size:8px
  }
  .result-reason {
    padding:5px 0;
    margin:6px 0 2px
  }
  .session-result {
    margin:5px 0;
    padding:6px 9px
  }
  .cup-track {
    display:none
  }
  .keyboard-note {
    margin-top:7px
  }
  .result-buttons .btn.primary {
    min-height:44px
  }
}
.reduced-motion .game-intro {
  animation:none
}
.reduced-motion .game-intro.leaving {
  transition:none
}
.reduced-motion .card-visual,.reduced-motion .btn,.reduced-motion .quick-strip>button {
  transition:none
}
/* Phase 10 local-only validation tools. Hidden unless ?playtest=1 enables them. */ .playtest-chip {
  min-width:44px;
  height:44px;
  padding:0 11px;
  border-radius:999px;
  border:1px solid #725b17;
  background:#fff6cf;
  color:#59440d;
  font-size:10px;
  font-weight:900;
  letter-spacing:1.2px
}
.playtest-chip:hover,.playtest-note:hover {
  background:#ffefad
}
.playtest-note {
  border-color:#c9ad53;
  background:#fff8da;
  color:#5d4b16
}
.playtest-privacy {
  border-left:3px solid #c4a33c;
  padding-left:12px
}
.playtest-session {
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  align-items:end;
  padding:14px;
  border:1px solid var(--line);
  border-radius:12px;
  margin:16px 0
}
.playtest-session span,.playtest-session small {
  display:block;
  color:var(--muted);
  font-size:9px;
  letter-spacing:1px
}
.playtest-session strong {
  display:block;
  margin:4px 0;
  font-size:18px;
  font-variant-numeric:tabular-nums
}
.playtest-metrics {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:12px
}
.playtest-metric {
  border:1px solid var(--line);
  background:var(--white);
  border-radius:10px;
  padding:11px
}
.playtest-metric span,.playtest-metric small {
  display:block;
  color:var(--muted);
  font-size:9px;
  line-height:1.4
}
.playtest-metric strong {
  display:block;
  margin:4px 0;
  font-size:21px
}
.playtest-coverage li span {
  width:auto;
  margin-left:auto;
  white-space:nowrap
}
.playtest-exports {
  flex-wrap:wrap
}
@media (max-width:640px) {
  .playtest-session {
    grid-template-columns:1fr
  }
  .playtest-metrics {
    grid-template-columns:1fr
  }
}
