/* Crash Out Entertainment — crashoutent.com
   One-page scroll on pure black. Brand colours from 02_MARKA:
   ink #231f20, paper #dddddd, flame #cc3300, blue #004fff. */

:root {
  --bg: #000;
  --paper: #dddddd;
  --muted: #7d7d7d;
  --line: rgba(221, 221, 221, 0.14);
  --flame: #cc3300;
  --stroke: var(--flame);   /* outlines and rules are drawn in the Crash Out red */

  /* branding fonts, served from the Adobe Fonts web project "crashoutent" */
  --display: "owners-xwide", "Arial Black", sans-serif;          /* Owners XWide Black: headlines */
  --font: "nimbus-sans", "Helvetica Neue", Arial, sans-serif;     /* Nimbus Sans: body */
  --label: "itc-avant-garde-gothic-pro", "Century Gothic", sans-serif; /* ITC Avant Garde: nav, buttons, labels */
  --pad: clamp(20px, 4.5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--flame); color: var(--paper); }
/* no text selection or image dragging anywhere on the site */
html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img, svg, canvas { -webkit-user-drag: none; user-drag: none; }
input { -webkit-user-select: text; user-select: text; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--stroke); outline-offset: 4px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- panels: one screen each, snapping ---------- */
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-content: center;
  padding: 96px var(--pad) 64px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo img { width: 140px; }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 36px); font-family: var(--label); font-size: 15px; }
.nav__links a { color: var(--muted); transition: color 0.2s; }
.nav__links a:hover, .nav__links a.is-on { color: var(--paper); }
.nav__links { align-items: center; }
.nav__links .nav__cta {
  color: var(--paper);
  padding: 7px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav__links .nav__cta:hover, .nav__links .nav__cta.is-on { background: var(--stroke); color: var(--paper); }

/* section dots */
.dots {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: grid;
  gap: 12px;
}
.dots a {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.dots a:hover { background: var(--muted); }
.dots a.is-on { background: var(--stroke); transform: scale(1.3); }

/* ---------- 1. 3D icon ---------- */
.hero { padding: 0; place-content: stretch; }
.hero__canvas { width: 100%; height: 100vh; height: 100svh; display: block; }
.hero__flat { display: none; }
.no-3d .hero__canvas { display: none; }
.no-3d .hero__flat { display: block; place-self: center; width: min(46vw, 340px); filter: invert(0.87); }
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--stroke), transparent);
  transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- newsletter ---------- */
