:root {
  --ink: #3b2716;
  --paper: #f7ead0;
  --paper-2: #efdcb4;
  --sea: #47aba9;
  --sea-deep: #1f5f66;
  --sea-night: #123c44;
  --grass: #7bb648;
  --grass-deep: #4f8a2f;
  --gold: #b9811f;
  --gold-bright: #ffd45e;
  --blue: #3f7fd6;
  --blue-deep: #1f4a87;
  --red: #c4392c;
  --link: #9c2f24;
  --font-read: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --font-label: "Pixelify Sans", ui-monospace, monospace;
  --font-title: "Pirata One", Georgia, serif;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--blue-deep);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; color: var(--ink); background: var(--sea-night);
  font: 1.125rem/1.6 var(--font-read);
  overflow-x: hidden;
}
img, video { max-width: 100%; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 30; }

/* ---------- sprites: one row of square frames, stepped ---------- */
.sprite {
  --s: 1; --f: 192; --n: 6; --t: .8s;
  width: calc(var(--f) * var(--s) * 1px); height: calc(var(--f) * var(--s) * 1px);
  background: var(--sheet) 0 0 / calc(var(--n) * var(--f) * var(--s) * 1px) 100% no-repeat;
  image-rendering: pixelated;
  animation: frames var(--t) steps(var(--n)) infinite;
  flex: none;
}
@keyframes frames { to { background-position-x: calc(var(--n) * var(--f) * var(--s) * -1px); } }
.sp-bw { --sheet: url(assets/art/blue-warrior-run.png); --n: 6; --f: 192; --t: .6s; }
.sp-bl { --sheet: url(assets/art/blue-lancer-run.png); --n: 6; --f: 320; --t: .7s; }
.sp-ba { --sheet: url(assets/art/blue-archer-run.png); --n: 4; --f: 192; --t: .5s; }
.sp-rw { --sheet: url(assets/art/red-warrior-idle.png); --n: 8; --f: 192; --t: 1s; }
.sp-rl { --sheet: url(assets/art/red-lancer-idle.png); --n: 12; --f: 320; --t: 1.3s; }
.sp-ra { --sheet: url(assets/art/red-archer-idle.png); --n: 6; --f: 192; --t: .9s; }
.sp-troll { --sheet: url(assets/art/troll-idle.png); --n: 12; --f: 384; --t: 1.4s; }

