@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-latin-ext.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* -------------------------------------------------------------------------
   Fanbook design: thick ink lines, hard shadows and stickers, one color set
   per site. Every text color below is checked against the surfaces it sits
   on (test/contrast.test.mjs, WCAG AA: 4.5:1, 3:1 for large text):
   - --ink, --muted, --link on --paper and --card;
   - --on-accent on --accent (buttons, CTA block);
   - --on-highlight on --highlight (stickers, highlighted words);
   - --board-* on --board (the hero board);
   - --footer-* on --footer.
   No white on yellow, no dark text on a dark color.
--------------------------------------------------------------------------- */
:root {
  --trait: 2.5px;
  --radius: 20px;
  --serif: "Fredoka", ui-rounded, system-ui, sans-serif;
  --sans: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --gap-section: clamp(32px, 4vw, 56px);
}

body.site-star {
  --paper: #17112b; --card: #241b43; --ink: #fff8ff; --muted: #d3c5ee; --line: #fff8ff; --shadow: #090611;
  --link: #ffd75a; --focus: #ffd75a;
  --accent: #bd9cff; --on-accent: #1b1233;
  --highlight: #ffd75a; --on-highlight: #241b43;
  --badge: #ff6f9d; --on-badge: #241b43;
  --board: #30235c; --board-ink: #fff8ff; --board-muted: #d3c5ee; --board-link: #ffd75a; --board-focus: #ffd75a;
  --live: #2bc58a; --pending: #ffb347; --off: #b8aab0;
  --footer: #090611; --footer-ink: #fff8ff; --footer-muted: #cfc3e6; --footer-link: #ffd75a;
}

body.site-koh {
  --paper: #edf3e5; --card: #fffdf7; --ink: #16362d; --muted: #456055; --line: #16362d; --shadow: #16362d;
  --link: #0f5c49; --focus: #16362d;
  --accent: #ff704d; --on-accent: #16362d;
  --highlight: #cbe58d; --on-highlight: #16362d;
  --badge: #ff704d; --on-badge: #16362d;
  --board: #cbe58d; --board-ink: #16362d; --board-muted: #456055; --board-link: #0f5c49; --board-focus: #16362d;
  --live: #1f9d6b; --pending: #e8a33d; --off: #9aa7a1;
  --footer: #16362d; --footer-ink: #f2f7ee; --footer-muted: #c7d6cf; --footer-link: #cbe58d;
}

body.site-miss {
  --paper: #fff1ea; --card: #fffdfb; --ink: #341629; --muted: #6e4d60; --line: #341629; --shadow: #341629;
  --link: #7e1850; --focus: #341629;
  --accent: #ff5f93; --on-accent: #341629;
  --highlight: #ffd267; --on-highlight: #341629;
  --badge: #bba6ff; --on-badge: #341629;
  --board: #ffd267; --board-ink: #341629; --board-muted: #6e4d60; --board-link: #7e1850; --board-focus: #341629;
  --live: #1f9d6b; --pending: #e8a33d; --off: #a8979f;
  --footer: #341629; --footer-ink: #fff1ea; --footer-muted: #e3cdd8; --footer-link: #ffd267;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); overflow-wrap: break-word; }
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .08 0 0 0 0 .11 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, figure { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
h1 { margin-bottom: 18px; font-size: clamp(2.4rem, 1.3rem + 4.6vw, 5.4rem); line-height: 1; }
h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 1.25rem + 2.2vw, 3rem); line-height: 1.05; }
h3 { margin-bottom: 8px; font-size: 1.15rem; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[id] { scroll-margin-top: 16px; }
.site-koh :is(h1, h2, h3) { font-family: var(--sans); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }

.shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.section { padding-block: var(--gap-section); }
.section-first { padding-top: 4px; }
.section-tight { padding-block: 20px; }
/* No double gap between a hero and its first section, or around the game
   block. */
.hero + .section, .cta-block + .section { padding-top: 8px; }
.eyebrow { margin: 0 0 14px; color: var(--link); font: 800 .78rem/1.35 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.lede, .hero-lede { max-width: 62ch; color: var(--muted); font-size: 1.08rem; font-weight: 700; }
.section-intro, .section-note { max-width: 70ch; color: var(--muted); font-weight: 700; }
.section-note { font-size: .9rem; }
.microcopy { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--link); font: 700 .95rem/1.2 var(--serif); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--accent); }
.center-link { display: flex; justify-content: center; margin-top: 22px; }

