/* SUPER JENSEN - one page, built from the game's own world:
   sky (hero + game), grass and dirt tiles as dividers, ink outlines, GPU green. */

@font-face { font-family: "Lilita One"; src: url("../fonts/lilita-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("../fonts/silkscreen.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("../fonts/silkscreen-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --label: 700 13px/1 "Rubik", system-ui, sans-serif;
  --ink: #16181d;
  --ink-2: #23262e;
  --cream: #fff6e0;
  --paper: #fdf1d4;
  --sky: #8ccbf6;
  --sky-deep: #5fa9ec;
  --gpu: #9bff4a;
  --gpu-dark: #57b81f;
  --sun: #ffd84a;
  --red: #e5383b;
  --dirt: #9c6234;
  --display: "Lilita One", "Arial Black", Impact, sans-serif;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 6px 0 var(--ink);
  --radius: 14px;
  --tile: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 400 17px/1.5 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 26px;
  font: 400 23px/1 var(--display); letter-spacing: .5px; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--bg);
  border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer; user-select: none;
  transition: transform .08s ease-out, box-shadow .08s ease-out, filter .15s;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.btn-buy { --bg: var(--gpu); }
.btn-x { --bg: var(--cream); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 18px; box-shadow: 0 4px 0 var(--ink); white-space: nowrap; }
/* not live yet: an intentional "coming soon" look, not a broken button */
.btn.is-soon, .icon-btn.is-soon {
  --bg: rgba(255, 246, 224, .92); color: rgba(22, 24, 29, .72); cursor: default;
  border-style: dashed; box-shadow: none;
}
.btn.is-soon:hover, .btn.is-soon:active, .icon-btn.is-soon:active { transform: none; box-shadow: none; }
.lbl-short { display: none; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand img { width: 36px; height: 36px; border-radius: 50%; background: var(--gpu); border: 2px solid var(--ink); }
.brand span { font: 400 22px/1 var(--display); letter-spacing: .5px; text-shadow: 0 2px 0 var(--ink); white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.chip-link {
  font: var(--label); text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
  color: var(--cream); padding: 10px 12px; border-radius: 10px;
}
.chip-link:hover { background: rgba(255, 246, 224, .14); }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink);
}
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh);
  display: flex; align-items: center;
  background: var(--sky-deep) url("../media/hero-poster.jpg") center / cover no-repeat;
  color: var(--cream);
}
.hero-video {
  position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%;
  object-fit: cover; image-rendering: pixelated;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(22, 24, 29, .88) 0%, rgba(22, 24, 29, .8) 34%, rgba(22, 24, 29, .45) 56%, rgba(22, 24, 29, .08) 78%, rgba(22, 24, 29, 0) 100%),
    linear-gradient(180deg, rgba(22, 24, 29, .5) 0%, rgba(22, 24, 29, 0) 22%);
}
.hero-tag {
  position: absolute; z-index: 3; left: clamp(20px, 5vw, 64px); bottom: calc(var(--tile) / 2 - 13px);
  display: flex; align-items: center; gap: 8px;
  font: var(--label); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(22, 24, 29, .72); color: var(--cream); padding: 7px 10px; border-radius: 8px;
}
.hero-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.hero-inner {
  position: relative; z-index: 3;
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 64px) calc(var(--tile) * 2 + 40px);
}
.kicker {
  display: inline-block; margin: 0 0 14px;
  font: 400 16px/1 var(--pixel); letter-spacing: .5px; text-transform: uppercase;
  background: var(--gpu); color: var(--ink); padding: 8px 10px; border: 2px solid var(--ink); border-radius: 8px;
  box-shadow: 0 3px 0 var(--ink);
}
.wordmark {
  margin: 0; font: 400 clamp(64px, 11vw, 148px)/.88 var(--display); letter-spacing: 1px; text-transform: uppercase;
  color: var(--cream);
  -webkit-text-stroke: clamp(8px, 1.1vw, 14px) var(--ink); paint-order: stroke fill;
  text-shadow: 0 clamp(6px, .9vw, 11px) 0 var(--ink);
}
.wordmark span { display: block; }
.wm-super {
  width: fit-content; margin: 0 0 -.06em .04em;
  font-size: .46em; color: var(--gpu); letter-spacing: 2px;
  -webkit-text-stroke-width: clamp(6px, .8vw, 10px); transform: rotate(-3deg);
}
.headline {
  margin: 22px 0 0; max-width: 15ch;
  font: 400 clamp(30px, 3.6vw, 48px)/1.02 var(--display); text-transform: uppercase; color: var(--cream);
  text-shadow: 0 3px 0 var(--ink);
}
.headline mark {
  color: var(--ink); background: var(--sun); padding: 0 .16em; border-radius: 6px;
  text-shadow: none; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.lede { margin: 16px 0 0; max-width: 32ch; font-size: clamp(18px, 1.5vw, 21px); font-weight: 500; color: #f3ead4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* the giveaway in one line, right in the hero */
.hero-raffle {
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: min(100%, 540px); margin-top: 24px;
  padding: 9px 14px 9px 9px; color: var(--ink); text-decoration: none;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink);
  transform: rotate(-1deg); transition: transform .1s ease-out;
}
.hero-raffle:hover { transform: rotate(-1deg) translateY(-2px); }
.hr-badge {
  flex: none; font: 400 21px/1 var(--display); white-space: nowrap;
  background: var(--sun); border: 3px solid var(--ink); border-radius: 10px; padding: 8px 10px;
}
.hr-text { font-size: 15px; line-height: 1.3; font-weight: 500; }
.hr-arrow { flex: none; font: 400 24px/1 var(--display); }
.hr-when {
  display: inline-block; margin-top: 4px; padding: 3px 7px; border-radius: 6px;
  font: var(--label); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--gpu);
}
.hr-when:empty { display: none; }
/* the draw countdown in the giveaway section */
.countdown {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px;
  padding: 12px 16px; background: var(--sun); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink);
}
.countdown-label { font: var(--label); letter-spacing: .12em; text-transform: uppercase; }
.countdown-date { font: 400 26px/1 var(--display); text-transform: uppercase; }
.countdown-clock {
  font: 400 26px/1 var(--display); color: var(--gpu); background: var(--ink);
  padding: 7px 12px; border-radius: 10px; font-variant-numeric: tabular-nums; text-transform: uppercase;
}
.ca {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; max-width: 100%;
  font: 600 14px/1 var(--body); letter-spacing: .02em;
  background: rgba(22, 24, 29, .78); color: var(--cream); border: 2px solid rgba(255, 246, 224, .35);
  border-radius: 12px; padding: 6px 6px 6px 12px;
}
.ca-label { color: var(--gpu); font: 400 16px/1 var(--pixel); }
.ca-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca button {
  flex: none; font: var(--label); letter-spacing: .1em; text-transform: uppercase;
  background: var(--gpu); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.ca button:active { transform: translateY(2px); }
.ca.is-soon { padding: 10px 14px; border-style: dashed; color: #d8cfb8; font: 400 16px/1 var(--pixel); }
.play-hint {
  display: block; width: fit-content; margin-top: 18px;
  font: var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--cream); text-decoration: none;
  border-bottom: 2px solid var(--gpu); padding-bottom: 4px;
}
.play-hint:hover { color: var(--gpu); }

.hero-jensen {
  position: absolute; z-index: 2;
  right: clamp(-10px, 6vw, 120px); bottom: calc(var(--tile) * 2 - 26px);
  width: auto; height: min(74svh, 640px);
  filter: drop-shadow(0 10px 0 rgba(22, 24, 29, .35));
  animation: stride .42s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}
@keyframes stride { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-10px) rotate(1deg); } }