/* ---------- header ---------- */
header.top {
  position: fixed; inset: 0 0 auto; z-index: 20; transition: background .25s, box-shadow .25s;
}
header.top.solid { background: rgba(18, 60, 68, .94); box-shadow: 0 3px 0 rgba(0,0,0,.25); backdrop-filter: blur(6px); }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 10px 0; flex-wrap: wrap; }
.brand { font: 2rem/1 var(--font-title); color: #fff; text-decoration: none; text-shadow: 0 2px 0 var(--ink); display: flex; align-items: center; gap: 10px; min-height: 48px; }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; }
nav.links { display: flex; gap: 4px 22px; flex-wrap: wrap; font-family: var(--font-label); align-items: center; }
nav.links a { color: #fff; text-decoration: none; text-shadow: 0 1px 0 var(--ink); padding: 12px 0; min-height: 48px; display: inline-flex; align-items: center; }
nav.links a:hover { color: var(--gold-bright); }
nav.links a.play { background: var(--blue); border: 3px solid var(--ink); border-radius: 8px; padding: 6px 18px; min-height: 44px; box-shadow: 0 3px 0 var(--ink); }
nav.links a.play:hover { background: #5b96e6; color: #fff; }

/* ---------- buttons ---------- */
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 32px;
  font: 700 1.3rem var(--font-label); text-decoration: none; border-radius: 8px;
  border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); cursor: pointer; transition: transform .08s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--blue); color: #fff; text-shadow: 0 2px 0 var(--blue-deep); }
.btn.primary:hover { background: #5b96e6; }
.btn.tan { background: var(--paper); color: var(--ink); }
.btn.tan:hover { background: #fff3da; }
.btn.big { min-height: 68px; padding-inline: 44px; font-size: 1.6rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 860px); overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #17505a 0%, var(--sea-deep) 30%, var(--sea) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero .sea { position: absolute; inset: 0; overflow: hidden; }
.glint { position: absolute; width: 90px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); animation: glint 7s ease-in-out infinite; }
@keyframes glint { 0%,100% { opacity: 0; transform: translateX(-16px); } 50% { opacity: 1; transform: translateX(16px); } }
.cloud { position: absolute; left: 0; top: var(--y); width: var(--w); height: calc(var(--w) * .34); background: rgba(255,255,255,.16); border-radius: 999px; filter: blur(1px); animation: drift var(--d) linear infinite; animation-delay: var(--delay); }
.cloud::before { content: ""; position: absolute; left: 18%; top: -45%; width: 46%; height: 150%; border-radius: 50%; background: inherit; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }

.hero-inner { position: relative; z-index: 2; text-align: center; padding: 140px 0 40px; text-shadow: 0 3px 0 rgba(59,39,22,.85); }
.eyebrow { display: inline-block; font: 700 1rem var(--font-label); letter-spacing: .12em; text-transform: uppercase; background: rgba(18,60,68,.75); border: 2px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 16px; text-shadow: none; }
.hero h1 { font: 400 clamp(3.1rem, 10vw, 6.6rem)/.95 var(--font-title); margin: 18px 0 16px; text-shadow: 0 4px 0 var(--ink), 0 8px 0 rgba(59,39,22,.45); }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero .lede { font-size: clamp(1.15rem, 2.8vw, 1.5rem); max-width: 36ch; margin: 0 auto 28px; }
.hero .note { font-size: 1rem; margin: 18px 0 0; opacity: .95; }

.countdown { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin: 30px 0 0; text-shadow: none; }
.countdown .label { font: 700 1rem var(--font-label); letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 2px 0 var(--ink); }
.cd-row { display: flex; gap: 10px; }
.cd-box { min-width: 76px; padding: 8px 10px 6px; text-align: center; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 0 4px 0 var(--ink); }
.cd-box b { display: block; font: 700 2rem/1.1 var(--font-label); font-variant-numeric: tabular-nums; }
.cd-box span { font: 700 .875rem var(--font-label); text-transform: uppercase; opacity: .75; }
.countdown.live .cd-row { display: none; }
.countdown .live-msg { display: none; font: 700 1.5rem var(--font-label); color: var(--gold-bright); text-shadow: 0 2px 0 var(--ink); }
.countdown.live .live-msg { display: block; }

/* battlefield strip under the hero copy */
.field { position: relative; z-index: 1; height: 250px; margin-top: 10px; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, var(--grass) 0 14px, var(--grass-deep) 14px 22px, #6e4a2a 22px 100%); border-top: 4px solid var(--ink); }
.ground::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,0,0,.07) 46px 48px); }
.belt { position: absolute; left: 0; right: 0; bottom: 92px; height: 18px; z-index: 2; pointer-events: none; }
.belt line { stroke: var(--gold-bright); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 16; animation: dash 1.1s linear infinite; filter: drop-shadow(0 2px 0 var(--ink)); }
@keyframes dash { to { stroke-dashoffset: -18; } }
.runner { position: absolute; left: 0; bottom: var(--y, 40px); z-index: 3; animation: march var(--d, 16s) linear infinite; animation-delay: var(--delay, 0s); will-change: transform; }
.runner .sprite { --s: var(--rs, .8); }
@keyframes march {
  0% { transform: translateX(-260px); opacity: 0; }
  4% { opacity: 1; }
  74% { opacity: 1; }
  80% { transform: translateX(calc(100vw - 520px)); opacity: 0; }
  100% { transform: translateX(calc(100vw - 520px)); opacity: 0; }
}
.enemy { position: absolute; right: 3%; bottom: 44px; display: flex; align-items: flex-end; gap: 0; z-index: 3; }
.enemy .castle { width: 240px; height: 192px; background: url(assets/art/red-castle.png) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; margin-right: -30px; }
.enemy .tower { width: 96px; height: 192px; background: url(assets/art/red-tower.png) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }
.enemy .sprite { --s: .7; margin-left: -50px; }
.enemy .sprite.rl { --s: .5; margin-left: -70px; }
.enemy .sprite.ra { --s: .7; margin-left: -60px; }
.flag-hit { position: absolute; }

