/* Noodle Brain Games — main stylesheet
   Fonts: Fredoka (headings), Atkinson Hyperlegible Next (body)
   Light, warm, high-contrast theme designed for easy reading. */

:root {
  --bg: #FFFBF3;
  --surface: #FFFFFF;
  --ink: #23143A;
  --ink-soft: #4A3F5C;
  --muted: #5E5470;
  --line: #E9DFD0;
  --line-strong: #D8CCB8;
  --noodle: #F7C548;
  --noodle-soft: #FFF1C7;
  --noodle-edge: #E2B33A;
  --tomato: #E8573F;
  --tomato-text: #C2412B;
  --tomato-soft: #FDE3DC;
  --basil: #2B8A5E;
  --basil-soft: #DDF3E7;
  --sky: #3D8BD9;
  --sky-soft: #DFEDFB;
  --plum: #7A4FD0;
  --plum-soft: #ECE4FB;
  --sand: #F3EEE6;
  --felt: #1F6B4F;
  --grey-tile: #7E758A;
  --gold-tile: #E9B23C;
  --dark-text: #D9D1E6;
  --radius: 20px;
  --font-display: 'Fredoka', 'Trebuchet MS', 'Arial Rounded MT Bold', sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Verdana, Tahoma, sans-serif;
  --shadow-pop: 8px 8px 0 var(--noodle);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg, canvas { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #A8341F; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.container-wide { max-width: 1340px; }
.section { padding-block: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head p { color: var(--ink-soft); margin-top: 6px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(19px, 2vw, 22px); color: var(--ink-soft); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 24px; white-space: nowrap; }
.brand-name span { color: var(--tomato-text); }
.main-nav { display: flex; gap: 28px; font-weight: 700; }
.main-nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.main-nav a[aria-current="page"] { border-bottom-color: var(--noodle); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn[aria-pressed="true"] .snd-off { display: none; }
.icon-btn[aria-pressed="false"] .snd-on { display: none; }
.menu-toggle { display: none; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--basil-soft); color: #1F5C40; white-space: nowrap; }
.live-badge[hidden] { display: none; }
.live-badge .lb-text [hidden] { display: none; }
.live-badge .lb-sep { margin: 0 2px; opacity: 0.6; }
.live-badge .lb-text > span:not([hidden]) { animation: lbIn .35s ease; }
@keyframes lbIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .live-badge .lb-text > span { animation: none !important; } }
.live-badge:not(.is-live) { background: var(--noodle-soft, #FDF0C8); color: var(--ink); }
.live-badge:not(.is-live) .live-dot { display: none; }
.live-badge:not(.is-live)::before { content: "🎮"; font-size: 14px; }
.live-dot { width: 10px; height: 10px; border-radius: 99px; background: var(--basil); box-shadow: 0 0 0 0 rgba(43, 138, 94, 0.5); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(43, 138, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 138, 94, 0); } }
@media (max-width: 1100px) { .live-badge { font-size: 13px; padding: 6px 10px; } }
@media (max-width: 1180px) {
  .live-badge .lb-text { display: none; }
  .live-badge::after { content: attr(data-short); }
}
@media (max-width: 560px) {
  .live-badge { gap: 6px; padding: 6px 9px; }
  .live-badge:not(.is-live)::before { font-size: 12px; }
  .site-header .container { gap: 10px; }
  .header-actions { gap: 6px; }
  .site-header .icon-btn { width: 42px; height: 42px; }
}
@media (max-width: 400px) {
  .site-header .brand { gap: 8px; }
  .site-header .brand-name { font-size: 18px; }
  .site-header .brand-mark { width: 32px; height: 32px; }
}
@media (max-width: 920px) {
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); flex-direction: column; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(35, 20, 58, 0.08); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
  .menu-toggle { display: inline-flex; }
  .site-header .header-cta { display: none; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 38px; height: 38px; }
}
@media (max-width: 400px) { .brand-name span { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 26px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 700; font-size: 18px; text-decoration: none; line-height: 1.2; transition: transform 0.12s ease, box-shadow 0.12s ease; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { color: #fff; background: #3A2659; }
.btn-secondary { background: var(--surface); color: var(--ink); }
.btn-secondary:hover { background: var(--sand); color: var(--ink); }
.btn-yellow { background: var(--noodle); color: var(--ink); }
.btn-yellow:hover { color: var(--ink); background: #F3BA2C; }
.btn-reward { background: var(--noodle-soft); border-color: var(--noodle-edge); color: var(--ink); }
.btn-reward:hover { background: #FFE8A6; color: var(--ink); }
.btn-reward .ad-dot { width: 22px; height: 22px; flex: none; }
.btn-small { min-height: 44px; padding: 9px 18px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--noodle-soft); border: 1px solid #F0D27A; padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; background: var(--sand); text-transform: uppercase; }

.seg { display: inline-flex; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: none; background: transparent; font-weight: 700; font-size: 16px; padding: 9px 16px; border-radius: 999px; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button:disabled { opacity: 0.5; cursor: not-allowed; }
.seg button .soon { font-size: 11px; font-weight: 700; margin-left: 4px; background: var(--noodle-soft); color: var(--ink); padding: 1px 6px; border-radius: 99px; }

/* ---------- Hero ---------- */
.hero { padding-block: 64px 48px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero h1 { font-weight: 700; font-size: clamp(54px, 7.4vw, 88px); line-height: 0.98; letter-spacing: -0.01em; }
.hero h1 mark { background: var(--noodle); color: inherit; padding: 0 0.14em; border-radius: 0.2em; }
.hero .lead { max-width: 30ch; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.check-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 16px; color: var(--ink-soft); }
.check-list li { display: flex; gap: 8px; align-items: center; }
.check-list svg { width: 20px; height: 20px; flex: none; }

.daily-card { background: var(--surface); border: 2px solid var(--ink); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 480px; justify-self: center; }
.daily-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.daily-card-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.15; }
.streak-badge { background: var(--tomato-soft); color: #8F2F1C; font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.mini-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mini-grid span { aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); border: 2px solid var(--line); background: var(--bg); }

/* ---------- Game cards ---------- */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-row button { font-weight: 700; font-size: 16px; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); min-height: 44px; }
.filter-row button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 12px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s; }
.game-card:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--line); border-color: var(--line-strong); color: var(--ink); }
.game-card[hidden] { display: none; }
.game-card .art { border-radius: 14px; display: block; width: 100%; height: auto; aspect-ratio: 26 / 15; }
.game-card-body { padding: 0 6px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-card-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.15; }
.game-card-desc { font-size: 16px; color: var(--ink-soft); }
.game-card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }

/* ---------- Promise band ---------- */
.band-dark { background: var(--ink); color: #fff; }
.band-dark .lead, .band-dark p { color: var(--dark-text); }
.band-dark a { color: #fff; }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 36px; }
.promise { display: flex; flex-direction: column; gap: 12px; }
.promise-icon { width: 64px; height: 64px; border-radius: 999px; background: var(--noodle); display: flex; align-items: center; justify-content: center; }
.promise-icon svg { width: 30px; height: 30px; }
.promise h3 { font-size: 24px; }
.promise p { font-size: 17px; }

/* ---------- Ads ---------- */
.ad-wrap { display: flex; justify-content: center; padding-block: 28px; }
.ad-slot { width: 100%; max-width: 728px; min-height: 90px; border: 2px dashed var(--line-strong); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-align: center; overflow: hidden; }
.ad-slot.ad-box { max-width: 300px; min-height: 250px; }
.ad-slot.ad-live { border: none; background: transparent; }
.ad-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ad-slot .ad-size { font-size: 14px; }
.ad-slot ins { display: block; width: 100%; }

/* ---------- Vote ---------- */
.vote-box { background: var(--surface); border: 2px solid var(--ink); border-radius: 28px; padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 36px; }
.vote-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vote-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.vote-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; }
.vote-desc { font-size: 15px; color: var(--muted); }
.vote-bar { grid-column: 1 / -1; height: 10px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.vote-bar span { display: block; height: 100%; background: var(--noodle); border-radius: 99px; width: 0; transition: width 0.5s ease; }
.vote-item .btn { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.vote-item.voted { border-color: var(--noodle-edge); background: #FFFBEA; }
.vote-count { font-size: 14px; color: var(--muted); }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 16px; }
.field input, .field textarea, .field select { padding: 13px 16px; border-radius: 14px; border: 2px solid var(--ink); background: var(--surface); font-size: 18px; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 14px; color: var(--muted); }
.form-msg { font-weight: 700; min-height: 1.5em; }
.form-msg.ok { color: var(--basil); }
.form-msg.err { color: var(--tomato-text); }

/* ---------- Small cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.guide-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.guide-card:hover { border-color: var(--line-strong); color: var(--ink); }
.guide-card .eyebrow { color: #2B6B4E; }
.guide-card h3 { font-size: 23px; line-height: 1.2; }
.guide-card p { font-size: 16px; color: var(--ink-soft); }
.soon-card { border: 2px dashed var(--line-strong); border-radius: 20px; padding: 20px; display: flex; gap: 16px; align-items: center; }
.soon-icon { width: 56px; height: 56px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.newsletter { background: var(--noodle-soft); border: 2px solid var(--ink); border-radius: 28px; padding: clamp(24px, 4vw, 44px); display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.newsletter form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.newsletter .field input { width: min(320px, 100%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--dark-text); margin-top: 24px; }
.site-footer a { color: var(--dark-text); }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-block: 52px 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.footer-brand .brand-name { color: #fff; font-size: 22px; }
.footer-tagline { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--noodle); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.footer-col h2 { font-family: var(--font-body); font-size: 16px; font-weight: 700; color: #fff; }
.footer-bottom { border-top: 1px solid #3C2C58; padding-block: 20px 28px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Game pages ---------- */
.breadcrumb { font-size: 15px; color: var(--muted); padding-top: 22px; }
.breadcrumb a { color: var(--muted); }
.game-title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 20px; }
.game-title-row h1 { font-size: clamp(36px, 5vw, 52px); }
.game-layout { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.game-main { flex: 999 1 640px; min-width: 0; }
.game-aside { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 940px) { .game-aside { max-width: none; } }
.stats { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px; text-align: center; }
.stat-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.stat-value { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calm-note { background: var(--basil-soft); border-radius: 18px; padding: 14px 16px; font-size: 16px; display: flex; gap: 12px; align-items: flex-start; }
.calm-note svg { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.game-stage { position: relative; }
.overlay { position: absolute; inset: 0; background: rgba(35, 20, 58, 0.86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; border-radius: 20px; z-index: 40; padding: 20px; color: #fff; }
.overlay[hidden] { display: none; }
.overlay h2 { font-size: clamp(28px, 4vw, 40px); color: var(--noodle); font-weight: 700; }
.overlay p { color: var(--dark-text); max-width: 34ch; }
.overlay .btn-secondary { border-color: #fff; }
.floaty { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--ink); background: var(--noodle); padding: 4px 16px; border-radius: 999px; pointer-events: none; z-index: 45; white-space: nowrap; animation: floatUp 1s ease-out forwards; }
@keyframes floatUp { to { transform: translate(-50%, -70px) scale(1.08); opacity: 0; } }
.shake { animation: shake 0.3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.prose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; padding-block: 64px 24px; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin: 0 0 14px; }
.prose h3 { font-size: 24px; margin: 28px 0 10px; }
.prose p, .prose li { color: #3A2F4C; }
.prose p + p { margin-top: 14px; }
.prose ol, .prose ul { padding-left: 24px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.prose ul + p, .prose ol + p { margin-top: 14px; }
.prose p + ul, .prose p + ol { margin-top: 14px; }
.article { max-width: 760px; margin: 0 auto; padding-block: 32px 56px; }
.article h1 { font-size: clamp(36px, 5vw, 52px); margin: 8px 0 14px; }
.article .meta { color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.article h2 { margin-top: 40px; }
.article .callout { background: var(--noodle-soft); border: 2px solid var(--ink); border-radius: 18px; padding: 18px 22px; margin: 28px 0; }
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 10px; color: #3A2F4C; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.next-card { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.next-card:hover { border-color: var(--line-strong); color: var(--ink); }
.next-card .swatch { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.next-card strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.next-card span span { font-size: 15px; color: var(--ink-soft); }

/* ---------- Feedback popup & toast ---------- */
.feedback-card { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 32px)); background: var(--surface); border: 2px solid var(--ink); border-radius: 22px; padding: 18px; box-shadow: 6px 6px 0 var(--noodle); z-index: 80; display: flex; flex-direction: column; gap: 12px; }
.feedback-card[hidden] { display: none; }
.feedback-card h2 { font-size: 22px; }
.thumbs { display: flex; gap: 10px; }
.thumbs button { flex: 1; min-height: 52px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); font-weight: 700; display: flex; gap: 8px; align-items: center; justify-content: center; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); background: var(--noodle-soft); }
.thumbs svg { width: 22px; height: 22px; }
.feedback-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: none; background: transparent; border-radius: 99px; display: flex; align-items: center; justify-content: center; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 90; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); max-width: calc(100vw - 32px); text-align: center; }
.modal-back { position: fixed; inset: 0; background: rgba(35, 20, 58, 0.6); z-index: 85; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-back[hidden] { display: none; }
.modal { background: var(--bg); border: 2px solid var(--ink); border-radius: 26px; padding: 28px; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; position: relative; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.modal h2 { font-size: 34px; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; width: 100%; height: 100%; }

/* ---------- Static pages ---------- */
.page-hero { padding-block: 48px 8px; }
.page-hero h1 { font-size: clamp(40px, 5.5vw, 60px); }
.page-hero p { margin-top: 12px; }
.not-found { text-align: center; padding-block: 90px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.not-found h1 { font-size: clamp(48px, 8vw, 84px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 350px) { .live-badge { display: none !important; } }
.main-nav a, .header-cta { white-space: nowrap; }
@media (max-width: 1060px) { .site-header .header-cta { display: none; } }
