@font-face {
  font-family: Barlow Condensed;
  src: url('assets/barlow-900.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #050605;
  --paper-light: #0e110c;
  --ink: #eef2e2;
  --muted: #8f9884;
  --line: #262c1f;
  --lime: #a8ee2a;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 310px; background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--lime) 13%, #050605) 0%, transparent 60%), var(--paper); color: var(--ink); font: 14px/1.45 var(--sans); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, canvas:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
svg { height: 19px; width: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; }
kbd { font: 700 11px/1 var(--mono); background: rgba(128, 128, 115, .09); border: 1px solid currentColor; border-radius: 3px; display: inline-grid; place-items: center; padding: 4px 6px; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.topbar { background: #000; border-bottom: 1px solid #1d2416; color: #f0f0e6; padding-top: env(safe-area-inset-top); }
.topbar-inner { max-width: 1512px; margin: auto; min-height: 58px; padding: 0 max(clamp(20px, 4.2vw, 68px), env(safe-area-inset-right)) 0 max(clamp(20px, 4.2vw, 68px), env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.identity { display: flex; align-items: center; gap: 10px; font: 900 22px/.9 var(--display); letter-spacing: .015em; white-space: nowrap; }
.brand-icon { width: 34px; height: 34px; display: grid; place-items: center; background: var(--lime); color: #050605; border-radius: 2px; box-shadow: 0 0 18px color-mix(in srgb, var(--lime) 40%, transparent); }
.brand-icon svg { width: 25px; height: 25px; }
.identity small { display: block; font: 600 9px/1 var(--mono); letter-spacing: .14em; margin: 4px 0 0; color: #a9af9f; }
.night { margin-left: auto; font: 700 12px/1 var(--mono); letter-spacing: .08em; color: var(--lime); white-space: nowrap; }
.top-actions { display: flex; gap: 8px; }
.quiet-button { background: transparent; border: 1px solid #ffffff22; border-radius: 4px; min-height: 35px; padding: 5px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.quiet-button svg { width: 17px; height: 17px; }

.layout { max-width: 1512px; padding: 0 clamp(20px, 4.2vw, 68px); margin: auto; }
.intro { min-height: 138px; padding: 21px 0 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.intro h1 { font: 900 clamp(64px, 7.4vw, 116px)/.76 var(--display); margin: 0; white-space: nowrap; letter-spacing: -.029em; color: var(--lime); text-shadow: 0 0 34px color-mix(in srgb, var(--lime) 33%, transparent); }
.intro h1 span { color: #f4f6ea; }
.intro p { margin: 0 2px 2px 0; font: 700 13px/1.3 var(--mono); letter-spacing: .04em; color: #9aa48d; text-align: right; text-transform: uppercase; }

.game-grid { --arena-height: clamp(315px, calc(100svh - 405px), 540px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(298px, 31.5%); gap: 14px; }
.machine { min-width: 0; border-radius: 8px; overflow: hidden; background: #0b0d0a; border: 1px solid #232a1b; }

.stat-bar { min-height: 51px; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 7px 12px 7px 17px; background: #0b0d0a; border-bottom: 1px solid #232a1b; color: #f0f2e6; }
.stats { margin: 0; display: flex; align-items: center; gap: 14px; min-width: 0; }
.stats > div { display: flex; gap: 7px; align-items: baseline; min-width: 0; }
.stats > div + div { border-left: 1px solid #2c3423; padding-left: 14px; }
.stats dt { color: #8f9884; font: 700 11px/1 var(--mono); letter-spacing: .08em; }
.stats dd { margin: 0; font: 900 23px/.95 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .025em; white-space: nowrap; }
.chip-button { pointer-events: auto; display: flex; align-items: center; gap: 6px; background: #151915d4; border: 1px solid #89978168; border-radius: 4px; min-height: 32px; padding: 5px 8px; color: #f0f2e8; font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.chip-button svg { width: 15px; height: 15px; }
.chip-button kbd { color: #bdc7b3; border-color: #6f7c66; }
.chip-button[aria-pressed="true"] { border-color: var(--accent, var(--lime)); }

.arena { --accent: #c7fa48; --glow: #5b7036; isolation: isolate; height: var(--arena-height); position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 52%, color-mix(in srgb, var(--accent) 17%, #0a0c09) 0%, #0b0e0a 42%, #030403 82%); user-select: none; -webkit-user-select: none; }
.arena-grid { position: absolute; inset: 0; background: radial-gradient(circle, #d0d8bf25 .8px, transparent 1.1px) 0 0 / 17px 17px; mask-image: radial-gradient(ellipse at 50% 39%, black 0%, #0009 55%, transparent 100%); pointer-events: none; }
.arena::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, #b2c58b02, transparent 70%), linear-gradient(0deg,#070a088f,transparent 28%); z-index: -1; }
.arena-word { position: absolute; top: 49%; left: 50%; transform: translate(-50%,-56%); font: 900 clamp(106px, 20vw, 294px)/.8 var(--display); letter-spacing: -.025em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.canvas-wrap { position: absolute; inset: 0; z-index: 1; }
.canvas-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: pointer; }
.rim { pointer-events: none; position: absolute; inset: 12px; z-index: 2; opacity: .49; --m: 11px; --t: 1px; --c: #a5b0a0; background:
  linear-gradient(var(--c),var(--c)) left top / var(--m) var(--t),
  linear-gradient(var(--c),var(--c)) left top / var(--t) var(--m),
  linear-gradient(var(--c),var(--c)) right top / var(--m) var(--t),
  linear-gradient(var(--c),var(--c)) right top / var(--t) var(--m),
  linear-gradient(var(--c),var(--c)) left bottom / var(--m) var(--t),
  linear-gradient(var(--c),var(--c)) left bottom / var(--t) var(--m),
  linear-gradient(var(--c),var(--c)) right bottom / var(--m) var(--t),
  linear-gradient(var(--c),var(--c)) right bottom / var(--t) var(--m);
  background-repeat: no-repeat;
}
.arena-interface { position: absolute; inset: 25px; pointer-events: none; color: #f4f6ea; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; }
.stage-top, .stage-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.specimen-number { font: 700 11px/1 var(--mono); color: var(--accent); letter-spacing: .11em; }
.specimen h2 { margin: 4px 0 0; font: 900 clamp(25px, 2.55vw, 41px)/.9 var(--display); max-width: 185px; }
.specimen p { margin: 7px 0 0; max-width: 190px; font: 600 12px/1.3 var(--mono); color: #c7cfbe; }
.status { color: #e4eadb; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 3px; border: 1px solid #bccab054; background: #151915a0; font: 700 12px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); }
.status.active { color: #050605; background: var(--accent); }
.status.active i { background: currentColor; box-shadow: none; }
.side-ruler { position: absolute; top: 42%; bottom: 23%; left: 0; display: flex; flex-direction: column; gap: 5px; color: #a6ad9c; align-items: start; font: 10px/1 var(--mono); }
.side-ruler i { flex: auto; width: 16px; border-left: 1px solid #9eaf9777; background: repeating-linear-gradient(0deg, #9eaf9766 0 1px, transparent 1px 9px) no-repeat left/8px 100%; }
.stage-bottom { align-items: center; }
.orbit-tip { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #c0c7ba; font-weight: 600; }
.orbit-tip svg { width: 17px; }
.toast { position: absolute; z-index: 4; left: 50%; bottom: 68px; transform: translateX(-50%); max-width: calc(100% - 40px); padding: 9px 14px; border: 2px solid var(--accent); background: #050605f2; color: var(--accent); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent); font: 900 clamp(19px, 2.4vw, 28px)/1 var(--display); letter-spacing: .02em; text-align: center; pointer-events: none; }
.arena-error { position: absolute; top: 50%; left: 50%; z-index: 5; transform: translate(-50%,-50%); width: min(76%, 340px); padding: 16px; border-radius: 4px; background: #171b13; color: #fff; }

.control-bar { min-height: 105px; padding: 13px 15px 13px 21px; display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(190px, 1.08fr); align-items: center; gap: 14px; color: #f7f7ef; border-top: 1px solid #232a1b; background: #0b0d0a; }
.instruments { min-width: 0; display: grid; gap: 10px; }
.instrument { min-width: 0; }
.instrument-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 700 12px/1 var(--mono); letter-spacing: .06em; margin-bottom: 6px; white-space: nowrap; }
.instrument-label span:last-child { color: var(--lime); font-variant-numeric: tabular-nums; }
.instrument-label span:first-child { overflow: hidden; text-overflow: ellipsis; }
#compression-value { font: 900 24px/.8 var(--display); letter-spacing: 0; }
meter { position: absolute; width: 1px; height: 1px; opacity: 0; }
.meter-bars { height: 11px; background: #2a3120; mask-image: repeating-linear-gradient(to right, #000 0 calc(11.111% - 3px), transparent calc(11.111% - 3px) 11.111%); }
.meter-bars div { width: 0%; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--lime) 62%, #000), var(--lime)); box-shadow: 0 0 12px var(--lime); }
.next-bar { height: 5px; background: #2a3120; border-radius: 1px; overflow: hidden; }
.next-bar div { width: 0%; height: 100%; background: #e9eedc; transition: width .2s linear; }
.crush-button { min-height: 62px; border: 1px solid color-mix(in srgb, var(--lime) 70%, #fff); border-radius: 4px; background: var(--lime); color: #050605; box-shadow: 0 0 26px color-mix(in srgb, var(--lime) 25%, transparent); display: flex; align-items: center; justify-content: center; gap: 8px; font: 900 30px/1 var(--display); letter-spacing: .03em; padding: 8px 13px; user-select: none; -webkit-user-select: none; touch-action: none; }
.crush-button:active:not(:disabled) { background: color-mix(in srgb, var(--lime) 84%, #000); box-shadow: inset 0 3px 0 color-mix(in srgb, var(--lime) 55%, #000); transform: translateY(1px); }
.crush-button svg { width: 23px; height: 23px; }
.crush-button kbd { margin-left: auto; color: #050605b3; border-color: #05060566; font-style: normal; }
.control-bar .crush-button { justify-content: flex-start; padding-left: 17px; }
.auto-button { min-height: 62px; min-width: 74px; border: 1px solid #39432d; border-radius: 4px; background: #050605; color: #d0d5c6; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 6px 10px; font: 900 17px/1 var(--display); letter-spacing: .05em; user-select: none; -webkit-user-select: none; }
.auto-button svg { width: 18px; height: 18px; }
.auto-button small { font: 700 10px/1 var(--mono); letter-spacing: .1em; color: #a1ab97; }
.auto-button[aria-pressed="true"] { background: color-mix(in srgb, var(--lime) 13%, #050605); box-shadow: 0 0 18px color-mix(in srgb, var(--lime) 25%, transparent); border-color: var(--lime); color: var(--lime); }
.auto-button[aria-pressed="true"] small { color: var(--lime); }
.auto-button[aria-pressed="true"] svg { animation: auto-spin 1s steps(8) infinite; }
@keyframes auto-spin { to { transform: rotate(360deg); } }

.selection { background: var(--paper-light); border: 1px solid var(--line); border-radius: 8px; padding: 14px; min-width: 0; display: flex; flex-direction: column; }
.selection-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 3px 2px 12px; }
.selection-heading h2 { font: 900 26px/1 var(--display); letter-spacing: .01em; margin: 0; }
.selection-heading .collected { color: var(--muted); font: 700 11px/1 var(--mono); letter-spacing: .06em; }
.selection-heading .collected b { color: var(--lime); font-size: 13px; font-weight: 800; }
.flavors { flex: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: minmax(104px,1fr); gap: 8px; }
.flavor { --tint: #eeede1; position: relative; isolation: isolate; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--tint) 22%, #1c2116); border-radius: 5px; background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 26%, #12150f), #0a0c09 78%); color: #f1f4e6; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 9px; }
.flavor::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle, #d6e6c016 .65px, transparent 1px) 0 0/10px 10px; mask-image: linear-gradient(black,transparent 87%); }
.flavor[aria-pressed="true"] { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime), 0 0 16px color-mix(in srgb, var(--lime) 20%, transparent); }
.flavor .slot { position: absolute; top: 8px; left: 9px; color: #8f9884; font: 700 10px/1 var(--mono); }
.flavor .selected-mark, .flavor .lock-mark { position: absolute; right: 7px; top: 7px; display: none; width: 20px; height: 20px; place-items: center; border-radius: 3px; }
.flavor .selected-mark { background: var(--lime); color: #050605; }
.flavor .lock-mark { color: #7c8571; }
.flavor[aria-pressed="true"] .selected-mark, .flavor[data-locked="true"] .lock-mark { display: grid; }
.flavor .selected-mark svg, .flavor .lock-mark svg { width: 13px; height: 13px; stroke-width: 2.5; }
.flavor-image { position: relative; flex: 1; min-height: 0; width: 100%; margin: 2px 0 5px; }
.flavor-image img { display: block; height: 94%; max-height: 112px; max-width: 54%; object-fit: contain; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-10deg); filter: drop-shadow(4px 8px 7px #000c); transition: transform .16s ease-out; }
.flavor strong { position: relative; display: block; font: 900 clamp(16px,1.52vw,23px)/.9 var(--display); letter-spacing: .005em; text-transform: uppercase; }
.flavor small { display: block; margin-top: 4px; font: 700 11px/1.1 var(--mono); letter-spacing: .03em; color: #a3ad95; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flavor[data-locked="true"] { --tint: #3a3f33; cursor: default; }
.flavor[data-locked="true"] .flavor-image img { filter: grayscale(1) brightness(.55) opacity(.7); }
.flavor[data-locked="true"] strong { color: #7c8571; }
.flavor[data-locked="true"] small::before { content: "NEEDS "; }
.flavor:not(.upcoming) small::after { content: " TABS"; }
.flavor[data-locked="true"]:not(.upcoming) small::after { content: " ENERGY"; }
.flavor.upcoming { --tint: #2a2f24; grid-column: 1 / -1; cursor: default; border-style: dashed; border-color: #39432d; }
.flavor.upcoming .flavor-image img { filter: brightness(0) drop-shadow(0 0 5px color-mix(in srgb, var(--lime) 53%, transparent)); }
.flavor.upcoming strong { color: #7c8571; }

.footer { min-height: 51px; display: flex; justify-content: space-between; align-items: center; padding: 9px 1px 13px; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 620; }
.control-hint { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.control-hint kbd { margin-right: 3px; border-color: #4a5540; color: #a3ad95; }
.credit { text-align: right; }

dialog { width: min(92vw, 430px); max-height: 90dvh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: var(--paper-light); color: var(--ink); }
dialog::backdrop { background: #000000cc; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-heading h2 { margin: 0; font: 900 30px/1 var(--display); color: var(--lime); }
.dialog-heading .quiet-button { border-color: var(--line); min-width: 44px; min-height: 44px; }
dialog dt { font-weight: 800; margin-top: 12px; }
dialog dd { margin: 3px 0 0; color: #b3bca6; }
dialog .crush-button { width: 100%; margin-top: 18px; }

/* The receipt is shown whole, as tall as the screen allows, with its buttons under it. */
#receipt-view[open] { display: flex; flex-direction: column; overflow: hidden; height: min(92dvh, 860px); padding-bottom: 16px; }
#receipt-image { flex: 1; min-height: 0; width: 100%; height: auto; margin-top: 12px; object-fit: contain; }
.receipt-actions { flex: none; display: flex; gap: 8px; margin-top: 12px; }
.receipt-actions .crush-button { flex: 1; width: auto; margin: 0; min-height: 52px; font-size: 24px; }
.receipt-actions .chip-button { flex: 1; justify-content: center; min-height: 52px; font-size: 14px; }

/* The list scrolls inside the dialog; the heading and the account buttons stay put. */
#board[open] { display: flex; flex-direction: column; overflow: hidden; height: min(90dvh, 640px); padding-bottom: 16px; }
.board-head, .board-list li, .board-me { display: grid; grid-template-columns: 38px minmax(0, 1fr) 46px 84px; align-items: center; gap: 8px; padding: 0 8px; }
.board-head { margin-top: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 10px/1 var(--mono); letter-spacing: .08em; }
.board-head span:last-child, .board-tabs { text-align: right; }
.board-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; }
.board-list li, .board-me { min-height: 38px; border-bottom: 1px solid #1b2015; font: 700 13px/1 var(--mono); font-variant-numeric: tabular-nums; }
.board-list li.mine { color: var(--lime); }
.board-rank { color: var(--muted); }
.board-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 900 18px/1 var(--display); letter-spacing: .02em; }
.board-tier { display: flex; align-items: center; gap: 4px; }
.board-tier img { height: 26px; width: 14px; object-fit: contain; }
.board-me { flex: none; border: 1px solid var(--lime); border-radius: 4px; margin-top: 8px; color: var(--lime); }
.board-me .board-rank { color: inherit; }
.board-status { flex: none; margin: 14px 8px; color: #b3bca6; }
.board-note { flex: none; margin: 10px 2px 0; color: #b3bca6; font-size: 13px; }
.board-account { flex: none; margin-top: 12px; }
.board-account p { margin: 0; color: var(--ink); font-weight: 700; }
.board-account small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.board-account .crush-button { margin-top: 10px; min-height: 52px; font-size: 24px; }
.board-account.signed-in { display: flex; flex-wrap: wrap; gap: 8px; }
.board-account.signed-in .chip-button { min-height: 40px; padding-inline: 12px; }

@media (hover: hover) {
  .quiet-button:hover { background: #888a7922; }
  .chip-button:hover { background: #30372b; }
  .crush-button:hover:not(:disabled) { background: color-mix(in srgb, var(--lime) 82%, #fff); }
  .auto-button:hover:not(:disabled) { border-color: #8e9a80; }
  .flavor:not([aria-disabled="true"]):hover { border-color: var(--lime); }
  .flavor:not([aria-disabled="true"]):hover .flavor-image img { transform: translate(-50%, -54%) rotate(-5deg) scale(1.04); }
}
@media (pointer: coarse) {
  kbd, .control-hint { display: none; }
}

@media (max-width: 940px) {
  .game-grid { grid-template-columns: minmax(0,1fr) minmax(238px,32%); }
  .arena-interface { inset: 21px; }
  .selection { padding: 10px; }
  .flavor { padding-inline: 7px; }
  .flavor strong { font-size: 17px; }
  .control-bar { gap: 10px; padding-inline: 14px; }
  .stats { gap: 9px; }
  .stats > div + div { padding-left: 9px; }
  .stats dd { font-size: 20px; }
}

/* Three labelled buttons do not fit beside the title on a narrow window. */
@media (max-width: 860px) {
  .top-actions .quiet-button span { display: none; }
  .top-actions .quiet-button { min-width: 40px; }
}

/* Short, wide screens (a phone on its side): drop the page chrome so the arena fits. */
@media (min-width: 691px) and (max-height: 560px) {
  .intro, .footer { display: none; }
  .layout { padding-top: 10px; padding-bottom: 10px; }
  .game-grid { --arena-height: max(200px, calc(100svh - 250px)); }
}

/* Phones: one screen, no scrolling. Arena on top, cans and the crush button under the thumbs. */
@media (max-width: 690px) {
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  body { display: flex; flex-direction: column; height: 100dvh; }
  .topbar-inner { min-height: 48px; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .identity { font-size: 20px; }
  .identity small { display: none; }
  .brand-icon { width: 30px; height: 30px; }
  .top-actions { gap: 6px; }
  .top-actions .quiet-button { width: 44px; min-height: 44px; padding: 0; border-color: transparent; }
  .top-actions .quiet-button span { display: none; }
  .top-actions .quiet-button svg { width: 21px; height: 21px; }
  .night { font-size: 12px; letter-spacing: .02em; }
  .topbar-inner:has(.night:not([hidden])) .identity > span:last-child { display: none; }

  .layout { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .intro, .footer { display: none; }
  .game-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
  .machine { display: contents; }
  .stat-bar { order: 1; min-height: 44px; padding: 4px 6px 4px 12px; border: 0; border-radius: 6px; }
  .stats { gap: 8px; overflow: hidden; }
  .stats > div { display: grid; gap: 3px; }
  .stats > div + div { padding-left: 8px; }
  .stats dt { font-size: 10px; }
  .stats dd { font-size: 18px; }
  #receipt { min-width: 44px; min-height: 36px; justify-content: center; }
  #receipt span { display: none; }
  .arena { order: 2; flex: 1; height: auto; min-height: 150px; border-radius: 6px; }
  .arena-interface { inset: 14px; }
  .arena-word { font-size: clamp(107px,26vw,186px); }
  .rim { inset: 7px; }
  .specimen-number { font-size: 12px; }
  .specimen h2 { font-size: 27px; max-width: 150px; }
  .specimen p { max-width: 128px; }
  .side-ruler { display: none; }
  .orbit-tip { font-size: 12px; }
  .toast { bottom: 62px; font-size: 20px; }

  .selection { order: 3; flex: none; padding: 0; border: 0; background: none; }
  .selection-heading { display: none; }
  .flavors { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 62px; gap: 4px; }
  .flavor { padding: 3px 2px 4px; align-items: center; text-align: center; }
  .flavor .slot, .flavor strong, .flavor .selected-mark { display: none !important; }
  .flavor .lock-mark { right: 1px; top: 1px; width: 16px; height: 16px; }
  .flavor-image { margin: 0 0 2px; }
  .flavor-image img { max-width: 78%; height: 100%; transform: translate(-50%, -50%); }
  .flavor small { margin: 0; max-width: 100%; font-size: 12px; letter-spacing: 0; }
  .flavor:not(.upcoming) small::after { content: none; }
  .flavor[data-locked="true"] small, .flavor.upcoming small { display: none; }
  .flavor[aria-pressed="true"] { border-color: var(--lime); box-shadow: inset 0 0 0 2px var(--lime); }
  .flavor.upcoming { grid-column: auto; }

  #board { padding: 16px 14px; }
  .board-head, .board-list li, .board-me { grid-template-columns: 26px minmax(0, 1fr) 34px 68px; gap: 6px; padding: 0 4px; }
  .board-list li, .board-me { font-size: 12px; }
  .board-name { font-size: 16px; }

  .control-bar { order: 4; min-height: 0; padding: 9px 10px 10px; border: 0; border-radius: 6px; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
  .instruments { grid-column: 1 / -1; gap: 8px; }
  .instrument-label { margin-bottom: 5px; }
  #next-label, #next-value { letter-spacing: 0; }
  #compression-value { font-size: 20px; }
  .control-bar .crush-button { min-height: 64px; justify-content: center; padding-left: 13px; font-size: 34px; }
  .auto-button { min-height: 64px; }
}
@media (max-width: 690px) and (max-height: 600px) {
  .stat-bar { display: none; }
  .flavors { grid-auto-rows: 52px; }
  .control-bar .crush-button, .auto-button { min-height: 54px; }
}
@media (max-width: 350px) {
  .identity > span:last-child { display: none; }
  .stats dt { font-size: 9px; }
  .stats dd { font-size: 17px; }
  .instrument-label { font-size: 11px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
