/* Wanted: Dead or... Dead. One dark, painted Booty Bay look: sea-green night, lantern gold, parchment and wax. */
:root {
  color-scheme: dark;
  --sea: #0A1C22;
  --deep: #0F2A31;
  --deep-2: #0C2328;
  --line: rgba(214, 234, 229, 0.09);
  --line-gold: rgba(242, 178, 76, 0.22);
  --parchment: #EAD6A8;
  --parchment-2: #DCC28D;
  --ink: #2B1A0F;
  --ink-soft: #6A4F33;
  --lantern: #F2B24C;
  --lantern-ink: #231505;
  --foam: #D6EAE5;
  --bone: #F4EAD2;
  --mist: #8FB3AE;
  --body: #BFD6D1;
  --wax: #9C2B22;
  --wax-bright: #E0584A;
  --horde: #D0453A;
  --alliance: #4F8EDB;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --poster: 'Rye', Georgia, serif;
  --text: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --section: clamp(56px, 8vw, 112px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; }
html { background: var(--sea); }
body { margin: 0; background: var(--sea); color: var(--foam); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; color: var(--bone); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; }
img { max-width: 100%; }
::selection { background: var(--lantern); color: var(--lantern-ink); }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 56px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mist); }
.num { font-variant-numeric: lining-nums tabular-nums; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--lantern); color: var(--lantern-ink); font: 600 16px/1 var(--text); padding: 15px 22px; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(242,178,76,0.55), inset 0 1px 0 rgba(255,255,255,0.45); transition: transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.button:active { transform: scale(0.97); }
.button.ghost { background: transparent; color: var(--foam); box-shadow: inset 0 0 0 1px rgba(214,234,229,0.3); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -8px rgba(242,178,76,0.7), inset 0 1px 0 rgba(255,255,255,0.5); }
  .button.ghost:hover { box-shadow: inset 0 0 0 1px var(--lantern); }
}
.quiet-link { color: var(--foam); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(214,234,229,0.35); }
.quiet-link:hover { text-decoration-color: var(--lantern); }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding-block: 20px; }
.wordmark { font: 700 21px/1 var(--display); letter-spacing: 0.02em; text-decoration: none; color: var(--foam); white-space: nowrap; }
.wordmark span { color: var(--lantern); }
.nav ul { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav ul a:not(.button) { text-decoration: none; color: var(--mist); }
.nav ul a:not(.button):hover, .nav ul a[aria-current] { color: var(--foam); }
.nav ul a[aria-current] { text-decoration: underline; text-decoration-color: var(--lantern); text-decoration-thickness: 2px; }
.nav .button { padding: 11px 18px; font-size: 15px; }
.nav-search input { width: 150px; background: rgba(6,18,22,0.6); border: 1px solid rgba(214,234,229,0.18); border-radius: 999px; color: var(--foam); font: 500 14px/1 var(--text); padding: 9px 14px; }
.nav-search input::placeholder { color: var(--mist); }
.nav-search input:focus { outline: none; border-color: var(--lantern); }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: clip; isolation: isolate; }
.hero-art, .masthead-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img, .masthead-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(6,18,22,0.92) 0%, rgba(6,18,22,0.72) 30%, rgba(6,18,22,0.05) 58%),
    linear-gradient(180deg, rgba(6,18,22,0.55) 0%, transparent 18%, transparent 70%, var(--sea) 100%); }
.hero-copy { padding-block: clamp(64px, 11vw, 150px) clamp(88px, 12vw, 170px); max-width: 560px; display: flex; flex-direction: column; gap: var(--s5); }
.season { font-size: 15px; color: var(--mist); }
.season b { color: var(--lantern); font-weight: 600; }
.hero h1 { font-weight: 900; font-size: clamp(44px, 6.6vw, 92px); line-height: 0.98; letter-spacing: -0.01em; text-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.hero-copy > p { font-size: clamp(17px, 1.6vw, 20px); color: #C4DAD5; max-width: 32ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); margin-top: var(--s3); }
@supports (animation-timeline: scroll()) {
  .hero-art img { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 120vh; }
  @keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.14) translateY(6%); } }
}

