:root {
  color-scheme: dark;
  --bg: #1a1210;
  --panel: rgba(22, 15, 18, 0.86);
  --panel-strong: rgba(27, 18, 21, 0.96);
  --line: rgba(255, 223, 165, 0.14);
  --text: #fff7ef;
  --muted: rgba(255, 247, 239, 0.74);
  --red: #f23b2f;
  --brick: #9b3a22;
  --brown: #8f5b2b;
  --sky: #4ea2ff;
  --cream: #ffd95f;
  --gold: #f7c84b;
  --green: #66d38b;
  --pipe: #2f934e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --display-font: "Bungee", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --arcade-font: "Press Start 2P", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  html {
    zoom: 0.9;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(78, 162, 255, 0.24), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(242, 59, 47, 0.28), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(47, 147, 78, 0.22), transparent 22%),
    linear-gradient(180deg, #2b1714 0%, #1b1211 40%, #120d0f 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  cursor: none;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(90deg, rgba(255, 209, 96, 0.18) 0 6px, transparent 6px 32px),
    linear-gradient(180deg, rgba(155, 58, 34, 0.4) 0 8px, transparent 8px 64px),
    linear-gradient(90deg, rgba(24, 13, 11, 0.58), transparent 12%, transparent 88%, rgba(24, 13, 11, 0.58));
  background-size: 32px 32px, 100% 64px, 100% 100%;
  mix-blend-mode: screen;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 217, 95, 0.22), transparent 11%),
    radial-gradient(circle at 88% 18%, rgba(78, 162, 255, 0.16), transparent 14%),
    linear-gradient(90deg, rgba(49, 22, 16, 0.58), transparent 12%, transparent 88%, rgba(49, 22, 16, 0.58));
  opacity: 1;
}
body.ready .intro { opacity: 0; pointer-events: none; transform: scale(1.03); }
body.ready .shell { filter: none; opacity: 1; }

.background-video,
.scanlines,
.crt-glow,
.cursor-orb {
  pointer-events: none;
}
.background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.06) brightness(0.34);
  opacity: 0.88;
  transform: scale(1.02);
  z-index: 0;
}
body.is-low-motion .background-video {
  display: none;
}
.scanlines {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: 0.06;
  mix-blend-mode: screen;
  z-index: 2;
}
.crt-glow {
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle at center, transparent 42%, rgba(255, 176, 79, 0.06) 72%, rgba(0,0,0,0.26) 100%);
  opacity: 0.68;
  z-index: 1;
}
.cursor-orb {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 0;
  background: url('./assets/images/mario-cursor-icon.png') center/contain no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  z-index: 30;
  transition: width 0.18s ease, height 0.18s ease, filter 0.18s ease;
}
body[data-hover-card="true"] .cursor-orb {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 3px 12px rgba(247, 200, 75, 0.36));
}

.intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  z-index: 10;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.intro::before,
.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.intro::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 100% 72px, 72px 100%;
  opacity: 0.24;
  mix-blend-mode: screen;
}
.intro::after {
  background: radial-gradient(circle at center, transparent 0 38%, rgba(0,0,0,0.7) 100%);
  opacity: 0.96;
}
.intro__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 5, 11, 0.2), rgba(4, 5, 11, 0.55)),
    radial-gradient(circle at center, transparent 12%, rgba(0,0,0,0.28) 100%);
  z-index: 0;
}
.intro__stack {
  position: relative;
  z-index: 2;
  width: min(100%, 1100px);
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem) 1rem 2rem;
}
.intro__stack,
.intro__stack * {
  cursor: none;
}
.intro .kicker,
.hero__eyebrow,
.section__eyebrow,
.viewer__eyebrow,
.puzzle__label {
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--cream);
  font-family: var(--arcade-font);
}

