@font-face {
  font-family: "VCR OSD Mono Nova";
  src: url("/assets/fonts/VCROSDMonoNova.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050403;
  --panel: #0b0907;
  --panel-2: #120f0b;
  --ink: #fffaf0;
  --muted: #d4c4a7;
  --line: rgba(255, 255, 255, 0.18);
  --black: #000000;
  --amber: #ffc15a;
  --orange: #ff7b2f;
  --glass: rgba(0, 0, 0, 0.4);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 80%;
  min-height: 100%;
  background: var(--bg);
  scrollbar-width: none;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.carousel,
.scrim {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.carousel {
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.carousel-track {
  display: flex;
  width: max-content;
  height: 100vh;
  height: 100dvh;
  animation: carousel-scroll 150s linear infinite;
  will-change: transform;
}

.carousel img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 100vh;
  height: 100dvh;
  object-fit: cover;
  user-select: none;
}

.carousel img[src*="johnny-01"] {
  transform: scale(0.82);
  transform-origin: center center;
}

.scrim {
  z-index: 1;
  background: var(--glass);
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
}

.lang-links,
.pixel {
  font-family: "VCR OSD Mono Nova", "Lucida Console", "Courier New", monospace;
  letter-spacing: 0;
}

.lang-links {
  display: flex;
  gap: 8px;
}

.lang-links a,
.text-link {
  color: var(--ink);
  text-decoration: none;
}

.lang-links a {
  border: 2px solid var(--line);
  background: rgba(0, 0, 0, 0.58);
  padding: 6px 9px;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 94px 24px 58px;
  text-align: center;
}

.hero-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(900px, 100%);
}

.eyebrow {
  margin: 0;
  color: var(--amber);
  font-size: 1.05rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

h1,
.hero-title {
  max-width: 100%;
  margin: 0;
  overflow-wrap: break-word;
  color: #fff;
  font-family: "VCR OSD Mono Nova", "Lucida Console", "Courier New", monospace;
  font-size: 7rem;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-text-stroke: 3px var(--black);
  text-shadow:
    0 7px 0 var(--black),
    4px 0 0 var(--black),
    -4px 0 0 var(--black),
    0 -4px 0 var(--black),
    0 0 26px rgba(255, 193, 90, 0.48);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-title-long {
  font-size: 6rem;
}

.hero-logo-title {
  width: min(780px, 92vw);
  font-size: 0;
  line-height: 0;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 7px 0 var(--black)) drop-shadow(0 0 24px rgba(255, 193, 90, 0.34));
}

.hero-copy {
  max-width: 660px;
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  text-shadow: 0 2px 0 #000;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 3px;
}

.button {
  display: inline-flex;
  min-width: 176px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 6px 0 var(--black), inset 0 0 0 2px rgba(255, 255, 255, 0.24);
  color: var(--ink);
  font-family: "VCR OSD Mono Nova", "Lucida Console", "Courier New", monospace;
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.button:hover,
.button:focus-visible,
.lang-links a:hover,
.lang-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
  outline: none;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 3px 0 var(--black), inset 0 0 0 2px rgba(255, 193, 90, 0.4), 0 0 20px rgba(255, 193, 90, 0.32);
  transform: translateY(2px);
}

.content {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.94), #050403 260px),
    var(--bg);
  border-top: 1px solid var(--line);
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.section-tight {
  padding-top: 56px;
}

.section h2 {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--ink);
  font-family: "VCR OSD Mono Nova", "Lucida Console", "Courier New", monospace;
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.12rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tile {
  min-height: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.34);
  padding: 22px;
}

.tile h3,
.faq h3 {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 1.05rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.tile p,
.faq p,
.section li {
  color: var(--muted);
}

.tile p,
.faq p {
  margin: 0;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.story-copy {
  position: sticky;
  top: 28px;
}

.story-copy h2 {
  margin-bottom: 18px;
}

.story-copy p {
  max-width: 610px;
}

.story-notes {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.story-note {
  border-left: 3px solid var(--orange);
  background: rgba(0, 0, 0, 0.28);
  padding: 14px 16px;
  color: var(--muted);
}

.story-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--amber);
  font-family: "VCR OSD Mono Nova", "Lucida Console", "Courier New", monospace;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shot-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.014)),
    rgba(0, 0, 0, 0.52);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.68),
    inset 0 0 28px rgba(255, 193, 90, 0.08);
}

.shot-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #030201;
}

.shot-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 15%, transparent 0 34%, rgba(0, 0, 0, 0.18) 72%);
  background-size: 100% 5px, 100% 100%;
  mix-blend-mode: screen;
  opacity: 0.45;
  pointer-events: none;
}