/* Header */
.skip-link { position: fixed; z-index: 40; top: 12px; left: 12px; padding: 10px 14px; border: var(--trait) solid var(--line); border-radius: 10px; background: var(--highlight); color: var(--on-highlight); font-weight: 800; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: var(--trait) solid var(--line); background: var(--paper); }
.nav-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 72px; padding-block: 8px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; color: var(--ink); font: 700 .9rem/1.15 var(--serif); letter-spacing: -.01em; text-transform: uppercase; }
.nav-wrap > .wordmark { flex: 1 1 0; min-width: 0; }
.wordmark-name { overflow-wrap: anywhere; }
.wordmark-mark { display: inline-grid; flex: none; place-items: center; width: 34px; height: 34px; border: var(--trait) solid var(--line); border-radius: 50%; background: var(--highlight); color: var(--on-highlight); box-shadow: 2px 2px 0 var(--shadow); font-size: 1rem; line-height: 1; }
.site-miss .wordmark-mark { font-size: .62rem; letter-spacing: -.04em; }
.site-nav { display: flex; flex-wrap: wrap; order: 3; gap: 0 20px; width: 100%; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font: 600 1rem/1.2 var(--serif); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration-color: currentColor; }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: auto; padding: 8px 14px; border: var(--trait) solid var(--line); border-radius: 12px; background: var(--accent); color: var(--on-accent); box-shadow: 3px 3px 0 var(--shadow); font: 700 .95rem/1.1 var(--serif); white-space: nowrap; }
.nav-cta:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--shadow); }

/* Buttons and stickers */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; max-width: 100%; padding: 10px 20px; border: var(--trait) solid var(--line); border-radius: 999px; background: var(--accent); color: var(--on-accent); box-shadow: 4px 4px 0 var(--shadow); font: 700 .95rem/1.2 var(--serif); text-align: center; cursor: pointer; transition: transform .1s ease, box-shadow .1s ease; }
.button:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--shadow); }
.button-ghost { background: var(--card); color: var(--ink); }
.button-light { background: var(--paper); color: var(--ink); }
.sticker { display: inline-block; padding: 6px 10px; border: var(--trait) solid var(--line); border-radius: 10px; background: var(--highlight); color: var(--on-highlight); box-shadow: 2px 2px 0 var(--shadow); font: 600 .85rem/1.1 var(--serif); text-transform: uppercase; }
.circled { position: relative; display: inline-block; max-width: calc(100% - 10px); margin-top: .06em; padding: 0 .14em .05em; background: var(--highlight); color: var(--on-highlight); transform: rotate(-2deg); }
.circled::after { position: absolute; inset: -5px -6px -6px; border: 3px solid var(--accent); border-radius: 48% 52% 45% 55%; content: ""; transform: rotate(3deg); pointer-events: none; }

/* Status */
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 700 .8rem/1.25 var(--serif); }
.status-dot { flex: none; width: 9px; height: 9px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--off); }
.status-live .status-dot { background: var(--live); }
.status-pending .status-dot { background: var(--pending); }

/* Home hero and board */
/* Single-column grids use minmax(0, 1fr): a long word or link wraps inside
   its box instead of widening the page. */
.hero, .profile-grid, .profile-content, .about-grid, .footer-grid, .cta-block, .season-current, .candidate-list, .archive-list { grid-template-columns: minmax(0, 1fr); }
.hero { display: grid; gap: 32px; padding-block: 32px 40px; }
.hero h1 { font-size: clamp(2.6rem, 1.3rem + 5.4vw, 6rem); line-height: .98; }
/* Nunito, the Koh-Lanta heading font, is taller than Fredoka: more line
   height, so accents on capitals (À, É) stay clear of the line above. */
