/* Marmalade marketing site. Styling borrowed from the game (UI/Theme.swift):
   Inter only, white type, 2 px rules, small tracked capitals, teal and ember, line icons, ring gauges. */

@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0c0c0c;
  --bg-2: #141414;
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, 0.82);
  --dim: rgba(255, 255, 255, 0.62);       /* Theme.dim */
  --faint: rgba(255, 255, 255, 0.22);     /* Theme.faint */
  --line: rgba(255, 255, 255, 0.12);
  --teal: #007d8c;                        /* Theme.teal */
  --light-teal: #60b0bb;                  /* Theme.lightTeal */
  --ember: #ed7a45;                       /* Theme.ember */
  --shadow: 0 1px 6px rgba(0, 0, 0, 0.45); /* .onScene() */
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h4 { font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 14px; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
section { position: relative; }

/* A thin white rule */
.rule { border: 0; height: 2px; background: rgba(255, 255, 255, 0.9); margin: 0; }
.rule.short { width: 220px; opacity: 0.7; margin-bottom: 20px; }
.rule.center { margin-left: auto; margin-right: auto; }

/* Small tracked capitals, as in the HUD's captions; teal for a card heading */
.label { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); margin: 0; }
.label.teal, .card-head { color: var(--light-teal); }
.label.center { text-align: center; }
.card-head { font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 12px; }
.section-lede { color: var(--ink-2); font-size: 1.08rem; max-width: 46em; margin-bottom: 2.5em; }

/* Line icons from Assets.xcassets, tinted like text */
.ico {
  display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
/* an icon in a thin ring, like a zone marker */
.ring-ico {
  width: 44px; height: 44px; margin-bottom: 1.1rem;
  -webkit-mask: none; mask: none; background: none;
  border: 1.5px solid currentColor; border-radius: 50%;
  position: relative;
}
.ring-ico::after {
  content: ""; position: absolute; inset: 11px; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}

/* Buttons: square and outlined, as on the New game panel */
.btn {
  display: inline-block; padding: 0.85em 1.5em;
  font: 500 0.95rem/1 "Inter", sans-serif; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s, border-color 0.2s, letter-spacing 0.2s;
}
.btn:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); letter-spacing: 0.4px; }
.btn-primary { background: var(--teal); border-color: var(--teal); }
.btn-primary:hover { background: #00909f; border-color: #00909f; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: 18px var(--gutter);
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
  text-shadow: var(--shadow);
}
.nav.solid { background: rgba(12, 12, 12, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-block: 12px; border-color: var(--line); }
.nav-brand img { height: 38px; width: auto; opacity: 0; transition: opacity 0.3s; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.nav.solid .nav-brand img { opacity: 1; }
.nav nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav nav a { font-size: 12px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav nav a:hover { color: #fff; border-color: #fff; }
.nav-cta { font-size: 12px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; border: 1px solid var(--light-teal); color: var(--light-teal); padding: 0.6em 1em; }
.nav-cta:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Hero */
.hero { height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: flex; align-items: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The bull stands left of centre in the clip, so the logo sits right over a darkened sunset */
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 78% 50%, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 55%, transparent 80%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 22%, transparent 72%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: flex-end; }
.hero-logo {
  width: min(44vw, 600px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-shadow: var(--shadow);
  animation: rise 1.4s 0.2s both ease-out;
}
.hero-logo img { width: 100%; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.7)); margin-bottom: 2rem; }
.hero-logo .rule { width: 92%; margin-bottom: 1rem; }
.hero-logo .label { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
@keyframes rise { from { opacity: 0; transform: translateY(-12px); } }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: cue 2s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Intro */
.intro { padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px); text-align: center; }
.intro h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.intro .lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 32em; margin: 0 auto; }
/* the narrator's subtitle style */
.subtitle { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; line-height: 1.5; margin: 2.5rem auto 1rem; max-width: 760px; }

/* Story */
.story { padding: clamp(60px, 8vw, 110px) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-bottom: clamp(70px, 9vw, 110px); }
.split-text p { color: var(--ink-2); }
.split-media { margin: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.name-card { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.3em; }
.zulu { font-size: 1.7rem; font-weight: 300; letter-spacing: 0.5px; color: #fff; }

/* Cast: bull icon, name and a strength hairline in his colour, as over each bull in the game */
.cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1rem; }
.bull { background: var(--bg-2); padding: 1.6rem 1.4rem; color: var(--tint); }
.bull h4 { color: #fff; margin-bottom: 8px; }
.unit-bar { display: block; width: 64px; height: 2.5px; background: var(--faint); margin-bottom: 14px; }
.unit-bar i { display: block; height: 100%; background: var(--tint); }
.bull .role { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--light-teal); margin-bottom: 0.6em; }
.bull p:last-child { color: var(--dim); font-size: 0.93rem; margin: 0; }

/* Seasons: tabs with a 2 px underline, as on the campaign screen */
.seasons { padding: clamp(80px, 10vw, 120px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.tabs button {
  font: 600 13px/1 "Inter", sans-serif; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--dim); background: none; border: 0; padding: 0 0 12px; margin-bottom: -1px; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { color: #fff; border-color: #fff; }
.season-head { display: flex; justify-content: space-between; gap: 2rem; align-items: baseline; margin-bottom: 1.4rem; flex-wrap: wrap; }
.season-blurb { font-size: 1.2rem; font-weight: 500; max-width: 34em; margin: 0; }
.chapters { list-style: none; counter-reset: ch; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.chapters li { counter-increment: ch; background: var(--bg); padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.3rem; transition: background 0.2s; }
.chapters li:hover { background: #1c1c1c; }
.chapters li::before { content: counter(ch); font-size: 13px; font-weight: 600; color: var(--light-teal); }
.chapters li:last-child { grid-column: span 2; } /* the finale fills the row's gap */
.chapters span { font-size: 1.05rem; font-weight: 500; }
.chapters small { color: var(--dim); font-size: 0.85rem; }
.boxed { margin-top: 2rem; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.28); color: var(--ink-2); font-size: 0.95rem; }
.boxed p { margin: 0; }
.boxed b { color: #fff; font-weight: 600; }

/* History */
.history { padding: clamp(90px, 11vw, 140px) 0; overflow: hidden; }
.history-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.18; }
.history::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%); pointer-events: none; }
.history .wrap { position: relative; z-index: 1; }
/* Timeline: four dated moments on one line that draws itself in, the last one lit */
.tl { margin: 3.5rem 0 3.5rem; }
.tl-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.tl-steps::before, .tl-steps::after { content: ""; position: absolute; left: 0; top: 7px; height: 2px; }
.tl-steps::before { right: 0; background: var(--faint); }
.tl-steps::after { width: 0; background: linear-gradient(90deg, var(--light-teal), var(--gold)); transition: width 2.4s cubic-bezier(0.3, 0.6, 0.2, 1); }
.tl.in .tl-steps::after { width: 100%; }
.tl-steps li { position: relative; padding-top: 2.6rem; opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s ease; }
.tl.in .tl-steps li { opacity: 1; transform: none; }
.tl.in .tl-steps li:nth-child(1) { transition-delay: 0.1s; }
.tl.in .tl-steps li:nth-child(2) { transition-delay: 0.7s; }
.tl.in .tl-steps li:nth-child(3) { transition-delay: 1.3s; }
.tl.in .tl-steps li:nth-child(4) { transition-delay: 1.9s; }
.tl-steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--light-teal); }
.tl-steps li.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(227, 169, 92, 0.2); }
.tl-steps time { display: block; font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1.1; color: var(--gold); margin-bottom: 0.8rem; min-height: 2.2em; }
.tl-steps h4 { margin-bottom: 0.4em; }
.tl-steps p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }

.traits-label { margin-bottom: 1rem; }
.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 2.5rem; }
.traits article { background: rgba(12, 12, 12, 0.78); padding: 1.5rem 1.6rem 1.7rem; }
.traits h4 { margin-bottom: 0.4em; }
.traits p { color: var(--dim); font-size: 0.95rem; margin: 0; }
.credit { color: var(--dim); font-size: 0.85rem; max-width: 52em; border-top: 1px solid var(--line); padding-top: 1.2em; }