.news {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: center;
  place-content: center;
  gap: clamp(24px, 5vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
}
.news__figure { width: 100%; max-height: 78svh; object-fit: contain; justify-self: end; }
.news__form { display: grid; gap: 18px; max-width: 560px; }
.news__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-bottom: clamp(6px, 1.4vw, 18px);
}
.news__row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--stroke);
  transition: border-color 0.2s;
}
.news__row input {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  font: inherit;
  font-size: clamp(19px, 1.8vw, 26px);
  color: var(--paper);
  background: none;
  border: 0;
  outline: 0;
  border-radius: 0;
}
.news__row input::placeholder { color: #4a4a4a; }
.news__row button {
  padding: 10px 0 10px 18px;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  transition: opacity 0.2s;
}
.news__row button:hover { opacity: 0.6; }
.news.is-error .news__row { border-color: var(--flame); box-shadow: 0 1px 0 var(--flame); }
.news.is-busy .news__row button { opacity: 0.35; pointer-events: none; }
.news__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.news__status { min-height: 1.4em; font-size: 15px; color: var(--paper); }
.news.is-error .news__status { color: #ff6a3d; }
.news__legal { font-size: 13px; color: var(--muted); }
.news.is-done .news__row { display: none; }
.news.is-done .news__status { font-size: clamp(19px, 1.8vw, 26px); padding: 14px 0; border-bottom: 1px solid transparent; }

/* ---------- 2. roster ---------- */
.roster__list { display: grid; gap: clamp(28px, 5vw, 72px); justify-items: center; }
.roster__list h2 { transition: opacity 0.4s; }
.roster__list img { height: auto; }
.roster__sulga { width: min(66vw, 660px, 92svh); }
.roster__se7en { width: min(76vw, 720px, 80svh); }
.roster__list:hover h2 { opacity: 0.22; }
.roster__list li:hover h2 { opacity: 1; }

/* ---------- 3. release ---------- */
.release {
  place-content: center start;
  gap: clamp(40px, 7vh, 88px);
}
.release__item { display: grid; justify-items: start; gap: 14px; }
.release__item h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 6.4vw, 80px);
  line-height: 0.9;
  max-width: 100%;
  letter-spacing: -0.01em;
}
.release__item p { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.release__item--next h2 { color: #3a3a3a; }
.btn {
  margin-top: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-family: var(--label);
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--stroke); color: var(--paper); }

/* ---------- 4. what we do ---------- */
.work__list { display: grid; gap: clamp(4px, 1vw, 12px); text-align: center; }
.work__list li {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #4a4a4a;
  transition: color 0.3s;
}
.work__list li:hover { color: var(--paper); }

/* ---------- 5. nights ---------- */
.nights { justify-items: center; gap: 16px; text-align: center; }
.nights__mascot {
  width: min(60vw, 420px);
  aspect-ratio: 1;
  position: relative;
}
.nights__mascot::before {
  /* the plain mascot types are black: paper disc behind them, like the badge types */
  content: "";
  position: absolute;
  left: 49.5%; top: 54%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}
.nights__mascot[data-badge]::before { transform: translate(-50%, -50%) scale(0); }
.nights__mascot img { position: relative; width: 100%; transform-origin: 50% 70%; animation: idle 4s ease-in-out infinite; }
.nights__mascot.is-pop img { animation: pop 0.45s var(--ease); }
@keyframes idle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-6px); } }
@keyframes pop { 0% { transform: scale(0.82) rotate(-8deg); } 60% { transform: scale(1.06) rotate(4deg); } 100% { transform: scale(1); } }
.nights__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 72px);
  letter-spacing: -0.01em;
  line-height: 1;
}
.nights__title span { color: #4a4a4a; }

/* ---------- game ---------- */
.game { place-content: stretch; grid-template-rows: auto 1fr auto; padding-left: 0; padding-right: 0; }
.game__hud {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 var(--pad);
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.game__score { font-size: clamp(40px, 6vw, 96px); line-height: 1; font-variant-numeric: tabular-nums; }
.game__best-wrap { font-size: 14px; color: var(--muted); }
.game__best { color: var(--paper); font-variant-numeric: tabular-nums; }
.game__stage { position: relative; height: min(70svh, 720px); min-height: 320px; align-self: center; margin: 12px 0; }
.game__canvas { display: block; width: 100%; height: 100%; cursor: pointer; outline: 0; touch-action: none; image-rendering: pixelated; }
.game__letters { display: flex; gap: 0.35em; font-family: var(--display); font-weight: 800; font-size: clamp(16px, 1.8vw, 24px); color: #3a3838; }
.game__letters b { font-weight: inherit; transition: color 0.3s; }
.game__letters b.is-got { color: #ff5a1f; }
.game__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.game__time { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.4vw, 34px); line-height: 1; font-variant-numeric: tabular-nums; }
.game__time.is-low, .game__time.is-rec { color: #ff5a1f; }
.game__special { position: absolute; left: var(--pad); top: 14px; width: min(180px, 30vw); height: 6px; background: rgba(255, 255, 255, 0.12); pointer-events: none; }
.game__special i { display: block; height: 100%; width: 0; background: #e2ddd3; transition: width 0.3s; }
.game.is-special .game__special i { background: #ff5a1f; box-shadow: 0 0 12px #ff5a1f; }
.game__opts { position: absolute; right: var(--pad); top: 10px; display: flex; gap: 8px; align-items: center; }
.game__mode { display: flex; border: 1px solid var(--stroke); border-radius: 999px; overflow: hidden; }
.game__opts button { font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: 0.02em; padding: 7px 12px; background: rgba(0, 0, 0, 0.45); color: var(--muted); -webkit-tap-highlight-color: transparent; }
.game__mode button[aria-pressed="true"] { background: var(--paper); color: #000; }
.game__rescue { border: 1px solid var(--stroke); border-radius: 999px; color: var(--paper) !important; }
.game__opts button:focus-visible { outline: 2px solid #ff5a1f; outline-offset: 2px; }
.game__enter {
  position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: #c8191d; color: #f1ece4; font-family: var(--display); font-size: 15px; letter-spacing: 0.02em;
  box-shadow: 0 0 0 1px rgba(241, 236, 228, 0.25), 0 0 28px rgba(255, 42, 26, 0.45);
  animation: game-enter-in 0.25s var(--ease);
}
.game__enter[hidden] { display: none; }
.game__enter kbd { font-family: var(--label); font-size: 11px; padding: 2px 6px; border: 1px solid rgba(241, 236, 228, 0.6); border-radius: 4px; }
.game__enter small { font-family: var(--label); font-size: 11px; opacity: 0.8; }
@keyframes game-enter-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.game__store {
  position: absolute; z-index: 5; top: 12px; right: 12px; bottom: 12px; width: min(380px, calc(100% - 24px));
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  background: rgba(10, 9, 9, 0.88); border: 1px solid var(--stroke); border-radius: 14px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.game__store[hidden] { display: none; }
.is-store .game__opts, .is-store .game__pad, .is-store .game__combo, .is-store .game__special, .is-store .game__balance { visibility: hidden; }
.game__store-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.game__store-head h3 { margin: 0; font-family: var(--display); font-size: 18px; letter-spacing: 0.01em; color: #f1ece4; }
.game__wallet { font-family: var(--label); font-size: 12px; color: var(--muted); white-space: nowrap; }
.game__wallet b { color: #f1ece4; font-size: 15px; }
.game__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.game__tabs button { font-family: var(--label); font-weight: 700; font-size: 12px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.game__tabs button[aria-selected="true"] { background: var(--paper); color: #000; border-color: var(--paper); }
.game__items { flex: 1; overflow-y: auto; display: grid; gap: 6px; align-content: start; overscroll-behavior: contain; }
.game__item {
  width: 100%; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 6px 10px 6px 6px;
  border: 1px solid var(--line); border-radius: 10px; text-align: left; transition: border-color 0.15s, background 0.15s;
}
.game__item img { width: 48px; height: 48px; border-radius: 6px; image-rendering: pixelated; }
.game__item-name { font-family: var(--label); font-weight: 700; font-size: 14px; color: #f1ece4; }
.game__item-state { font-family: var(--label); font-size: 12px; color: var(--muted); white-space: nowrap; }
.game__item:hover, .game__item:focus-visible { border-color: #f1ece4; background: rgba(241, 236, 228, 0.06); outline: none; }
.game__item.is-on { border-color: var(--stroke); }
.game__item.is-on .game__item-state { color: #ff5a1f; }
.game__item.is-locked { opacity: 0.55; }
.game__store-note { min-height: 1.2em; font-family: var(--label); font-size: 12px; color: #ff5a1f; }
.game__store-foot { display: flex; gap: 8px; }
.game__store-foot > * { flex: 1; text-align: center; font-family: var(--label); font-weight: 700; font-size: 13px; padding: 10px 12px; border-radius: 999px; }
.game__realshop { background: #c8191d; color: #f1ece4; }
.game__leave { border: 1px solid var(--line); }
.game__realshop:hover { background: #e0261f; }
.game__leave:hover { border-color: #f1ece4; }
@media (max-width: 640px) {
  .game__store { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 72%; padding: 14px; }
}
/* sound and scoreboard buttons, the mission line, the shared scoreboard */
.game__opts .game__icon { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 14px; color: var(--paper); }
.game__sound[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.game__icon:hover { border-color: var(--paper); }
.game__uprec { color: var(--paper); font-variant-numeric: tabular-nums; }
.game__mission { position: absolute; left: var(--pad); top: 28px; max-width: min(360px, calc(100% - 2 * var(--pad) - 330px)); padding: 4px 9px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); font-family: var(--label); font-size: 12px; line-height: 1.35; color: #bdb6aa; pointer-events: none; }
.game__mission:empty { display: none; }
.game__mission b { color: var(--paper); font-weight: 700; }
.game__mission em { font-style: normal; color: #ff5a1f; }
.game__mission.is-done { animation: game-mission 1.4s var(--ease); }
@keyframes game-mission { 0%, 40% { color: #ff5a1f; transform: scale(1.06); transform-origin: left; } }
.game__board {
  position: absolute; z-index: 6; top: 12px; left: 50%; bottom: 12px; width: min(400px, calc(100% - 24px)); transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  background: rgba(10, 9, 9, 0.92); border: 1px solid var(--stroke); border-radius: 14px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.game__board[hidden], .game__submit[hidden] { display: none; }
.game__board-tabs { display: flex; gap: 6px; }
.game__board-tabs button { font-family: var(--label); font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.game__board-tabs button[aria-selected="true"] { background: var(--paper); color: #000; border-color: var(--paper); }
.game__rows { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 2px; align-content: start; counter-reset: row; font-family: var(--label); font-size: 13px; }
.game__rows li { display: grid; grid-template-columns: 2.2em 1fr auto auto; gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: 8px; color: #f1ece4; counter-increment: row; }
.game__rows li::before { content: counter(row); color: var(--muted); font-variant-numeric: tabular-nums; }
.game__rows li:nth-child(-n+3)::before { color: #ff5a1f; }
.game__rows li.is-me { background: rgba(200, 25, 29, 0.25); }
.game__rows .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game__rows .s { font-variant-numeric: tabular-nums; font-weight: 700; }
.game__rows .u { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.game__rows .empty { display: block; color: var(--muted); }
.game__rows .empty::before { content: none; }
.game__submit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; padding-top: 10px; border-top: 1px solid var(--line); }
.game__submit-legal { grid-column: 1 / -1; font-family: var(--label); font-size: 11px; line-height: 1.4; color: var(--muted); }
.game__submit button { grid-column: 1 / -1; justify-self: end; }
.game__submit-score { grid-column: 1 / -1; font-family: var(--label); font-size: 13px; color: #f1ece4; }
.game__submit label { display: grid; gap: 4px; min-width: 0; font-family: var(--label); font-size: 11px; color: var(--muted); }
.game__submit input { width: 100%; min-width: 0; box-sizing: border-box; font: 700 14px var(--label); color: #f1ece4; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.game__submit input:focus { outline: none; border-color: #f1ece4; }
.game__submit button { font-family: var(--label); font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 999px; background: #c8191d; color: #f1ece4; }
.game__submit button:disabled { opacity: 0.5; }
.game__board-hint { color: var(--muted); font-weight: 400 !important; font-size: 11px !important; text-align: left !important; padding-left: 0 !important; }
.game__board-close { border: 1px solid var(--line); flex: 0 0 auto !important; }
.game__board-close:hover { border-color: #f1ece4; }
.is-board .game__opts, .is-board .game__pad, .is-board .game__combo, .is-board .game__mission, .is-board .game__msg { visibility: hidden; }
@media (max-width: 900px) { .game__mission { top: 52px; max-width: calc(100% - 2 * var(--pad)); } }
@media (max-width: 640px) { .game__mission { font-size: 11px; } .game__opts .game__icon { width: 30px; height: 30px; } }
.game__balance { position: absolute; left: 50%; top: 30%; width: 180px; height: 8px; margin-left: -90px; border: 1px solid rgba(255, 255, 255, 0.5); pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.game__balance.is-on { opacity: 1; }
.game__balance::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: rgba(255, 255, 255, 0.5); }
.game__balance i { position: absolute; top: -5px; width: 6px; height: 16px; margin-left: -3px; left: 50%; background: #ff5a1f; }
.no-game .game__stage, .no-game .game__hint { display: none; }
.game__msg {
  position: absolute; left: 0; right: 0; top: 16%;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 60px);
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.game__msg.is-on { opacity: 1; transform: none; }
.game__combo {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 18px;
  text-align: center;
  font-family: var(--label);
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 19px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--paper);
  pointer-events: none;
}
.game__pad {
  position: absolute; inset: auto 12px 12px;
  display: grid; gap: 8px;
  grid-template-columns: 58px 58px 1fr 58px 58px 58px;
  grid-template-rows: 52px 58px;
  grid-template-areas: "walk . . flip grab grind" "left right . special jump jump";
}
.game__pad[hidden] { display: none; }
.game__pad button {
  height: 100%;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-family: var(--label);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.game__pad button:active { background: var(--stroke); }
.game__pad [data-act="left"] { grid-area: left; } .game__pad [data-act="right"] { grid-area: right; }
.game__pad [data-act="flip"] { grid-area: flip; } .game__pad [data-act="grab"] { grid-area: grab; }
.game__pad [data-act="grind"] { grid-area: grind; } .game__pad [data-act="jump"] { grid-area: jump; border-color: var(--accent, #cc3300); }
.game__pad [data-act="special"] { grid-area: special; opacity: 0.35; }
.game__pad [data-act="walk"] { grid-area: walk; font-size: 11px; }
.game.is-special .game__pad [data-act="special"] { opacity: 1; border-color: #ff5a1f; color: #ff5a1f; }
.game__pad:not([hidden]) ~ .game__combo { bottom: 136px; }
.game__hint {
  justify-self: center;
  padding: 0 var(--pad);
  text-align: center;
  font-family: var(--label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  transition: opacity 0.4s;
}
.game__hint.is-off { opacity: 0; }
.game__hint { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; max-width: 980px; }
.game__chip { white-space: nowrap; }
.game__hint kbd, .game__intro kbd {
  display: inline-grid; place-items: center; min-width: 22px; padding: 1px 6px;
  border: 1px solid rgba(221, 221, 221, 0.45); border-bottom-width: 2px; border-radius: 5px;
  font-family: var(--label); font-weight: 700; font-size: 11px; color: var(--paper); background: rgba(255, 255, 255, 0.04);
}
/* the how-to card over the game before it starts (and on H) */
.game__intro {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(8px, 1.6vh, 16px); padding: 56px var(--pad) 20px; text-align: center;
  background: rgba(0, 0, 0, 0.78); cursor: pointer; animation: intro-in 0.3s var(--ease);
}
.game__intro[hidden] { display: none; }
.game__intro h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.6vw, 34px); text-transform: uppercase; letter-spacing: 0.02em; }
.game__intro-mode { margin: 0; font-family: var(--label); font-size: 13px; font-weight: 600; color: var(--muted); }
.game__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 190px)); gap: 10px; }
.game__card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.03);
}
.game__card b { font-family: var(--label); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--paper); }
.game__card span { font-family: var(--font); font-size: 12px; line-height: 1.35; color: var(--muted); }
.game__caps { display: flex; gap: 5px; align-items: center; min-height: 64px; }
.game__intro .game__caps kbd { min-width: 36px; height: 34px; padding: 0 8px; font-size: 13px; border-bottom-width: 3px; border-radius: 7px; }
.game__intro kbd.is-wide { min-width: 132px; }
.game__intro kbd.is-hot { border-color: var(--flame); color: #ff5a1f; }
.game__arrows { display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: 30px 30px; gap: 4px; grid-template-areas: ". u ." "l d r"; min-height: 64px; align-content: center; }
.game__intro .game__arrows kbd { min-width: 0; height: 30px; padding: 0; font-size: 13px; border-bottom-width: 3px; border-radius: 6px; }
.game__intro-tip { margin: 0; font-family: var(--font); font-size: 12px; color: var(--muted); }
.game__intro-go { margin: 0; font-family: var(--label); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: #ff5a1f; animation: intro-blink 1.6s ease-in-out infinite; }
@keyframes intro-blink { 50% { opacity: 0.45; } }
@keyframes intro-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .game__intro-go { animation: none; } }
.is-intro .game__pad, .is-intro .game__combo, .is-intro .game__msg, .is-intro .game__mission { visibility: hidden; }
@media (max-width: 640px) {
  .game__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .game__card { padding: 8px 6px; } .game__caps, .game__arrows { min-height: 44px; }
  .game__intro { padding-top: 44px; overflow-y: auto; justify-content: flex-start; }
  .game__intro-tip { display: none; }
}
.game.is-over .game__score { animation: shake 0.4s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* ---------- 6. contact + giant wordmark ---------- */
.contact {
  place-content: end stretch;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 28px;
}
.contact__mail {
  justify-self: start;
  font-size: clamp(30px, 6vw, 100px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  word-break: break-word;
  background: linear-gradient(var(--paper), var(--paper)) left 100% / 0 2px no-repeat;
  padding-bottom: 8px;
  transition: background-size 0.5s var(--ease);
}
.contact__mail:hover { background-size: 100% 2px; }
.contact__logo {
  width: 100%;
  fill: transparent;
  stroke: rgba(221, 221, 221, 0.3);
  stroke-width: 0.6;
  transition: fill 1.4s var(--ease) 0.2s, stroke 1.4s var(--ease) 0.2s;
}
.contact.in .contact__logo { fill: var(--paper); stroke: transparent; }
.contact__legal { font-size: 13px; color: var(--muted); }

/* ---------- reveal ---------- */
.js .panel:not(.hero) > * { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .panel.in > * { opacity: 1; transform: none; }
.js .panel.in > *:nth-child(2) { transition-delay: 0.08s; }
.js .panel.in > *:nth-child(3) { transition-delay: 0.16s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__links .nav__cta { font-size: 14px; padding: 6px 13px; }
  .news { grid-template-columns: 1fr; gap: 8px; place-content: center stretch; padding-top: 80px; }
  .news__figure { justify-self: center; width: auto; max-height: 38svh; }
  .news__title { font-size: clamp(34px, 10vw, 60px); }
  .nav__logo img { width: 120px; }
  .dots { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .js .panel:not(.hero) > * { opacity: 1; transform: none; }
}

/* ---------- minimap, quieter buttons while riding, touch comfort ---------- */
.game__map { position: absolute; left: var(--pad); bottom: 14px; width: 116px; border-radius: 8px; background: rgba(0, 0, 0, 0.55); box-shadow: 0 0 0 1px rgba(221, 221, 221, 0.15); pointer-events: none; z-index: 2; }
.game__pad:not([hidden]) ~ .game__map { bottom: auto; top: 96px; left: auto; right: 12px; width: 92px; }
.is-intro .game__map, .is-board .game__map, .is-store .game__map { visibility: hidden; }
.game__opts { transition: opacity 0.25s, transform 0.25s var(--ease); transform-origin: top right; }
.game.is-run .game__opts { opacity: 0.45; transform: scale(0.9); }
.game.is-run .game__opts:hover, .game.is-run .game__opts:focus-within { opacity: 1; transform: none; }
/* long-press on a button must never select text or bring up the magnifier */
.game { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.game input { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.game__pad, .game__pad * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media (pointer: coarse) {
  .game__pad { grid-template-columns: 66px 66px 1fr 62px 62px 62px; grid-template-rows: 56px 66px; gap: 10px; }
  .game__pad button { font-size: 14px; }
  .game__pad:not([hidden]) ~ .game__combo { bottom: 152px; }
}
@media (max-width: 640px) { .game__hint { display: none; } }

/* ---------- app mode: opened from the home screen, the game is the whole screen ---------- */
html.app, html.app body { height: 100%; overflow: hidden; scroll-snap-type: none; background: #000; }
html.app header.nav, html.app .dots, html.app main > section:not(#oyun), html.app footer { display: none !important; }
html.app #oyun { min-height: 100dvh; height: 100dvh; padding: max(10px, env(safe-area-inset-top)) 0 max(8px, env(safe-area-inset-bottom)); }
html.app #oyun > * { opacity: 1 !important; transform: none !important; }
html.app .game__stage { height: auto; min-height: 0; align-self: stretch; margin: 6px 0 0; }
html.app .game { grid-template-rows: auto 1fr auto; }

/* ======================================================================
   Game UI, refined: quiet glass controls in the brand colours, one menu on phones,
   sheets for the shop and the scoreboard, full-screen play in either orientation.
   ====================================================================== */
.game {
  --glass: rgba(18, 16, 16, 0.5);
  --glass-line: rgba(241, 236, 228, 0.16);
  --ink2: #0c0b0b;
  --paper2: #f1ece4;
  --sat: env(safe-area-inset-top, 0px); --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px);
}
/* desktop buttons: the same glass, no red rings */
.game__opts button { background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.game__mode { border-color: var(--glass-line); }
.game__rescue { border-color: var(--glass-line) !important; }
.game__opts .game__icon { border-color: var(--glass-line); }
.game__opts button:hover { color: var(--paper2); }
.game__store, .game__board { border-color: var(--glass-line); background: rgba(12, 11, 11, 0.92); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.game__store-foot > * { transition: background 0.15s, border-color 0.15s, transform 0.12s; }
.game__store-foot > *:active, .game__submit button:active { transform: scale(0.97); }
.game__item { transition: border-color 0.15s, background 0.15s, transform 0.12s; }
.game__item:active { transform: scale(0.985); }

/* ---------- full-screen play (phones) ---------- */
html.play, html.play body { height: 100%; overflow: hidden; overscroll-behavior: none; scroll-snap-type: none; }
html.play header.nav, html.play .dots { display: none !important; }
html.play #oyun { position: fixed; inset: 0; z-index: 100; display: block; height: 100dvh; min-height: 0; padding: 0; background: #000; }
html.play #oyun > * { opacity: 1 !important; transform: none !important; }
html.play .game__stage { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; align-self: stretch; justify-self: stretch; }
html.play .game__hint { display: none; }
html.play .game__hud {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0; align-items: flex-start; pointer-events: none;
  padding: calc(var(--sat) + 10px) calc(var(--sar) + 66px) 0 calc(var(--sal) + 16px);
}
html.play .game__score { font-size: 34px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
html.play .game__letters { font-size: 14px; margin-top: 10px; }
html.play .game__time { font-size: 22px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
html.play .game__best-wrap { font-size: 10px; letter-spacing: 0.06em; }

/* ---------- touch layout (in the page and full screen) ---------- */
.is-touch .game__opts { display: none; }
.game__menubtn {
  position: absolute; z-index: 7; top: 10px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--paper2);
  background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent; transition: transform 0.12s, background 0.15s;
}
.game__menubtn[hidden] { display: none; }
.game__menubtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.game__menubtn:active { transform: scale(0.92); background: rgba(241, 236, 228, 0.2); }
html.play .game__menubtn { top: calc(var(--sat) + 10px); right: calc(var(--sar) + 12px); }
.is-touch .game__special { top: 12px; width: 96px; height: 4px; border-radius: 2px; overflow: hidden; }
html.play .is-touch .game__special { top: calc(var(--sat) + 52px); left: calc(var(--sal) + 16px); }
.is-touch .game__mission { top: 24px; left: 12px; max-width: calc(100% - 140px); font-size: 11px; padding: 5px 10px; border-radius: 999px; background: rgba(12, 11, 11, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.play .is-touch .game__mission { top: calc(var(--sat) + 62px); left: calc(var(--sal) + 14px); }
.is-touch .game__map { top: 64px !important; bottom: auto !important; right: 12px !important; left: auto !important; width: 86px !important; border-radius: 10px; }
html.play .is-touch .game__map { top: calc(var(--sat) + 64px) !important; right: calc(var(--sar) + 12px) !important; }
.is-touch .game__msg { font-size: clamp(20px, 6vw, 34px); padding: 0 18px; top: 24%; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7); }
.is-touch .game__combo { font-size: 13px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.is-menu .game__pad, .is-menu .game__combo, .is-menu .game__msg, .is-menu .game__mission, .is-menu .game__map, .is-menu .game__enter { visibility: hidden; }
.is-intro .game__menubtn, .is-store .game__menubtn, .is-board .game__menubtn { visibility: hidden; }

/* the pad: steering bottom-left, Ollie bottom-right with the tricks round it */
.game__pad { --b: max(16px, calc(var(--sab) + 6px)); --s: max(14px, calc(var(--sal) + 6px)); --e: max(14px, calc(var(--sar) + 6px)); }
.game__pad:not([hidden]) { position: absolute; inset: 0; display: block; pointer-events: none; z-index: 3; }
.game__pad button {
  position: absolute; pointer-events: auto; display: grid; place-items: center; padding: 0;
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--glass-line); background: var(--glass); color: var(--paper2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.35);
  font: 700 11px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform 0.08s ease-out, background 0.12s, color 0.12s, border-color 0.12s;
}
.game__pad button:active { background: rgba(241, 236, 228, 0.92); color: var(--ink2); border-color: transparent; transform: scale(0.93); }
.game__pad svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.game__pad [data-act="left"], .game__pad [data-act="right"] { width: 70px; height: 70px; border-radius: 24px; bottom: var(--b); }
.game__pad [data-act="left"] { left: var(--s); }
.game__pad [data-act="right"] { left: calc(var(--s) + 80px); }
.game__pad [data-act="walk"] { left: var(--s); bottom: calc(var(--b) + 82px); width: 70px; height: 34px; border-radius: 999px; font-size: 10px; }
.game__pad [data-act="jump"] {
  right: var(--e); bottom: var(--b); width: 92px; height: 92px;
  background: linear-gradient(160deg, #e0401a, #b42a0c); border-color: rgba(255, 190, 160, 0.35); color: var(--paper2);
  font: 800 12px/1 var(--display); letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px rgba(204, 51, 0, 0.35);
}
.game__pad [data-act="jump"]:active { background: #8f2109; color: var(--paper2); }
/* the tricks sit on an arc round Ollie: flip to the left, grab up-left, grind on top */
.game__pad [data-act="flip"] { right: calc(var(--e) + 102px); bottom: calc(var(--b) + 17px); }
.game__pad [data-act="grab"] { right: calc(var(--e) + 78px); bottom: calc(var(--b) + 79px); }
.game__pad [data-act="grind"] { right: calc(var(--e) + 17px); bottom: calc(var(--b) + 103px); }
.game__pad [data-act="special"] { right: calc(var(--e) + 158px); bottom: calc(var(--b) + 84px); width: 44px; height: 44px; opacity: 0.4; }
.game__pad [data-act="special"] svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.game.is-special .game__pad [data-act="special"] { opacity: 1; color: #ff5a1f; border-color: rgba(255, 90, 31, 0.7); box-shadow: 0 0 18px rgba(255, 90, 31, 0.5); }
.game__pad:not([hidden]) ~ .game__combo { bottom: calc(max(16px, var(--sab) + 6px) + 150px); }
@media (orientation: landscape) and (max-height: 520px) {
  .game__pad:not([hidden]) ~ .game__combo { bottom: calc(max(16px, var(--sab) + 6px) + 8px); }
}

/* the game menu (phones): a card over the paused game */
.game__menu {
  position: absolute; z-index: 9; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 10px; padding: 20px;
  background: rgba(12, 11, 11, 0.9); border: 1px solid var(--glass-line); border-radius: 24px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: menu-in 0.22s var(--ease);
}
.game__menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); } }
.is-menu .game__stage::after { content: ""; position: absolute; inset: 0; z-index: 8; background: rgba(0, 0, 0, 0.45); }
.game__menu-title { margin: 0 0 4px; font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--paper2); }
.game__menu button { -webkit-tap-highlight-color: transparent; font-family: var(--label); color: var(--paper2); transition: transform 0.1s, background 0.15s, border-color 0.15s; }
.game__menu button:active { transform: scale(0.97); }
.game__menu button:disabled { opacity: 0.4; }
.game__menu-go { padding: 15px; border-radius: 14px; background: var(--paper2); color: var(--ink2) !important; font-weight: 700; font-size: 15px; }
.game__menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px; font: 700 13px var(--label); color: var(--muted); }
.game__seg { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-line); }
.game__seg button { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted) !important; }
.game__seg button[aria-pressed="true"] { background: var(--paper2); color: var(--ink2) !important; }
.game__menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.game__menu-grid button, .game__menu-install {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 64px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-line); text-align: left; font-weight: 700; font-size: 14px;
}
.game__menu small { font-weight: 400; font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game__menu-install { min-height: 0; border-color: rgba(204, 51, 0, 0.6); background: rgba(204, 51, 0, 0.12); }
.game__menu-install[hidden] { display: none; }
.game__menu-exit { padding: 10px; font-size: 13px; color: var(--muted) !important; }
.game__menu-exit[hidden] { display: none; }
@media (orientation: landscape) and (max-height: 520px) {
  .game__menu { width: min(600px, calc(100% - 32px)); padding: 16px; gap: 8px; }
  .game__menu-grid { grid-template-columns: repeat(3, 1fr); }
  .game__menu-grid button { min-height: 54px; padding: 10px 12px; }
  .game__menu-go { padding: 12px; }
}

/* the song that just started */
.game__track {
  position: absolute; z-index: 4; left: 50%; top: calc(var(--sat) + 112px); transform: translate(-50%, -6px);
  max-width: min(70%, 420px); padding: 7px 14px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(12, 11, 11, 0.7); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 400 12px var(--label); color: var(--muted); pointer-events: none; opacity: 0; transition: opacity 0.3s, transform 0.35s var(--ease);
}
.game__track::before { content: "♪"; margin-right: 8px; color: #ff5a1f; }
.game__track b { color: var(--paper2); font-weight: 700; margin-right: 6px; }
.game__track.is-on { opacity: 1; transform: translate(-50%, 0); }
.game__track:empty { display: none; }

/* the home-screen offer on the how-to card */
.game__install {
  display: flex; align-items: center; gap: 10px; width: min(420px, 100%); padding: 10px 10px 10px 14px; border-radius: 16px; text-align: left;
  background: rgba(204, 51, 0, 0.14); border: 1px solid rgba(204, 51, 0, 0.55);
}
.game__install p { flex: 1; margin: 0; display: grid; gap: 2px; }
.game__install b { font: 700 13px var(--label); color: var(--paper2); }
.game__install span { font: 400 11px/1.35 var(--label); color: #c9c2b8; }
.game__install-go { padding: 9px 14px; border-radius: 999px; background: var(--paper2); color: var(--ink2); font: 700 13px var(--label); }
.game__install-x { width: 30px; height: 30px; border-radius: 50%; color: var(--muted); font-size: 18px; line-height: 1; }

/* ---------- the how-to card on touch ---------- */
.is-touch .game__intro { justify-content: center; gap: 12px; padding: 64px 16px 20px; overflow-y: auto; }
html.play .is-touch .game__intro { padding-top: calc(var(--sat) + 60px); padding-bottom: calc(var(--sab) + 16px); }
.is-touch .game__intro h3 { font-size: 22px; }
.is-touch .game__intro-mode { font-size: 12px; }
.is-touch .game__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(420px, 100%); }
.is-touch .game__card { padding: 10px 8px; border-radius: 14px; border-color: var(--glass-line); background: rgba(255, 255, 255, 0.035); gap: 4px; }
.is-touch .game__card b { font-size: 12px; }
.is-touch .game__card span { font-size: 11px; }
.is-touch .game__caps { min-height: 40px; }
.is-touch .game__intro .game__caps kbd { height: 30px; min-width: 32px; font-size: 11px; border-radius: 9px; border-bottom-width: 1px; background: var(--glass); border-color: var(--glass-line); }
.is-touch .game__intro kbd.is-wide { min-width: 84px; background: linear-gradient(160deg, #e0401a, #b42a0c); border-color: transparent; color: var(--paper2); }
.is-touch .game__intro-tip { display: none; }
@media (orientation: landscape) and (max-height: 520px) {
  .is-touch .game__intro { padding-top: 16px; gap: 8px; }
  .is-touch .game__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(620px, 100%); }
  .is-touch .game__caps { min-height: 34px; }
  .is-touch .game__intro h3 { font-size: 18px; }
}

/* ---------- shop and scoreboard as sheets on phones ---------- */
.is-touch .game__store, .is-touch .game__board {
  top: auto; left: 0; right: 0; bottom: 0; width: auto; transform: none; max-height: 82%;
  padding: 26px max(18px, calc(var(--sar) + 12px)) calc(var(--sab) + 16px) max(18px, calc(var(--sal) + 12px));
  border: 0; border-top: 1px solid var(--glass-line); border-radius: 24px 24px 0 0; gap: 14px;
  animation: sheet-up 0.28s var(--ease);
}
.is-touch .game__store::before, .is-touch .game__board::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(241, 236, 228, 0.25); }
.is-touch .game__board { height: 82%; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
@media (orientation: landscape) and (max-height: 520px) {
  .is-touch .game__store, .is-touch .game__board {
    top: 0; left: auto; height: auto; max-height: none; width: min(420px, 58%);
    padding-top: max(16px, calc(var(--sat) + 10px)); border-top: 0; border-left: 1px solid var(--glass-line); border-radius: 24px 0 0 24px;
    animation-name: sheet-in;
  }
  .is-touch .game__store::before, .is-touch .game__board::before { display: none; }
}
@keyframes sheet-in { from { transform: translateX(24px); opacity: 0; } }
.is-touch .game__store-head h3 { font-size: 17px; }
.is-touch .game__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-line); }
.is-touch .game__tabs::-webkit-scrollbar { display: none; }
.is-touch .game__tabs button, .is-touch .game__board-tabs button { flex: 1; border: 0; padding: 9px 12px; font-size: 13px; white-space: nowrap; }
.is-touch .game__board-tabs { padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-line); }
.is-touch .game__item { min-height: 64px; border-radius: 14px; border-color: var(--glass-line); }
.is-touch .game__item img { width: 52px; height: 52px; border-radius: 10px; }
.is-touch .game__store-foot > * { padding: 14px 12px; font-size: 14px; }
.is-touch .game__leave, .is-touch .game__board-close { border-color: var(--glass-line); background: rgba(255, 255, 255, 0.06); }
.is-touch .game__rows { font-size: 14px; gap: 4px; }
.is-touch .game__rows li { padding: 10px 10px; background: rgba(255, 255, 255, 0.03); border-radius: 12px; }
.is-touch .game__rows .empty { background: none; padding-left: 2px; }
.is-touch .game__rows li.is-me { background: rgba(204, 51, 0, 0.22); }
.is-touch .game__submit input { font-size: 16px; padding: 12px; border-radius: 12px; }   /* 16px: iOS does not zoom the page */
.is-touch .game__enter { padding: 14px 22px; font-size: 15px; box-shadow: 0 0 0 1px rgba(241, 236, 228, 0.25), 0 10px 30px rgba(204, 51, 0, 0.45); }
/* the way in, on a phone in the page */
.game__intro.is-door { gap: 14px; background: radial-gradient(ellipse at 50% 60%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.82)); }
.game__intro.is-door h3 { font-size: 24px; }
.game__play {
  display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%;
  background: linear-gradient(160deg, #e0401a, #b42a0c); color: #f1ece4; font: 800 16px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 40px rgba(204, 51, 0, 0.45);
  animation: play-pulse 2.2s ease-in-out infinite;
}
@keyframes play-pulse { 50% { transform: scale(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 54px rgba(204, 51, 0, 0.6); } }
@media (orientation: landscape) and (max-height: 520px) {
  .game__intro.is-door { padding: 10px 16px; gap: 8px; justify-content: center; }
  .game__intro.is-door h3 { font-size: 16px; }
  .game__intro.is-door .game__intro-mode { display: none; }
  .game__play { width: 76px; height: 76px; font-size: 12px; }
  .game__intro.is-door .game__install { padding: 6px 8px 6px 12px; }
}
.is-intro .game__track { visibility: hidden; }
/* a phone on its side, still in the page: the stage fits under the nav, the score row waits for play */
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  html:not(.play) .game__hud { display: none; }
  html:not(.play) .game__stage { height: calc(100svh - 86px); min-height: 0; margin: 70px 0 0; }
  html:not(.play) .game { padding-top: 0; padding-bottom: 0; }
  html:not(.play) .game__hint { display: none; }
}