.site-koh .hero h1 { line-height: 1.08; }
.board { position: relative; display: grid; align-content: start; gap: 16px; padding: 24px 20px 20px; border: var(--trait) solid var(--line); border-radius: 24px; background: var(--board); color: var(--board-ink); box-shadow: 8px 8px 0 var(--shadow); --ink: var(--board-ink); --muted: var(--board-muted); --link: var(--board-link); --focus: var(--board-focus); }
.board::before { position: absolute; top: -12px; left: 40%; width: 96px; height: 22px; background: var(--highlight); content: ""; opacity: .9; transform: rotate(-4deg); }
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.board-badge { display: inline-block; padding: 6px 12px; border: var(--trait) solid var(--line); border-radius: 10px; background: var(--badge); color: var(--on-badge); box-shadow: 3px 3px 0 var(--shadow); font: 600 .9rem/1.1 var(--serif); transform: rotate(-4deg); }
.board-question { margin: 0; font: 600 clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem)/1.12 var(--serif); }
.board-faces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 84px), 1fr)); gap: 16px 12px; margin: 0; padding: 0; list-style: none; }
.board-face { display: grid; justify-items: center; align-content: start; gap: 6px; color: var(--ink); text-align: center; }
.board-avatar { display: block; width: 72px; height: 72px; overflow: hidden; border: 3px solid var(--line); border-radius: 50%; background: var(--highlight); box-shadow: 3px 3px 0 var(--shadow); }
.board-avatar img, .candidate-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.board-face-name { font: 600 .95rem/1.15 var(--serif); overflow-wrap: anywhere; }
.board-face-meta { color: var(--muted); font-size: .78rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.board-face:hover .board-face-name { text-decoration: underline; }
.board-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--link); font: 700 1rem/1.2 var(--serif); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Section heads and lists */
.section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 0; }
.list-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; margin: 20px 0 12px; padding: 8px 2px; border-bottom: 2px dashed var(--line); color: var(--muted); font: 600 .88rem/1.35 var(--serif); }
.filter-note { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 14px; padding: 10px 0; border-block: 2px solid var(--line); color: var(--muted); font: 600 .88rem/1.35 var(--serif); }
.status-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.status-counts li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); }
.status-counts strong { font-family: var(--serif); }
.candidate-list { display: grid; gap: 12px; }
.candidate-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 84px; padding: 10px 14px 10px 10px; border: var(--trait) solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 4px 4px 0 var(--shadow); transition: transform .1s ease, box-shadow .1s ease; }
.candidate-row:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.candidate-avatar { display: block; width: 56px; height: 56px; overflow: hidden; border: 3px solid var(--line); border-radius: 50%; background: var(--highlight); }
.candidate-row-copy { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.candidate-row-copy strong { font: 600 1.08rem/1.15 var(--serif); overflow-wrap: anywhere; }
.candidate-row-copy small { color: var(--muted); font-size: .82rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.row-arrow { color: var(--link); font: 700 1.3rem/1 var(--serif); }
.photo-credits { margin: 14px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.photo-credits span + span::before { content: "·" / ""; margin: 0 6px; }
.picture-missing { display: grid; place-items: center; color: var(--on-highlight); font: 700 1.1rem/1 var(--serif); }

/* Cards: key facts, latest result, timeline, archives */
.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; margin: 0 0 22px; }
.key-fact { padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); }
.key-fact dt { color: var(--muted); font: 800 .78rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.key-fact dd { margin: 6px 0 0; font-weight: 700; line-height: 1.45; }
.key-fact-note { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.source-link, .inline-source { color: var(--link); font-size: .8rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
/* A source link after a fact is a target of its own: 24 px high at least,
   more with a larger text (a fixed 24 px line overlaps at 200 %). */
.source-link { display: inline-block; min-height: 24px; line-height: max(24px, 1.25em); }
/* A link standing alone (not inside a sentence) gets a 24 px target at least. */
.timeline-sources .source-link, .fold-list .source-link { display: inline-flex; align-items: center; min-height: 32px; }
.detail-list dd a, .about-list a { display: inline-block; padding-block: 2px; }
.latest-card, .next-card { margin: 0 0 20px; padding: 18px 20px; border: var(--trait) solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 4px 4px 0 var(--shadow); }
.latest-card h3 { margin-bottom: 6px; }
.latest-card p:last-child, .next-card p:last-child { margin-bottom: 0; }
.timeline { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.timeline-item { padding: 18px 20px; border: var(--trait) solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 4px 4px 0 var(--shadow); }
.timeline-row { margin-bottom: 6px; }
.timeline-row a, .about-list a, .archive-facts a:not(.source-link), .next-card a:not(.text-link) { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.timeline-notes { margin-bottom: 8px; }
.timeline-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; color: var(--muted); font-size: .85rem; }
.rule-list { display: grid; gap: 12px; margin: 0; padding-left: 22px; }
.rule-list li::marker { color: var(--link); font-weight: 800; }
.rule-list p { margin: 0 0 4px; font-weight: 700; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.archive-card { position: relative; display: grid; align-content: start; gap: 8px; padding: 20px 48px 20px 20px; border: var(--trait) solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: 4px 4px 0 var(--shadow); }
a.archive-card:hover { background: var(--paper); }
.archive-card strong { font: 600 1.35rem/1.15 var(--serif); overflow-wrap: anywhere; }
.archive-card small { color: var(--muted); font-size: .88rem; font-weight: 700; }
.archive-arrow { position: absolute; top: 18px; right: 18px; color: var(--link); font: 700 1.2rem/1 var(--serif); }
.archive-label { color: var(--muted); font: 700 .8rem/1.3 var(--serif); letter-spacing: .04em; text-transform: uppercase; }
.archive-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.archive-entry { padding: 20px; border: var(--trait) solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 4px 4px 0 var(--shadow); }
.archive-entry h3 { margin: 6px 0 10px; font-size: 1.45rem; }
.archive-entry h3 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.archive-summary { margin-bottom: 8px; font-weight: 800; }
.archive-facts { display: grid; gap: 6px; margin: 0 0 10px; padding-left: 18px; }
.history-card { padding: 22px; border: 2px dashed var(--line); border-radius: var(--radius); }
.history-card h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); }
.season-current { display: grid; gap: 16px; padding: 22px; border: var(--trait) solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 5px 5px 0 var(--shadow); }
.season-current h2 { margin-bottom: 8px; }
.season-current-copy p:last-child { margin-bottom: 0; color: var(--muted); font-weight: 700; }
.season-current .key-facts { margin-bottom: 0; }
.season-current-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-anchors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted); font-weight: 700; }
.page-anchors a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 700 .9rem/1.1 var(--serif); }
.page-anchors a:hover { text-decoration: underline; }

/* Page heads */
.page-hero { padding-block: 24px 28px; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.6rem); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--muted); font: 700 .85rem/1.3 var(--serif); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "›" / ""; color: var(--muted); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--ink); overflow-wrap: anywhere; }