/* Gameplay */
.gameplay { padding: clamp(80px, 10vw, 120px) 0; background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }

.gameplay h2 { max-width: 15em; }
.mech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mech { background: var(--bg); padding: 1.6rem 1.4rem 1.8rem; transition: background 0.2s; color: rgba(255, 255, 255, 0.88); }
.mech:hover { background: #1c1c1c; }
.mech.wide { grid-column: span 2; }
.mech.full { grid-column: 1 / -1; }
.mech h4 { color: #fff; }
.mech .ring-ico { color: var(--light-teal); }
.mech p { color: var(--dim); font-size: 0.93rem; margin: 0; }

/* Ring gauges from the bottom bar: icon inside, value round the ring, teal +N for income, ember when low */
.rings { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 1.4rem; }
.ring { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; }
.ring::before {
  content: ""; width: 46px; height: 46px; border-radius: 50%;
  background: conic-gradient(var(--c, #fff) calc(var(--v) * 1%), var(--faint) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
}
.ring .ico { position: absolute; top: 13px; width: 20px; height: 20px; }
.ring figcaption { font-size: 11px; font-weight: 500; color: var(--dim); }
.ring em { position: absolute; top: -6px; right: -6px; font: 600 10px/1 "Inter", sans-serif; font-style: normal; color: #000; background: var(--light-teal); padding: 2px 4px; border-radius: 99px; }
.ring.warn { --c: var(--ember); color: var(--ember); }

/* A news toast, between two short rules */
.toast { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 17px; font-weight: 500; margin: 3rem 0 0; }
.toast span { width: 28px; height: 2px; background: rgba(255, 255, 255, 0.7); }

.controls { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; gap: 2rem; align-items: baseline; flex-wrap: wrap; }
.controls ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem; color: var(--ink-2); font-size: 0.9rem; }
kbd { font: 600 0.75rem/1 "Inter", sans-serif; padding: 0.3em 0.55em; margin-right: 0.3em; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }

/* Biomes */
.veld { padding: clamp(80px, 10vw, 120px) 0 clamp(50px, 6vw, 80px); }
.biomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.biome { position: relative; overflow: hidden; background: var(--bg-2); }
.biome img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.8s ease; }
.biome:hover img { transform: scale(1.04); }
.biome div { position: absolute; inset: auto 0 0 0; padding: 4rem 1.4rem 1.4rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.88)); text-shadow: var(--shadow); }
.biome h4 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 0.3em; }
.biome h4 .ico { width: 22px; height: 22px; }
.biome p { color: var(--ink-2); font-size: 0.92rem; margin: 0; }

