@font-face { font-family: Anton; src: url(/assets/anton.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Barlow; font-weight: 400; src: url(/assets/barlow-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Barlow; font-weight: 600; src: url(/assets/barlow-600.woff2) format("woff2"); font-display: swap; }

:root {
  --bg: #040607;
  --surface: #0e1214;
  --text: #e0ebf0;
  --muted: #93a4ad;
  --red: #e5322b;
  --cold: #9ed1ff;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.55 Barlow, system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

/* The fork: real gameplay under cold light on the left, red on the right. */
.fork {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100svh;
  min-height: 520px;
  padding: var(--gutter);
  overflow: hidden;
  background: #000;
  text-align: center;
}
.bg { position: absolute; inset: 0; z-index: -1; }
.bg img, .bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg video { opacity: 0; transition: opacity .6s; }
.bg video.on { opacity: 1; }
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(20 90 150 / .38), transparent 38%, transparent 62%, rgb(170 20 10 / .38)),
    linear-gradient(180deg, rgb(0 0 0 / .74), transparent 36%, transparent 58%, rgb(0 0 0 / .86));
}
.cold { color: var(--cold); }
.hot { color: var(--red); }
h1 { margin: 0; font: 400 min(21vw, 30svh)/1 Anton, Impact, sans-serif; text-transform: uppercase; text-shadow: 0 2px 24px #000; }
.sub { margin: .5rem 0 0; font-size: clamp(1.0625rem, 2vw, 1.375rem); font-weight: 600; text-shadow: 0 1px 12px #000; }
.bottom { width: min(100%, 40rem); margin: 0 auto; }
.tag { margin: 0 0 .75rem; font-weight: 600; font-size: clamp(1.125rem, 2.2vw, 1.5rem); text-shadow: 0 1px 12px #000; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice {
  min-height: 72px;
  border: 2px solid currentColor;
  border-radius: 0;
  background: rgb(4 6 7 / .72);
  font: 400 clamp(1.5rem, 2.4vw, 2.25rem)/1 Anton, Impact, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}
.choice:hover { background: var(--text); color: #000; }
.pause { min-height: 44px; margin-top: .25rem; padding: 0 .75rem; border: 0; background: none; color: var(--muted); font: inherit; font-size: 1rem; text-decoration: underline; cursor: pointer; }

.what { max-width: 40rem; margin: 0 auto; padding: clamp(56px, 10vh, 112px) var(--gutter); }
.lede { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.625rem); line-height: 1.45; }

.maps h2 {
  margin: 0;
  padding: 0 var(--gutter) 1.5rem;
  font: 400 clamp(2.25rem, 6vw, 5rem)/1.05 Anton, Impact, sans-serif;
  text-transform: uppercase;
}
.strip { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; }
.strip h3 { margin: .875rem var(--gutter) 0 1rem; font: 400 1.5rem/1.15 Anton, Impact, sans-serif; text-transform: uppercase; }
.strip p { margin: .375rem 1rem 0; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.strip li { padding-bottom: 1rem; }
.strip img { width: 100%; }

footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 1.5rem; padding: clamp(40px, 8vh, 72px) var(--gutter); color: var(--muted); }
footer a { display: inline-block; padding: .375rem 0; color: var(--text); }
footer p { margin: 0 0 0 auto; }

/* Results */
.result { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: var(--gutter); text-align: center; overflow: hidden; }
.result[hidden] { display: none; }
.result h2 { position: relative; margin: 0; font: 400 clamp(3.5rem, 13vw, 9rem)/1 Anton, Impact, sans-serif; text-transform: uppercase; }
.result p { position: relative; margin: 0; font-size: 1.25rem; }
.result-bad { background: #000; }
.result-bad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: rush .22s cubic-bezier(.2, 1.3, .4, 1) both; }
.result-bad h2 { margin-top: auto; color: var(--text); text-shadow: 0 2px 24px #000; }
.result-good { background: radial-gradient(circle at 50% 40%, #173a55, var(--bg) 70%); }
.result-good h2 { color: var(--cold); }
.again { position: relative; min-height: 56px; padding: 0 2rem; border: 2px solid var(--text); border-radius: 0; background: #000; color: var(--text); font: 600 1.125rem/1 Barlow, system-ui, sans-serif; cursor: pointer; }
.again:hover { background: var(--text); color: #000; }
@keyframes rush { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Phone and portrait: the map strip scrolls sideways. */
@media (max-width: 760px), (max-aspect-ratio: 1 / 1) {
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .strip li { flex: 0 0 min(72vw, 360px); scroll-snap-align: start; }
  footer p { margin-left: 0; flex-basis: 100%; }
}

@media (min-width: 761px) and (max-width: 1100px) and (min-aspect-ratio: 1 / 1) {
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip li { padding-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .result-bad img { animation: none; }
}
