/* ============================================================
   Island Siege — "campaign map"
   Structure is a war-room briefing, not a product page: a
   cinematic plate, the 100-wave campaign drawn as a route, a
   field manual of real numbers pulled from the game's own
   source, and full-bleed art bands. Deliberately shares no
   layout vocabulary with the other three sites.
   ============================================================ */

:root {
  --night:    #0c0f1c;
  --night-2:  #12172a;
  --plank:    #1b2137;
  --parch:    #e9dcc0;
  --parch-dim:#c3b493;

  --ink:      #f2e9d6;
  --ink-soft: rgba(242, 233, 214, 0.68);
  --ink-mute: rgba(242, 233, 214, 0.42);

  --gold:     #e3ac46;
  --gold-hi:  #f6d089;
  --ember:    #d9622f;
  --sea:      #3f9e9a;
  --moss:     #74a94c;
  --blood:    #a3382c;

  --rule:     rgba(227, 172, 70, 0.26);
  --rule-dim: rgba(242, 233, 214, 0.12);

  --display: 'Cinzel', 'Iowan Old Style', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; }
p { margin: 0; }

.bound { max-width: 1140px; margin: 0 auto; padding-inline: 26px; }
.skip { position: absolute; left: -9999px; background: var(--gold); color: var(--night); padding: 10px 18px; font-weight: 700; }
.skip:focus { left: 0; top: 0; z-index: 99; }

/* ---------- top bar: a thin banner, not a sticky nav ---------- */
.banner { border-bottom: 1px solid var(--rule); background: var(--night-2); }
.banner .bound { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.sigil { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.sigil img { width: 28px; height: 28px; border-radius: 7px; }
.sigil b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.banner-meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.banner-meta b { color: var(--gold); font-weight: 600; }

/* ---------- cinematic plate ---------- */
.plate { position: relative; min-height: 78svh; display: grid; align-items: end; overflow: hidden; }
/* Art is pre-cropped on disk (the App Store banner is gone), so a plain
   object-fit is enough and the framing no longer depends on viewport height. */
.plate-art { position: absolute; inset: 0; }
.plate-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; image-rendering: pixelated; }
.plate-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--night) 3%, rgba(12,15,28,.88) 30%, rgba(12,15,28,.22) 66%, rgba(12,15,28,.55) 100%),
    radial-gradient(120% 78% at 50% 108%, transparent 40%, rgba(12,15,28,.72) 100%);
}
.plate .bound { position: relative; padding-block: 64px 72px; }
.plate-kicker {
  font-family: var(--display); font-size: 12.5px; font-weight: 700; letter-spacing: .34em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.plate h1 { font-size: clamp(38px, 7.2vw, 88px); letter-spacing: -.02em; text-shadow: 0 6px 30px rgba(0,0,0,.8); }
.plate h1 i { font-style: normal; display: block; color: var(--gold); }
.plate-sub {
  margin-top: 22px; max-width: 54ch; font-size: clamp(16px, 1.8vw, 18.5px);
  color: var(--ink-soft); text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
.orders { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-top: 30px; }
.seal {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .04em;
  padding: 15px 28px; color: #2a1a04;
  background: linear-gradient(168deg, var(--gold-hi), #b4801f);
  box-shadow: 0 12px 30px -14px rgba(227,172,70,.8);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform .18s cubic-bezier(.2,.7,.3,1);
}
.seal:hover { transform: translateY(-2px); color: #2a1a04; }
.plain {
  font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); text-decoration: none; border-bottom: 1px solid var(--rule-dim); padding-bottom: 3px;
}
.plain:hover { color: var(--gold); border-color: var(--rule); }

/* ---------- campaign route ---------- */
.route-sec { padding: clamp(60px, 7vw, 92px) 0 clamp(52px, 6vw, 80px); border-bottom: 1px solid var(--rule-dim); }
.scroll-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.scroll-head h2 { font-size: clamp(24px, 3.2vw, 34px); }
.scroll-head span { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.scroll-note { max-width: 62ch; color: var(--ink-soft); font-size: 15.5px; margin-bottom: 34px; }

.route-wrap { position: relative; }
.route-wrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 14px; width: 54px; pointer-events: none; background: linear-gradient(to right, transparent, var(--night)); }
.route { position: relative; overflow-x: auto; overflow-y: hidden; padding: 30px 0 24px; scrollbar-width: thin; }
.route::-webkit-scrollbar { height: 6px; }
.route::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
.route-line { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 0; min-width: max-content; position: relative; }
.route-line::before {
  content: ""; position: absolute; left: 30px; right: 30px; top: 46px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 9px, transparent 9px 18px);
}
.leg { position: relative; width: 104px; flex: none; text-align: center; }
.leg-node {
  width: 30px; height: 30px; margin: 32px auto 0; border-radius: 50%;
  background: var(--night); border: 2px solid var(--gold); position: relative; z-index: 1;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 12.5px; color: var(--gold);
}
.leg.is-final .leg-node { background: var(--blood); border-color: var(--ember); color: var(--ink); }
.leg-wave { margin-top: 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.leg-name { margin-top: 5px; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); }
.leg-boss { margin-top: 9px; font-size: 11.5px; color: var(--ember); letter-spacing: .06em; }
.route-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; font-size: 13px; color: var(--ink-mute); }
.route-legend b { color: var(--gold); font-weight: 600; }

/* ---------- field manual: three blueprint columns ---------- */
.manual { padding: clamp(60px, 7vw, 92px) 0; background: var(--night-2); border-bottom: 1px solid var(--rule-dim); }
.folios { display: grid; gap: 0; }
@media (min-width: 880px) { .folios { grid-template-columns: repeat(3, 1fr); } }
.folio { padding: 30px 30px 34px; border-top: 2px solid var(--gold); }
@media (min-width: 880px) { .folio + .folio { border-left: 1px solid var(--rule-dim); } }
@media (max-width: 879px) { .folio + .folio { border-top: 1px solid var(--rule-dim); } }
.folio h3 { font-size: 19px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.folio > p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.spec { list-style: none; margin: 22px 0 0; padding: 0; }
.spec li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--rule-dim); font-size: 14.5px; }
.spec li:last-child { border-bottom: 0; }
.spec dfn {
  font-style: normal; font-family: var(--display); font-weight: 700; font-size: 13px;
  color: var(--gold); min-width: 72px; letter-spacing: .04em;
}
.spec span { color: var(--ink-soft); }