.intro .kicker {
  letter-spacing: 0.34em;
  color: #f7c94b;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
}
.intro h1 {
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  line-height: 0.8;
  font-family: var(--display-font);
  font-size: clamp(4.4rem, 10vw, 9.4rem);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #ffd95a;
  -webkit-text-stroke: 10px #a63b23;
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 #7f2a1a,
    0 8px 18px rgba(0, 0, 0, 0.5);
}
.intro h1 span {
  display: block;
}
.intro p {
  color: rgba(255,255,255,0.68);
  margin: 1.1rem auto 0;
  max-width: 34ch;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.5;
}
.cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  min-width: 180px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 800;
  font-family: var(--arcade-font);
}
.cta {
  cursor: none;
  pointer-events: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(242, 59, 47, 0.98), rgba(158, 39, 25, 0.96));
  border-color: rgba(255,255,255,0.24);
  color: #fff7f1;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  border-radius: 18px 18px 28px 28px;
  min-width: 260px;
  padding: 1rem 2rem;
}
.cta--flash {
  animation: buttonFlash 0.8s steps(2, end) infinite;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 0 24px rgba(242, 59, 47, 0.22),
    0 24px 80px rgba(0, 0, 0, 0.45);
}
@keyframes buttonFlash {
  0%, 49% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
    opacity: 1;
  }
  50%, 100% {
    transform: translateY(0) scale(1);
    filter: brightness(0.92);
    opacity: 0.9;
  }
}

.shell {
  position: relative;
  z-index: 3;
  width: min(1200px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  opacity: 0.02;
  filter: blur(6px);
  transition: opacity 0.8s ease 0.2s, filter 0.8s ease 0.2s;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: 0 0 1.4rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
}
.nav a:hover { color: var(--text); border-color: var(--line); background: rgba(255, 217, 95, 0.06); }
.hero { padding-top: 0.65rem; }
.hero__content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: stretch;
}
.hero__copy, .panel, .checklist, .about, .puzzle, .timeline { 
  background:
    linear-gradient(180deg, rgba(255, 217, 95, 0.03), rgba(0,0,0,0) 22%),
    linear-gradient(180deg, rgba(22, 15, 18, 0.22), rgba(13, 10, 14, 0.18));
  border: 1px solid rgba(255, 223, 165, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}
.hero__copy { padding: clamp(1.2rem, 3vw, 2.2rem); }
.hero__copy h2,
.section__heading h3,
.hero__feature-top,
.viewer__meta h4,
.back__title,
.footer strong,
.scratchoff-copy,
.puzzle-board__label,
.puzzle-board__count {
  font-family: var(--display-font);
  color: #ffde66;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  text-shadow:
    0 1px 0 rgba(255, 248, 214, 0.98),
    0 2px 0 #8a3520,
    0 4px 0 #6f291a,
    0 6px 0 #5a1f13,
    0 10px 18px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke: 8px #5a1f13;
  paint-order: stroke fill;
}
.hero__copy { padding: clamp(1rem, 2.4vw, 1.8rem); }
.hero__copy h2 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.9rem, 3.5vw, 3.5rem);
  line-height: 0.95;
}
.hero__copy p { color: rgba(255,255,255,0.9); line-height: 1.72; max-width: 60ch; font-size: clamp(1.03rem, 1.35vw, 1.18rem); }
.hero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.1rem; }
.hero__feature { padding: 0.8rem; }
.hero__feature-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.hero__feature-slot .card {
  width: min(100%, 360px);
  margin: 0 auto;
}

.facts, .puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}
.fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.85rem;
  text-align: center;
}
.fact strong { display: block; font-size: 1.7rem; color: var(--gold); }
.fact span { color: var(--muted); }
.fact--nav {
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.fact--nav:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 217, 95, 0.28);
  background: linear-gradient(180deg, rgba(255, 217, 95, 0.06), rgba(0,0,0,0.18));
}
.section { margin-top: 3rem; content-visibility: auto; contain-intrinsic-size: 1px 900px; }
.section--gap {
  min-height: 72vh;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.section__heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}