/* Profile */
.profile-hero { padding-block: 20px 28px; }
.profile-grid { display: grid; gap: 28px; }
.profile-figure { margin: 0; }
.profile-picture { display: block; overflow: hidden; border: var(--trait) solid var(--line); border-radius: 22px; background: var(--highlight); box-shadow: 8px 8px 0 var(--shadow); }
.profile-picture img { width: 100%; max-height: min(420px, 75vh); object-fit: cover; object-position: center top; }
.profile-picture.picture-missing { aspect-ratio: 3 / 4; max-height: 420px; font-size: 3.4rem; }
.photo-credit { margin-top: 20px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.photo-credit a { color: var(--link); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.profile-copy h1 { margin-bottom: 12px; font-size: clamp(2.3rem, 1.3rem + 4.2vw, 5rem); }
.profile-status { margin-bottom: 16px; }
.profile-status .status { font-size: .95rem; }
.outcome { max-width: 70ch; padding: 14px 16px; border: var(--trait) solid var(--line); border-left-width: 8px; border-radius: 12px; background: var(--card); font-weight: 700; }
.detail-list { display: grid; gap: 12px 24px; margin: 20px 0; }
.detail-list div { padding-top: 10px; border-top: 2px dashed var(--line); }
.detail-list dt { color: var(--muted); font: 600 .85rem/1.3 var(--serif); }
.detail-list dd { margin: 2px 0 0; font: 600 1rem/1.4 var(--serif); }
.detail-list dd a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.social-box { display: grid; gap: 4px; margin: 0 0 22px; padding: 14px 16px; border: var(--trait) solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 3px 3px 0 var(--shadow); }
.social-title { color: var(--link); font: 800 .75rem/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.social-link { color: var(--link); font-weight: 800; text-decoration: underline; overflow-wrap: anywhere; }
.social-empty { font-weight: 700; }
.social-box small { color: var(--muted); font-size: .82rem; }
.social-box small a { color: var(--link); text-decoration: underline; }
.profile-content { display: grid; gap: 24px; }
.content-column { min-width: 0; max-width: 760px; }
.fact-list { display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.fact-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.fact-list p { margin: 0; font-weight: 700; }
.fact-mark { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; border: 2px solid var(--line); border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: .7rem; }
.empty-note { padding: 14px 16px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-weight: 700; }
.profile-aside { display: grid; align-content: start; gap: 14px; }
.aside-card { padding: 20px; border: var(--trait) solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 4px 4px 0 var(--shadow); }
.aside-card p:not(.eyebrow) { color: var(--muted); font-weight: 700; }

/* Compact sources: a small button, a light box over the page */
.sources-trigger { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: 2px 2px 0 var(--shadow); font: 700 .9rem/1.1 var(--serif); cursor: pointer; }
.sources-trigger:hover { transform: translate(-1px, -1px); }
.sources-count { color: var(--muted); }
.sources-pop { width: min(560px, calc(100vw - 24px)); max-height: min(80vh, 640px); margin: auto; padding: 16px 18px 18px; overflow: auto; border: var(--trait) solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 6px 6px 0 var(--shadow); }
.sources-pop::backdrop { background: rgb(0 0 0 / .4); }
.sources-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sources-pop-title { margin: 0; font: 600 1.2rem/1.2 var(--serif); }
.sources-close { flex: none; min-height: 44px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 .9rem/1.1 var(--serif); cursor: pointer; }
.sources-pop-note { margin: 8px 0 0; color: var(--muted); font-size: .88rem; font-weight: 700; }
.sources-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.sources-list a { display: grid; gap: 2px; min-height: 44px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; color: var(--ink); }
.sources-list a:hover { background: var(--paper); }
.sources-host { color: var(--link); font: 700 .95rem/1.25 var(--serif); text-decoration: underline; text-underline-offset: 3px; }
.sources-path { color: var(--muted); font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; }
.fold { margin-top: 16px; padding-top: 6px; border-top: 2px dashed var(--line); }
.fold summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font: 700 1rem/1.2 var(--serif); cursor: pointer; }
.fold-count, .fold-note { color: var(--muted); }
.fold-note { margin: 4px 0 8px; font-size: .9rem; font-weight: 700; }
.fold-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }

/* About and privacy */
.about-grid { display: grid; gap: 18px; }
.about-card { padding: 22px; border: var(--trait) solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 4px 4px 0 var(--shadow); }
.about-card h2 { margin-bottom: 12px; font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); }
.about-card p { font-weight: 600; }
.about-list { display: grid; gap: 10px; margin: 0; padding-left: 20px; font-weight: 600; }
.about-list .status { margin-right: 4px; }

/* Game block and sharing */
.cta-block { display: grid; gap: 18px; margin-block: 8px var(--gap-section); padding: 26px 22px; border: var(--trait) solid var(--line); border-radius: 22px; background: var(--accent); color: var(--on-accent); box-shadow: 6px 6px 0 var(--shadow); --focus: var(--on-accent); }
.cta-block :is(.eyebrow, h2, p) { color: var(--on-accent); }
.cta-block h2 { max-width: 22ch; margin-bottom: 8px; font-size: clamp(1.7rem, 1.2rem + 2.2vw, 3rem); }
.cta-block p:not(.eyebrow) { margin-bottom: 0; font-weight: 700; }
.cta-block .button-light { justify-self: start; border-color: var(--line); background: var(--paper); color: var(--ink); }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; border-block: 2px dashed var(--line); }
.share-label { width: 100%; color: var(--muted); font-size: .88rem; font-weight: 800; }
.share-bar a, .share-bar button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 2px 2px 0 var(--shadow); font: 700 .9rem/1 var(--serif); cursor: pointer; }
.share-bar a:hover, .share-bar button:hover { transform: translate(-1px, -1px); }

