/* =========================================================
   RARICRAFT — voxel / neon-candle theme
   ========================================================= */
:root {
  --bg: #040a07;
  --bg-2: #08140e;
  --panel: rgba(8, 22, 15, 0.78);
  --line: rgba(61, 255, 138, 0.18);

  --green: #3dff8a;
  --green-2: #19c76a;
  --green-3: #0d6b3a;
  --red: #e3121b;
  --red-2: #b20d14;
  --red-3: #5c060a;
  --gold: #f5c518;
  --gold-2: #c99400;
  --ink: #0b0d0c;

  --text: #eafff2;
  --muted: #8fbfa4;

  --pixel: "Press Start 2P", ui-monospace, monospace;
  --body: "Pixelify Sans", ui-sans-serif, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--green); color: var(--ink); }

/* ---------- Background layers ---------- */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  image-rendering: pixelated;
}
.scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.65) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}

/* ---------- Buttons (voxel blocks) ---------- */
.btn {
  --c: var(--red);
  --c-dark: var(--red-3);
  --fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 22px;
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg);
  background: var(--c);
  border: 3px solid var(--ink);
  box-shadow:
    inset 4px 4px 0 rgba(255, 255, 255, 0.28),
    inset -4px -4px 0 rgba(0, 0, 0, 0.32),
    0 6px 0 0 var(--c-dark),
    0 6px 0 3px var(--ink);
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow:
    inset 4px 4px 0 rgba(255, 255, 255, 0.28),
    inset -4px -4px 0 rgba(0, 0, 0, 0.32),
    0 8px 0 0 var(--c-dark),
    0 8px 0 3px var(--ink),
    0 0 28px color-mix(in srgb, var(--c) 55%, transparent); }
.btn:active { transform: translateY(5px); box-shadow:
    inset 4px 4px 0 rgba(255, 255, 255, 0.2),
    inset -4px -4px 0 rgba(0, 0, 0, 0.32),
    0 1px 0 0 var(--c-dark),
    0 1px 0 3px var(--ink); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }

.btn--sm { padding: 10px 14px; font-size: 11px; }
.btn--green { --c: var(--green-2); --c-dark: var(--green-3); --fg: #04140a; }
.btn--gold  { --c: var(--gold); --c-dark: #7a5a00; --fg: #2a1d00; }
.btn--dark  { --c: #1c2a24; --c-dark: #050a07; --fg: #eafff2; }
.btn--black { --c: #111; --c-dark: #000; --fg: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background 0.3s ease, border-color 0.3s ease, height 0.3s ease;
  border-bottom: 2px solid transparent;
}
.header.is-scrolled {
  background: rgba(4, 10, 7, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  height: 62px;
}
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--pixel); font-size: 14px; }
.logo img { width: 36px; height: 36px; image-rendering: pixelated; filter: drop-shadow(0 0 10px rgba(227, 18, 27, 0.5)); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav__link {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s steps(5);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 2px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav__icon:hover { border-color: var(--green); color: var(--green); box-shadow: 0 0 16px rgba(61, 255, 138, 0.35); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 120px;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--green);
  background: rgba(61, 255, 138, 0.08);
  border: 2px solid rgba(61, 255, 138, 0.35);
}
.chip__dot {
  width: 8px; height: 8px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

.title {
  margin: 26px 0 22px;
  font-family: var(--pixel);
  font-weight: 400;
  line-height: 1.02;
  font-size: clamp(44px, 8.2vw, 104px);
  letter-spacing: -0.02em;
}
.title__row {
  display: block;
  color: #fff;
  text-shadow:
    2px 2px 0 #c9c9c9,
    4px 4px 0 #8a8a8a,
    6px 6px 0 #3a3a3a,
    8px 8px 0 var(--ink),
    0 0 40px rgba(61, 255, 138, 0.35);
}
.title__row--alt {
  color: var(--red);
  text-shadow:
    2px 2px 0 var(--red-2),
    4px 4px 0 #8e0b10,
    6px 6px 0 var(--red-3),
    8px 8px 0 var(--ink),
    0 0 50px rgba(227, 18, 27, 0.45);
}

.lead {
  max-width: 520px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

/* Contract address */
.ca {
  max-width: 560px;
  padding: 14px 14px 14px 18px;
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ca__label { font-family: var(--pixel); font-size: 9px; color: var(--green); margin-bottom: 10px; letter-spacing: 0.08em; }
.ca__row { display: flex; align-items: center; gap: 14px; }
.ca__value {
  flex: 1;
  min-width: 0;
  font-family: var(--body);
  font-size: 17px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.3;
}
.ca__copy { flex-shrink: 0; min-width: 92px; }
.ca__copy.is-done { --c: var(--green-2); --c-dark: var(--green-3); --fg: #04140a; }

.links { display: flex; flex-wrap: wrap; gap: 18px 16px; margin-top: 30px; }

/* Mascot */
.hero__art { display: flex; justify-content: center; }
.mascot {
  position: relative;
  width: min(100%, 520px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.mascot__glow {
  position: absolute;
  inset: 8% 4% -2%;
  background: radial-gradient(closest-side, rgba(61, 255, 138, 0.55), rgba(61, 255, 138, 0) 70%);
  filter: blur(30px);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.6; transform: scale(0.95); } }
.mascot__frame {
  position: relative;
  border: 4px solid var(--ink);
  outline: 3px solid rgba(61, 255, 138, 0.55);
  outline-offset: 6px;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.65), 0 0 60px rgba(61, 255, 138, 0.25);
  animation: bob 5s ease-in-out infinite;
  background: var(--bg-2);
}
.mascot__frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.corner {
  position: absolute;
  width: 18px; height: 18px;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}
.corner--tl { top: -15px; left: -15px; }
.corner--tr { top: -15px; right: -15px; }
.corner--bl { bottom: -15px; left: -15px; }
.corner--br { bottom: -15px; right: -15px; }

.mascot__tag {
  position: absolute;
  left: -18px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  background: var(--red);
  border: 3px solid var(--ink);
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.25), inset -3px -3px 0 rgba(0, 0, 0, 0.3), 6px 6px 0 var(--ink);
  transform: rotate(-4deg);
  animation: bob 5s ease-in-out infinite reverse;
}
.mascot__name { font-family: var(--pixel); font-size: 16px; }
.mascot__role { font-size: 14px; color: #ffd7d9; }

.cube {
  position: absolute;
  width: 26px; height: 26px;
  background: var(--green);
  border: 3px solid var(--ink);
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.4), inset -4px -4px 0 rgba(0, 0, 0, 0.3), 0 0 22px rgba(61, 255, 138, 0.6);
  animation: float 6s ease-in-out infinite;
}
.cube--1 { top: -4%; left: 6%; animation-delay: -1s; }
.cube--2 { top: 30%; right: -6%; width: 18px; height: 18px; animation-delay: -3s; }
.cube--3 { bottom: -6%; right: 18%; width: 22px; height: 22px; background: var(--red); box-shadow: inset 4px 4px 0 rgba(255,255,255,.35), inset -4px -4px 0 rgba(0,0,0,.3), 0 0 22px rgba(227,18,27,.6); animation-delay: -2s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(12deg); }
}
.paw-coin {
  position: absolute;
  width: 48px; height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%237a5200' d='M3 0h6v1h2v2h1v6h-1v2H9v1H3v-1H1V9H0V3h1V1h2z'/%3E%3Cpath fill='%23f5c518' d='M3 1h6v1h2v1h0v6h-1v1H9v1H3v-1H2V9H1V3h1V2h1z'/%3E%3Cpath fill='%23ffe066' d='M3 2h6v1h1v6H9v1H3V9H2V3h1z'/%3E%3Cpath fill='%235a3b1a' d='M3 4h1v1H3zM5 3h2v1H5zM8 4h1v1H8zM4 6h4v1h1v2H3V7h1z'/%3E%3C/svg%3E") center / contain no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 12px rgba(245, 197, 24, 0.6));
  animation: spin 3.4s linear infinite, float 5s ease-in-out infinite;
}
.paw-coin--1 { top: 12%; left: -7%; }
.paw-coin--2 { bottom: 18%; right: -5%; width: 36px; height: 36px; animation-delay: -1.2s, -2s; }
@keyframes spin { 0%,100% { scale: 1 1; } 50% { scale: 0.15 1; } }

/* Floor grid */
.floor {
  position: absolute;
  left: -20%; right: -20%;
  bottom: -10%;
  height: 46%;
  z-index: 1;
  background-image:
    linear-gradient(rgba(61, 255, 138, 0.35) 2px, transparent 2px),
    linear-gradient(90deg, rgba(61, 255, 138, 0.35) 2px, transparent 2px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
          mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 3s linear infinite;
  pointer-events: none;
}
@keyframes floor { to { background-position: 0 64px; } }

.scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--green);
}
.scroll-hint i {
  width: 12px; height: 12px;
  border-right: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  transform: rotate(45deg);
  animation: hint 1.4s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translateY(6px) rotate(45deg); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--red);
  border-block: 4px solid var(--ink);
  box-shadow: 0 0 40px rgba(227, 18, 27, 0.35);
  transform: rotate(-1.2deg) scale(1.03);
  margin: 20px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
  font-family: var(--pixel);
  font-size: 14px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee__track b { color: var(--gold); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Game section ---------- */
.game-section {
  position: relative;
  padding: 96px var(--gutter) 90px;
  scroll-margin-top: 10px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.key--arrow { font-family: var(--body); font-size: 15px; }
.h2 {
  margin: 0 0 18px;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 56px);
  color: #fff;
  text-shadow: 3px 3px 0 #555, 6px 6px 0 var(--ink);
}
.h2 span { color: var(--green); text-shadow: 3px 3px 0 var(--green-3), 6px 6px 0 var(--ink), 0 0 30px rgba(61, 255, 138, 0.5); }
.section-head p { margin: 0; color: var(--muted); font-size: 19px; }

.game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.game__stage {
  position: relative;
  height: clamp(420px, calc(100vh - 250px), 760px);
  aspect-ratio: 180 / 300;
  max-width: 100%;
  border: 4px solid var(--ink);
  outline: 3px solid rgba(61, 255, 138, 0.5);
  outline-offset: 6px;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.6), 0 0 80px rgba(61, 255, 138, 0.22);
  background: #050906;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
#gameCanvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.game__stage.shake { animation: shake 0.4s steps(8); }
@keyframes shake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 3px); }
  40% { transform: translate(6px, -4px); }
  60% { transform: translate(-4px, 2px); }
  80% { transform: translate(3px, -1px); }
  100% { transform: translate(0, 0); }
}

.hud {
  position: absolute;
  top: 10px; left: 10px; right: 54px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}
.hud__box {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.62);
  border: 2px solid rgba(61, 255, 138, 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hud__box small { font-family: var(--pixel); font-size: 7px; color: var(--green); }
.hud__box b { font-family: var(--pixel); font-size: 12px; font-weight: 400; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.hud__box--gold { border-color: rgba(245, 197, 24, 0.55); }
.hud__box--gold small { color: var(--gold); }
.hud__mute {
  position: absolute;
  top: 10px; right: 10px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.62);
  border: 2px solid rgba(61, 255, 138, 0.4);
  color: var(--green);
}
.hud__mute .x { display: none; }
.hud__mute.is-muted .x { display: block; }
.hud__mute.is-muted .wave { display: none; }
.hud__mute.is-muted { color: var(--muted); }

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 8, 5, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.overlay.is-visible { opacity: 1; visibility: visible; }
.overlay__card {
  width: 100%;
  max-width: 300px;
  padding: 24px 18px 20px;
  text-align: center;
  background: rgba(6, 18, 12, 0.92);
  border: 3px solid var(--ink);
  outline: 2px solid rgba(61, 255, 138, 0.5);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.6);
  transform: translateY(8px);
  transition: transform 0.3s ease;
}
.overlay.is-visible .overlay__card { transform: none; }
.overlay__title {
  font-family: var(--pixel);
  font-size: 22px;
  color: var(--green);
  text-shadow: 3px 3px 0 var(--green-3), 0 0 20px rgba(61, 255, 138, 0.5);
  margin-bottom: 14px;
}
.overlay__title.is-rekt { color: var(--red); text-shadow: 3px 3px 0 var(--red-3), 0 0 20px rgba(227, 18, 27, 0.6); }
.overlay__text { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.overlay__score {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.overlay__score[hidden] { display: none; }
.overlay__score div { padding: 8px 4px; background: rgba(0, 0, 0, 0.45); border: 2px solid var(--line); }
.overlay__score small { display: block; font-family: var(--pixel); font-size: 7px; color: var(--green); margin-bottom: 6px; }
.overlay__score b { font-family: var(--pixel); font-size: 14px; font-weight: 400; }
.overlay__score .new { grid-column: 1 / -1; font-family: var(--pixel); font-size: 9px; color: var(--gold); border: 0; background: none; padding: 0; animation: blink 0.8s steps(2) infinite; }
.overlay__keys { margin-top: 18px; font-size: 14px; color: var(--muted); }
.key {
  display: inline-grid;
  place-items: center;
  min-width: 24px; height: 24px;
  margin: 0 2px;
  padding: 0 4px;
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--text);
  background: #16251d;
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.overlay__touch { display: none; }

.game__controls { display: none; gap: 16px; width: min(100%, 420px); }
.pad {
  flex: 1;
  height: 72px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--red);
  border: 3px solid var(--ink);
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.28), inset -4px -4px 0 rgba(0, 0, 0, 0.32), 0 6px 0 0 var(--red-3), 0 6px 0 3px var(--ink);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s;
}
.pad:active, .pad.is-down { transform: translateY(5px); box-shadow: inset 4px 4px 0 rgba(255,255,255,.2), inset -4px -4px 0 rgba(0,0,0,.32), 0 1px 0 0 var(--red-3), 0 1px 0 3px var(--ink); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  padding: 30px var(--gutter) 40px;
  font-size: 15px;
  color: var(--muted);
  border-top: 2px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
}
.footer__sep { color: var(--red); font-size: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  padding: 14px 20px;
  font-family: var(--pixel);
  font-size: 11px;
  color: #04140a;
  background: var(--green);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink), 0 0 30px rgba(61, 255, 138, 0.5);
  transform: translate(-50%, 140%);
  transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal--delay { transition-delay: 0.15s; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-top: calc(var(--header-h) + 24px); padding-bottom: 110px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text { display: flex; flex-direction: column; align-items: center; }
  .hero__art { order: -1; }
  .mascot { width: min(82%, 440px); }
  .lead { margin-inline: auto; }
  .ca { width: 100%; text-align: left; }
  .links { justify-content: center; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 17px; }
  .logo span { font-size: 11px; }
  .nav { gap: 12px; }
  .nav__link { display: none; }
  .title { margin: 22px 0 18px; }
  .title__row { text-shadow: 1px 1px 0 #c9c9c9, 2px 2px 0 #8a8a8a, 3px 3px 0 #3a3a3a, 5px 5px 0 var(--ink); }
  .title__row--alt { text-shadow: 1px 1px 0 var(--red-2), 2px 2px 0 #8e0b10, 3px 3px 0 var(--red-3), 5px 5px 0 var(--ink); }
  .links { flex-direction: column; align-items: stretch; width: 100%; }
  .links .btn { width: 100%; }
  .ca__row { flex-direction: column; align-items: stretch; }
  .ca__value { font-size: 16px; }
  .mascot__tag { left: -6px; bottom: 14px; padding: 8px 12px; }
  .mascot__name { font-size: 12px; }
  .mascot__role { font-size: 12px; }
  .paw-coin--1 { left: -4%; width: 36px; height: 36px; }
  .corner { width: 12px; height: 12px; }
  .corner--tl, .corner--tr { top: -11px; } .corner--bl, .corner--br { bottom: -11px; }
  .corner--tl, .corner--bl { left: -11px; } .corner--tr, .corner--br { right: -11px; }
  .marquee__track { font-size: 11px; padding: 12px 0; }
  .game-section { padding-top: 80px; }
  .game__stage { height: auto; width: min(100%, 420px, calc(72vh * 0.6)); }
  .hud__box b { font-size: 10px; }
}
@media (hover: none), (pointer: coarse) {
  .game__controls { display: flex; }
  .overlay__touch { display: inline; }
  .overlay__kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