.section__heading h3 { margin: 0.4rem 0 0; font-family: var(--display-font); font-size: clamp(1.4rem, 2.4vw, 2.3rem); }
.section__heading p { margin: 0; color: var(--muted); max-width: 46ch; }
.section__heading--stacked { display: block; }
.section__heading--stacked > div { width: 100%; }
.scratchoff-copy {
  display: block;
  margin-top: 0.45rem;
  max-width: 58ch;
  color: #ffd95a;
  font-family: var(--display-font);
  font-size: clamp(0.9rem, 1.05vw, 1.05rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.section--spotlight .rail {
  padding: 1rem;
}
.section--spotlight .card__face {
  padding: 0.6rem;
}
.section--spotlight .card img {
  aspect-ratio: 5 / 7;
}
.section--spotlight .card__meta {
  padding: 0.65rem 0.1rem 0.2rem;
}
.card-wall {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
#stickerWall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: 0.8rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
#stickerWall.panel {
  background: rgba(20, 20, 20, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
  backdrop-filter: none;
}
#stickerWall .card__face {
  padding: 0.35rem 0.2rem 0.15rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}
#stickerWall .card__face--back {
  background: transparent;
}
#stickerWall .card__tag {
  display: none;
}
#stickerWall .card img {
  aspect-ratio: 5 / 7;
}
#stickerWall .card__meta {
  padding: 0.65rem 0.1rem 0.2rem;
}
.card {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: inherit;
  perspective: 1400px;
  cursor: pointer;
  transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.26s ease;
}
.card::-moz-focus-inner {
  border: 0;
  padding: 0;
}
.card__inner {
  position: relative;
  min-height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.card.is-flipped .card__inner { transform: rotateY(180deg); }
.card__face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: none;
}
.card__face--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: transparent;
  display: grid;
  place-items: center;
  text-align: center;
}
.card:hover .card__face { border-color: rgba(255, 217, 95, 0.38); }
.card:hover {
  transform: translateY(-4px) scale(1.01);
}
.card.is-flipped:hover {
  transform: translateY(-2px) scale(1.005);
}
.card img { width: 100%; aspect-ratio: 1 / 1.28; object-fit: cover; display: block; border-radius: 16px; }
.card__meta { padding: 0.8rem 0.2rem 0.3rem; }
.card--scratchoff .card__meta { display: none; }
.card--scratchoff .card__face--front {
  background: rgba(7, 7, 10, 0.24);
}
.card--scratchoff .card__face--front img {
  aspect-ratio: 5 / 7;
  object-fit: contain;
  object-position: center;
  padding: 0.34rem;
  background: rgba(6, 6, 10, 0.92);
}
.card--scratchoff .card__face--back img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.card--scratchoff .card__face--back img {
  object-fit: contain;
  padding: 0.34rem;
  background: rgba(6, 6, 10, 0.92);
}
.card__meta strong { display: block; font-size: 0.95rem; }
.card__meta span { display: block; color: var(--muted); font-size: 0.83rem; margin-top: 0.25rem; }
.card__tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  background: rgba(26, 18, 16, 0.88);
  border: 1px solid rgba(255,223,165,0.14);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#stickerWall .card__face {
  padding: 0.6rem;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.06);
}
#stickerWall .card__face--back {
  background: transparent;
}
.back__label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.76);
}
.back__title {
  margin: 0.75rem 0 0.45rem;
  font-size: 1.4rem;
  line-height: 1;
}
.back__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 24ch;
}
.back__bars {
  width: min(80%, 180px);
  height: 12px;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(247,200,75,0.9), rgba(78,162,255,0.9));
  box-shadow: 0 0 26px rgba(78,162,255,0.22);
}