/* Footer */
/* --consent: the bottom of the screen the consent banner covers while it
   shows (site.js), so the footer can come up above it. */
.footer { padding: 40px 0 calc(20px + var(--consent, 0px)); border-top: var(--trait) solid var(--line); background: var(--footer); color: var(--footer-ink); --focus: var(--footer-link); }
.footer-grid { display: grid; gap: 26px; }
.footer-brand p:not(.wordmark), .footer-play p:not(.footer-title) { color: var(--footer-muted); font-size: .9rem; }
.footer .wordmark { color: var(--footer-ink); }
.footer .wordmark-mark { border-color: var(--footer-ink); box-shadow: 2px 2px 0 var(--footer-link); }
.footer-title { margin: 0 0 6px; color: var(--footer-link); font: 700 .8rem/1.3 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.footer-nav { display: grid; align-content: start; }
.footer-nav a { display: flex; align-items: center; min-height: 40px; color: var(--footer-ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.footer-nav a:hover { text-decoration-color: currentColor; }
.footer-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--footer-link); font: 700 1rem/1.25 var(--serif); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-top: 28px; padding-top: 12px; border-top: 2px dashed var(--footer-muted); color: var(--footer-muted); font-size: .85rem; }
.footer-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.footer-links a, .footer-links button { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--footer-link); font: 700 .88rem/1.2 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Consent banner (built by site.js) */
.consent-banner { position: fixed; z-index: 30; right: 12px; bottom: 12px; left: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; max-width: 980px; max-height: calc(100vh - 24px); margin: 0 auto; padding: 16px 18px; overflow: auto; border: var(--trait) solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: 0 18px 55px rgb(0 0 0 / .28); }
.consent-banner > div:first-child { flex: 1 1 280px; }
.consent-banner strong { display: block; margin-bottom: 4px; font-size: .95rem; }
.consent-banner p { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 600; line-height: 1.5; }
.consent-banner a { color: var(--link); font-weight: 800; text-decoration: underline; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-button { min-height: 44px; padding: 0 18px; border: 2px solid var(--line); border-radius: 999px; font: 800 .9rem/1 var(--sans); cursor: pointer; }
.consent-refuse { background: var(--card); color: var(--ink); }
.consent-accept { background: var(--ink); color: var(--card); }

/* Wider screens */
@media (min-width: 640px) {
  .shell { width: min(1160px, calc(100% - 48px)); }
  .share-label { width: auto; margin-right: 6px; }
  .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-block { padding: 32px 34px; }
}

@media (min-width: 760px) {
  .nav-wrap > .wordmark { flex: 0 1 auto; }
  .site-nav { order: 0; width: auto; margin-left: auto; }
  .nav-cta { margin-left: 0; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: 56px; padding-block: 48px 56px; }
  .board { transform: rotate(1.5deg); }
  .candidate-list:not(.candidate-list-related) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-list-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); align-items: start; gap: 56px; }
  .profile-picture img { max-height: 560px; }
  .profile-content { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-current { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .season-current-actions { grid-column: 1 / -1; }
  .cta-block { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 36px 40px; }
  .footer-grid { grid-template-columns: 1.3fr .7fr 1fr; gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