/* the game's own grass + dirt, used as the floor of each section */
.ground {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: calc(var(--tile) * 2);
  background:
    url("../media/tiles/ground-top.png") 0 0 / var(--tile) var(--tile) repeat-x,
    url("../media/tiles/dirt.png") 0 var(--tile) / var(--tile) var(--tile) repeat-x;
  image-rendering: pixelated;
}

/* ---------------------------------------------------------------- marquee */
.marquee { overflow: hidden; background: var(--ink); border-block: 3px solid var(--ink); }
.marquee-track {
  display: flex; width: max-content; gap: 28px; padding: 14px 0;
  font: 400 24px/1 var(--display); text-transform: uppercase; color: var(--cream); white-space: nowrap;
  animation: slide 38s linear infinite;
}
.marquee-track b { color: var(--gpu); font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- game section */
.play {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #7fc1f3 0%, #b7e0fb 70%, #cdeafc 100%);
  padding: clamp(64px, 9vw, 110px) clamp(16px, 4vw, 48px) calc(var(--tile) * 2 + 60px);
}
.cloud, .balloon { position: absolute; z-index: -1; pointer-events: none; image-rendering: auto; }
.cloud.c1 { width: 260px; top: 70px; left: 4%; opacity: .95; }
.cloud.c2 { width: 200px; top: 220px; right: 5%; opacity: .9; }
.balloon { width: 58px; top: 120px; right: 16%; animation: drift 6s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateY(-18px); } }