/* Gallery */
.gallery { padding: clamp(30px, 4vw, 50px) 0 clamp(70px, 9vw, 110px); }
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 14px; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
.strip img { flex: 0 0 auto; width: min(72vw, 620px); aspect-ratio: 16 / 9; object-fit: cover; scroll-snap-align: center; }
.gallery .label { margin-top: 1rem; }

/* Coming soon */
.soon { position: relative; overflow: hidden; padding: clamp(100px, 13vw, 170px) 0; text-align: center; border-top: 1px solid var(--line); }
.soon-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; opacity: 0.4; }
.soon::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0.85) 100%), linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%); pointer-events: none; }
.soon .wrap { position: relative; z-index: 1; }
.soon-logo { width: min(70%, 320px); margin: 0 auto 2.2rem; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6)); }
.soon h2 { margin-bottom: 0.4em; }
.soon-lede { color: var(--ink-2); font-size: 1.1rem; max-width: 34em; margin: 0 auto 2rem; }
.facts { list-style: none; margin: 0 auto 2.4rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 2rem; }
.facts li { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.facts .ico { width: 18px; height: 18px; color: var(--light-teal); }
.soon-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2.4rem 0; font-size: 0.85rem; }
.footer-inner { display: flex; align-items: center; gap: 1.6rem 2.2rem; flex-wrap: wrap; }
.crest { height: 96px; width: auto; opacity: 0.9; flex: none; }
.footer-text p { margin: 0; color: var(--ink-2); }
.footer .footer-name { font-family: "IBM Plex Serif", Georgia, serif; font-weight: 300; font-size: 1.5rem; color: #fff; margin-bottom: 0.15rem; }
.footer-credit { margin: 0; margin-left: auto; max-width: 30em; text-align: right; }
.muted { color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo, .scroll-cue span { animation: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .mech-grid, .cast, .chapters { grid-template-columns: repeat(2, 1fr); }
  .nav nav { gap: 1.1rem; }
}
@media (max-width: 820px) {
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-brand img { opacity: 1; }
  .hero { align-items: flex-end; padding-bottom: 12vh; }
  .hero-video { object-position: 30% center; }
  .hero-inner { justify-content: center; }
  .hero-logo { width: min(100%, 420px); }
  .hero-shade { background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 30%, rgba(0, 0, 0, 0.6) 60%, var(--bg) 100%); }
  .split { grid-template-columns: 1fr; }
  .biomes { grid-template-columns: 1fr; }
  .biome img { aspect-ratio: 16 / 10; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .mech-grid, .cast, .chapters { grid-template-columns: 1fr; }
  .mech.wide, .chapters li:last-child { grid-column: auto; }
  .tabs { gap: 1rem; }
  .nav-brand img { height: 30px; }
}

/* The bulls: 3D viewer beside a picker of square outlined rows */
/* one warm glow behind the bull, spread across the whole section so the canvas has no edge */
.bulls { padding: clamp(70px, 9vw, 110px) 0; border-block: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 75% at 30% 55%, #3a2d20 0%, #241c15 40%, var(--bg-2) 80%); }
.bulls-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.stage {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  cursor: grab;
}
.stage:active { cursor: grabbing; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-hint { position: absolute; left: 16px; bottom: 14px; pointer-events: none; }
.picker { display: grid; gap: 8px; margin-top: 8px; }
.picker button {
  display: flex; align-items: center; gap: 14px; text-align: left;
  font: inherit; color: rgba(255, 255, 255, 0.75); background: none; cursor: pointer;
  padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s, background 0.2s;
}
.picker button:hover { border-color: rgba(255, 255, 255, 0.5); }
.picker button[aria-selected="true"] { border: 1.6px solid #fff; background: rgba(255, 255, 255, 0.05); color: #fff; }
.picker .ico { width: 22px; height: 22px; color: var(--tint); }
.picker button { align-items: flex-start; }
.picker .ico:first-child { margin-top: 3px; }
.picker b { display: block; font-weight: 600; color: #fff; font-size: 1.05rem; }
.realm { display: flex; align-items: center; gap: 7px; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--tint); margin: 3px 0 6px; }
.realm .ico { width: 14px; height: 14px; }
.picker small { display: block; font-size: 0.88rem; color: var(--dim); }

/* Seasons: three tall 9:16 teaser pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1rem; }
.pillar { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #000; }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.pillar:hover img { transform: scale(1.05); }
.pillar > div {
  position: absolute; inset: auto 0 0 0; padding: 6rem 1.6rem 1.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55) 35%, rgba(0, 0, 0, 0.9));
  text-shadow: var(--shadow);
}
.pillar h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 600; margin: 0.3rem 0 0.9rem; line-height: 1.1; }
.pillar .rule { width: 60px; margin-bottom: 0.9rem; }
.pillar p:not(.label) { color: var(--ink-2); margin-bottom: 1.2rem; }
.place { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--dim); }

@media (max-width: 900px) {
  .bulls-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

/* ICONS (generated by tools/embed_assets.py) */
.i-affection { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20.2s-8-4.6-8-10.4A4.5 4.5 0 0 1 12 7.2a4.5 4.5 0 0 1 8 2.6c0 5.8-8 10.4-8 10.4z'/></svg>"); }
.i-bull { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M8.4 7.2C5.6 7.4 3.2 6.2 2.4 2.6'/><path d='M15.6 7.2c2.8.2 5.2-1 6-4.6'/><path d='M8.3 9.4l-3.9 1c.7 1.3 2.2 1.8 4 1.4'/><path d='M15.7 9.4l3.9 1c-.7 1.3-2.2 1.8-4 1.4'/><path d='M8.4 7.2c1.1-.8 2.3-1.1 3.6-1.1s2.5.3 3.6 1.1l-.4 7.4c1 .6 1.4 1.6 1.4 2.8 0 2-1.8 3.4-4.6 3.4s-4.6-1.4-4.6-3.4c0-1.2.4-2.2 1.4-2.8z'/><path d='M10.2 10.8h.01'/><path d='M13.8 10.8h.01'/><path d='M10.4 17.6h.01'/><path d='M13.6 17.6h.01'/></svg>"); }
.i-calcium { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path transform='rotate%28-45 12 12%29' d='M7.2 10.6H16.8a2.3 2.3 0 1 1 2.5 1.4 2.3 2.3 0 1 1-2.5 1.4H7.2a2.3 2.3 0 1 1-2.5-1.4 2.3 2.3 0 1 1 2.5-1.4z'/></svg>"); }
.i-campaign { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 6.5c-2-1.6-4.6-2-8-1.8v13c3.4-.2 6 .2 8 1.8 2-1.6 4.6-2 8-1.8v-13c-3.4-.2-6 .2-8 1.8z'/><path d='M12 6.5v13'/></svg>"); }
.i-coast { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 9.5c1.5-1.4 3-1.4 4.5 0s3 1.4 4.5 0 3-1.4 4.5 0 3 1.4 4.5 0'/><path d='M3 14.5c1.5-1.4 3-1.4 4.5 0s3 1.4 4.5 0 3-1.4 4.5 0 3 1.4 4.5 0'/><path d='M3 19.5c1.5-1.4 3-1.4 4.5 0s3 1.4 4.5 0 3-1.4 4.5 0 3 1.4 4.5 0'/></svg>"); }
.i-forage { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21V9'/><path d='M12 13c-3.5-.5-5.5-3.2-6-7 3.2.6 5.4 2.7 6 7z'/><path d='M12 16c3.5-.5 5.5-3.2 6-7-3.2.6-5.4 2.7-6 7z'/><path d='M8 21h8'/></svg>"); }
.i-health { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20.2s-8-4.6-8-10.4A4.5 4.5 0 0 1 12 7.2a4.5 4.5 0 0 1 8 2.6c0 5.8-8 10.4-8 10.4z'/><path d='M5.8 12.6h3l1.4-2.4 2.2 4.6 1.4-2.2h4.4'/></svg>"); }
.i-herd { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M9.2 7C7.8 6.2 7.3 4.6 8 3'/><path d='M14.8 7c1.4-.8 1.9-2.4 1.2-4'/><path d='M9 8.8l-4.2-.4c.6 1.6 2 2.4 4 2.2'/><path d='M15 8.8l4.2-.4c-.6 1.6-2 2.4-4 2.2'/><path d='M9 7.4c.9-.7 1.9-1 3-1s2.1.3 3 1v7.4c.8.6 1.2 1.5 1.2 2.6 0 1.9-1.8 3.2-4.2 3.2s-4.2-1.3-4.2-3.2c0-1.1.4-2 1.2-2.6z'/><path d='M10.7 10.8h.01'/><path d='M13.3 10.8h.01'/><path d='M10.8 17.6h.01'/><path d='M13.2 17.6h.01'/></svg>"); }
.i-highveld { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20c0-5.2.6-9.4 2.6-13.4'/><path d='M9.2 20c0-3.6-1.4-6.8-3.7-9.4'/><path d='M15 20c.4-3 1.9-5.5 4.5-7.3'/><path d='M11 20c-.3-4.6-1.2-8.4-3-11.5'/><path d='M3.5 20h17'/></svg>"); }
.i-kalahari { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='16.5' cy='7' r='2.6'/><path d='M2.5 17.5c3-4.2 6.5-5.2 10-3.1s6 2.6 9 .5'/><path d='M2.5 20.5h19'/></svg>"); }
.i-map { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 6.5l5.5-2 6 2 5.5-2v13l-5.5 2-6-2-5.5 2z'/><path d='M9 4.5v13'/><path d='M15 6.5v13'/></svg>"); }
.i-move { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-6-5.4-6-10.4a6 6 0 0 1 12 0c0 5-6 10.4-6 10.4z'/><circle cx='12' cy='10.6' r='2.2'/></svg>"); }
.i-salt { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 15.5l4-2 4 2v4.5l-4 2-4-2z'/><path d='M4 15.5l4 2 4-2'/><path d='M8 17.5v4.5'/><path d='M12 15.5l4-2 4 2v4.5l-4 2-4-2'/><path d='M12 15.5l4 2 4-2'/><path d='M16 17.5v4.5'/><path d='M8 6.5l4-2 4 2V11l-4 2-4-2z'/><path d='M8 6.5l4 2 4-2'/><path d='M12 8.5V13'/></svg>"); }
.i-sky { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='9' r='3'/><path d='M9 3.2v1.2'/><path d='M3.2 9h1.2'/><path d='M4.9 4.9l.85.85'/><path d='M13.1 4.9l-.85.85'/><path d='M8.5 19.5h9a3.4 3.4 0 0 0 .4-6.8 4.6 4.6 0 0 0-8.7 1.2 2.8 2.8 0 0 0-.7 5.6z'/></svg>"); }
.i-strength { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M13.4 2.8L5.6 13.2h6.2l-1.2 8 7.8-10.4h-6.2z'/></svg>"); }
.i-trophy { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M8 4.5h8v5a4 4 0 0 1-8 0z'/><path d='M8 6.5H5.5a2.8 2.8 0 0 0 2.8 3.8'/><path d='M16 6.5h2.5a2.8 2.8 0 0 1-2.8 3.8'/><path d='M12 13.5v3'/><path d='M8.5 19.5h7'/><path d='M10 16.5h4v3h-4z'/></svg>"); }
.i-voice { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 5.5h16v10H10l-4 3.5v-3.5H4z'/><path d='M8 9.5h8'/><path d='M8 12.5h5'/></svg>"); }
.i-water { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3c3.3 4.3 5.6 7.4 5.6 10.1a5.6 5.6 0 0 1-11.2 0C6.4 10.4 8.7 7.3 12 3z'/><path d='M3 20.5c1.5-1 3-1 4.5 0s3 1 4.5 0 3-1 4.5 0 3 1 4.5 0'/></svg>"); }
.i-zinc { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2.8l7.5 4.4v9.6L12 21.2l-7.5-4.4V7.2z'/><path d='M12 7.5l3.8 2.2v4.6L12 16.5l-3.8-2.2V9.7z'/><path d='M12 2.8v4.7'/><path d='M12 16.5v4.7'/></svg>"); }
.i-zone { --i: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 21V4'/><path d='M6 4.5c3-1.6 5.5 1.4 8.5 0s3.5-.6 3.5-.6v8.6s-.5-.8-3.5.6-5.5-1.6-8.5 0'/><path d='M3 21h8'/></svg>"); }
/* END ICONS */

/* Serif display headings, with one phrase picked out in gold */
:root { --gold: #e3a95c; }
.serif { font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif; font-weight: 300; letter-spacing: -0.015em; }
h1.serif, h2.serif { line-height: 1.12; }
h2.serif { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.intro h1.serif { font-size: clamp(2.3rem, 4.8vw, 3.9rem); }
.accent { color: var(--gold); font-style: italic; }
.pillar h3.serif { font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
.biome h4.serif { font-size: 1.55rem; }

/* Seasons and biomes: the one under the pointer widens, the others give way */
.pillars, .biomes { display: flex; gap: 1.2rem; }
.pillars { height: clamp(520px, 62vw, 680px); max-width: none; }
.biomes { height: clamp(420px, 45vw, 540px); }
.pillar, .biome { flex: 1 1 0; min-width: 0; aspect-ratio: auto; transition: flex-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.biome img { aspect-ratio: auto; height: 100%; }
.pillars:hover .pillar, .biomes:hover .biome { flex-grow: 0.75; }
.pillars .pillar:hover, .biomes .biome:hover { flex-grow: 1.9; }
.pillar > div p, .biome p { min-width: 14em; }   /* text keeps its shape while a card narrows */

/* The river video behind The Nguni */
video.history-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }

/* Screenshot slider: crossfading frames, square arrow buttons, hairline dots */
.slider { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 0.9s ease; }
.slide.on { opacity: 1; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 1.4rem 3.2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  font-size: 13px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255, 255, 255, 0.85);
  text-shadow: var(--shadow);
}
.slide-btn {
  position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.5); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.slide-btn:hover { background: rgba(0, 0, 0, 0.6); border-color: #fff; }
.slide-btn::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border: solid #fff; border-width: 2px 2px 0 0; }
.slide-btn.prev { left: 16px; }
.slide-btn.prev::after { transform: translateX(2px) rotate(-135deg); }
.slide-btn.next { right: 16px; }
.slide-btn.next::after { transform: translateX(-2px) rotate(45deg); }
.dots { position: absolute; left: 1.4rem; bottom: 1.4rem; display: flex; gap: 6px; }
.dots button { width: 28px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--faint); transition: background 0.2s; }
.dots button[aria-selected="true"]::after { background: #fff; }
.slider-note { margin-top: 0.9rem; }

@media (max-width: 900px) {
  .tl-steps { grid-template-columns: 1fr; gap: 0; padding-left: 2rem; }
  .tl-steps::before, .tl-steps::after { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .tl-steps::after { height: 0; width: 2px; background: linear-gradient(180deg, var(--light-teal), var(--gold)); transition: height 2.4s ease; }
  .tl.in .tl-steps::after { height: calc(100% - 16px); width: 2px; }
  .tl-steps li { padding: 0 0 2rem; }
  .tl-steps li::before { left: -2rem; top: 4px; }
  .tl-steps time { min-height: 0; }
  .traits { grid-template-columns: 1fr; }
  .pillars, .biomes { flex-direction: column; height: auto; }
  .pillar { flex: none; aspect-ratio: 9 / 16; }
  .biome { flex: none; aspect-ratio: 16 / 10; }
  .pillars:hover .pillar, .pillars .pillar:hover, .biomes:hover .biome, .biomes .biome:hover { flex-grow: 0; }
  .slider { aspect-ratio: 4 / 3; }
  .slide-btn { width: 40px; height: 40px; margin-top: -20px; }
}

/* Gameplay: screenshots on the left, a looping video on the right, both 16:9 so they line up */
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.media-pair .slider, .loop-frame { aspect-ratio: 16 / 9; }
.loop-frame { position: relative; background: #000; overflow: hidden; }
.loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-pair .slide figcaption { padding: 3rem 1rem 2.6rem; font-size: 11px; }
.media-pair .slide-btn { width: 38px; height: 38px; margin-top: -19px; }
.media-pair .slide-btn.prev { left: 10px; }
.media-pair .slide-btn.next { right: 10px; }
.media-pair .dots { left: 1rem; bottom: 1rem; }
@media (max-width: 700px) { .footer-credit { margin-left: 0; text-align: left; } }
@media (max-width: 900px) { .media-pair { grid-template-columns: 1fr; gap: 2rem; } }

/* Hero now carries the intro line, and fades straight into the bulls */
.hero-lede { color: rgba(255, 255, 255, 0.92); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 24em; margin: 0 0 1.6rem; text-shadow: var(--shadow); }
.hero-logo .label { margin-bottom: 1rem; }
.hero-shade { background:
    radial-gradient(ellipse 55% 70% at 78% 50%, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 55%, transparent 80%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 22%, transparent 55%, rgba(12, 12, 12, 0.8) 85%, var(--bg) 100%); }
.bulls { border-top: 0; background:
    linear-gradient(180deg, var(--bg) 0, rgba(12, 12, 12, 0) 240px),
    radial-gradient(ellipse 60% 75% at 30% 55%, #3a2d20 0%, #241c15 40%, var(--bg-2) 80%); }

/* Bulls: heading on one line, a wider right column, and only the active bull explained */
.bulls-grid { grid-template-columns: 1.15fr 1fr; }
.one-line { white-space: nowrap; font-size: clamp(1.7rem, 2.3vw + 0.9rem, 2.5rem); }
.picker { gap: 6px; margin-top: 4px; }
.picker button { align-items: center; padding: 13px 16px; }
.picker .ico:first-child { margin-top: 0; }
.pk { flex: 1; min-width: 0; }
.pk-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; flex-wrap: wrap; }
.pk-top b { font-size: 1.1rem; }
.pk-top .realm { margin: 0; }
.picker small { max-height: 0; opacity: 0; overflow: hidden; margin: 0; font-size: 0.93rem; line-height: 1.5; transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.45s ease; }
.picker button[aria-selected="true"] small { max-height: 6em; opacity: 1; margin-top: 8px; }
@media (max-width: 900px) { .bulls-grid { grid-template-columns: 1fr; } }

/* The bull fills the whole section behind the list, about twice as big on screen as in a boxed viewer */
.bulls { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(640px, 54vw, 800px); }
.bulls .stage { position: absolute; inset: 0; aspect-ratio: auto; background: none; }
.bulls .wrap { position: relative; z-index: 1; pointer-events: none; }
.bulls-grid { display: flex; justify-content: flex-end; }
.bulls-text { pointer-events: auto; width: min(440px, 100%); }
.stage-hint { left: clamp(16px, 4vw, 48px); bottom: 24px; }
@media (max-width: 900px) {
  .bulls { display: block; min-height: 0; padding-top: 0; }
  .bulls .stage { position: relative; height: 420px; }
  .bulls .wrap { padding-top: 2rem; pointer-events: auto; }
  .bulls-text { width: 100%; }
}

/* Sub-pages (bug form, terms, privacy) */
.subpage .nav { position: sticky; top: 0; }
.page { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(60px, 8vw, 110px); }
.page h1.serif { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 14px; }
.legal h2 { font-family: "IBM Plex Serif", Georgia, serif; font-weight: 400; font-size: 1.45rem; margin: 2.4rem 0 0.6rem; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { margin: 0 0 1em; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4em; }
.legal a, .page .section-lede a, .bug-form a { color: var(--light-teal); text-decoration: underline; text-underline-offset: 3px; }
.updated { color: var(--dim); font-size: 0.9rem; margin-bottom: 2rem; }
.draft-note { border: 1px solid rgba(227, 169, 92, 0.5); background: rgba(227, 169, 92, 0.08); color: var(--ink-2); padding: 12px 16px; font-size: 0.92rem; margin: 0 0 2rem; }
.draft-note b { color: var(--gold); font-weight: 600; }

/* Form: square outlined fields, small tracked-caps labels, as in the game's panels */
.bug-form { display: grid; gap: 1.3rem; margin-top: 2rem; }
.bug-form label { display: grid; gap: 0.5rem; font-size: 12px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--dim); }
.bug-form .req { font-weight: 500; letter-spacing: 0.6px; color: var(--light-teal); text-transform: none; margin-left: 0.4em; }
.bug-form input[type="text"], .bug-form input[type="email"], .bug-form select, .bug-form textarea {
  width: 100%; font: 400 16px/1.5 "Inter", sans-serif; letter-spacing: 0; text-transform: none;
  color: #fff; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 0;
  padding: 12px 14px; transition: border-color 0.2s, background 0.2s;
}
.bug-form textarea { resize: vertical; min-height: 7rem; }
.bug-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
.bug-form select option { background: #1c1c1c; }
.bug-form input::placeholder, .bug-form textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.bug-form input:focus, .bug-form select:focus, .bug-form textarea:focus { outline: none; border-color: var(--light-teal); background: rgba(255, 255, 255, 0.07); }
.bug-form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.bug-form .check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.bug-form .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); flex: none; }
.bug-form button { justify-self: start; cursor: pointer; border-width: 1px; }
.bug-form button:disabled { opacity: 0.6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border: 1px solid var(--line); margin: 1.5rem 0 0; font-size: 0.98rem; }
.notice.ok { border-color: var(--light-teal); background: rgba(96, 176, 187, 0.1); color: #fff; }
.notice.bad { border-color: var(--ember); background: rgba(237, 122, 69, 0.1); color: #fff; }
@media (max-width: 700px) { .bug-form .row.two { grid-template-columns: 1fr; } }

/* Footer links (replaces the credit line) */
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem 1.4rem; align-items: center; max-width: 36em; }
.footer-links a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-links a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 700px) { .footer-links { margin-left: 0; justify-content: flex-start; } }

/* Analytics consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto; display: flex; gap: 1rem 1.5rem; align-items: center; flex-wrap: wrap; padding: 16px 18px; background: rgba(20, 20, 20, 0.96); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.92rem; color: var(--ink-2); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.consent p { margin: 0; flex: 1 1 320px; }
.consent a { color: var(--light-teal); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 0.6rem; }
.consent .btn { padding: 0.7em 1.2em; font-size: 0.9rem; cursor: pointer; }

/* ---- Timeline, redone: the line runs behind the dots and ends in the last one ---- */
.tl-steps::before, .tl-steps::after { top: 8px; z-index: 0; }          /* dots are 18px, so their centre is 9px down */
.tl-steps::before { right: calc(25% - 1.5rem - 9px); background: rgba(255, 255, 255, 0.18); }
.tl-steps::after { z-index: 1; }
.tl.in .tl-steps::after { width: calc(75% + 1.5rem + 9px); }           /* to the centre of the fourth dot */
.tl-steps li { position: relative; z-index: 2; padding-top: 3.1rem; }
.tl-steps li::before {
  width: 18px; height: 18px; border: 2px solid var(--light-teal); border-radius: 50%; background: #0c0c0c;
  box-shadow: 0 0 0 7px rgba(12, 12, 12, 0.92);                         /* a dark gap round each dot, so the line seems to pass behind it */
}
.tl-steps li::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--light-teal); transform: scale(0); transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tl.in .tl-steps li::after { transform: scale(1); }
.tl.in .tl-steps li:nth-child(1)::after { transition-delay: 0.2s; }
.tl.in .tl-steps li:nth-child(2)::after { transition-delay: 0.9s; }
.tl.in .tl-steps li:nth-child(3)::after { transition-delay: 1.6s; }
.tl.in .tl-steps li:nth-child(4)::after { transition-delay: 2.3s; }
.tl-steps li.now::before { background: #0c0c0c; border-color: var(--gold); box-shadow: 0 0 0 7px rgba(12, 12, 12, 0.92); }
.tl-steps li.now::after { background: var(--gold); }
.tl.in .tl-steps li.now::before { animation: tl-pulse 2.6s 3s infinite ease-out; }
@keyframes tl-pulse {
  0%   { box-shadow: 0 0 0 7px rgba(12, 12, 12, 0.92), 0 0 0 7px rgba(227, 169, 92, 0.55); }
  100% { box-shadow: 0 0 0 7px rgba(12, 12, 12, 0.92), 0 0 0 22px rgba(227, 169, 92, 0); }
}
.tl-steps time { margin-bottom: 0.7rem; }

@media (max-width: 900px) {
  /* vertical: each step draws its own segment of line down to the next dot */
  .tl-steps::before, .tl-steps::after { display: none; }
  .tl-steps { padding-left: 2.6rem; }
  .tl-steps li { padding: 0 0 2.4rem; }
  .tl-steps li:last-child { padding-bottom: 0; }
  .tl-steps li::before { left: -2.6rem; top: 4px; }
  .tl-steps li::after {
    left: calc(-2.6rem + 8px); top: 22px; bottom: -4px; width: 2px; height: auto; border-radius: 0;
    background: linear-gradient(180deg, var(--light-teal), rgba(96, 176, 187, 0.35));
    transform: scaleY(0); transform-origin: top; transition: transform 0.7s ease;
  }
  .tl.in .tl-steps li::after { transform: scaleY(1); }
  .tl.in .tl-steps li:nth-child(1)::after { transition-delay: 0.2s; }
  .tl.in .tl-steps li:nth-child(2)::after { transition-delay: 0.8s; }
  .tl.in .tl-steps li:nth-child(3)::after { transition-delay: 1.4s; }
  .tl-steps li:last-child::after { display: none; }
  .tl-steps li:not(:last-child)::before { background: radial-gradient(circle, var(--light-teal) 0 3.5px, #0c0c0c 4px); }
  .tl-steps li.now::before { background: radial-gradient(circle, var(--gold) 0 3.5px, #0c0c0c 4px); }
  .tl-steps time { margin-bottom: 0.4rem; }
}

/* ---- Phones: seasons and biomes expand one at a time, top to bottom, as you scroll to them ---- */
@media (max-width: 900px) {
  /* One card is open and two are closed, so the stack is always the same height and the page never jumps */
  .pillars, .biomes { display: flex; flex-direction: column; gap: 12px; height: auto; max-width: none; margin-inline: 0; }
  .pillar, .biome { flex: none; aspect-ratio: auto; height: 104px; transition: height 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .pillar.active { height: 440px; }
  .biome.active { height: 360px; }
  .biome img { height: 100%; aspect-ratio: auto; }
  .pillars:hover .pillar, .pillars .pillar:hover, .biomes:hover .biome, .biomes .biome:hover { flex-grow: 0; }

  .pillar > div, .biome > div { padding: 2.4rem 1.2rem 1rem; transition: padding 0.8s ease; }
  .pillar.active > div { padding: 6rem 1.4rem 1.6rem; }
  .biome.active > div { padding: 4rem 1.4rem 1.4rem; }

  /* closed cards keep just the title; the rest folds away */
  .pillar > div p:not(.label), .pillar .rule, .pillar .place, .biome p { min-width: 0; max-height: 0; opacity: 0; margin: 0; overflow: hidden; transition: max-height 0.6s ease, opacity 0.5s ease, margin 0.6s ease; }
  .pillar.active .rule { max-height: 2px; opacity: 0.9; margin-bottom: 0.9rem; }
  .pillar.active > div p:not(.label) { max-height: 6em; opacity: 1; margin-bottom: 1.2rem; }
  .pillar.active .place { max-height: 3em; opacity: 1; }
  .biome.active p { max-height: 8em; opacity: 1; }
  .pillar h3.serif { margin: 0.2rem 0 0; transition: margin 0.6s ease; }
  .pillar.active h3.serif { margin: 0.3rem 0 0.9rem; }
  .biome h4.serif { margin-bottom: 0; transition: margin 0.6s ease; }
  .biome.active h4.serif { margin-bottom: 0.3em; }
}
@media (prefers-reduced-motion: reduce) {
  .pillar, .biome, .pillar > div, .biome > div, .pillar *, .biome * { transition: none !important; }
}