.puzzle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: start;
  justify-items: center;
}
.puzzle-board {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.52rem 0.52rem;
  width: 100%;
  max-width: 560px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 217, 95, 0.05), transparent 36%),
    linear-gradient(180deg, rgba(22, 15, 18, 0.72), rgba(13, 10, 14, 0.9));
}
.puzzle-board__header {
  position: static;
  top: auto;
  left: auto;
  z-index: 2;
  pointer-events: none;
  padding-left: 0.08rem;
}
.puzzle-board__top {
  display: none;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.puzzle-board__label,
.puzzle-board__count {
  font-family: var(--display-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 1.4vw, 1.25rem);
  line-height: 1;
  color: #ffd95a;
}
.puzzle-board__count {
  display: none;
  color: var(--muted);
}
.puzzle-board__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  aspect-ratio: 4.15 / 5;
  gap: 2px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.14);
}
.puzzle-board__tiles .puzzle-tile {
  border-radius: 10px;
}
.puzzle-tile {
  position: relative;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateZ(0);
  transition: transform 0.18s cubic-bezier(.2,.7,.2,1), box-shadow 0.18s ease, filter 0.18s ease;
}
.puzzle-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  filter: brightness(1.02);
}
.puzzle-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 760px) {
  .puzzle-grid { grid-template-columns: 1fr; }
  .puzzle-board {
    max-width: min(560px, calc(100vw - 1rem));
  }
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0 0;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--arcade-font);
  font-size: 0.72rem;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.footer__version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 217, 90, 0.28);
  background: rgba(255, 217, 90, 0.08);
  color: #ffd95a;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  line-height: 1;
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  padding: 0.42rem 0.65rem 0.42rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.footer__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
  flex: 0 0 auto;
}
.footer__handle {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.footer__social:hover {
  transform: translateY(-1px) scale(1.04);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 217, 90, 0.28);
  color: #ffd95a;
}