/* ---------- inner page masthead ---------- */
.masthead { position: relative; overflow: clip; isolation: isolate; padding-bottom: 150px; }
.masthead-art img { object-position: 60% 38%; }
.masthead-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,18,22,0.72) 0%, rgba(6,18,22,0.45) 45%, var(--sea) 100%); }
.masthead-short { padding-bottom: 90px; }
.page { position: relative; margin-top: -120px; padding-bottom: var(--section); display: flex; flex-direction: column; gap: var(--s7); }
.page-head { display: flex; flex-direction: column; gap: var(--s3); max-width: 760px; }
.page-head h1 { font-weight: 900; font-size: clamp(36px, 5vw, 64px); line-height: 1; text-shadow: 0 2px 24px rgba(0,0,0,0.55); }
.page-head p { color: var(--body); font-size: 18px; max-width: 60ch; }
.page-head .kicker { color: var(--lantern); font: 600 15px/1.2 var(--text); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s5); margin-bottom: var(--s4); }
.section-head h2 { font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); }
.section-head p, .section-head a { color: var(--mist); font-size: 15px; }

/* ---------- the poster (the addon's own, text where Poster.lua puts it) ---------- */
.poster { position: relative; aspect-ratio: 1000 / 1491; width: min(100%, 460px); container-type: size; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55)); }
.poster.sway { transform: rotate(-1.2deg); transform-origin: 50% 4%; animation: sway 7s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(-0.4deg); } }
.poster > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px; }
.poster-portrait { position: absolute; left: 19%; top: 24.5%; width: 62.5%; height: 36%; overflow: hidden; }
.poster-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.poster-portrait::after { content: ""; position: absolute; inset: 0; background: #FFDBA8; mix-blend-mode: multiply; }
.poster-band { position: absolute; left: 17%; width: 66%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ink); font-family: var(--poster); line-height: 1; }
.poster-name { top: 64.5%; height: 6%; justify-content: space-between; padding-top: 0.3cqh; gap: 0.2cqh; }
.poster-name b { font-size: 3.2cqh; font-weight: 400; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-name span { font-size: 1.7cqh; }
.poster-reward { top: 75.5%; height: 6.5%; }
.poster-reward b { font-size: 3.6cqh; font-weight: 400; font-variant-numeric: lining-nums; }
.poster-note { position: absolute; left: 17%; width: 66%; top: 82.4%; text-align: center; font: 400 1.6cqh/1 var(--poster); color: var(--ink); }
.stamp { position: absolute; right: 12%; top: 46%; z-index: 3; transform: rotate(-14deg); border: 0.45cqh solid var(--wax); color: var(--wax); border-radius: 8px; padding: 0.4cqh 1.6cqh; font: 400 5.4cqh/1 var(--poster); letter-spacing: 0.04em; mix-blend-mode: multiply; opacity: 0.9; animation: stamp 700ms 700ms var(--ease) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(1.9); } to { opacity: 0.9; transform: rotate(-14deg) scale(1); } }
a.poster { display: block; text-decoration: none; transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { a.poster:hover { transform: rotate(0deg) translateY(-4px); } }

/* ---------- home: the board ---------- */
.board-section { padding-block: var(--s6) var(--section); background: radial-gradient(ellipse 40% 55% at 28% 50%, rgba(242,178,76,0.13), transparent 70%); }
.board-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.board-grid .poster { justify-self: center; width: min(100%, 500px); }
.board-text { display: flex; flex-direction: column; gap: var(--s4); }
.board-text h2 { font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.board-text p { color: var(--body); max-width: 44ch; }
.meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: 15px; color: var(--mist); }
.meta strong { color: var(--foam); font-weight: 600; }

/* ---------- the ledger: ranked rows with tally marks ---------- */
.ledger { position: relative; background: linear-gradient(180deg, var(--deep), var(--deep-2)); border-radius: 22px; padding: clamp(20px, 4vw, 48px); box-shadow: inset 0 1px 0 rgba(214,234,229,0.08), 0 30px 60px -30px rgba(0,0,0,0.7); }
.ledger::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-gold); border-radius: 14px; pointer-events: none; }
.ledger ol { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 250px) 110px; align-items: center; gap: var(--s4); padding-block: 16px; border-top: 1px solid var(--line); }
.row.no-marks { grid-template-columns: 56px minmax(0, 1fr) auto 110px; }
.row:first-child { border-top: 0; }
.rank { font: 700 26px/1 var(--display); color: var(--lantern); font-variant-numeric: lining-nums; }
.who { display: flex; flex-direction: column; min-width: 0; }
.who a, .who b { font-weight: 600; font-size: 19px; color: var(--foam); text-decoration: none; overflow-wrap: anywhere; }
.who a:hover { color: var(--lantern); }
.who span { font-size: 14px; color: var(--mist); }
.name-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who .name-line { font-size: inherit; color: inherit; }
.badges { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.badges img { display: block; }
.badges .class-icon { border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 0 2px var(--line-gold); }
.marks { width: 100%; height: 30px; overflow: visible; }
.marks .ink { stroke: var(--parchment); stroke-width: 2.6; fill: none; stroke-linecap: round; }
.marks .pencil { stroke: var(--mist); stroke-width: 1.6; opacity: 0.55; fill: none; stroke-linecap: round; }
.count { text-align: right; display: flex; flex-direction: column; }
.count b { font: 700 28px/1 var(--display); color: var(--bone); font-variant-numeric: lining-nums tabular-nums; }
.count span { font-size: 13px; color: var(--mist); }
.extra { font-size: 14px; color: var(--mist); text-align: right; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 15px; color: var(--mist); }
.legend svg { vertical-align: -6px; margin-right: 8px; }
.empty { padding: var(--s6) 0; color: var(--mist); }
.flagged { color: var(--wax-bright); font-size: 13px; }

/* ---------- parchment notices: the board index ---------- */
.notices { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s5); }
.notice { position: relative; background: linear-gradient(170deg, var(--parchment) 0%, var(--parchment-2) 100%); color: var(--ink); border-radius: 4px 6px 5px 3px; padding: 26px 22px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 30px -18px rgba(0,0,0,0.8), inset 0 0 40px rgba(106,79,51,0.28); transition: transform 200ms var(--ease); }
.notice:nth-child(3n+1) { transform: rotate(-0.8deg); }
.notice:nth-child(3n+2) { transform: rotate(0.6deg); }
.notice::before { content: ""; position: absolute; top: 9px; left: 50%; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d9d2c0, #6b6252 70%); box-shadow: 0 2px 3px rgba(0,0,0,0.45); }
@media (hover: hover) and (pointer: fine) { a.notice:hover { transform: rotate(0deg) translateY(-3px); } }
.notice h3 { font: 400 22px/1.1 var(--poster); color: var(--ink); }
.notice p { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.notice ol { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.notice li { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; border-top: 1px dashed rgba(43,26,15,0.25); padding-top: 4px; }
.notice li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice li b { font-variant-numeric: lining-nums tabular-nums; }
.notice .none { font-style: italic; color: var(--ink-soft); font-size: 14px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s3) var(--s4); padding: var(--s4); background: rgba(15,42,49,0.7); border: 1px solid var(--line); border-radius: 16px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mist); }
.filters select { background: var(--sea); color: var(--foam); border: 1px solid rgba(214,234,229,0.2); border-radius: 10px; font: 500 15px/1 var(--text); padding: 9px 10px; min-width: 120px; }
.filters .button { padding: 11px 18px; font-size: 15px; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.tabs a { display: inline-block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--mist); font-size: 15px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.tabs a:hover { color: var(--foam); }
.tabs a[aria-current] { background: var(--lantern); color: var(--lantern-ink); box-shadow: none; }
.factions a.horde { color: #EF7F72; }
.factions a.alliance { color: #7FB0EE; }
.factions a.horde[aria-current] { background: var(--horde); color: #fff; }
.factions a.alliance[aria-current] { background: var(--alliance); color: #fff; }
h1 .side { display: block; font-size: 0.5em; letter-spacing: 0.02em; }
.pager { display: flex; justify-content: space-between; gap: var(--s4); margin-top: var(--s5); }

/* ---------- detail pages ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.detail > .poster { position: sticky; top: 24px; }
.stack { display: flex; flex-direction: column; gap: var(--s7); min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.tile { background: var(--deep); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tile dt { font-size: 13px; color: var(--mist); }
.tile dd { margin: 0; font: 700 28px/1.1 var(--display); color: var(--bone); font-variant-numeric: lining-nums tabular-nums; }
.tile small { font-size: 13px; color: var(--lantern); }
.tile small.note { color: var(--mist); }
.tile.pencil dd { color: var(--mist); font-weight: 600; }
.banner { border-radius: 14px; padding: 14px 18px; background: rgba(156,43,34,0.18); border: 1px solid rgba(224,88,74,0.45); color: #F3C3BC; }
.banner b { color: #FFE0DA; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4) var(--s6); margin: 0; }
.facts div { display: flex; flex-direction: column; }
.facts dt { font-size: 13px; color: var(--mist); }
.facts dd { margin: 0; font-size: 18px; font-weight: 600; }
.facts a { text-decoration: none; color: var(--foam); }
.facts a:hover { color: var(--lantern); }

/* Simple tables for breakdowns */
.table-scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 16px; }
table.list th { text-align: left; font: 500 13px/1.2 var(--text); color: var(--mist); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
table.list td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list .r { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
table.list a { color: var(--foam); text-decoration: none; font-weight: 600; }
table.list a:hover { color: var(--lantern); }
/* A death's time opens its death page: underlined, since nothing else in the row says it's a link */
table.list a.death-time, .facts a.death-time { font-weight: 500; white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(214,234,229,0.35); }
table.list a.death-time:hover, .facts a.death-time:hover { text-decoration-color: var(--lantern); }
table.list tr:last-child td { border-bottom: 0; }

/* Recent kills and deaths */
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: var(--s3); align-items: baseline; padding-block: 10px; border-top: 1px solid var(--line); }
.lines li:first-child { border-top: 0; }
.lines .mark { width: 10px; height: 10px; border-radius: 50%; align-self: center; }
.lines .kill .mark { background: var(--lantern); }
.lines .death .mark { background: transparent; box-shadow: inset 0 0 0 2px var(--mist); }
.lines a { color: var(--foam); font-weight: 600; text-decoration: none; }
.lines a:hover { color: var(--lantern); }
.lines .when { font-size: 14px; color: var(--mist); white-space: nowrap; }
.lines .how { font-size: 14px; color: var(--mist); }
.tier-confirmed { color: var(--lantern); }

/* Weekday by hour grid */
.hours { display: grid; grid-template-columns: 44px repeat(24, minmax(0, 1fr)); gap: 3px; font-size: 12px; color: var(--mist); }
.hours span { aspect-ratio: 1; border-radius: 3px; background: rgba(214,234,229,0.05); }
.hours .day { aspect-ratio: auto; background: none; align-self: center; }
.hours .hr { aspect-ratio: auto; background: none; text-align: center; }
.hours .h1 { background: rgba(242,178,76,0.18); }
.hours .h2 { background: rgba(242,178,76,0.36); }
.hours .h3 { background: rgba(242,178,76,0.56); }
.hours .h4 { background: rgba(242,178,76,0.78); }
.hours .h5 { background: var(--lantern); }

/* Horde and Alliance */
/* Text shades of the faction colours, light enough to read on the sea */
.horde { color: #EF7F72; }
.alliance { color: #7FB0EE; }
.war { width: 100%; max-width: 560px; height: 180px; display: block; }
.war .h { fill: var(--horde); }
.war .a { fill: var(--alliance); }
.war text { fill: var(--mist); font: 500 12px var(--text); }

/* Zone map: deaths plotted on the zone's 0..1 coordinates */
.zone-map { width: 100%; max-width: 560px; aspect-ratio: 1; display: block; border-radius: 14px; background: radial-gradient(circle at 50% 45%, #1a3a41, var(--deep-2)); border: 1px solid var(--line); }
.zone-map line { stroke: rgba(214,234,229,0.06); }
.zone-map.art { aspect-ratio: 1002 / 668; max-width: 100%; background: none; }
.zone-map.art circle { stroke: #fff; stroke-width: 2; fill-opacity: 0.9; }
.zone-map .h { fill: var(--horde); fill-opacity: 0.75; }
.zone-map .a { fill: var(--alliance); fill-opacity: 0.75; }
.zone-map .u { fill: var(--parchment); fill-opacity: 0.6; }

/* Wall of posters */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s6) var(--s5); }
.wall .poster { width: 100%; }

/* Two sides of a feud */
.feud { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s5); align-items: center; text-align: center; }
.feud .side { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.feud .side .poster { width: min(100%, 260px); }
.feud .score { font: 900 clamp(40px, 6vw, 72px)/1 var(--display); color: var(--bone); font-variant-numeric: lining-nums; }
.feud .score span { color: var(--mist); font-weight: 400; padding-inline: 10px; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7) clamp(28px, 4vw, 64px); }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: var(--s4); color: var(--body); }
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); margin-top: var(--s5); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.prose b, .prose strong { color: var(--foam); }
.prose code { font-size: 15px; background: var(--deep); padding: 1px 6px; border-radius: 6px; }

/* ---------- the rule and the close (home) ---------- */
.rule { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.rule h2 { font-weight: 700; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; }
.rule dl { margin: 0; display: flex; flex-direction: column; gap: var(--s5); }
.rule dt { font: 700 20px/1.2 var(--display); color: var(--lantern); letter-spacing: 0.03em; }
.rule dd { margin: 6px 0 0; color: var(--body); max-width: 56ch; }
.close { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(110px, 15vw, 200px) clamp(80px, 11vw, 150px); text-align: center; }
.close > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.close::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sea) 0%, rgba(10,28,34,0.25) 30%, rgba(10,28,34,0.35) 70%, rgba(10,28,34,0.9) 100%); }
.close h2 { font-weight: 900; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; text-shadow: 0 2px 24px rgba(0,0,0,0.6); }
.close p { color: #CFE3DE; margin: var(--s4) auto 0; max-width: 40ch; }
.search { margin: var(--s6) auto 0; display: flex; gap: var(--s2); max-width: 520px; padding: 6px; background: rgba(6,18,22,0.72); border: 1px solid rgba(214,234,229,0.18); border-radius: 999px; backdrop-filter: blur(6px); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--foam); font: 500 17px/1 var(--text); padding: 0 18px; caret-color: var(--lantern); }
.search input::placeholder { color: var(--mist); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--lantern); }
.search .button { padding: 13px 22px; }

/* ---------- sign-in pages ---------- */
.form-page { position: relative; margin-top: -60px; padding-bottom: var(--section); display: flex; justify-content: center; }
.card { width: min(100%, 560px); background: linear-gradient(180deg, var(--deep), var(--deep-2)); border: 1px solid var(--line-gold); border-radius: 20px; padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: var(--s4); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); }
.card h1 { font-size: clamp(26px, 3vw, 34px); }
.card p, .card li { color: var(--body); }
.card .brand { display: none; }
.card .button { width: 100%; }
.card input, .card textarea { font: inherit; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(214,234,229,0.2); background: var(--sea); color: var(--foam); }
.card input:focus, .card textarea:focus { outline: none; border-color: var(--lantern); }
.card code { background: var(--sea); padding: 1px 6px; border-radius: 6px; }
.card form { display: flex; flex-direction: column; gap: var(--s3); margin: 0; }

/* ---------- footer ---------- */
.footer { padding-block: var(--s6); font-size: 14px; color: var(--mist); border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s6); }
.footer ul { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--mist); }
.footer a:hover { color: var(--foam); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .nav-search { display: none; }
}
@media (max-width: 960px) {
  /* The links drop to their own row under the wordmark and scroll sideways: no menu script needed */
  .nav { flex-wrap: wrap; row-gap: 12px; }
  .nav ul { flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; gap: 20px; padding-bottom: 2px; }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav ul li { flex: none; }
  .nav ul li:last-child { margin-left: auto; }
  .detail, .two, .rule, .board-grid { grid-template-columns: minmax(0, 1fr); }
  .detail > .poster { position: static; justify-self: center; width: min(100%, 360px); }
}
@media (max-width: 860px) {
  .wordmark { font-size: 18px; }
  .hero-art::after { background: linear-gradient(180deg, rgba(6,18,22,0.7) 0%, rgba(6,18,22,0.35) 35%, rgba(6,18,22,0.85) 75%, var(--sea) 100%); }
  .hero-copy { padding-block: 190px 64px; }
  .board-grid .poster { width: min(100%, 400px); }
  .row, .row.no-marks { grid-template-columns: 34px minmax(0, 1fr) 76px; row-gap: 6px; }
  .row .marks, .row .extra { grid-column: 2 / span 2; order: 4; text-align: left; }
  .rank { font-size: 20px; }
  .count b { font-size: 22px; }
  .feud { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feud .score { grid-column: 1 / span 2; order: -1; }
  .hours { grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 10px; }
  /* The seventeen boards: one row to scroll sideways, not a screen of pills before the list */
  nav[aria-label="Boards"] .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  nav[aria-label="Boards"] .tabs::-webkit-scrollbar { display: none; }
  nav[aria-label="Boards"] .tabs li { flex: none; }
}
@media (max-width: 520px) {
  .wordmark { font-size: 16px; }
  .nav .button { padding: 9px 14px; font-size: 14px; }
  .masthead { padding-bottom: 120px; }
  .page { margin-top: -96px; }
}
@media (prefers-reduced-motion: reduce) {
  .poster.sway { animation: none; }
  .stamp { animation: none; opacity: 0.88; }
  .hero-art img { animation: none !important; transform: scale(1.06); }
  .notice, a.poster, .button { transition: none; }
}

/* Sign-in buttons that aren't the main action */
.card .button:not(.primary) { background: transparent; color: var(--foam); box-shadow: inset 0 0 0 1px rgba(214,234,229,0.3); }
@media (hover: hover) and (pointer: fine) { .card .button:not(.primary):hover { box-shadow: inset 0 0 0 1px var(--lantern); } }
.card label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--mist); }
.card label br { display: none; }