/* ---------- full-bleed art bands ---------- */
.band-art { position: relative; }
/* Full-bleed bands run the art at its own aspect, edge to edge. */
.band-art { position: relative; }
.band-art img { width: 100%; height: auto; image-rendering: pixelated; }
.band-art figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 22px;
  background: linear-gradient(to top, rgba(12,15,28,.94), transparent);
}
.band-art figcaption .bound { padding-inline: 0; }
.band-art b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 2.4vw, 24px); color: var(--ink); }
.band-art i { font-style: normal; display: block; margin-top: 5px; font-size: 14px; color: var(--ink-mute); }
figure { margin: 0; }

/* ---------- dispatches: FAQ as a manual, all open, two columns ---------- */
.dispatch { padding: clamp(60px, 7vw, 92px) 0; }
.entries { margin-top: 30px; columns: 2; column-gap: 46px; }
@media (max-width: 800px) { .entries { columns: 1; } }
.entry { break-inside: avoid; margin: 0 0 26px; padding-left: 40px; position: relative; }
.entry::before {
  content: attr(data-n); position: absolute; left: 0; top: 2px;
  font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--gold);
  border: 1px solid var(--rule); width: 26px; height: 26px; display: grid; place-items: center;
}
.entry h3 { font-size: 16.5px; letter-spacing: .01em; color: var(--ink); }
.entry p { margin-top: 7px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- closing plaque ---------- */
.plaque { border-top: 1px solid var(--rule); background: var(--night-2); padding: clamp(52px, 6vw, 76px) 0; text-align: center; }
.plaque h2 { font-size: clamp(24px, 3.6vw, 38px); }
.plaque p { margin: 14px auto 0; max-width: 46ch; color: var(--ink-soft); }
.plaque .orders { justify-content: center; margin-top: 28px; }

.colophon { border-top: 1px solid var(--rule-dim); padding: 30px 0 38px; }
.colophon .bound { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
.colophon p { font-size: 13px; color: var(--ink-mute); }
.colophon nav { display: flex; flex-wrap: wrap; gap: 20px; }
.colophon a { font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.colophon a:hover { color: var(--gold); }

/* ---------- legal pages ---------- */
.parchment { padding: clamp(46px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.parchment .bound { max-width: 760px; }
.parchment h1 { font-size: clamp(28px, 4.6vw, 42px); }
.parchment .stamp { margin: 14px 0 34px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.parchment h2 { font-size: 19px; letter-spacing: .03em; text-transform: uppercase; margin: 38px 0 12px; color: var(--gold); }
.parchment p { margin: 0 0 15px; color: var(--ink-soft); font-size: 15.5px; }
.parchment strong { color: var(--ink); }
.writ { border: 1px solid var(--rule); border-left: 3px solid var(--gold); padding: 24px 26px; margin: 26px 0 34px; background: var(--night-2); }
.writ h2 { margin-top: 0; }
.writ a.email { font-size: 17px; font-weight: 600; }