.section-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.title {
  margin: 0; font: 400 clamp(46px, 7vw, 92px)/.92 var(--display); text-transform: uppercase;
  color: var(--cream); -webkit-text-stroke: clamp(6px, .8vw, 10px) var(--ink); paint-order: stroke fill;
  text-shadow: 0 7px 0 var(--ink);
}
.sub { margin: 18px auto 0; font-size: clamp(17px, 1.4vw, 19px); font-weight: 500; color: var(--ink); }

.console {
  --w: min(100%, 980px, calc((100svh - 230px) * 4 / 3));
  width: var(--w); margin: 0 auto;
  background: var(--ink); border: 4px solid var(--ink); border-radius: 22px;
  box-shadow: 0 12px 0 rgba(22, 24, 29, .9);
}
.stage {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 18px 18px 0 0; background: #0f1115;
}
.stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #16181d; }
.stage-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 20px; text-align: center;
  background: rgba(22, 24, 29, .55);
}
.btn-play { min-height: 84px; padding: 16px 44px; font-size: 40px; border-width: 4px; border-radius: 18px; box-shadow: 0 8px 0 var(--ink); }
.btn-play svg { width: 34px; height: 34px; }
.stage-note {
  margin: 0; font: var(--label); line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: var(--cream);
  background: rgba(22, 24, 29, .8); padding: 6px 10px; border-radius: 8px; max-width: 46ch;
}
.stage-loading { background: rgba(22, 24, 29, .86); }
.loading-run { width: 72px; height: auto; image-rendering: pixelated; animation: stride .3s ease-in-out infinite alternate; }
.loading-text { margin: 0; font: 400 34px/1 var(--display); text-transform: uppercase; color: var(--cream); }
.dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.stage-rotate { background: rgba(22, 24, 29, .9); }
.rotate-title { margin: 0; font: 400 clamp(24px, 6vw, 34px)/1.05 var(--display); text-transform: uppercase; color: var(--cream); }
.rotate-icon { width: 64px; height: 64px; display: grid; place-items: center; }
.rotate-icon span {
  width: 30px; height: 50px; border: 4px solid var(--gpu); border-radius: 7px; position: relative;
  animation: turn 2.2s ease-in-out infinite;
}
.rotate-icon span::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 8px; height: 3px; margin-left: -4px; background: var(--gpu); border-radius: 2px; }
@keyframes turn { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }

.console-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
  padding: 14px 16px; color: var(--cream);
}
.console-buttons { display: flex; gap: 8px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; white-space: nowrap;
  font: var(--label); letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink-2); color: var(--cream); border: 2px solid #3a3f4b; border-radius: 10px; cursor: pointer;
}
.pill-btn:hover { border-color: var(--gpu); }
.pill-btn svg { width: 18px; height: 18px; fill: currentColor; }
.pill-btn .snd-off { display: none; }
.pill-btn[aria-pressed="true"] .snd-on { display: none; }
.pill-btn[aria-pressed="true"] .snd-off { display: inline; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: #cfd3dc; }
.keys small { color: #8d93a1; }
kbd {
  display: inline-block; min-width: 26px; margin-right: 3px; padding: 4px 6px;
  font: 700 12px/1 var(--body); text-transform: uppercase; text-align: center; color: var(--ink);
  background: var(--cream); border-radius: 6px; box-shadow: 0 2px 0 #9e9580;
}
.best { display: flex; align-items: center; gap: 10px; }
.best-label { font: var(--label); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8d93a1; }
.best strong { font: 400 26px/1 var(--display); color: var(--gpu); letter-spacing: 1px; }
.share {
  font: var(--label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--cream); padding: 8px 10px; border-radius: 8px; border: 2px solid var(--ink);
}

/* the cast */
.cast { max-width: 1080px; margin: 64px auto 0; }
.cast-title { margin: 0 0 18px; text-align: center; font: 400 30px/1 var(--display); text-transform: uppercase; color: var(--ink); }
.cast-list {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none;
}
.cast-list li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 16px; padding: 16px 12px 18px;
  box-shadow: 0 5px 0 var(--ink);
}
.cast-list img { height: 92px; width: auto; object-fit: contain; image-rendering: pixelated; margin-bottom: 4px; }
.cast-list b { font: 400 21px/1 var(--display); text-transform: uppercase; }
.cast-list span { font-size: 14px; line-height: 1.4; color: #3b3a36; }
.cast-boss { background: #ffe2df !important; }
.cast-boss img { height: 104px; }
.ground-play { z-index: 0; }

/* ---------------------------------------------------------------- giveaway */
.giveaway {
  background: var(--paper);
  background-image: radial-gradient(rgba(22, 24, 29, .07) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 64px);
  border-top: 4px solid var(--ink);
}
.giveaway-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.prize {
  width: 280px; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--sun); border: 5px solid var(--ink); box-shadow: 0 10px 0 var(--ink);
  transform: rotate(-7deg); margin-top: 10px;
  background-image: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .28) 0 10deg, transparent 10deg 20deg);
}
.prize-amount { font: 400 78px/.9 var(--display); color: var(--ink); -webkit-text-stroke: 0; }
.prize-sub { margin-top: 8px; font: var(--label); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.kicker-dark { background: var(--ink); color: var(--gpu); box-shadow: 0 3px 0 rgba(22, 24, 29, .35); }
.title-dark { color: var(--gpu); }
.sub-dark { margin-left: 0; max-width: 56ch; }
.steps { counter-reset: step; list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; display: grid; gap: 4px;
  padding: 16px 18px 16px 76px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink);
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  font: 400 26px/1 var(--display); background: var(--gpu); border: 3px solid var(--ink); border-radius: 12px;
}
.steps b { font: 400 22px/1.1 var(--display); text-transform: uppercase; }
.steps li > span { font-size: 15px; color: #3b3a36; }
.progress {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px;
  padding: 14px 16px; background: var(--ink); color: var(--cream); border-radius: 16px;
}
.progress-label { font: var(--label); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8d93a1; }
.progress-stages { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.progress-stages li {
  min-width: 40px; height: 34px; padding: 0 8px; display: grid; place-items: center;
  font: 400 16px/1 var(--pixel); border: 2px solid #3a3f4b; border-radius: 8px; color: #8d93a1;
}
.progress-stages li.done { background: var(--gpu); border-color: var(--gpu); color: var(--ink); }
.progress-status { font-size: 15px; font-weight: 500; }
.fine { margin: 16px 0 0; font-size: 14px; color: #5b584f; }
.fine a { font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.footer { position: relative; background: #2a1c12; color: #eadcc4; padding-top: calc(var(--tile) * 2); }
.ground-footer { top: 0; bottom: auto; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px clamp(20px, 5vw, 64px) max(40px, env(safe-area-inset-bottom)); }
.footer-mark { margin: 0; font: 400 46px/1 var(--display); color: var(--cream); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.footer-brand p:last-child { margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-block; font: var(--label); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--cream); border: 2px solid rgba(234, 220, 196, .4); border-radius: 10px; padding: 10px 12px;
}
.footer-links a:hover { border-color: var(--gpu); color: var(--gpu); }
.footer-links a.is-soon { opacity: .55; border-style: dashed; pointer-events: none; }
.ca-footer { margin-top: 22px; }
.disclaimer { margin: 26px 0 0; max-width: 80ch; font-size: 14px; color: #c9b99c; }
.credits { margin: 12px 0 0; font-size: 12px; color: #8f7f66; }

.toast {
  position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 24px);
  opacity: 0; visibility: hidden;
  font: var(--label); letter-spacing: .1em; text-transform: uppercase;
  background: var(--gpu); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 4px 0 var(--ink); transition: transform .2s ease-out, opacity .2s, visibility .2s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------- touch controls / play mode */
.touch { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.touch-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; }
.touch-top > div { display: flex; gap: 8px; }
.tbtn {
  pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  font: 400 22px/1 var(--display); color: var(--ink);
  background: rgba(255, 246, 224, .82); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.tbtn.is-down, .jump-zone.is-down .tbtn-jump { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); background: var(--gpu); }
.tbtn-small { width: 42px; height: 42px; font-size: 16px; border-radius: 12px; }
/* the touch areas are bigger than the buttons you see: a thumb that lands a bit off still counts */
.dpad, .jump-zone {
  position: absolute; bottom: 0; pointer-events: auto; touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.dpad { left: 0; width: min(44vw, 240px); height: min(70vh, 250px); }
.dpad .tbtn { position: absolute; bottom: 14px; width: 70px; height: 70px; pointer-events: none; font-size: 24px; }
.dpad-left { left: 10px; }
.dpad-right { left: 86px; }
.jump-zone { right: 0; width: 150px; height: 136px; }
.tbtn-jump { position: absolute; right: 14px; bottom: 14px; width: 94px; height: 94px; pointer-events: none;
  background: rgba(155, 255, 74, .88); font-size: 20px; }
.tbtn-run { position: absolute; right: 30px; bottom: 146px; width: 60px; height: 60px; font-size: 15px; }
.tbtn-run.is-on { background: var(--gpu); box-shadow: 0 0 0 4px rgba(155, 255, 74, .35), 0 4px 0 var(--ink); }
.tbtn-shoot { position: absolute; right: 28px; bottom: 218px; width: 64px; height: 64px; font-size: 15px; background: rgba(255, 216, 74, .9); }
.touch.is-menu .dpad, .touch.is-menu .jump-zone, .touch.is-menu .tbtn-run, .touch.is-menu .tbtn-shoot { opacity: .3; pointer-events: none; }
.touch:not(.is-boss) .tbtn-shoot { display: none; }
.stage-tip { margin: 0; font: 600 11px/1.3 "Rubik", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 246, 224, .72); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.touch-only { display: none; }
.is-touch .touch-only { display: block; }
/* phones that are less wide (16:9 and squarer): slightly smaller buttons, same touch areas */
@media (max-aspect-ratio: 2/1) {
  .dpad .tbtn { width: 62px; height: 62px; }
  .dpad-left { left: 8px; }
  .dpad-right { left: 76px; }
  .tbtn-jump { width: 84px; height: 84px; right: 12px; bottom: 12px; }
  .tbtn-run { width: 54px; height: 54px; right: 26px; bottom: 134px; }
  .tbtn-shoot { width: 56px; height: 56px; right: 25px; bottom: 198px; }
}

/* phone / tablet in landscape, playing: the game takes the whole screen */
body.is-playing { overflow: hidden; }
body.is-playing .console {
  position: fixed; inset: 0; z-index: 50; width: 100vw; height: 100dvh; margin: 0;
  border: 0; border-radius: 0; box-shadow: none; background: var(--ink);
  display: grid; place-items: center;
}
body.is-playing .stage {
  /* leave each thumb a strip at the side, so the buttons don't sit on top of Jensen */
  width: min(100vw - 224px, calc(100dvh * 4 / 3)); height: auto; max-height: 100dvh; border-radius: 0; overflow: visible;
}
body.is-playing .console-bar { display: none; }
body.is-playing .touch { position: fixed; }
body.is-playing .topbar { display: none; }
.console:fullscreen { width: 100vw; height: 100vh; border: 0; border-radius: 0; display: grid; place-items: center; background: var(--ink); }
.console:fullscreen .stage { width: min(100vw, calc(100vh * 4 / 3)); border-radius: 0; }
.is-touch .console:fullscreen .stage { width: min(100vw - 224px, calc(100vh * 4 / 3)); }
.console:fullscreen .console-bar { display: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .cast-list { grid-template-columns: repeat(3, 1fr); }
  .hero-jensen { height: min(62svh, 560px); right: -12px; }
}
@media (max-width: 860px) {
  .giveaway-inner { grid-template-columns: 1fr; }
  .prize { width: 220px; margin: 0 auto; }
  .prize-amount { font-size: 62px; }
  .chip-link { display: none; }
}
@media (max-width: 700px) {
  :root {
  --label: 700 13px/1 "Rubik", system-ui, sans-serif; --tile: 40px; }
  body { font-size: 16px; }
  .hero { align-items: flex-start; min-height: 100svh; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(22, 24, 29, .78) 0%, rgba(22, 24, 29, .62) 55%, rgba(22, 24, 29, .3) 78%, rgba(22, 24, 29, .2) 100%);
  }
  /* room under the content for Jensen, so he never covers a button on any screen height */
  .hero-inner { padding: 92px 20px calc(var(--tile) * 2 + 150px); }
  .wordmark { font-size: clamp(60px, 19vw, 82px); }
  .hero-raffle { width: 100%; }
  .hr-text { font-size: 14px; }
  .headline { font-size: clamp(28px, 8.4vw, 38px); }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-actions .btn { padding: 12px 14px; font-size: 20px; }
  .hero-actions .lbl-long { display: none; }
  .hero-actions .lbl-short { display: inline; }
  .ca { width: 100%; }
  .ca.is-soon { width: auto; }
  .hero-jensen { height: 205px; right: -6px; bottom: calc(var(--tile) * 2 - 22px); }
  .hero-tag { left: 20px; }
  .topbar .btn-small { padding: 8px 14px; }
  .marquee-track { font-size: 20px; }
  .cast-list { grid-template-columns: repeat(5, 74%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -16px; padding-inline: 16px; }
  .cast-list li { scroll-snap-align: center; }
  .console { --w: 100%; border-radius: 18px; }
  .stage { border-radius: 14px 14px 0 0; }
  .btn-play { min-height: 64px; font-size: 30px; padding: 12px 30px; }
  .console-bar { justify-content: space-between; flex-wrap: nowrap; padding: 12px; }
  .best strong { font-size: 22px; }
  .keys { display: none; }
  .is-touch #fs-btn { display: none; }
  .cloud.c1 { width: 160px; top: 24px; left: -30px; }
  .cloud.c2, .balloon { display: none; }
  .steps li { padding-left: 70px; }
  .footer-mark { font-size: 38px; }
}
@media (max-width: 440px) {
  .brand span { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100svh; }
  .hero-inner { padding-top: 70px; padding-bottom: 90px; }
  .wordmark { font-size: 58px; }
  .headline { font-size: 26px; margin-top: 10px; }
  .lede { display: none; }
  .hero-actions { margin-top: 14px; }
  .hero-jensen { height: 74svh; right: 16px; }
  .console { --w: min(100%, calc((100svh - 40px) * 4 / 3)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-jensen, .balloon, .loading-run, .hero-tag i { animation: none; }
  html { scroll-behavior: auto; }
}
