/* Valka — night camp and steppe day. Fonts: IM Fell English, Alegreya Sans (SIL OFL). */
@font-face { font-family: "Fell"; src: url("/assets/fonts/IMFellEnglish-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fell"; font-style: italic; src: url("/assets/fonts/IMFellEnglish-Italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/assets/fonts/AlegreyaSans-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; src: url("/assets/fonts/AlegreyaSans-Medium.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; src: url("/assets/fonts/AlegreyaSans-Bold.woff2") format("woff2"); font-display: swap; }

:root {
  --night: #0e1320; --night-2: #151c2d; --night-3: #1d2638;
  --ink: #ece3cf; --ink-dim: #b4ad9c;
  --day: #efe4c9; --day-2: #e4d5b0; --day-ink: #2a2218; --day-dim: #5e5240;
  --fire: #e8a33d; --fire-2: #ffcf6e; --ember: #c2552b; --steppe: #9fae5d; --sky: #7facc0;
  --line: rgba(236, 227, 207, .14);
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 18px/1.55 "Alegreya Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video, canvas { max-width: 100%; display: block; }
a { color: var(--fire-2); }
h1, h2, h3 { font-family: "Fell", Georgia, serif; font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: 23px; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2 * var(--gutter)); }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700; color: var(--fire); margin: 0 0 .7em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-dim); max-width: 62ch; }
.head { margin-bottom: 36px; }
.sub { margin-top: 64px; }