.viewer {
  width: min(1100px, calc(100vw - 1.25rem));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px;
  padding: 0;
  background: rgba(5,6,12,0.96);
  color: var(--text);
  box-shadow: var(--shadow);
}
.viewer::backdrop { background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); }
.viewer__close {
  position: absolute;
  right: 0.85rem;
  top: 0.8rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 1.7rem;
  cursor: pointer;
}
.viewer__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  padding: 1rem;
}
.viewer__imageWrap {
  min-height: 68vh;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.viewer__imageWrap img { width: 100%; height: 100%; object-fit: contain; display: block; background: #06070c; }
.viewer__meta { padding: 1.4rem; }
.viewer__meta h4 { margin: 0.5rem 0 0.7rem; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; }
.viewer__meta p { color: var(--muted); line-height: 1.65; }
.viewer__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1.4rem 0;
}
.viewer__stats div {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}
.viewer__stats dt { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; }
.viewer__stats dd { margin: 0.3rem 0 0; }
.viewer__note { padding-top: 0.7rem; border-top: 1px solid rgba(255,255,255,0.08); }

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor-orb {
    display: none;
  }

  .intro,
  .intro__stack,
  .intro__stack * {
    cursor: auto;
  }

  .card,
  .fact--nav,
  .footer__social,
  .cta {
    touch-action: manipulation;
  }

  .card:hover,
  .card.is-flipped:hover,
  .footer__social:hover,
  .fact--nav:hover {
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero__content, .viewer__layout, .facts, .rail, .puzzle-grid { grid-template-columns: 1fr 1fr; }
  .rail, .card-wall { grid-template-columns: 1fr 1fr; }
  #stickerWall { grid-template-columns: 1fr 1fr; }
  .viewer__imageWrap { min-height: 44vh; }
}
@media (max-width: 680px) {
  .shell {
    width: min(100vw - 0.75rem, 1200px);
    padding-top: 2.9rem;
    padding-bottom: 1.5rem;
  }

  .cursor-orb {
    display: none;
  }

  .background-video {
    opacity: 0.72;
    filter: saturate(0.92) contrast(1.03) brightness(0.28);
  }

  .intro__stack {
    padding: 0.9rem 0.5rem 1.3rem;
  }

  .intro .kicker {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
  }

  .intro h1 {
    font-size: clamp(3.2rem, 15vw, 5.1rem);
    -webkit-text-stroke: 4px #a63b23;
    line-height: 0.84;
    text-shadow:
      0 1px 0 #7f2a1a,
      0 4px 10px rgba(0, 0, 0, 0.42);
  }

  .intro p {
    font-size: 0.92rem;
    max-width: 24ch;
  }

  .cta {
    min-width: 200px;
    padding: 0.9rem 1.2rem;
  }

  .hero {
    padding-top: 0.4rem;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .hero__copy {
    padding: 1rem;
  }

  .hero__copy h2 {
    font-size: clamp(1.45rem, 7.4vw, 2.15rem);
    line-height: 0.96;
    letter-spacing: 0.01em;
  }

  .hero__copy p {
    font-size: 1.05rem;
    line-height: 1.72;
    max-width: none;
  }

  .hero__feature {
    padding: 0.55rem;
  }

  .hero__feature-slot .card {
    width: min(100%, 290px);
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .fact {
    padding: 0.82rem 0.9rem;
  }

  .section {
    margin-top: 2rem;
  }

  .section__heading {
    margin-bottom: 0.75rem;
  }

  .section__heading h3 {
    font-size: clamp(1.15rem, 5.4vw, 1.62rem);
    line-height: 1.12;
    letter-spacing: 0.01em;
    max-width: 22ch;
  }

  .hero__copy h2,
  .section__heading h3,
  .viewer__meta h4,
  .back__title,
  .footer strong,
  .scratchoff-copy,
  .puzzle-board__label,
  .puzzle-board__count {
    -webkit-text-stroke: 4px #5a1f13;
    text-shadow:
      0 1px 0 rgba(255, 248, 214, 0.9),
      0 2px 0 #8a3520,
      0 4px 8px rgba(0, 0, 0, 0.42);
  }

  .rail {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .card {
    min-height: auto;
  }

  .card img {
    aspect-ratio: 1 / 1.18;
  }

  .card__meta {
    padding: 0.62rem 0.18rem 0.22rem;
    font-size: 0.9rem;
  }

  .puzzle-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .puzzle-board {
    max-width: min(500px, calc(100vw - 1rem));
    padding: 0.7rem;
  }

  .puzzle-board__tiles {
    gap: 0.24rem;
  }

  .puzzle-board__label {
    font-size: clamp(1.15rem, 6vw, 1.55rem);
  }

  .card-wall {
    grid-template-columns: 1fr 1fr;
    padding: 0.75rem;
    gap: 0.55rem;
  }

  #stickerWall {
    grid-template-columns: 1fr 1fr;
  }

  .viewer {
    width: calc(100vw - 0.6rem);
    border-radius: 22px;
  }

  .viewer__layout {
    grid-template-columns: 1fr;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .viewer__imageWrap {
    min-height: 36vh;
  }

  .viewer__meta {
    padding: 0.5rem 0.15rem 0.25rem;
  }

  .viewer__meta h4 {
    font-size: 1.5rem;
  }

  .viewer__stats {
    margin: 1rem 0;
  }

  .about {
    padding: 1rem 1rem;
  }

  .about p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .footer {
    align-items: flex-start;
    padding-top: 1rem;
  }
}

@media (max-width: 360px) {
  .rail,
  .card-wall,
  #stickerWall {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100vw - 0.5rem, 1200px);
  }

  .rail,
  .card-wall,
  #stickerWall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__copy,
  .panel,
  .about {
    border-radius: 20px;
  }

  .puzzle-board__tiles {
    gap: 0.18rem;
  }

  .viewer__imageWrap {
    min-height: 30vh;
  }
}

