:root {
  color-scheme: light;
  --ink: #1d2432;
  --muted: #526079;
  --paper: #f7f8fc;
  --surface: #fff;
  --soft: #eef1f6;
  --line: #d6dce7;
  --control-line: #8591a5;
  --accent: #3154c9;
  --accent-hover: #2342ab;
  --button-ink: #fff;
  --input: #fff;
  --streak-ink: #956200;
  --shadow: 0 12px 32px #1018330d;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef1f7;
  --muted: #aab6c9;
  --paper: #11151c;
  --surface: #1b222d;
  --soft: #252e3a;
  --line: #3a4658;
  --control-line: #8c9ab1;
  --accent: #a9bcff;
  --accent-hover: #c5d0ff;
  --button-ink: #141d38;
  --input: #141a24;
  --streak-ink: #f4b860;
  --shadow: 0 16px 36px #0004;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100% - 36px, 1160px); margin: 0 auto; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.5rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.brand-mark { display: block; width: 34px; height: 34px; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.header-button { padding: 7px 11px; border: 1px solid var(--control-line); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: .8rem; font-weight: 750; }
.header-button:hover { border-color: var(--accent); }
.prototype-badge { color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; }

.page-shell { width: min(100% - 36px, 1160px); margin: 0 auto; padding-bottom: 40px; }
.intro { max-width: 760px; margin: 10px auto 28px; text-align: center; }
.eyebrow { color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .12em; }
.intro h1 { margin: 0 0 10px; font-size: clamp(2.35rem, 6vw, 3.65rem); font-weight: 800; letter-spacing: -.06em; line-height: 1.07; overflow-wrap: anywhere; text-wrap: balance; }
.intro h1.long-heading { font-size: clamp(1.8rem, 4.8vw, 2.8rem); line-height: 1.12; }
.heading-wrap { position: relative; }
.heading-wrap:has(.heading-decoration) h1 { padding-inline: 28px; }
.heading-decoration { position: absolute; inset: 0; overflow: hidden; pointer-events: none; user-select: none; font-size: 1.15rem; line-height: 1; }
.heading-decoration > * { position: absolute; width: 23px; }
.ornament-start { left: 1px; top: 8%; }
.ornament-end { right: 1px; top: 8%; }
.sparkle-start { left: 2px; bottom: 3px; font-size: .85rem; }
.sparkle-end { right: 2px; bottom: 3px; font-size: .85rem; }
.christmas .sparkle-start { color: #aa7620; }
.christmas .sparkle-end { color: var(--accent); }
.heading-bat { height: 16px; fill: var(--muted); opacity: .65; animation: heading-flutter 1.4s ease-out 1 both; }
.heading-bat.ornament-end { top: 32%; animation-delay: .2s; }
.heading-firework { height: 23px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; animation: heading-burst 1.4s ease-out 1 both; }
.heading-firework.ornament-end { stroke: #bf8540; animation-delay: .6s; }
@keyframes heading-flutter {
  0% { transform: translateY(-3px) rotate(-9deg); }
  50% { transform: translateY(2px) rotate(7deg); }
  100% { transform: none; }
}
@keyframes heading-burst {
  0% { transform: scale(.3); opacity: 0; }
  25% { opacity: .8; }
  100% { transform: scale(1); opacity: 0; }
}
.howto { margin: 9px auto 0; color: var(--muted); font-size: .84rem; }
.howto summary { display: inline-block; color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.howto[open] { max-width: 560px; }
.howto p { margin: 12px 0 0; font-size: .84rem; line-height: 1.55; text-align: left; }
.howto .heat-near, .howto .heat-far, .howto .heat-distant { color: var(--heat-ink); }

.ad-card { max-width: 760px; margin: 0 auto 18px; text-align: center; }
.ad-top { width: min(320px, 100%); }
.ad-card > span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .05em; }
.ad-slot { min-height: 50px; margin-top: 4px; outline: 1px dashed var(--line); border-radius: 9px; background: var(--surface); }
.ad-unit { display: block; }
.ad-top .ad-unit, .ad-bottom .ad-unit { width: 100%; height: 50px; }
.ad-side .ad-unit { width: 300px; height: 600px; }
.ad-unit[data-ad-status="unfilled"] { display: none !important; }
.ad-card:has(.ad-unit[data-ad-status="unfilled"]) { display: none; }
.ad-slot:has(.ad-unit[data-ad-status="filled"]) { outline-color: transparent; background: transparent; }
.ad-side { display: none; }
.ad-bottom { display: none; width: min(320px, 100%); }
body[data-ads-enabled="true"] .ad-slot { background: transparent; outline-color: transparent; }
body[data-ads-enabled="true"] .ad-card > span { visibility: hidden; }
body[data-ads-enabled="true"] .ad-card:has(.ad-unit[data-ad-status="filled"]) > span { visibility: visible; }
/* Collapse waiting frames after Google's processing starts, keeping their dimensions measurable. */
.ad-card.ad-pending { position: relative; height: 0; min-height: 0; margin-top: 0; margin-bottom: 0; }
.ad-card.ad-pending > span { display: none; }
.ad-card.ad-pending .ad-slot { position: absolute; top: 0; width: 100%; visibility: hidden; pointer-events: none; }

.play-layout { width: min(760px, 100%); margin: 0 auto; }
.game-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.play-column { min-width: 0; }
.game-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin-bottom: 20px; }
.replacement-notice { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.next-puzzle-countdown { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.next-puzzle-countdown strong { color: var(--ink); font-weight: 650; white-space: nowrap; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.current-streak { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--streak-ink); font-size: 1.1rem; font-weight: 750; white-space: nowrap; }
.streak-fire { font-size: 1.25rem; }
.puzzle-choice, .sort-choice { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .81rem; font-weight: 750; }
.puzzle-choice { min-width: 0; }
.puzzle-choice select, .sort-choice select { max-width: 210px; height: 40px; padding: 8px 10px; border: 1px solid var(--control-line); border-radius: 8px; color: var(--ink); background: var(--input); font-size: .875rem; font-weight: 750; }
.puzzle-choice select { width: max-content; max-width: 100%; }
.sort-choice { flex-shrink: 0; }
.more-panel { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.more-panel > summary { width: fit-content; color: var(--accent); font-size: .85rem; font-weight: 800; cursor: pointer; }
.more-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.more-panel.history-only .more-content { grid-template-columns: 1fr; }
.completed-games { color: var(--muted); font-size: .8rem; }
.completed-games > strong, .community-card > strong { color: var(--ink); font-size: .88rem; }
.completed-games > strong span { color: var(--muted); }
.completed-games ul { display: grid; gap: 6px; max-height: 180px; overflow: auto; margin: 8px 0 0; padding: 0; list-style: none; }
.completed-games li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--soft); }
.completed-games li span { color: var(--muted); text-align: right; }
.heat-found { --heat-ink: #087445; --heat-fill: #09965a; }
.heat-near { --heat-ink: #117b47; --heat-fill: #169a5c; }
.heat-close { --heat-ink: #287c41; --heat-fill: #4a9a5a; }
.heat-warm { --heat-ink: #805b07; --heat-fill: #af8420; }
.heat-cool { --heat-ink: #a44617; --heat-fill: #cc6428; }
.heat-far { --heat-ink: #b02032; --heat-fill: #b62d3c; }
.heat-distant { --heat-ink: #303a4a; --heat-fill: #384152; }
:root[data-theme="dark"] .heat-found, :root[data-theme="dark"] .heat-near { --heat-ink: #66e5a1; --heat-fill: #66e5a1; }
:root[data-theme="dark"] .heat-close { --heat-ink: #8cde95; --heat-fill: #8cde95; }
:root[data-theme="dark"] .heat-warm { --heat-ink: #f0cc70; --heat-fill: #f0cc70; }
:root[data-theme="dark"] .heat-cool { --heat-ink: #ffab7b; --heat-fill: #ffab7b; }
:root[data-theme="dark"] .heat-far { --heat-ink: #ff858c; --heat-fill: #ff858c; }
:root[data-theme="dark"] .heat-distant { --heat-ink: #c6d2de; --heat-fill: #c6d2de; }

.guess-form label { display: block; margin-bottom: 7px; font-size: .88rem; font-weight: 850; }
.guess-control { display: flex; gap: 8px; }
.guess-control input { flex: 1; min-width: 0; height: 48px; padding: 12px 15px; border: 1.5px solid var(--control-line); border-radius: 8px; color: var(--ink); background: var(--input); outline: 0; }
.guess-control input::placeholder { color: var(--muted); }
.guess-control input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #6b8cff3b; }
.guess-control button, .result-actions .primary-button { border: 0; border-radius: 9px; color: var(--button-ink); background: var(--accent); font-weight: 900; }
.result-actions .primary-button { padding: 9px 13px; }
.guess-control button { min-width: 92px; height: 48px; padding: 12px 15px; border-radius: 8px; }
.guess-control button:hover, .result-actions .primary-button:hover { background: var(--accent-hover); }
.status { margin: 8px 0 12px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.status:empty { display: none; }
.status.is-error { color: #c23343; }
.status.is-success { color: #087445; }
:root[data-theme="dark"] .status.is-error { color: #ff8a97; }
:root[data-theme="dark"] .status.is-success { color: #66e5a1; }
.latest { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px 15px; border: 1px solid var(--accent); border-left: 4px solid var(--heat-fill); border-radius: 9px; background: var(--soft); }
.latest-label { grid-column: 1 / -1; color: var(--accent); font-size: .73rem; font-weight: 800; }
.latest strong { color: var(--heat-ink); font-size: 1.12rem; }
#latest-word { min-width: 0; overflow-wrap: anywhere; }
#latest-rank { font-size: 1.28rem; font-variant-numeric: tabular-nums; }
.latest-scale { position: relative; grid-column: 1 / -1; height: 8px; margin: 11px 5px 0; border-radius: 99px; background: linear-gradient(90deg, #384152, #b62d3c 24%, #cc6428 48%, #af8420 65%, #4a9a5a 82%, #148a54); }
.latest-scale span { position: absolute; top: 50%; width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); transform: translate(-50%, -50%); }
.latest-scale-labels { display: flex; grid-column: 1 / -1; justify-content: space-between; margin-top: 4px; color: var(--muted); font-size: .72rem; }
#latest-band { color: var(--heat-ink); font-weight: 800; }
.game-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 12px; }
.game-actions .secondary-button { min-height: 40px; padding: 8px 12px; border-radius: 8px; font-size: .875rem; }
.game-actions .text-button { min-height: 40px; font-size: .875rem; }
.give-up-controls { display: flex; justify-content: flex-end; margin-left: auto; }
.give-up-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.give-up-confirm span { color: var(--ink); font-size: .8rem; font-weight: 800; }
.give-up-confirm .text-button { padding: 7px 3px; }
.danger-button { padding: 8px 10px; border: 0; border-radius: 7px; color: #fff; background: #ad2d3e; font-size: .8rem; font-weight: 850; }
.danger-button:hover { background: #8e2030; }
.secondary-button { padding: 9px 13px; border: 1px solid var(--control-line); border-radius: 9px; color: var(--ink); background: var(--soft); font-weight: 850; }
.secondary-button:hover { border-color: var(--accent); }
.text-button { padding: 9px 4px; border: 0; color: var(--muted); background: transparent; font-size: .85rem; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.text-button:hover { color: var(--ink); }
.result { margin: 0 0 17px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.result.is-solved { border-color: #7bbd95; }
.result h2 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -.05em; overflow-wrap: anywhere; }
.result-reveal-label { display: block; color: var(--muted); font-size: .9rem; font-weight: 650; letter-spacing: 0; }
.result-answer { display: block; margin-top: 4px; color: var(--heat-ink); font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 850; line-height: 1.1; }
.result p { margin: 0; line-height: 1.5; }
.result-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 15px 0 0; }
.result-share-menu { width: min(300px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--control-line); border-radius: 12px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.share-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.result-share-menu > button { display: block; width: 100%; min-height: 44px; margin-top: 8px; text-align: left; }
.result-copy-panel { margin-top: 14px; }
.result-copy-panel label { display: block; font-weight: 750; }
.result-copy-panel p { margin: 4px 0 8px; color: var(--muted); font-size: .85rem; }
.result-copy-panel textarea { display: block; width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--control-line); border-radius: 7px; color: var(--ink); background: var(--input); font: inherit; line-height: 1.5; resize: none; }
.connections { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.connections summary { width: fit-content; color: var(--accent); font-size: .85rem; font-weight: 750; cursor: pointer; }
.word-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.word-tags span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .81rem; font-weight: 750; }
.feedback-panel { margin: 0 0 12px; color: var(--muted); font-size: .82rem; }
.feedback-panel > summary { width: fit-content; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.feedback-panel form { display: grid; gap: 7px; max-width: 440px; margin: 10px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.feedback-panel label { color: var(--ink); font-weight: 750; }
.feedback-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.feedback-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.feedback-panel input, .feedback-panel select, .feedback-panel textarea { width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--control-line); border-radius: 7px; color: var(--ink); background: var(--input); font: inherit; }
.feedback-panel textarea { resize: none; min-height: 5rem; max-height: 12rem; overflow-y: auto; }
.feedback-panel button { justify-self: start; }
.feedback-help { margin: 0 0 5px; line-height: 1.45; }
.feedback-status { min-height: 1.2em; margin: 0; }
.community-card > p { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.community-card > p strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.community-averages { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.community-averages > span { white-space: nowrap; }
.community-status { margin: 9px 0 0; color: var(--muted); font-size: .8rem; }
.community-bars { display: grid; gap: 5px; margin-top: 11px; }
.community-bar { display: grid; grid-template-columns: 60px 1fr 25px; align-items: center; gap: 9px; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.community-bar .track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--line); }
.community-bar .track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.community-bar strong { color: var(--ink); text-align: right; }
.history-heading { margin-top: 18px; }
.history-totals { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; min-width: 0; }
.history-heading h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.03em; white-space: nowrap; }
.hint-total { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.hint-total strong { color: var(--ink); }
#guess-count, #hint-count { font-variant-numeric: tabular-nums; }
.guess-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.guess-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; min-height: 42px; padding: 8px 11px; border: 1px solid var(--line); border-left: 4px solid var(--heat-fill); border-radius: 8px; background: var(--surface); }
.guess-row.is-last { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--soft); }
.guess-row .word { min-width: 0; overflow: hidden; color: var(--heat-ink); text-overflow: ellipsis; white-space: nowrap; font-weight: 850; }
.guess-row .word small { margin-left: 6px; color: var(--muted); font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.guess-row .word .last-badge { color: var(--accent); }
.guess-row .rank { color: var(--heat-ink); text-align: right; font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty-history { margin: 9px 0 0; padding: 20px 12px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); background: var(--soft); font-size: .84rem; text-align: center; }
.site-footer { margin-top: 22px; color: var(--muted); font-size: .77rem; line-height: 1.5; text-align: center; }
.site-footer a, .about-card a, .back-link, .howto a { color: var(--accent); text-underline-offset: 2px; }
.about-shell { max-width: 760px; }
.back-link { display: inline-block; margin: 18px 0; font-weight: 800; text-decoration: none; }
.about-card h1 { margin: 6px 0 16px; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.06em; }
.about-card h2 { margin-top: 26px; }
.about-card p, .about-card li { color: var(--muted); line-height: 1.6; }
.about-card li + li { margin-top: 8px; }
.celebration { position: fixed; inset: 0; z-index: 20; width: 100vw; height: 100vh; pointer-events: none; display: none; }
.celebration.is-active { display: block; }
@media (min-width: 651px) {
  .ad-top { width: min(728px, 100%); }
  .ad-top .ad-slot { min-height: 90px; }
  .ad-top .ad-unit { height: 90px; }
}
@media (min-width: 1320px) {
  .page-shell:not(.about-shell) { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; column-gap: 32px; width: min(100% - 32px, 1424px); }
  .ad-top { display: none; }
  .ad-side { display: block; grid-row: 1 / span 2; width: 300px; height: 0; min-height: 0; margin: 10px 0 0; overflow: visible; align-self: start; }
  .ad-left { grid-column: 1; }
  .ad-right { grid-column: 3; }
  .ad-side .ad-slot { width: 300px; min-height: 600px; }
  .intro { grid-column: 2; grid-row: 1; margin: 10px auto 28px; }
  .play-layout { grid-column: 2; grid-row: 2; }
  .site-footer { grid-column: 2; }
}
@media (max-width: 650px) {
  .site-header { gap: 8px; width: min(100% - 28px, 760px); padding: 10px 0; }
  .brand { font-size: 1.35rem; }
  .brand-mark { width: 29px; height: 29px; }
  .header-actions { gap: 4px; }
  .header-button { padding: 5px 6px; font-size: .68rem; }
  .page-shell { width: min(100% - 24px, 1160px); }
  .intro { margin: 5px auto 24px; }
  .intro h1 { font-size: clamp(2.25rem, 9vw, 3rem); }
  .ad-card { margin-bottom: 14px; }
  .ad-bottom { display: block; margin-top: 150px; }
  .ad-slot { min-height: 50px; }
  .game-card { padding: 16px; border-radius: 14px; }
  .game-heading { gap: 8px; margin-bottom: 18px; }
  .puzzle-choice select { height: 38px; padding: 8px; font-size: .82rem; }
  .current-streak { gap: 4px; font-size: .9rem; }
  .streak-fire { font-size: 1.05rem; }
  .history-heading { gap: 10px; }
  .history-totals { gap: 4px 10px; }
  .history-heading h2 { font-size: 1rem; white-space: nowrap; }
  .hint-total { font-size: .84rem; }
  .sort-choice { gap: 4px; font-size: .72rem; }
  .sort-choice > span { display: none; }
  .sort-choice select { width: 116px; max-width: 116px; height: 38px; padding: 7px; font-size: .8rem; }
  .more-content { grid-template-columns: 1fr; }
  .guess-control input { height: 46px; padding: 11px; }
  .guess-control button { min-width: 76px; height: 46px; padding: 10px; font-size: .875rem; }
  .game-actions { margin-top: 8px; }
  .game-actions .secondary-button, .game-actions .text-button { font-size: .84rem; }
  .give-up-controls:has(.give-up-confirm:not([hidden])) { width: 100%; margin-left: 0; }
  .give-up-confirm { width: 100%; justify-content: flex-start; }
  .give-up-confirm span { flex-basis: 100%; text-align: left; }
  .result { padding: 14px; }
  .result-actions { column-gap: 12px; row-gap: 8px; }
  .result-actions .text-button { padding-left: 0; padding-right: 0; text-align: left; }
  .guess-row { gap: 7px; }
  .completed-games li { flex-direction: column; gap: 2px; }
  .completed-games li span { text-align: left; }
}
@media (max-width: 350px) {
  .intro { margin-bottom: 24px; }
  .game-card { padding: 14px; }
  .puzzle-choice select { font-size: .78rem; }
  .current-streak { font-size: .86rem; }
}
@media (min-width: 651px) and (max-height: 820px) {
  .site-header { padding: 12px 0; }
  .page-shell { padding-bottom: 16px; }
  .intro { margin-bottom: 28px; }
  .intro h1 { font-size: clamp(2.2rem, 4vw, 3.25rem); }
}
@media (max-width: 1319px) {
  .page-shell:has(.ad-top[hidden]) .intro,
  .page-shell:has(.ad-top.ad-pending) .intro,
  .page-shell:has(.ad-top .ad-unit[data-ad-status="unfilled"]) .intro { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .heading-bat, .heading-firework { animation: none; opacity: .65; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
