/* The website's one stylesheet: the main page (deploy/download.html) and every page under deploy/site/.
   deploy.ps1 fills 73ce66f8 as in the pages; urls are relative to the site's root, where this file is served. */
@font-face {
  font-family: Cinzel; font-style: normal; font-weight: 700; font-display: swap;
  src: url(cinzel-bold.ttf) format("truetype");
}
:root {
  color-scheme: dark;
  --ink: #07161b; --deep: #0b2028; --panel: #0f2a33; --panel-2: #133540;
  --brass: #e2b25f; --brass-hi: #ffd88f; --brass-dim: rgba(226, 178, 95, .35);
  --paper: #f4ecdb; --muted: #a8bcc1; --line: rgba(168, 188, 193, .16);
  --safe: #6fd38a; --pvp: #ff6b5b;
  --common: #b9c0c4; --uncommon: #6fd38a; --rare: #5aa9ff; --epic: #bf7bff; --legendary: #ffa142;
  --head: Cinzel, Georgia, serif; --body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: min(1240px, calc(100% - 80px)); --wrap-wide: min(1440px, calc(100% - 80px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font: 700 clamp(30px, 3.4vw, 46px)/1.15 var(--head); letter-spacing: -.01em; }
h3 { font: 700 20px/1.3 var(--head); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.wrap.wide { width: var(--wrap-wide); }
.section { padding-block: 104px; }
.head { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 24px 64px; align-items: end; margin-bottom: 44px; }
.head p { color: var(--muted); font-size: 17px; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 10; padding: 10px 18px; background: var(--ink); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Brass-trimmed panel, like the game's frames */
.panel { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--brass-dim); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px rgba(0, 0, 0, .35); }
.panel::before, .panel::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--brass); pointer-events: none; }
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 58px; padding: 14px 30px;
  background: linear-gradient(180deg, #f3c877, #d39d43); color: #1d1408; border: 1px solid #ffe2a3;
  font: 700 17px/1 var(--body); text-decoration: none; letter-spacing: .01em;
  box-shadow: 0 0 0 4px rgba(226, 178, 95, .18), 0 12px 28px rgba(0, 0, 0, .4);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 0 0 6px rgba(226, 178, 95, .24), 0 16px 32px rgba(0, 0, 0, .45); }
.button:active { transform: translateY(1px); }
.button svg { width: 20px; height: 20px; flex: none; }
.button.alt { background: rgba(7, 22, 27, .72); color: var(--paper); border-color: var(--brass); box-shadow: 0 0 0 4px rgba(226, 178, 95, .1), 0 12px 28px rgba(0, 0, 0, .4); }
.button.alt:hover { color: var(--brass-hi); }
.dl { display: flex; flex-wrap: wrap; gap: 14px; }
.android .dl-android { order: -1; }
.ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--paper); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--brass-dim); }
.ghost:hover { color: var(--brass-hi); border-color: var(--brass); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 5; transition: background 200ms ease, box-shadow 200ms ease; }
.nav.solid { background: rgba(7, 22, 27, .92); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand img { width: 92px; height: auto; opacity: 0; transition: opacity 200ms ease; }
.nav.solid .nav-brand img { opacity: 1; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 600; text-decoration: none; color: #d8e2e3; }
.nav-links a:hover { color: var(--brass-hi); }
.nav-links .nav-cta { padding: 9px 18px; border: 1px solid var(--brass); color: var(--brass-hi); }
.nav-links .nav-cta:hover { background: rgba(226, 178, 95, .12); }
.sound { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); background: none; color: #d8e2e3; cursor: pointer; }
.sound:hover { color: var(--brass-hi); border-color: var(--brass-dim); }
.sound svg { width: 20px; height: 20px; }
.sound .waves, .sound[aria-pressed="false"] .on-only { display: none; }
.sound[aria-pressed="true"] .waves { display: inline; }
.sound[aria-pressed="true"] .cross { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: min(900px, 100svh); display: grid; align-items: center; padding: 56px 0; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 16, 21, .92), rgba(5, 16, 21, .7) 34%, rgba(5, 16, 21, .05) 70%),
    linear-gradient(0deg, var(--ink), rgba(7, 22, 27, .4) 14%, transparent 42%);
}
.hero-copy { max-width: 620px; }
.hero-logo { width: clamp(240px, 27vw, 400px); margin: 0 0 30px -6px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .6)); }
.hero h1 { font: 700 clamp(30px, 3.3vw, 48px)/1.18 var(--head); letter-spacing: -.01em; }
.hero h1 span { color: var(--brass); }
.hero-text { margin-top: 20px; max-width: 520px; color: #dbe5e6; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 34px; }
.hero-meta { margin-top: 16px; color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.tags li { padding: 7px 14px; border: 1px solid var(--line); background: rgba(7, 22, 27, .55); font-size: 13px; font-weight: 600; color: #dbe5e6; }
.tags li b { color: var(--brass); font-weight: 700; }

/* Screenshots */
.shot { display: block; position: relative; overflow: hidden; background: #000; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 16 / 9.2; object-fit: cover; transition: transform 400ms ease; }
.shot:hover img { transform: scale(1.03); }

/* Voyage loop */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { display: flex; flex-direction: column; }
.step-body { padding: 24px 26px 28px; flex: 1; }
.step-body h3 { display: flex; align-items: baseline; gap: 12px; font-size: 22px; }
.step-body h3::before { counter-increment: step; content: counter(step); color: var(--brass); font-size: 30px; line-height: 1; }
.step-body p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Fleet */
.fleet { background: var(--deep); }
.ship-tabs { display: none; }
/* Tabs in a column left of the ship; every ship shares one grid cell, so the panel keeps the tallest ship's size. */
.fleet-ready .fleet-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
.fleet-ready .ship-tabs { display: grid; grid-auto-rows: 1fr; gap: 10px; }
.ship-tab { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; padding: 0; border: 1px solid var(--line); background: var(--panel); color: var(--muted); text-align: left; font: inherit; transition: border-color 160ms ease, color 160ms ease; }
.ship-tab img { flex: 1 1 0; height: 0; min-height: 0; width: 100%; object-fit: cover; filter: saturate(.55) brightness(.75); transition: filter 160ms ease; }
.ship-tab span { display: flex; flex-direction: column; padding: 7px 12px 9px; font-size: 12px; line-height: 1.35; }
.ship-tab strong { font: 700 14px/1.3 var(--head); color: var(--paper); }
.ship-tab:hover img { filter: none; }
.ship-tab[aria-selected="true"] { border-color: var(--brass); color: var(--brass-hi); box-shadow: 0 0 0 1px var(--brass); }
.ship-tab[aria-selected="true"] img { filter: none; }
[hidden] { display: none !important; }
.ship { margin-bottom: 26px; }
.fleet-ready .ship { grid-area: 1 / 2; margin-bottom: 0; }
.fleet-ready .ship.off { visibility: hidden; }
.ship-art { width: 100%; aspect-ratio: 1600 / 640; object-fit: cover; }
.ship-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 44px; align-content: start; padding: 20px 28px 22px; }
.ship-info > * { grid-column: 1; }
.ship-info > .stats { grid-column: 2; grid-row: 1 / span 4; margin: 0; align-self: center; }
.ship-cost { color: var(--brass); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ship-info h3 { font-size: clamp(22px, 2vw, 28px); margin: 4px 0 8px; }
.ship-info > p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.stats { margin: 16px 0 0; display: grid; gap: 7px; }
.stats div { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 10px; font-size: 13px; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: rgba(255, 255, 255, .08); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #b8843a, var(--brass-hi)); }
.ship-extra { display: flex; gap: 22px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.ship-extra b { color: var(--paper); }

/* Tactics */
.tactics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tactic { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; }
.tactic img { width: 64px; height: 64px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 6px 14px rgba(0, 0, 0, .4); }
.tactic h3 { font: 700 16px/1.3 var(--body); }
.tactic .when { display: block; margin-top: 2px; color: var(--brass); font-size: 12px; font-weight: 600; }
.tactic p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.combos-title { margin: 52px 0 18px; font: 700 22px/1.3 var(--head); }
.combos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.combo { padding: 20px; }
.combo-icons { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--brass); font-weight: 700; }
.combo-icons img { width: 44px; height: 44px; border-radius: 9px; }
.combo h3 { font: 700 16px/1.3 var(--body); }
.combo p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Forge: each weapon's tree on a grid of five columns, brass lines joining a gun to those upgraded from it */
.arsenal { background: var(--deep); }
.forge-tabs { display: none; }
.forge-ready .forge-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 28px; }
.forge-tab { min-height: 42px; padding: 0 18px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: 600 14px/1 var(--body); cursor: pointer; transition: border-color 160ms ease, color 160ms ease; }
.forge-tab b { margin-left: 4px; color: var(--paper); }
.forge-tab:hover { color: var(--paper); }
.forge-tab[aria-selected="true"] { border-color: var(--brass); color: var(--brass-hi); box-shadow: 0 0 0 1px var(--brass); }
/* Both trees share one grid cell, so the section keeps its size whichever is shown. */
.forge-body { display: grid; }
.tree { --gap: 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); margin-bottom: 48px; }
.forge-ready .tree { grid-area: 1 / 1; margin-bottom: 0; }
.forge-ready .tree.off { visibility: hidden; }
.trunk { grid-column: 1 / 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.trunk .gun + .gun::before { content: ""; position: absolute; top: 34%; left: calc(-1 * var(--gap)); width: calc(var(--gap) - 6px); height: 2px; background: var(--brass); }
.trunk .gun + .gun::after { content: ""; position: absolute; top: calc(34% - 5px); left: -8px; border: 6px solid transparent; border-left: 7px solid var(--brass); border-right: 0; }
.forge-note { grid-column: 4 / 6; padding: 22px 26px; }
.forge-note h3 { font-size: 20px; }
.forge-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-top: 40px; }
.forge-foot .gear-line { margin: 0; }
.forge-shot { border: 1px solid var(--line); }
.ladder { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.ladder li { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--muted); }
.ladder li:last-child { padding-bottom: 0; border-bottom: 0; }
.ladder b { color: var(--brass); }
.branches { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.branches.n3 .branch:first-child { grid-column-start: 2; }
.branch { position: relative; padding-top: 56px; }
.branch::before { content: ""; position: absolute; top: 28px; left: calc(50% - 1px); width: 2px; height: 28px; background: var(--brass); }
.branch.mid::before { top: 0; height: 56px; }
.branch::after { content: ""; position: absolute; top: 28px; left: calc(var(--gap) / -2); right: calc(var(--gap) / -2); height: 2px; background: var(--brass); }
.branch:first-child::after { left: 50%; }
.branch:last-child::after { right: 50%; }
.gun { --r: var(--common); position: relative; display: flex; flex-direction: column; border: 1px solid color-mix(in srgb, var(--r) 45%, transparent); background: var(--panel); }
.gun img { width: 100%; aspect-ratio: 400 / 301; object-fit: cover; border-bottom: 2px solid var(--r); }
.gun div { padding: 10px 12px 12px; min-width: 0; }
.gun h3 { font: 700 15px/1.3 var(--body); }
.gun .rarity { display: block; color: var(--r); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.gun .num { display: block; min-height: 2.9em; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.evolves { display: grid; gap: 10px; margin: 10px 0 0 22px; }
.gun.small { padding-left: 62px; min-height: 70px; }
.gun.small img { position: absolute; inset: 0 auto 0 0; width: 62px; height: 100%; aspect-ratio: auto; object-position: 58% center; border-bottom: 0; border-right: 2px solid var(--r); }
.gun.small div { padding: 7px 9px 8px; }
.gun.small h3 { font-size: 13px; }
.gun.small .rarity { font-size: 11px; letter-spacing: 0; text-transform: none; }
.gun.small .num { min-height: 2.7em; margin-top: 2px; font-size: 11.5px; line-height: 1.35; }
/* An L from the gun above to each of the two it upgrades into. */
.gun.small::before { content: ""; position: absolute; left: -13px; top: -11px; width: 12px; height: calc(50% + 11px); border-left: 2px solid var(--brass-dim); border-bottom: 2px solid var(--brass-dim); }
.gun.small:not(:last-child)::after { content: ""; position: absolute; left: -13px; top: 50%; bottom: -11px; border-left: 2px solid var(--brass-dim); }
.uncommon { --r: var(--uncommon); } .rare { --r: var(--rare); } .epic { --r: var(--epic); } .legendary { --r: var(--legendary); }
.legendary { box-shadow: 0 0 22px rgba(255, 161, 66, .14); }
.gear-line { margin-top: 32px; color: var(--muted); font-size: 15px; }
.gear-line b { color: var(--paper); }

/* Seas */
.seas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.sea-body { padding: 22px 26px 26px; }
.badge { display: inline-block; padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; }
.badge.safe { color: var(--safe); } .badge.pvp { color: var(--pvp); } .badge.arena { color: var(--brass); }
.sea-body h3 { margin: 12px 0 8px; font-size: 24px; }
.sea-body p { color: var(--muted); font-size: 15px; }
.sea-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sea-facts b { color: var(--paper); font-weight: 600; }

/* Crew */
.crew { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.crew p { margin-top: 18px; color: var(--muted); font-size: 17px; }
.fair { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.fair li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; color: #d9e3e4; }
.fair li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; transform: rotate(45deg); background: var(--brass); }
.fair b { color: var(--paper); }

/* Questions: the words players search, answered in plain text */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.faq article { padding: 22px 24px; }
.faq h3 { font: 700 17px/1.4 var(--body); }
.faq p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.faq b { color: var(--paper); }

/* Download */
.get { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); }
.get::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(battle.webp?v=73ce66f8) 70% 40% / cover no-repeat; opacity: .16; }
.get-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.get h2 { font-size: clamp(34px, 4vw, 52px); }
.get-copy > p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 480px; }
.get-copy .dl { margin-top: 28px; }
.get-copy .build { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.install { padding: 26px 28px; }
.install ol { margin: 0; padding: 0; list-style: none; counter-reset: i; display: grid; gap: 18px; }
.install li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; counter-increment: i; }
.install li::before { content: counter(i); display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--brass); color: var(--brass); font: 700 15px/1 var(--head); }
.install h3 { font: 700 16px/1.4 var(--body); }
.install p { margin-top: 2px; color: var(--muted); font-size: 14px; }
.install b { color: var(--paper); }
.notes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 13px; color: var(--muted); }
.notes b { color: var(--paper); }
footer { padding-block: 34px; border-top: 1px solid var(--line); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot img { width: 96px; }
.foot p { color: var(--muted); font-size: 13px; }

/* Trailer and clips: filmed in the game, each clip loaded and played only while in sight */
.trailer-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.reel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.clip { margin: 0; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.clip figcaption { padding: 16px 20px 18px; }
.clip h3 { font-size: 18px; }
.clip p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* The ships past the first four: a picture and a line each */
.classes { margin-top: 64px; }
.classes > h3 { font-size: 22px; }
.class-ships { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.class-ships figure, .bosses figure { margin: 0; overflow: hidden; }
.class-ships img, .bosses img { width: 100%; height: auto; }
.class-ships figcaption, .bosses figcaption { padding: 12px 16px 14px; color: var(--muted); font-size: 13px; }
.class-ships b, .bosses b { display: block; color: var(--paper); font: 700 16px/1.3 var(--head); }

/* Nine seas: each port's painted chart */
.seas9 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.seas9 li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 16px 18px; }
.seas9 img { width: 120px; height: auto; }
.seas9 h3 { margin-top: 8px; font-size: 18px; }
.seas9 p { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* Night, bosses and the story's people */
.night { background: linear-gradient(180deg, var(--ink), #050d18 30%, #050d18 70%, var(--ink)); }
.bosses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.givers { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; text-align: center; }
.givers img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-bottom: 2px solid var(--brass-dim); }
.givers b { display: block; margin-top: 8px; font: 700 15px/1.3 var(--head); }
.givers span { color: var(--muted); font-size: 12px; }

/* Language links in the nav: always shown, phones too */
.lang { display: flex; gap: 2px; }
.nav-links .lang a { padding: 6px 7px; font-size: 13px; color: var(--muted); }
.nav-links .lang a[aria-current] { color: var(--brass-hi); }

/* Footer links: every page reaches every other */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.foot-links a { color: #d8e2e3; text-decoration: none; }
.foot-links a:hover { color: var(--brass-hi); }

/* Pages under deploy/site/: a solid nav, a short header, then reading width */
.page .nav { background: rgba(7, 22, 27, .92); box-shadow: 0 1px 0 var(--line); }
.page .nav-brand img { opacity: 1; }
.page-top { position: relative; isolation: isolate; overflow: hidden; padding: 148px 0 72px; background: var(--deep); border-bottom: 1px solid var(--line); }
.page-top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(battle.webp?v=73ce66f8) 70% 40% / cover no-repeat; opacity: .14; }
.page-top h1 { max-width: 860px; font: 700 clamp(34px, 4.6vw, 60px)/1.1 var(--head); letter-spacing: -.01em; }
.page-top .lead { max-width: 720px; margin-top: 20px; color: #d9e3e4; font-size: 18px; }
.page-top .dl { margin-top: 30px; }
.crumbs { margin: 0 0 18px; padding: 0; list-style: none; display: flex; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--brass-dim); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brass-hi); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 64px; font-size: clamp(26px, 2.8vw, 36px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; font-size: 19px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; color: #d9e3e4; font-size: 17px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose b, .prose strong { color: var(--paper); }
.prose a { color: var(--brass-hi); }
.prose figure { margin: 28px 0 0; }
.prose figure img { border: 1px solid var(--brass-dim); }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.keys { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; }
.keys th, .keys td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.keys th { color: var(--brass); font-weight: 600; }
.keys td:first-child { color: var(--paper); font-weight: 600; white-space: nowrap; }
.keys td { color: #d9e3e4; }
.note { margin-top: 28px; padding: 20px 22px; color: var(--muted); font-size: 15px; }
.update + .update { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.update time { display: block; color: var(--brass); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.update h2 { margin-top: 6px; }
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 72px; }
.more a { display: block; padding: 22px 24px; text-decoration: none; }
.more a:hover h3 { color: var(--brass-hi); }
.more h3 { font-size: 18px; }
.more p { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* Lightbox */
.lightbox { padding: 0; border: 1px solid var(--brass-dim); background: #000; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(2, 8, 10, .88); }
.lightbox img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; }
.lightbox figcaption { padding: 10px 16px; color: var(--muted); font-size: 14px; background: var(--ink); }
.lightbox button { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 1px solid var(--brass-dim); background: rgba(7, 22, 27, .85); color: var(--paper); font: 700 22px/1 var(--body); cursor: pointer; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise 800ms ease-out both; }
  .fleet-ready .ship:not(.off) { animation: fade 280ms ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: .3; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 1100px) {
  :root { --wrap: calc(100% - 56px); --wrap-wide: calc(100% - 56px); }
  .combos { grid-template-columns: repeat(2, 1fr); }
  .tactics { grid-template-columns: repeat(2, 1fr); }
  .seas9, .bosses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-ships { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .givers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .tree { grid-template-columns: minmax(0, 1fr); }
  .trunk { grid-column: 1; }
  .forge-note { grid-column: 1; margin-top: 22px; }
  .branches { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; row-gap: 28px; }
  .branches.n3 .branch:first-child { grid-column-start: auto; }
  .branch { padding-top: 0; }
  .branch::before, .branch::after { display: none; }
  .fleet-ready .fleet-body { grid-template-columns: minmax(0, 1fr); }
  .fleet-ready .ship-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fleet-ready .ship { grid-area: 2 / 1; }
  .ship-tab img { flex: none; height: auto; aspect-ratio: 16 / 7; }
}
@media (max-width: 820px) {
  .head, .loop, .seas, .crew, .get-grid, .forge-foot, .faq, .more, .reel, .seas9 { grid-template-columns: 1fr; }
  .givers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .class-ships { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head { gap: 14px; margin-bottom: 30px; }
  .loop { gap: 22px; }
  .crew, .get-grid { gap: 36px; }
  .ship-info { grid-template-columns: 1fr; }
  .ship-info > .stats { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .nav-links { gap: 14px; }
  .page-top { padding: 112px 0 52px; }
  .keys td:first-child { white-space: normal; }
  .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --wrap: calc(100% - 32px); --wrap-wide: calc(100% - 32px); }
  .section { padding-block: 68px; }
  .hero { align-items: end; padding: 96px 0 56px; min-height: 760px; }
  .hero-art { object-position: 66% center; }
  .hero::after { background: linear-gradient(0deg, var(--ink), rgba(5, 16, 21, .9) 30%, rgba(5, 16, 21, .55) 58%, rgba(5, 16, 21, .15) 85%); }
  .hero-logo { width: 220px; margin-bottom: 20px; }
  .hero-text { font-size: 16px; }
  .hero-actions .dl, .dl .button { width: 100%; }
  .fleet-ready .ship-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ship-info { padding: 18px 18px 20px; }
  .tactics, .combos { grid-template-columns: 1fr; }
  /* Every gun a row on a phone: the picture beside its name. */
  .trunk, .branches { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .trunk .gun + .gun::before, .trunk .gun + .gun::after { display: none; }
  .gun, .gun.small { padding-left: 112px; min-height: 84px; }
  .gun img, .gun.small img { position: absolute; inset: 0 auto 0 0; width: 112px; height: 100%; aspect-ratio: auto; object-position: 58% center; border-bottom: 0; border-right: 2px solid var(--r); }
  .gun .num { min-height: 0; }
  .forge-note { padding: 20px 18px; }
  .install { padding: 22px 18px; }
}
