:root {
  --ink: #171d35;
  --cream: #f7f1e8;
  --paper: #fffdf9;
  --red: #ee514b;
  --red-dark: #bf3837;
  --pink: #f7bbc4;
  --lilac: #cdbce9;
  --sky: #b8dce9;
  --gold: #f4cd6e;
  --mint: #b9ddca;
  --line: rgba(23, 29, 53, 0.17);
  --muted: rgba(23, 29, 53, 0.67);
  --shadow: 0 20px 60px rgba(42, 24, 47, 0.12);
  --surface-soft: rgba(255,255,255,.68);
  --field: #fff;
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #f6f1ed;
  --cream: #111426;
  --paper: #1b2037;
  --red: #ff6f6a;
  --red-dark: #ffaaa5;
  --pink: #8f5367;
  --lilac: #655786;
  --sky: #47728a;
  --gold: #a98036;
  --mint: #477665;
  --line: rgba(246,241,237,.19);
  --muted: rgba(246,241,237,.72);
  --shadow: 0 22px 70px rgba(0,0,0,.32);
  --surface-soft: rgba(27,32,55,.78);
  --field: #13172a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 8% 1%, rgba(247,187,196,.62), transparent 28rem), radial-gradient(circle at 95% 28%, rgba(205,188,233,.42), transparent 25rem), var(--cream); font-family: "DM Sans", system-ui, sans-serif; font-size: 16px; transition: color .25s ease, background-color .25s ease; }
html[data-theme="dark"] body { background: radial-gradient(circle at 8% 1%, rgba(143,83,103,.38), transparent 30rem), radial-gradient(circle at 95% 28%, rgba(101,87,134,.3), transparent 27rem), var(--cream); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 3; width: min(1180px, calc(100% - 36px)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { display: grid; gap: 1px; font-size: .88rem; font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.brand-name > span { display: flex; align-items: center; gap: 5px; }
.brand-name small { padding: 3px 5px; border-radius: 4px; color: #fff; background: var(--red); font-size: .65rem; }
.brand-mark { position: relative; width: 48px; height: 51px; flex: 0 0 48px; border: 2px solid var(--ink); border-radius: 8px 8px 12px 12px; transform: rotate(-3deg); background: var(--red); box-shadow: 4px 4px 0 var(--pink); overflow: hidden; }
.arcade-screen { position: absolute; inset: 5px 5px 18px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--cream); box-shadow: inset 2px 2px 0 rgba(205,188,233,.8); }
.arcade-screen::after { content: ""; position: absolute; width: 8px; height: 8px; top: 3px; right: 3px; border-radius: 50%; background: linear-gradient(135deg, var(--red) 50%, #315d9a 50%); }
.arcade-k { font-family: "Instrument Serif", serif; font-size: 1.8rem; line-height: 1; }
.arcade-controls { position: absolute; left: 4px; right: 4px; bottom: 3px; height: 13px; border: 1.5px solid var(--ink); border-radius: 3px 3px 7px 7px; background: var(--cream); }
.joystick { position: absolute; left: 7px; bottom: 2px; width: 10px; height: 14px; }
.joystick-stick { position: absolute; left: 4px; bottom: 0; width: 2px; height: 9px; border-radius: 2px; background: var(--ink); transform: rotate(-9deg); transform-origin: bottom; }
.joystick-ball { position: absolute; width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; background: linear-gradient(135deg, var(--red) 50%, #315d9a 50%); }
.arcade-button { position: absolute; bottom: 3px; width: 6px; height: 6px; border: 1px solid var(--ink); border-radius: 50%; }
.arcade-button.one { right: 11px; background: var(--gold); }
.arcade-button.two { right: 3px; background: var(--lilac); }
.desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.desktop-nav a { position: relative; padding: 10px 0; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 700; }
.desktop-nav a.is-active { color: var(--ink); }
.desktop-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: var(--red); }
.private-badge { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.52); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.display-controls { display: flex; gap: 7px; }
.display-toggle { min-height: 38px; padding: 7px 10px !important; display: inline-flex; align-items: center; gap: 6px; border-color: var(--line) !important; border-radius: 999px !important; color: var(--ink) !important; background: var(--surface-soft) !important; box-shadow: none !important; font-size: .75rem; }
.display-toggle span { width: 18px; font-size: 1rem; line-height: 1; }
.display-toggle[aria-pressed="true"] { border-color: var(--red) !important; }
.display-toggle b { white-space: nowrap; }

.petal-field { position: fixed; z-index: 2; inset: -10vh 0 0; overflow: hidden; pointer-events: none; }
.petal { position: absolute; left: var(--left); top: -8vh; width: var(--size); height: calc(var(--size) * .72); border-radius: 80% 15% 80% 25%; background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(247,187,196,.9) 55%, rgba(238,81,75,.5)); box-shadow: 0 0 0 1px rgba(238,81,75,.12); opacity: var(--opacity); transform: rotate(var(--tilt)); animation: petal-fall var(--duration) linear var(--delay) infinite, petal-sway calc(var(--duration) * .38) ease-in-out var(--delay) infinite alternate; }
.petal:nth-child(3n) { background: linear-gradient(135deg, #fff, #f6d8e2 60%, #cdbce9); }
html[data-theme="dark"] .petal { opacity: calc(var(--opacity) * .75); filter: saturate(.8) brightness(.9); }
html[data-motion="off"] .petal-field { display: none; }

main { position: relative; z-index: 1; width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.page { min-height: calc(100vh - 160px); animation: rise .32s ease; }
.hero-wrap { min-height: 360px; display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 40px; align-items: center; padding: 38px 0 34px; }
.eyebrow, .kicker { margin: 0; font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--red); }
.hero-copy h1, .page-hero h1 { margin: 20px 0; font-family: "Instrument Serif", serif; font-size: clamp(4rem, 8.6vw, 7.4rem); font-weight: 400; line-height: .86; letter-spacing: -.04em; }
.hero-copy h1 em { color: var(--red); font-weight: 400; }
.hero-copy > p:last-child, .page-hero > p, .page-hero > div > p:last-child { max-width: 660px; color: var(--muted); line-height: 1.65; }
.daily-pass { min-height: 210px; padding: 24px; display: flex; flex-direction: column; justify-content: center; border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: 8px 8px 0 var(--pink); transform: rotate(2deg); }
.daily-pass p, .daily-pass > span { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.daily-pass strong { margin: 14px 0 2px; font-family: "Instrument Serif", serif; font-size: 5.4rem; font-weight: 400; line-height: .8; }
.daily-pass strong small { color: var(--red); font-size: 2rem; }
.progress-dots { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; margin-top: 28px; }
.progress-dots i { height: 7px; border-radius: 99px; background: rgba(23,29,53,.13); }
.progress-dots i.is-complete { background: var(--red); }

.game-picker { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 12px; }
.game-pick { min-height: 88px; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 14px; text-align: left; border: 1.5px solid var(--ink); border-radius: 16px; color: var(--ink); background: rgba(255,255,255,.58); box-shadow: none; }
.game-pick.is-active { color: #fff; background: var(--ink); }
.game-pick b, .game-pick small { display: block; }
.game-pick b { margin-bottom: 4px; font-size: .96rem; }
.game-pick small { color: inherit; font-size: .78rem; opacity: .68; }
.game-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 13px; color: var(--ink); background: transparent; }
.game-icon img { width: 48px; height: 48px; display: block; }

.game-stage { border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.game-panel { padding: 32px; }
.game-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.kicker { margin-bottom: 8px; color: var(--red); }
.game-heading h2, .catalog-callout h2, .about-grid h2, .source-card h2 { margin: 0; font-family: "Instrument Serif", serif; font-size: clamp(2.4rem,5vw,4rem); font-weight: 400; line-height: .95; }
.attempt-counter { padding: 8px 11px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.game-intro { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
.difficulty-note { display: inline-block; margin-left: 5px; color: var(--red-dark); font-size: .82rem; font-weight: 800; }
.clue-stack { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.clue { min-height: 86px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 15px; border-radius: 13px; background: #f2ece4; animation: rise .25s ease; }
.clue-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-family: "Instrument Serif", serif; font-size: 1.35rem; }
.clue p { margin: 0; line-height: 1.45; }
.guess-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.guess-form label, .catalog-controls label { display: grid; gap: 7px; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
input, select, textarea { min-width: 0; width: 100%; padding: 13px 14px; border: 1.5px solid var(--ink); border-radius: 10px; color: var(--ink); background-color: var(--field); outline: none; }
select { padding-right: 38px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ee514b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(238,81,75,.32); outline-offset: 2px; }
button:not(.game-pick) { padding: 12px 17px; border: 1.5px solid var(--ink); border-radius: 10px; color: #fff; background: var(--red); font-weight: 800; box-shadow: 3px 3px 0 var(--ink); }
button:not(.game-pick):active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
button:disabled { cursor: not-allowed; opacity: .4; }
.secondary-button { color: var(--ink) !important; background: var(--paper) !important; box-shadow: none !important; }
.feedback { min-height: 28px; margin: 12px 0 0; color: var(--red-dark); font-size: .9rem; font-weight: 700; }
.cast-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.cast-card { overflow: hidden; border-radius: 16px; background: var(--cast-color); color: #171d35; animation: rise .25s ease; }
.cast-avatar { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: rgba(23,29,53,.08); }
.cast-initials { font-family: "Instrument Serif",serif; font-size: clamp(2.5rem, 7vw, 4rem); }
.cast-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cast-portrait.is-framed { object-fit: cover; }
.cast-name { display: block; padding: 12px 14px; overflow-wrap: anywhere; font-weight: 800; line-height: 1.2; }
.cast-name small { display: block; margin-top: 5px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.cast-photo-credits { margin-top: 14px; color: var(--muted); font-size: .875rem; }
.cast-photo-credits summary { width: fit-content; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.cast-photo-credits p { margin: 12px 0 8px; }
.cast-photo-credits ul { margin: 0; padding-left: 1.25rem; }
.cast-photo-credits li { margin-bottom: 6px; }
.cast-photo-credits a { color: inherit; }
.link-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.link-tile { min-height: 92px; padding: 11px !important; border: 1.5px solid var(--ink) !important; border-radius: 10px !important; color: var(--ink) !important; background: var(--field) !important; box-shadow: none !important; font-size: .85rem; line-height: 1.25; }
.link-tile.is-selected { color: #fff !important; background: var(--ink) !important; }
.solved-groups { display: grid; gap: 8px; margin-bottom: 9px; }
.solved-group { padding: 15px; text-align: center; border: 1.5px solid var(--ink); border-radius: 11px; background: var(--group-color); animation: rise .25s ease; }
.solved-group b { display: block; margin-bottom: 4px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.solved-group span { font-size: .82rem; line-height: 1.4; }
.link-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.result-card { margin-top: 16px; padding: 23px; border-radius: 16px; color: #fff; background: var(--ink); }
.result-card h3 { margin: 0 0 7px; font-family: "Instrument Serif",serif; font-size: 2rem; font-weight: 400; }
.result-card p { margin: 0 0 16px; color: rgba(255,255,255,.75); line-height: 1.5; }
.result-card button { color: var(--ink) !important; background: var(--cream) !important; border-color: var(--cream) !important; box-shadow: 3px 3px 0 var(--red) !important; }

.catalog-callout { margin: 22px 0 38px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1.5px solid var(--ink); border-radius: 22px; background: var(--pink); box-shadow: 6px 6px 0 var(--ink); }
.catalog-callout h2 { font-size: 2.7rem; }
.catalog-callout p:last-child { margin: 10px 0 0; color: var(--muted); }
.leaderboard-card { margin: 0 0 42px; padding: 28px; display: grid; grid-template-columns: minmax(220px,.8fr) minmax(360px,1.2fr); gap: 20px 36px; border: 1.5px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: 7px 7px 0 var(--lilac); }
.leaderboard-copy h2 { margin: 10px 0; font-family: "Instrument Serif",serif; font-size: 2.7rem; font-weight: 400; line-height: 1; }
.leaderboard-copy p:last-child { color: var(--muted); line-height: 1.55; }
.leaderboard-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-content: start; }
.leaderboard-form label { display: grid; gap: 7px; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.leaderboard-form button { align-self: end; }
.leaderboard-form small { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.leaderboard-card > .feedback-status { grid-column: 1 / -1; }
.leaderboard-list { grid-column: 1 / -1; }
.leaderboard-list > p { margin: 0; color: var(--muted); }
.leaderboard-table { width: 100%; border-collapse: collapse; }
.leaderboard-table th, .leaderboard-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.leaderboard-table th { color: var(--muted); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.leaderboard-table td:first-child { width: 48px; font-family: "Instrument Serif",serif; font-size: 1.45rem; }
.leaderboard-table td:nth-child(n+3), .leaderboard-table th:nth-child(n+3) { text-align: right; }
.leaderboard-table tr.is-you { background: color-mix(in srgb, var(--lilac) 32%, transparent); }
.leaderboard-empty { padding: 20px; border-radius: 12px; background: var(--surface-soft); }
.page-hero { padding: 54px 0 34px; }
.page-hero h1 { font-size: clamp(4rem,9vw,7.6rem); }
.catalog-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.catalog-total { min-width: 190px; padding: 23px; display: grid; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--gold); box-shadow: 6px 6px 0 var(--ink); transform: rotate(2deg); }
.catalog-total strong { font-family: "Instrument Serif",serif; font-size: 5rem; font-weight: 400; line-height: .8; }
.catalog-total span { margin-top: 10px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.catalog-controls { display: grid; grid-template-columns: minmax(260px,1.5fr) 1fr 1fr; gap: 12px; padding: 22px; border-radius: 18px; background: var(--ink); }
.catalog-controls label { color: #fff; }
.catalog-status { margin: 24px 0 12px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.catalog-list { display: grid; gap: 9px; }
.catalog-row { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr); gap: 14px; align-items: center; min-height: 92px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.catalog-rank { font-family: "Instrument Serif",serif; font-size: 1.55rem; }
.catalog-title strong, .catalog-title small { display: block; }
.catalog-title strong { margin-bottom: 5px; }
.catalog-title small { color: var(--muted); font-size: .78rem; }
.rating { display: grid; gap: 2px; }
.rating b { font-size: 1.03rem; }
.rating small { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.rating.blend b { color: var(--red-dark); }
.genres { display: flex; gap: 5px; flex-wrap: wrap; }
.genres span { padding: 4px 7px; border-radius: 999px; background: #eee7de; font-size: .67rem; font-weight: 700; }
.catalog-source { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; }
.source-pair { display: flex; flex-wrap: wrap; gap: 5px 10px; font-size: .875rem; }
.load-more { display: block; margin: 22px auto 70px; }
.archive-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.archive-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 70px; }
.archive-card { min-height: 210px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--paper); }
.archive-card:nth-child(3n+1) { box-shadow: 6px 6px 0 var(--pink); }
.archive-card:nth-child(3n+2) { box-shadow: 6px 6px 0 var(--lilac); }
.archive-card:nth-child(3n) { box-shadow: 6px 6px 0 var(--mint); }
.archive-date { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.archive-card h2 { margin: 12px 0; font-family: "Instrument Serif",serif; font-size: 2rem; font-weight: 400; }
.archive-results { display: flex; gap: 7px; }
.archive-results span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #eee7de; font-size: .75rem; font-weight: 800; }
.archive-results span.done { color: #fff; background: var(--red); }
.archive-card button { align-self: flex-start; margin-top: 20px; }
.about-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.about-grid article { min-height: 280px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.about-grid article:nth-child(2), .about-grid article:nth-child(3) { background: var(--pink); }
.about-index { display: block; margin-bottom: 42px; color: var(--red-dark); font-family: "Instrument Serif",serif; font-size: 1.4rem; }
.about-grid h2 { font-size: 2.2rem; }
.about-grid p { color: var(--muted); line-height: 1.65; }
.source-card { margin: 18px 0 70px; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 18px; color: #fff; background: var(--ink); }
.source-card h2 { font-size: 2.5rem; }
.source-links { display: flex; flex-wrap: wrap; gap: 10px; }
.source-links a { padding: 11px 14px; border: 1px solid rgba(255,255,255,.32); border-radius: 9px; text-decoration: none; font-weight: 700; }
.source-links a:hover { background: rgba(255,255,255,.1); }
.feedback-card { max-width: 820px; margin: 0 0 70px; padding: 30px; display: grid; gap: 24px; border: 1.5px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: 7px 7px 0 var(--pink); }
.feedback-card > label { display: grid; gap: 8px; font-weight: 800; }
.feedback-card fieldset { margin: 0; padding: 0; border: 0; }
.feedback-card legend { margin-bottom: 10px; font-weight: 800; }
.rating-picks { display: flex; gap: 9px; }
.rating-picks label { cursor: pointer; }
.rating-picks input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rating-picks span { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; font-weight: 800; }
.rating-picks input:checked + span { color: #fff; background: var(--red); box-shadow: 3px 3px 0 var(--ink); }
.rating-picks input:focus-visible + span { outline: 3px solid rgba(238,81,75,.45); outline-offset: 3px; }
.check-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.check-grid label { padding: 12px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); }
.check-grid input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--red); }
.form-actions { display: flex; gap: 10px; }
.feedback-status { min-height: 24px; margin: 0; color: var(--red-dark); font-weight: 800; }
.privacy-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.privacy-grid article { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.privacy-grid article:nth-child(2), .privacy-grid article:nth-child(3) { background: var(--mint); }
.privacy-grid h2, .privacy-controls h2 { margin: 0 0 12px; font-family: "Instrument Serif",serif; font-size: 2.15rem; font-weight: 400; }
.privacy-grid p, .privacy-controls p { color: var(--muted); line-height: 1.65; }
.privacy-controls { margin: 18px 0 12px; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 18px; color: #fff; background: var(--ink); }
.privacy-controls .kicker, .privacy-controls p { color: rgba(255,255,255,.72); }
.privacy-controls button { flex: 0 0 auto; }
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 14px; }
.admin-stats article { min-height: 150px; padding: 22px; display: grid; align-content: center; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--paper); }
.admin-stats article:nth-child(2) { background: var(--gold); }
.admin-stats article:nth-child(3) { background: var(--pink); }
.admin-stats article:nth-child(4) { background: var(--mint); }
.admin-stats strong { font-family: "Instrument Serif",serif; font-size: 4rem; font-weight: 400; line-height: .9; }
.admin-stats span { margin-top: 12px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.admin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 70px; }
.admin-card { min-height: 310px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.admin-card h2 { margin: 18px 0 12px; font-family: "Instrument Serif",serif; font-size: 2.35rem; font-weight: 400; line-height: 1; }
.admin-card p:not(.kicker) { color: var(--muted); line-height: 1.65; }
.button-link { width: fit-content; margin-top: 18px; padding: 12px 17px; display: inline-block; border: 1.5px solid var(--ink); border-radius: 10px; color: #fff; background: var(--red); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; font-weight: 800; }
.admin-downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.leaderboard-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.leaderboard-options span { padding: 7px 9px; border-radius: 999px; background: var(--paper); font-size: .76rem; font-weight: 800; }
html[data-theme="dark"] .arcade-screen, html[data-theme="dark"] .arcade-controls { background: #f7f1e8; color: #171d35; border-color: #171d35; }
html[data-theme="dark"] .brand-mark { border-color: #171d35; }
html[data-theme="dark"] .game-pick:not(.is-active) { background: var(--surface-soft); }
html[data-theme="dark"] .game-pick.is-active { color: #171d35; background: #f6f1ed; border-color: #f6f1ed; }
html[data-theme="dark"] .clue { background: #252b45; }
html[data-theme="dark"] .clue-number { color: #171d35; background: #f6f1ed; }
html[data-theme="dark"] .cast-initials { color: #171d35; background: #fffdf9; border-color: #171d35; box-shadow: 4px 4px 0 #171d35; }
html[data-theme="dark"] .cast-card, html[data-theme="dark"] .solved-group, html[data-theme="dark"] .admin-stats article:not(:first-child) { color: #171d35; }
html[data-theme="dark"] .genres span, html[data-theme="dark"] .archive-results span { background: #2a304c; }
html[data-theme="dark"] .rating-picks span { background: var(--field); }
html[data-theme="dark"] .private-badge { background: var(--surface-soft); }
html[data-theme="dark"] .source-card, html[data-theme="dark"] .privacy-controls { color: #f6f1ed; background: #090c19; }
.mobile-nav { display: none; }
footer { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 24px 0 34px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: flex; gap: 18px; }

@keyframes rise { from { opacity: 0; transform: translateY(7px); } }
@keyframes petal-fall { to { top: 112vh; transform: rotate(calc(var(--tilt) + 540deg)); } }
@keyframes petal-sway { from { margin-left: -4vw; } to { margin-left: 5vw; } }

@media (max-width: 800px) {
  body { padding-bottom: 72px; }
  .site-header, main, footer { width: min(100% - 28px, 680px); }
  .site-header { min-height: 76px; }
  .desktop-nav, .private-badge { display: none; }
  .display-controls { margin-left: auto; }
  .display-toggle { width: 42px; height: 42px; padding: 0 !important; justify-content: center; }
  .display-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero-wrap { min-height: 0; grid-template-columns: 1fr; gap: 20px; padding: 24px 0 26px; }
  .hero-copy h1, .page-hero h1 { margin: 14px 0; font-size: clamp(3.2rem,14vw,4.7rem); line-height: .9; }
  .hero-copy > p:last-child, .page-hero > p, .page-hero > div > p:last-child { margin: 12px 0 0; line-height: 1.5; }
  .daily-pass { min-height: 134px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 18px; transform: rotate(0); }
  .daily-pass strong { grid-row: 1 / span 2; grid-column: 2; font-size: 4.6rem; }
  .progress-dots { grid-column: 1 / -1; margin-top: 14px; }
  .game-picker { grid-template-columns: 1fr; }
  .game-pick { min-height: 74px; }
  .game-panel { padding: 20px 16px; }
  .game-heading { padding-bottom: 14px; }
  .game-heading h2 { font-size: 2.5rem; }
  .guess-form { margin-top: 12px; padding-top: 12px; }
  .clue-stack { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .link-grid { grid-template-columns: repeat(2,1fr); }
  .link-tile { min-height: 75px; font-size: .8rem; }
  .catalog-callout { align-items: flex-start; flex-direction: column; gap: 16px; margin: 18px 0 30px; padding: 22px; }
  .leaderboard-card { grid-template-columns: 1fr; padding: 24px; }
  .leaderboard-card > .feedback-status, .leaderboard-list { grid-column: auto; }
  .page-hero { padding: 30px 0 24px; }
  .catalog-hero { align-items: flex-start; flex-direction: column; }
  .catalog-total { display: none; }
  .catalog-controls { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .catalog-row { grid-template-columns: minmax(0,1fr); gap: 8px; min-height: 102px; padding: 12px; }
  .catalog-title { grid-column: 1; }
  .source-pair { grid-column: 1 / -1; }
  .catalog-row .genres { display: none; }
  .archive-grid, .about-grid, .privacy-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .archive-card { min-height: 190px; }
  .source-card, .privacy-controls { align-items: flex-start; flex-direction: column; }
  .mobile-nav { position: fixed; z-index: 15; left: 10px; right: 10px; bottom: 9px; height: 62px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(23,29,53,.96); box-shadow: 0 12px 40px rgba(0,0,0,.25); backdrop-filter: blur(12px); overflow: hidden; }
  .mobile-nav a { display: grid; place-items: center; align-content: center; gap: 3px; color: rgba(255,255,255,.58); text-decoration: none; font-size: .64rem; font-weight: 700; }
  .mobile-nav a span { font-size: .8rem; font-weight: 800; }
  .mobile-nav a.is-active { color: #fff; background: var(--red); }
}

@media (max-width: 460px) {
  .brand-name { font-size: .78rem; }
  .input-row { grid-template-columns: 1fr; }
  .input-row button { width: 100%; }
  .game-heading { gap: 10px; }
  .attempt-counter { padding: 7px 8px; font-size: .65rem; }
  .catalog-controls { grid-template-columns: 1fr; }
  .leaderboard-form { grid-template-columns: 1fr; }
  .leaderboard-form small { grid-column: auto; }
  .leaderboard-table th:nth-child(4), .leaderboard-table td:nth-child(4) { display: none; }
  .search-field { grid-column: auto; }
  .archive-toolbar { align-items: stretch; flex-direction: column; }
  .feedback-card { padding: 22px 16px; }
  .check-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .rating-picks { justify-content: space-between; }
  .rating-picks span { width: 44px; height: 44px; }
  footer { align-items: center; flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } .petal-field { display: none; } }
