:root {
  color-scheme: dark;
  --bg: #141513;
  --surface: #1c1e1a;
  --surface-hover: #272b22;
  --ink: #f3f2e8;
  --muted: #b5b7ab;
  --border: #363a31;
  --accent: #d8fc6c;
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--border); }
.topbar-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark, .back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.wordmark { font-family: var(--mono); font-size: .73rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .055em; }
.back:hover, .site-footer a:hover { color: var(--accent); }
.time-wasted { display: flex; align-items: center; gap: 8px; color: var(--muted); font: .78rem var(--mono); text-align: right; }
.time-wasted svg { flex: none; color: var(--accent); }
.hero { min-height: 465px; display: grid; grid-template-columns: 1fr .88fr; align-items: center; gap: 24px; padding-block: 52px 56px; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: clamp(3.4rem, 9.5vw, 8rem); font-weight: 950; line-height: .82; letter-spacing: -.056em; margin-left: -.055em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-line { margin-top: 24px; font-size: clamp(1.15rem, 3vw, 1.55rem); font-weight: 700; }
.hero-detail { color: var(--muted); margin-top: 3px; }
.hero-art { width: 100%; max-width: 430px; height: auto; justify-self: center; }
.primary, .secondary, .choice {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: 740;
  text-decoration: none;
  line-height: 1.2;
}
.primary { color: #161913; background: var(--accent); }
.primary:hover { background: #e7ffa0; }
.primary:disabled, .secondary:disabled { opacity: .6; }
.secondary, .choice { background: var(--surface); border-color: var(--border); color: var(--ink); }
.secondary:not(:disabled):hover, .choice:not(:disabled):hover { background: var(--surface-hover); border-color: #777e6c; }
.random { margin-top: 24px; min-height: 54px; padding-inline: 20px; font: 800 .90rem var(--mono); text-transform: uppercase; box-shadow: 0 4px #6d8438; }
.random:active { transform: translateY(3px); box-shadow: 0 1px #6d8438; }
.game-list { padding-block: 30px 54px; }
.game-list h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); letter-spacing: -.035em; margin-bottom: 16px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.coral { --theme: #ffb29c; --wash: #36241f; }
.violet { --theme: #d3bfff; --wash: #2b233d; }
.lime { --theme: #dcfa8c; --wash: #292f1e; }
.blue { --theme: #b9e4f6; --wash: #202f37; }
.gold { --theme: #f2ce94; --wash: #33291e; }
.game-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; background: var(--surface); transition: border-color .18s, background .18s; }
.game-card:hover { border-color: var(--theme); background: var(--surface-hover); }
.card-art { display: grid; place-items: center; height: 125px; background: radial-gradient(circle at center, var(--wash) 12%, transparent 75%), radial-gradient(circle, #ffffff18 1px, transparent 1.2px) 0 0 / 12px 12px, var(--wash); position: relative; }
.card-art img { object-fit: contain; }
.duration { position: absolute; top: 12px; right: 12px; border: 1px solid #ffffff30; color: var(--ink); background: #141513b8; padding: 3px 7px; border-radius: 6px; font: .72rem/1.3 var(--mono); }
.card-info { padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-info h3 { font-size: 1.21rem; letter-spacing: -.025em; }
.card-info p { color: var(--muted); margin-bottom: 10px; }
.play-cue { display: flex; justify-content: space-between; align-items: center; margin-top: auto; color: var(--theme); font: 700 .8rem var(--mono); text-transform: uppercase; }
.play-cue span { font-size: 1.14rem; }
.site-footer { border-top: 1px solid var(--border); margin-top: auto; min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: .84rem; }
.site-footer a { flex-shrink: 0; display: inline-flex; min-height: 44px; align-items: center; }
.game-page { max-width: 900px; padding-block: clamp(22px, 5vw, 48px) 46px; }
.game-page > .primary { margin-top: 18px; }
.game-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.game-heading h1, .game-page > h1 { font-size: clamp(2rem, 6vw, 4.05rem); line-height: 1.02; letter-spacing: -.062em; margin-bottom: 8px; }
.game-heading p, .notice { color: var(--muted); }
.game-heading img { flex: none; object-fit: contain; }
.notice { margin-block: 8px; font-size: .88rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(16px, 4vw, 35px); }
.panel + .panel { margin-top: 14px; }
.stage, .result { text-align: center; min-height: 300px; display: grid; align-content: center; justify-items: center; gap: 14px; }
.stage h2, .result h2 { font-size: clamp(1.55rem, 5vw, 2.7rem); line-height: 1.05; letter-spacing: -.045em; }
.actions, .status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stage .actions, .result .actions { justify-content: center; }
.result p { max-width: 44ch; }
.result .result-note { color: var(--muted); }
.eyebrow, .status-row { font: 700 .85rem/1.5 var(--mono); }
.eyebrow { color: var(--theme, var(--accent)); }
.game-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.share-text { width: min(100%, 38rem); background: var(--bg); color: var(--ink); border: 1px solid var(--border); border-radius: 8px; padding: 8px; resize: vertical; }
@media (max-width: 790px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: auto; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .topbar-inner { min-height: 63px; }
  .wordmark { font-size: .66rem; }
  .time-wasted { max-width: 132px; font-size: .69rem; }
  .time-wasted svg { display: none; }
  .hero { position: relative; display: block; padding-block: 40px 32px; }
  .hero > div { position: relative; z-index: 1; }
  .hero h1 { font-size: clamp(3.45rem, 12.5vw, 4.25rem); }
  .hero-art { position: absolute; width: 42%; right: -3px; top: 15%; opacity: .68; }
  .hero-line { margin-top: 17px; }
  .game-grid { grid-template-columns: 1fr; gap: 11px; }
  .game-card { display: grid; grid-template-columns: 87px minmax(0, 1fr); }
  .card-art { height: 100%; min-height: 112px; padding-bottom: 26px; }
  .card-art img { width: 66px; height: 62px; }
  .duration { font-size: .62rem; top: auto; right: auto; bottom: 10px; }
  .card-info { padding: 11px 12px; }
  .card-info p { margin-bottom: 2px; }
  .card-info h3 { font-size: 1.05rem; }
  .site-footer { font-size: .75rem; gap: 8px; padding-block: 8px; }
  .game-heading img { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}
.button-stage { min-height: clamp(284px, 44vw, 390px); background: radial-gradient(ellipse at bottom, var(--wash), transparent 85%), var(--surface); }
.button-stage h2 { max-width: 24ch; }
.press-button { min-height: 64px; min-width: min(230px, 100%); padding: 10px 24px; margin: 8px 0; color: #28150f; background: #ff967d; border: 2px solid #ffc3ad; border-radius: 14px; box-shadow: 0 7px #803a2b; font: 900 1rem var(--mono); }
.press-button:hover { background: #ffb19e; }
.press-button:active { transform: translateY(5px); box-shadow: 0 2px #803a2b; }
.button-stage .relocated { width: 100%; justify-content: flex-end; }
.button-stage .tiny button { height: 44px; width: 44px; padding: 0; }
.trophy { display: grid; justify-items: center; color: #ffda80; font: 700 .84rem var(--mono); gap: 4px; }
.countdown { min-height: 24px; }
.quiz-ready { background: radial-gradient(ellipse at top, var(--wash), transparent 78%), var(--surface); }
.quiz-ready h2 { max-width: 24ch; }
.quiz { display: grid; gap: 12px; }
.quiz h2 { max-width: 35ch; line-height: 1.17; letter-spacing: -.026em; font-size: clamp(1.2rem, 3.25vw, 1.8rem); }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice[aria-pressed="true"] { border-color: var(--theme); background: var(--wash); box-shadow: inset 0 0 0 1px var(--theme); }
.visual-choice { position: relative; flex-direction: column; min-width: 0; padding: 10px 7px; }
.visual-choice svg { color: var(--theme); }
.visual-choice::after { content: '+'; position: absolute; top: 4px; right: 9px; color: var(--theme); font-family: var(--mono); }
.visual-choice[aria-pressed="true"]::after { content: '✓'; }
.quiz-submit { grid-column: 1/-1; justify-self: start; }
.slider-options { grid-template-columns: minmax(0, 380px); }
.slider-options button { justify-self: start; }
.slider-options input { min-height: 44px; width: 100%; margin: 0; accent-color: var(--theme); cursor: pointer; }
.suspicious-rectangle { width: 100px; height: 34px; border: 1px solid var(--theme); background: var(--wash); border-radius: 4px; }
.quiz-feedback { color: var(--theme); }
.arcade-status { justify-content: space-between; min-height: 34px; padding-inline: 4px; margin-bottom: 7px; color: var(--theme); font-variant-numeric: tabular-nums; }
.arcade-field { position: relative; border: 1px solid var(--border); border-radius: var(--radius); }
.arcade-field canvas { display: block; width: 100%; background: var(--wash); border-radius: inherit; }
.arcade-field.active canvas { touch-action: none; }
.field-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 9px; text-align: center; padding: 10px; border-radius: inherit; background: #151813a8; }
.field-overlay p { max-width: 25ch; font-weight: 700; }
/* Set before pointerdown so a first touch drag is captured by the playfield. */
.toss-field canvas { touch-action: none; }
.toss-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block: 12px 0; }
.toss-controls > .primary { min-width: 84px; }
.toss-controls > .primary[aria-disabled="true"] { opacity: .63; cursor: default; }
.aim-control { display: flex; align-items: center; gap: 8px; }
.aim-control span { min-width: 74px; text-align: center; font-variant-numeric: tabular-nums; }
.aim-control button { padding-inline: 0; width: 44px; font-size: 1.25rem; }
.toss-feedback { min-height: 1.4em; }
@media (max-width: 620px) {
  .arcade-status { font-size: .78rem; gap: 4px 9px; }
  .toss-controls > .primary { flex: 1; }
}
.company-board { display: grid; grid-template-columns: .95fr 1.05fr; gap: 14px; align-items: start; }
.company-board > .panel { margin: 0; min-width: 0; }
.company-stage { text-align: center; }
.company-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.company-figures dt { color: var(--theme); font: 700 .8rem var(--mono); }
.company-figures dd { margin: 0; font-size: clamp(1.35rem, 3.7vw, 2.5rem); font-weight: 850; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; letter-spacing: -.042em; }
.potato-visual { position: relative; min-height: 200px; display: grid; place-items: center; }
.hype-potato { display: grid; justify-items: center; gap: 0; background: transparent; border: 1px solid transparent; border-radius: 18px; color: var(--theme); font-weight: 800; padding: 8px 12px; touch-action: manipulation; user-select: none; -webkit-touch-callout: none; }
.hype-potato:hover { background: var(--wash); border-color: #684f35; }
.hype-potato:active img { transform: scale(.93); }
.hype-potato img { max-width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.potato-sticker { position: absolute; right: 6%; top: 24%; transform: rotate(12deg); background: var(--theme); color: var(--wash); border-radius: 3px; padding: 4px; font: 800 .7rem var(--mono); pointer-events: none; }
.potato-fans { position: absolute; bottom: 36px; left: 1%; right: 1%; display: flex; justify-content: space-between; pointer-events: none; }
.potato-fans i { display: none; position: relative; width: 13px; height: 17px; border-radius: 50% 50% 3px 3px; background: #a3845b; }
.potato-fans i::before { content: ''; position: absolute; left: 3px; top: -8px; width: 7px; height: 7px; border-radius: 50%; background: #cfaa76; }
.potato-fans i:first-child, .potato-fans.crowd i { display: block; }
.potato-fans i:nth-child(2), .potato-fans i:nth-child(4) { transform: translateY(9px); }
.potato-fans i:nth-child(3) { transform: translateY(18px); }
.company-stage progress { display: block; width: 100%; height: 7px; margin: 8px 0; accent-color: var(--accent); border: 0; border-radius: 8px; overflow: hidden; }
.company-stage progress::-webkit-progress-bar { background: #363930; }
.company-stage progress::-webkit-progress-value { background: var(--accent); }
.company-stage progress::-moz-progress-bar { background: var(--accent); }
.company-stage .primary { margin-top: 12px; }
.next-milestone { margin-top: 14px; font: 700 .78rem/1.4 var(--mono); }
.milestone-text { color: var(--muted); margin-top: 8px; font-size: .88rem; }
.business-headline { color: var(--theme); font-family: var(--mono); text-transform: uppercase; }
.company-shop h2 { font-size: 1.3rem; letter-spacing: -.035em; }
.upgrade-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 12px; border-bottom: 1px solid var(--border); }
.upgrade-row:last-child { border: 0; padding-bottom: 0; }
.upgrade-row h3 { line-height: 1.2; font-size: .99rem; }
.upgrade-row .notice { font-size: .78rem; margin: 4px 0 0; }
.upgrade-row button { max-width: 46%; flex: none; padding-inline: 8px; font-size: .78rem; line-height: 1.2; overflow-wrap: anywhere; }
.upgrade-row button[aria-disabled="true"] { color: var(--muted); background: #181a16; border-color: var(--border); cursor: default; }
.confirm-company { width: min(430px, calc(100% - 32px)); color: var(--ink); }
.confirm-company::backdrop { background: #10110dda; }
.confirm-company p { margin-block: 8px 14px; }
@media (max-width: 700px) {
  .company-board { grid-template-columns: 1fr; }
  .company-stage { padding-block: 16px; }
  .potato-visual { min-height: 150px; }
  .hype-potato img { width: 132px; height: 120px; }
}