.shot-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-media-board img {
  object-position: center 47%;
}

.shot-media-hostile img {
  object-position: center 50%;
}

.shot-media-mode img {
  object-position: center 38%;
}

.shot-card figcaption {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px;
}

.shot-card h3 {
  margin: 0;
  color: var(--amber);
  font-family: "VCR OSD Mono Nova", "Lucida Console", "Courier New", monospace;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.18;
  text-transform: uppercase;
}

.shot-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.game-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.game-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.014)),
    rgba(0, 0, 0, 0.58);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.72),
    inset 0 0 34px rgba(255, 193, 90, 0.08);
  padding: clamp(16px, 3vw, 26px);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.game-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(255, 123, 47, 0.2), transparent 34%);
  background-size: 100% 6px, 100% 100%;
  opacity: 0.42;
  pointer-events: none;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--amber);
  font-family: "VCR OSD Mono Nova", "Lucida Console", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  width: min(100%, 330px);
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mini-cell {
  aspect-ratio: 1;
  display: grid;
  min-width: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
    #221a12;
  color: #fff6df;
  font-family: "VCR OSD Mono Nova", "Lucida Console", "Courier New", monospace;
  font-size: clamp(0.72rem, 2.4vw, 1rem);
  line-height: 1;
  text-shadow: 1px 1px 0 #000;
}

.mini-cell.open {
  border-color: rgba(255, 230, 178, 0.72);
  background:
    linear-gradient(180deg, #d6bf8a 0%, #8a714d 100%);
  color: #150d08;
  text-shadow: none;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.3);
}

.mini-cell.n1 {
  color: #1546ff;
}

.mini-cell.n2 {
  color: #0c7a2f;
}

.mini-cell.n3 {
  color: #b91c1c;
}

.mini-cell.flag,
.mini-cell.mine {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    #170f0b;
}

.mini-cell.flag::before {
  content: "F";
  color: #ff4b3e;
}

.mini-cell.mine::before {
  content: "*";
  color: var(--amber);
}

.panel-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.rules-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.rule-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-left: 3px solid var(--orange);
  background: rgba(0, 0, 0, 0.28);
  padding: 14px 16px;
}

.rule-key {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--amber);
  font-family: "VCR OSD Mono Nova", "Lucida Console", "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1;
}

.rule-row p {
  margin: 0;
  color: var(--muted);
}

.steps,
.link-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.steps li,
.link-list a,
.faq {
  border-left: 3px solid var(--orange);
  background: rgba(0, 0, 0, 0.28);
  padding: 16px 18px;
}

.link-list a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.link-list span {
  display: block;
  color: var(--muted);
}

.faq {
  margin-top: 16px;
}

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: #030201;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--muted);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@keyframes carousel-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 980px) {
  h1,
  .hero-title {
    font-size: 5rem;
  }

  .hero-title-long {
    font-size: 4.2rem;
  }

  .hero-logo-title {
    width: min(700px, 92vw);
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .game-showcase {
    grid-template-columns: 1fr;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  .topbar {
    width: min(100% - 32px, var(--max));
    align-items: flex-start;
    padding-top: 13px;
  }

  .lang-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 92px 24px 42px;
  }

  .hero-inner {
    gap: 18px;
  }

  h1,
  .hero-title,
  .hero-title-long {
    font-size: 3.05rem;
    -webkit-text-stroke-width: 2px;
    text-shadow:
      0 5px 0 var(--black),
      3px 0 0 var(--black),
      -3px 0 0 var(--black),
      0 -3px 0 var(--black),
      0 0 22px rgba(255, 193, 90, 0.42);
  }

  .hero-logo-title {
    width: min(284px, 86vw);
    -webkit-text-stroke-width: 0;
    text-shadow: none;
  }

  .hero-logo {
    filter: drop-shadow(0 5px 0 var(--black)) drop-shadow(0 0 20px rgba(255, 193, 90, 0.32));
  }

  .hero-copy {
    font-size: 1rem;
  }

  .actions {
    width: min(100%, 272px);
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
  }

  .section,
  .footer-inner {
    width: min(100% - 32px, var(--max));
  }

  .section {
    padding: 48px 0;
  }

  .section h2 {
    font-size: 1.55rem;
  }

  .section-tight {
    padding-top: 42px;
  }

  .shot-grid {
    grid-template-columns: 1fr;
  }

  .rule-row {
    grid-template-columns: 1fr;
  }

  .rule-key {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
  }
}