/* nav */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 19, 32, .86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 24px "Fell", serif; }
.brand img { border-radius: 6px; image-rendering: pixelated; }
.links { display: flex; gap: 18px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.links a, .lang { color: var(--ink-dim); text-decoration: none; font-weight: 500; white-space: nowrap; padding: 12px 0; }
.links a:hover, .lang:hover { color: var(--fire-2); }
.lang { border: 1px solid var(--line); padding: 8px 12px; border-radius: var(--radius); }

/* hero */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; overflow: hidden; }
.hero-media, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { image-rendering: pixelated; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,19,32,.0) 30%, rgba(14,19,32,.55) 62%, var(--night) 100%), linear-gradient(90deg, rgba(14,19,32,.55), transparent 60%); }
.hero-text { position: relative; padding: 120px 0 56px; }
.hero h1 { font-size: clamp(54px, 9vw, 112px); margin: 0 0 .25em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero h1 em { display: block; font-style: italic; font-size: .42em; color: var(--fire-2); margin-top: .15em; }
.hero .lede { color: var(--ink); text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.early { display: inline-block; font-size: 14px; padding: 4px 10px; border: 1px dashed rgba(255,207,110,.5); border-radius: 99px; color: var(--fire-2); background: rgba(14,19,32,.5); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(21,28,45,.75); color: var(--ink); text-decoration: none; font-weight: 700; }
.btn:hover { border-color: var(--fire); }
.btn.primary { background: var(--fire); color: #1b1307; border-color: var(--fire); }
.btn.disabled { cursor: default; }
.btn small { font-weight: 500; opacity: .75; }
.btn.ghost { background: transparent; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 0; margin: 0; }
.facts b { display: block; font: 40px "Fell", serif; color: var(--fire-2); line-height: 1; }
.facts span { color: var(--ink-dim); font-size: 15px; }

/* bands */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band.night { background: var(--night); }
.band.deep { background: radial-gradient(1200px 600px at 50% 100%, #2a1c14 0%, var(--night) 60%); }
.band.day { background: var(--day); color: var(--day-ink); color-scheme: light; }
.band.day .lede, .band.day p { color: var(--day-dim); }
.band.day h2, .band.day h3, .band.day b { color: var(--day-ink); }
.band.day .kicker { color: var(--ember); }
.band.day a { color: var(--ember); }
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* sprites: native pixels scaled by --s, feet on the stage floor */
.spr { width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); max-width: none; image-rendering: pixelated; margin-bottom: calc(var(--fy) * var(--s) * -1px); }
.stage { position: relative; height: 210px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-bottom: 3px solid rgba(0,0,0,.25); padding-bottom: 14px; }
.stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(#5b4430, #3b2b1d); }
.stage .spr { position: relative; }
.stage.tall { height: 250px; }
.stage.small { height: 150px; }


.caravan { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.caravan .stage { background: linear-gradient(#cfe0e4, #e9dcbc); border-radius: var(--radius); }

/* the road */
.road-video .clip, .wide .clip { width: 100%; height: auto; border-radius: var(--radius); image-rendering: pixelated; background: #000; }
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.region { margin: 0; background: var(--night-2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.region img { aspect-ratio: 1386 / 640; object-fit: cover; width: 100%; height: auto; }
.region figcaption { padding: 12px 14px 16px; }
.region b, .card b { display: block; font: 20px "Fell", serif; color: var(--ink); }
.region span, .card span { color: var(--ink-dim); font-size: 16px; }

/* gameplay */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-bottom: 72px; }
.step .media { aspect-ratio: 1386 / 640; background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.step .clip { width: 100%; height: 100%; object-fit: cover; }
.step h3 span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--ember); color: var(--day); font: 700 16px "Alegreya Sans", sans-serif; vertical-align: 4px; }
.mechs { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.mech .stage { background: linear-gradient(#24314a, #131a2a); border-radius: var(--radius) var(--radius) 0 0; margin-bottom: 12px; }
.wide { margin: 56px 0 0; }
.wide figcaption { color: var(--ink-dim); font-size: 15px; margin-top: 8px; }
.band.day .wide figcaption { color: var(--day-dim); }

/* rosters */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { margin: 0; background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card .stage { background: radial-gradient(260px 160px at 50% 100%, rgba(232,163,61,.18), transparent 70%), linear-gradient(#0b1018, #172033); }
.card figcaption { padding: 12px 14px 16px; }
.card i { display: block; font-style: normal; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--ember); }
.bosses { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.boss .stage { background: radial-gradient(300px 200px at 50% 100%, rgba(194,85,43,.28), transparent 70%), linear-gradient(#090c13, #1a1420); }

/* comparison */
.table { overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(42,34,24,.18); background: #f7efdc; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid rgba(42,34,24,.12); }
thead th { font: 20px "Fell", serif; background: var(--day-2); }
tbody th { width: 24%; font-weight: 700; }
.tag { display: block; width: fit-content; margin-top: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 99px; }
.tag.same { background: #d5e3b5; color: #3c4d17; }
.tag.diff { background: #f1cdb6; color: #7a2f12; }
.note { font-size: 14px; margin-top: 12px; }
.similar li { margin-bottom: 10px; }
@media (max-width: 720px) {
  thead { display: none; }
  table, tbody, tr, th, td { display: block; width: 100% !important; }
  tr { border-bottom: 2px solid rgba(42,34,24,.2); padding: 8px 0; }
  td, tbody th { border: 0; padding: 6px 14px; }
  td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 13px; color: var(--ember); }
}

/* faq */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--night-2); }
.band.day .faq details { background: #f7efdc; border-color: rgba(42,34,24,.15); }
.faq summary { cursor: pointer; padding: 14px 18px; min-height: 48px; font-weight: 700; list-style-position: inside; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-dim); }
.band.day .faq details p { color: var(--day-dim); }

/* cta, footer */
.cta { text-align: center; background: radial-gradient(700px 360px at 50% 70%, #3a2414, var(--night) 70%); }
.cta .stage { background: none; border: 0; }
.cta .stage::before { display: none; }
.cta .lede { margin-inline: auto; }
.cta .ctas { justify-content: center; }
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-dim); font-size: 15px; }
.foot h3 { font-size: 20px; color: var(--ink); }
.foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lost { display: grid; place-items: center; min-height: 100vh; text-align: center; }

@media (max-width: 760px) { .links { display: none; } .hero-text { padding-top: 80px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