/* ---------- sections ---------- */
main > section { position: relative; }
.band { padding: clamp(56px, 9vw, 104px) 0; }
.band.paper { background: var(--paper); border-block: 4px solid var(--ink); }
.band.paper::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: repeating-linear-gradient(90deg, var(--paper-2) 0 20px, var(--paper) 20px 40px); }
.band.sea { background: linear-gradient(180deg, var(--sea-deep), var(--sea-night)); color: #fff; }
.band.night { background: radial-gradient(120% 90% at 50% 0, #1d4f3c 0, #10281f 70%); color: #fff; }
.kicker { font: 700 1rem var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.sea .kicker, .night .kicker { color: var(--gold-bright); }
h2 { font: 400 clamp(2.4rem, 6vw, 3.6rem)/1 var(--font-title); margin: 0 0 14px; }
.paper h2 { color: #6a4a12; }
.sea h2, .night h2 { text-shadow: 0 3px 0 rgba(0,0,0,.4); }
h3 { font: 700 1.25rem var(--font-label); margin: 0 0 6px; }
.sub { max-width: 60ch; margin: 0 0 36px; font-size: 1.2rem; }

/* how it plays */
.how { display: grid; gap: 32px; grid-template-columns: 1.25fr 1fr; align-items: center; }
.tv { position: relative; border: 5px solid var(--ink); border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 10px 0 rgba(0,0,0,.35); aspect-ratio: 16/9; }
.tv video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tv .pp { position: absolute; right: 10px; bottom: 10px; min-width: 48px; min-height: 48px; border: 3px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font: 700 1rem var(--font-label); cursor: pointer; padding: 0 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 62px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 46px; height: 46px; display: grid; place-items: center; background: var(--gold); color: #fff; font: 700 1.5rem var(--font-label); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink); text-shadow: 0 2px 0 var(--ink); }
.steps p { margin: 0; }

/* units */
.units { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.unit { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 16px 20px; background: #fffaf0; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 rgba(59,39,22,.45); text-decoration: none; color: var(--ink); transition: transform .12s; }
.unit:hover { transform: translateY(-4px); }
.unit img { width: 96px; height: 106px; object-fit: contain; image-rendering: pixelated; }
.unit p { margin: 0; font-size: 1rem; }
.unit .tag { font: 700 .875rem var(--font-label); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.triangle { margin: 40px auto 0; display: grid; gap: 24px; grid-template-columns: minmax(0, 320px) 1fr; align-items: center; }
.triangle svg { width: 100%; height: auto; }
.triangle p { margin: 0; }

/* features */
.feats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.feat { display: flex; gap: 14px; padding: 18px; background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.22); border-radius: 12px; }
.feat i { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font: normal 1.6rem var(--font-label); background: var(--gold); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink); color: #fff; text-shadow: 0 2px 0 var(--ink); }
.feat p { margin: 0; font-size: 1.02rem; }

/* wilds */
.wilds { display: grid; gap: 28px; grid-template-columns: 1fr minmax(0, 380px); align-items: end; }
.wilds .troll-wrap { display: flex; justify-content: center; align-items: flex-end; min-height: 250px; }
.wilds .troll-wrap .sprite { --s: .75; margin-bottom: -20px; filter: drop-shadow(0 12px 0 rgba(0,0,0,.35)); }
.monsters { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.monsters a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 8px 16px 8px 8px; background: rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.3); border-radius: 999px; font: 700 1rem var(--font-label); min-height: 48px; }
.monsters a:hover { background: rgba(0,0,0,.5); border-color: var(--gold-bright); }
.monsters img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }

/* gallery */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gallery button { padding: 0; border: 4px solid var(--ink); border-radius: 10px; overflow: hidden; background: #2e7f86; cursor: zoom-in; box-shadow: 0 5px 0 rgba(59,39,22,.45); transition: transform .12s; position: relative; }
.gallery button:hover { transform: translateY(-3px) rotate(-.4deg); }
.gallery img { display: block; width: 100%; height: auto; }
dialog.lightbox { border: 5px solid var(--ink); border-radius: 12px; padding: 0; background: #000; max-width: min(1200px, 96vw); max-height: 94vh; overflow: hidden; }
dialog.lightbox::backdrop { background: rgba(10,30,34,.86); }
dialog.lightbox img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; }
dialog.lightbox .cap { margin: 0; padding: 10px 56px 10px 16px; background: var(--paper); font-size: 1rem; }
dialog.lightbox .x { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; font: 700 1.4rem var(--font-label); background: var(--paper); border: 3px solid var(--ink); border-radius: 8px; cursor: pointer; }

/* season + final cta */
.season { text-align: center; }
.season .countdown { margin: 8px 0 26px; }
.season p.sub { margin-inline: auto; }
.final { text-align: center; }
.final .army { display: flex; justify-content: center; align-items: flex-end; margin-bottom: 8px; }
.final .army .sprite { --s: .6; }
.final p { max-width: 52ch; margin-inline: auto; }
.callout { border-left: 6px solid var(--gold-bright); padding: 4px 0 4px 16px; margin: 0 auto 26px; text-align: left; max-width: 52ch; }

.credits { background: var(--sea-night); color: #d8ecec; padding: 48px 0 12px; font-size: 1rem; }
.credits a, footer a { color: #fff; }
.credits h2 { font-size: 2.2rem; color: #fff; }
.credits ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
footer { background: var(--sea-night); color: #fff; text-align: center; padding: 20px 0 48px; font-size: 1rem; }
footer a { display: inline-block; padding: 12px 6px; }

/* reveal on scroll (JS adds .js to <html>) */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }
.js .rv:nth-child(2) { transition-delay: .07s; } .js .rv:nth-child(3) { transition-delay: .14s; }
.js .rv:nth-child(4) { transition-delay: .21s; } .js .rv:nth-child(5) { transition-delay: .28s; }
.js .rv:nth-child(6) { transition-delay: .35s; }

@media (max-width: 860px) {
  .how, .wilds, .triangle { grid-template-columns: 1fr; }
  .wilds .troll-wrap { order: -1; min-height: 190px; }
  .wilds .troll-wrap .sprite { --s: .5; }
  .hero-inner { padding-top: 168px; }
  nav.links { gap: 0 14px; }
  nav.links .hide-s { display: none; }
  .enemy .castle { width: 170px; height: 136px; }
  .enemy .tower { width: 64px; height: 128px; }
  .enemy .sprite { display: none; }
  .field { height: 220px; }
  .cd-box { min-width: 64px; }
  @keyframes march { 0% { transform: translateX(-260px); opacity: 0; } 4% { opacity: 1; } 70% { opacity: 1; } 78%, 100% { transform: translateX(calc(100vw - 330px)); opacity: 0; } }
}
/* Stay reachable when frames stop: sprites show their first frame. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .runner { opacity: 1; transform: translateX(calc(var(--x, 20) * 1vw)); }
  .js .rv { opacity: 1; transform: none; }
}

/* =====================================================================
   War map (brand pass): the war line, parchment, map labels, tiny but brutal
   ===================================================================== */
.brand img { image-rendering: pixelated; border-radius: 8px; }

/* hero: wordmark, slogan, strip */
.hero h1 { margin: 16px 0 10px; font-size: inherit; line-height: 1; text-shadow: none; }
.hero h1 .wordmark {
  display: block; font: 400 clamp(3.2rem, 12.5vw, 8.4rem)/.9 var(--font-title); letter-spacing: .01em; color: var(--paper);
  text-shadow: 0 4px 0 var(--ink), 0 8px 0 var(--ink), 0 14px 0 rgba(59,39,22,.4);
}
.hero h1 .slogan { display: block; margin-top: 14px; font: 400 clamp(1.7rem, 4.6vw, 2.9rem)/1.05 var(--font-title); text-shadow: 0 3px 0 var(--ink); }
.hero h1 .slogan em { font-style: normal; color: var(--gold-bright); }
.hero .lede { max-width: 42ch; }
.compass { position: absolute; right: clamp(16px, 5vw, 80px); top: 108px; width: 96px; height: 96px; color: rgba(255,255,255,.22); z-index: 1; pointer-events: none; }
.strip { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 26px 0 0; padding: 0; font: 500 1rem var(--font-label); text-shadow: 0 2px 0 var(--ink); }
.strip li { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 6px; background: rgba(18,60,68,.6); border: 2px solid rgba(255,255,255,.28); border-radius: 999px; }
.strip img { height: 34px; width: auto; image-rendering: pixelated; object-fit: contain; }
.strip b { color: var(--gold-bright); font-weight: 700; }
.countdown.compact { margin-top: 22px; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.countdown.compact .label { font-size: .95rem; }
.countdown.compact .cd-row { gap: 6px; }
.countdown.compact .cd-box { min-width: 56px; padding: 4px 8px 2px; box-shadow: 0 3px 0 var(--ink); }
.countdown.compact .cd-box b { font-size: 1.35rem; }
.countdown.compact .cd-box span { font-size: .75rem; }
.hero .note { margin-top: 14px; }

/* the belt draws itself, then the host marches */
.belt { clip-path: inset(0 100% 0 0); animation: drawline 1.7s .3s cubic-bezier(.5,.1,.3,1) forwards; }
@keyframes drawline { to { clip-path: inset(0 0 0 0); } }
.lane { position: absolute; inset: 0; animation: lanein .5s 1.6s both; }
@keyframes lanein { from { opacity: 0; } to { opacity: 1; } }
.maplabel { position: absolute; bottom: 22px; z-index: 4; font: 700 .95rem var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--paper); text-shadow: 0 2px 0 var(--ink); }
.maplabel::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--gold-bright); border: 2px solid var(--ink); transform: rotate(45deg); }
.maplabel.from { left: 2.5%; }
.maplabel.to { right: 4%; }

/* motto */
.motto { background: var(--gold-bright); border-block: 4px solid var(--ink); color: var(--ink); text-align: center; padding: 16px 0 14px; overflow: hidden; }
.motto p { margin: 0; font: 400 clamp(1.7rem, 5.2vw, 3.2rem)/1.1 var(--font-title); display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .5em; }
.motto .big { color: var(--red); text-shadow: 0 2px 0 rgba(59,39,22,.35); }
.js .motto span { opacity: 0; transform: translateY(12px) scale(.96); animation: stamp .45s cubic-bezier(.3,1.6,.5,1) forwards; animation-play-state: paused; }
.js .motto.in span { animation-play-state: running; }
.js .motto span:nth-child(2) { animation-delay: .18s; }
.js .motto span:nth-child(3) { animation-delay: .4s; }
@keyframes stamp { to { opacity: 1; transform: none; } }

/* the big gameplay window: a map frame */
.mapwin { position: relative; padding: 14px; background: var(--paper); border: 5px solid var(--ink); border-radius: 14px; box-shadow: 0 12px 0 rgba(0,0,0,.35); max-width: 1040px; margin: 10px auto 0; }
.mapwin::before, .mapwin::after { content: ""; position: absolute; width: 34px; height: 34px; border: 4px solid var(--gold); pointer-events: none; z-index: 2; }
.mapwin::before { left: 4px; top: 4px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.mapwin::after { right: 4px; bottom: 4px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.mapwin .tv { border-width: 3px; box-shadow: none; }

/* parchment and map marks */
.band.paper {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .3  0 0 0 0 .12  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"), radial-gradient(120% 80% at 50% 0, #fbf0da 0, var(--paper) 55%, #ecd6a8 100%);
}
.band.paper::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'><path d='M-20 420 C 160 360 240 520 420 470 S 700 330 880 400 S 1120 520 1240 450' fill='none' stroke='%2347aba9' stroke-opacity='.28' stroke-width='14' stroke-linecap='round'/><path d='M60 60 C 220 110 300 40 470 90 S 760 170 930 110 S 1120 40 1220 80' fill='none' stroke='%239c2f24' stroke-opacity='.25' stroke-width='4' stroke-dasharray='12 10'/></svg>") center / 100% 100% no-repeat;
}
.band.paper > .wrap { position: relative; z-index: 1; }
.band.paper + .band.paper { border-top: 0; }
.band.paper + .band.paper::before { display: none; }
.kicker { display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 12px; height: 12px; background: currentColor; border: 2px solid var(--ink); transform: rotate(45deg); flex: none; }
.route { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; }
.route img { width: 40px; height: 40px; image-rendering: pixelated; border-radius: 8px; flex: none; }
.route .ln { flex: 1; height: 6px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px); transition: transform .9s cubic-bezier(.5,.1,.3,1); }
.route .ln:first-child { transform-origin: right; }
.route .ln:last-child { transform-origin: left; }
.js .route:not(.in) .ln { transform: scaleX(0); }
.js .route.rv { opacity: 1; transform: none; }

/* the front follows you down the page (wide screens) */
.frontline { display: none; }
@media (min-width: 1320px) and (prefers-reduced-motion: no-preference) {
  .frontline { display: block; position: fixed; left: 28px; top: 96px; bottom: 28px; width: 8px; z-index: 5; pointer-events: none; }
  .frontline::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.35) 0 6px, transparent 6px 14px); }
  .frontline i { position: absolute; left: 0; top: 0; width: 8px; height: calc(var(--p, 0) * 100%); border-radius: 4px; background: repeating-linear-gradient(180deg, var(--gold-bright) 0 6px, transparent 6px 14px); box-shadow: 0 0 0 2px var(--ink); }
  .frontline i::after { content: ""; position: absolute; left: -7px; bottom: -10px; width: 22px; height: 22px; background: var(--blue); border: 3px solid var(--ink); border-radius: 50%; }
}

/* tiny but brutal: quick, exaggerated hovers */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; background: rgba(255,255,255,.45); transform: skewX(-24deg); transition: left .35s ease; pointer-events: none; }
.btn:hover::after { left: 130%; }
.unit:hover { transform: translateY(-6px) rotate(-1.2deg) scale(1.02); }
.unit:hover img { animation: wobble .45s ease; }
@keyframes wobble { 25% { transform: rotate(-7deg) scale(1.08); } 60% { transform: rotate(5deg) scale(1.08); } }
.feat.cannon i { position: relative; }
.feat.cannon i::after { content: ""; position: absolute; inset: -6px; border: 3px solid var(--red); border-radius: 50%; opacity: 0; animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: .9; } 60%, 100% { transform: scale(1.7); opacity: 0; } }

@media (max-width: 860px) {
  .compass { display: none; }
  .strip { gap: 8px; }
  .strip li { font-size: .95rem; }
  .maplabel { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .belt { clip-path: none; }
  .lane { opacity: 1; }
  .js .motto span { opacity: 1; transform: none; }
  .js .route:not(.in) .ln { transform: none; }
  .frontline { display: none !important; }
}

@media (min-width: 860px) { #how .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* The name is three words now: one line, "Wars" in gold. */
.hero h1 .wordmark { font-size: clamp(2.5rem, 9.4vw, 6.8rem); line-height: .95; }
.hero h1 .wordmark .w { color: var(--gold-bright); }

/* Pirata One is narrower than Jacquard 12 was: the title can be bigger. */
.hero h1 .wordmark { font-size: clamp(2.8rem, 11.4vw, 8rem); letter-spacing: .02em; }
.hero h1 .slogan { font-size: clamp(1.8rem, 4.8vw, 3rem); }