/* Home page sections */
.home-tally, .home-war, .home-boards, .home-rule { padding-bottom: var(--section); }
.split-bar { display: block; width: 100%; max-width: 220px; height: 8px; border-radius: 999px; background: rgba(214,234,229,0.08); }
.split-bar .h { fill: var(--horde); }
.split-bar .a { fill: var(--alliance); }
td .split-bar { margin-bottom: 4px; }

/* Battle reports */
.lead { font-size: 20px; color: var(--foam); max-width: 60ch; }
.battle-tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-block: var(--s5); }
.battle-tiles .tile small { color: var(--mist); }
.timeline { width: 100%; min-width: 320px; height: 180px; display: block; background: var(--deep); border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-sizing: border-box; }
.timeline .h { fill: var(--horde); }
.timeline .a { fill: var(--alliance); }
.timeline .peak rect { stroke: var(--lantern); stroke-width: 1.5; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--lantern); color: var(--lantern-ink); text-decoration: none; vertical-align: 2px; }
.home-battle { margin-block: var(--s6); }
.battle-card { display: grid; gap: var(--s2); padding: clamp(20px, 3vw, 32px); border-radius: 22px; text-decoration: none; color: var(--foam);
  background: linear-gradient(120deg, rgba(208,69,58,0.22), rgba(79,142,219,0.22)), var(--deep); border: 1px solid var(--line-gold); }
.battle-card h2 { margin: 0; }
.battle-card p { margin: 0; color: var(--mist); }
.battle-card .button { justify-self: start; }
.battle-card:hover { border-color: var(--lantern); }
.battle-close { margin-block: var(--s7) var(--s5); padding: var(--s5); border-radius: 18px; background: var(--deep); border: 1px solid var(--line); }

/* The note across the top of every page: the numbers grow with the players */
.site-note { margin: 0; padding: 8px 16px; text-align: center; font-size: 14px; line-height: 1.4; color: var(--foam);
  background: linear-gradient(90deg, rgba(208,69,58,0.18), rgba(242,178,76,0.14), rgba(79,142,219,0.18)), var(--deep-2);
  border-bottom: 1px solid var(--line-gold); }
.site-note a { color: var(--lantern); font-weight: 600; margin-left: 4px; white-space: nowrap; }
.tag.live { background: var(--horde); color: #fff; font-family: inherit; letter-spacing: 0; vertical-align: middle; font-size: 14px; }

/* The footer's time zone picker */
.zone-pick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s4); font-size: 14px; color: var(--mist); }
.zone-pick select { font: inherit; color: var(--foam); background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.zone-pick .button { padding: 6px 12px; }

/* A player's last 24 hours, at the top of their page */
.tonight { margin-block: var(--s4) var(--s5); padding: var(--s4) var(--s5); border-radius: 16px; background: var(--deep);
  border: 1px solid var(--line-gold); }
.tonight p { margin: 4px 0 0; font-size: 17px; color: var(--foam); }
.tonight b { font-family: var(--display); font-size: 22px; }
.quiet-link.small { font-size: 13px; margin-left: 6px; }

/* The home page's battlefront: the featured battle, then the contested zones */
.home-front { margin-block: var(--s6); display: grid; gap: var(--s4); }
.front { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
.front-zone { border-radius: 16px; overflow: hidden; background: var(--deep); border: 1px solid var(--line); display: flex; flex-direction: column; }
.front-map { display: flex; align-items: flex-end; min-height: 110px; padding: 12px 14px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #1a3a41, var(--deep-2)); position: relative; overflow: hidden; }
.front-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.front-map::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,18,22,0) 30%, rgba(6,18,22,0.85)); }
.front-map span { position: relative; z-index: 2; font: 700 20px/1.1 var(--display); text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.front-body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.front-body p { margin: 0; }
.front-body b { font: 700 24px/1 var(--display); color: var(--bone); }

/* No bounties yet: a small invitation instead of a big empty poster */
.home-bounty { margin-block: var(--s6); }
.bounty-invite { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s5); align-items: center; padding: var(--s5); border-radius: 18px; background: var(--deep); border: 1px solid var(--line); }
.bounty-invite h2 { margin: 0 0 var(--s2); }
.bounty-invite p { margin: 0 0 var(--s3); color: var(--mist); max-width: 60ch; }
.poster.small { width: 140px; transform: rotate(-2deg); }
@media (max-width: 520px) { .bounty-invite { grid-template-columns: 90px minmax(0, 1fr); } .poster.small { width: 90px; } }
.section-head.spaced { margin-top: var(--s6); }

/* Crests and class icons inside a recent kill or death: a little smaller, sitting on the text line */
.lines .badges { vertical-align: -4px; margin-right: 4px; gap: 3px; }
.lines .badges .crest { width: 14px; height: 17px; }
.lines .badges .class-icon { width: 18px; height: 18px; border-radius: 4px; }

/* The app page's setup steps: what to do beside what it looks like */
.steps { list-style: none; counter-reset: step; margin: var(--s5) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s7); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5) clamp(28px, 4vw, 64px); align-items: start; padding-top: var(--s6); border-top: 1px solid var(--line); }
.steps h3 { font-size: clamp(20px, 2vw, 24px); display: flex; align-items: baseline; gap: var(--s3); }
.steps h3::before { content: counter(step); flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--deep); border: 1px solid var(--line-gold); font: 600 16px/1 var(--text); color: var(--foam); transform: translateY(-3px); }
.shot { margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
.shot img { display: block; width: auto; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-gold); box-shadow: 0 20px 40px -24px rgba(0,0,0,0.8); }
.shot figcaption { font-size: 14px; color: var(--mist); }
.tray-shot img { width: 311px; }
.shot-stack { display: flex; flex-direction: column; gap: var(--s5); }
@media (max-width: 760px) {
  .steps > li { grid-template-columns: minmax(0, 1fr); }
}

/* A player's nemesis, favourite victim and most-fought rival */
.rivalries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.rivalry { background: var(--deep); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.rivalry .name-line { font-size: 18px; color: var(--foam); }
.rivalry .muted { font-size: 14px; }
@media (max-width: 760px) {
  .rivalries { grid-template-columns: minmax(0, 1fr); }
}

/* A death's page: who claims the kill, and what the victim's own record says */
.death-claims { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.death-claims li { display: flex; align-items: center; gap: var(--s3); font-size: 18px; }
.victim-word { padding: 12px 14px; border-radius: 12px; background: var(--deep); border: 1px solid var(--line-gold); }
.victim-word.disagrees { border-color: var(--horde); }
