/* DailySpark — Daylight theme (Nov 2026).
   Very pale mint-grey ground, white cards, deep teal-green primary,
   dark forest-green ink, soft grey-green labels. Bold geometric sans
   throughout (Poppins), letterspaced small-caps labels, generous
   whitespace and generously rounded corners. Mobile-first. */
:root {
  color-scheme: light;
  --bg: #f1f6f2;
  --surface: #ffffff;
  --surface-2: #e9f2ed;
  --surface-3: #f6faf7;
  --ink: #14342a;
  --ink-soft: #33544a;
  --prose: #2c4a3e;
  --muted: #6d857b;
  --line: #dce8e1;
  --line-strong: #c3d8cc;
  --accent: #0b6e5d;
  --accent-deep: #084f43;
  --accent-bright: #0e826d;
  --accent-soft: #e0f0ea;
  --sage: #5d8a6d;
  --sage-deep: #3f6a4f;
  --sage-soft: #e7f1e6;
  --blush: #f3ccd7;
  --blush-deep: #9c4159;
  --blush-soft: #fbf0f2;
  --lav: #d9d0f2;
  --lav-deep: #5d4f96;
  --lav-soft: #f1eefa;
  --shadow: 0 1px 2px rgba(16, 60, 48, 0.05), 0 14px 34px -14px rgba(16, 60, 48, 0.16);
  --shadow-lg: 0 2px 4px rgba(16, 60, 48, 0.06), 0 24px 48px -16px rgba(16, 60, 48, 0.24);
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Poppins", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 480px at 88% -140px, rgba(11, 110, 93, 0.07), transparent 60%),
    radial-gradient(900px 460px at -12% 260px, rgba(93, 138, 109, 0.06), transparent 60%),
    var(--bg);
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #bfe3d6; color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(11, 110, 93, 0.42); outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: 96px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-inner { display: flex; align-items: center; gap: 14px; padding: 13px 0; flex-wrap: wrap; }
.wordmark {
  font-weight: 800; font-size: 26px; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none; white-space: nowrap; line-height: 1;
}
.wordmark .spark { color: var(--accent); }
.wordmark .dot { color: var(--sage); }
.wordmark.small { font-size: 21px; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav.main a {
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 13px; border-radius: 999px; letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}
nav.main a:hover { background: var(--surface-2); color: var(--ink); }
nav.main a.active { background: var(--accent); color: #fff; }
nav.main a.active:hover { background: var(--accent-deep); }
.date-line { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }

/* ---------- generic ---------- */
main { padding-bottom: 76px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent-deep); text-decoration: none; margin: 28px 0 6px; }
.crumb:hover { text-decoration: underline; text-underline-offset: 3px; }
h1.page { font-weight: 800; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 8px 0 10px; letter-spacing: -0.025em; color: var(--ink); }
.lede { color: var(--ink-soft); font-size: 17px; line-height: 1.65; max-width: 640px; margin: 0 0 10px; }
.lede a, .sec-sub a { font-weight: 600; text-underline-offset: 3px; }
h2.sec { font-weight: 800; font-size: clamp(23px, 3.4vw, 30px); margin: 48px 0 6px; letter-spacing: -0.02em; color: var(--ink); }
.sec-sub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; line-height: 1.2;
  box-shadow: 0 8px 18px -8px rgba(11, 110, 93, 0.55);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 12px 22px -8px rgba(8, 79, 67, 0.55); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--surface); color: var(--accent-deep); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; text-decoration: none;
  display: inline-flex; align-items: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
button.chip { cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep); line-height: 1.35;
}
.tag.teal { background: var(--sage-soft); color: var(--sage-deep); }
.tag.gold { background: var(--lav-soft); color: var(--lav-deep); }
.tag.light { background: rgba(255, 255, 255, 0.18); color: #eafaf2; }

/* house banners — DailySpark promos pointing at other corners of the site */
.house-banner {
  display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; margin: 32px 0;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.house-banner:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.house-banner.narrow { max-width: 700px; margin-left: auto; margin-right: auto; }
.house-banner .hb-ic {
  flex: none; width: 54px; height: 54px; border-radius: var(--radius-sm); font-size: 24px;
  background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center;
}
.house-banner .hb-ic.teal { background: var(--sage-soft); color: var(--sage-deep); }
.house-banner .hb-ic.gold { background: var(--lav-soft); color: var(--lav-deep); }
.house-banner .hb-body { flex: 1; min-width: 0; }
.house-banner .hb-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); }
.house-banner .hb-kicker.teal { color: var(--sage-deep); }
.house-banner .hb-kicker.gold { color: var(--lav-deep); }
.house-banner .hb-title { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; margin: 3px 0; color: var(--ink); }
.house-banner .hb-text { display: block; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.house-banner .hb-arrow { flex: none; font-size: 24px; font-weight: 800; color: var(--accent); line-height: 1; transition: transform 0.15s ease; }
.house-banner:hover .hb-arrow { transform: translateX(3px); }

/* ad placeholders — max 3 per page, never covering content */
.ad-slot {
  margin: 30px 0; min-height: 96px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, 0.6);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ---------- hero + daily strip ---------- */
.hero { position: relative; margin-top: 24px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero img { width: 100%; height: clamp(300px, 46vw, 430px); object-fit: cover; }
.hero-text {
  position: absolute; inset: auto 0 0 0; padding: 72px 28px 26px;
  background: linear-gradient(to top, rgba(8, 43, 35, 0.88) 0%, rgba(8, 43, 35, 0.42) 55%, transparent 100%);
  color: #f2f9f4;
}
.hero-text h1 { font-weight: 800; font-size: clamp(28px, 5.4vw, 46px); line-height: 1.08; margin: 0 0 10px; max-width: 620px; letter-spacing: -0.025em; }
.hero-text p { margin: 0; font-size: clamp(15px, 2.4vw, 17.5px); line-height: 1.6; color: #d3e9dc; max-width: 560px; }
.daily-strip { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-top: 20px; }
.daily-quote { padding: 28px; }
.daily-quote .q { font-size: clamp(20px, 2.8vw, 25px); line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 12px 0 10px; }
.daily-quote .by { color: var(--muted); font-weight: 600; font-size: 14.5px; margin: 0; }
.daily-proverb { padding: 28px; background: linear-gradient(155deg, var(--accent-bright), var(--accent-deep)); color: #eef7f2; border: none; }
.daily-proverb .p { font-size: 19.5px; line-height: 1.45; font-weight: 700; letter-spacing: -0.01em; margin: 12px 0 10px; }
.daily-proverb .m { font-size: 14px; line-height: 1.6; color: #bfe0d2; margin: 0; }
.daily-more { margin: 16px 0 0; font-weight: 700; font-size: 14.5px; }
.daily-more a { text-underline-offset: 3px; }
.daily-proverb .daily-more a { color: #d8f3e4; }

/* ---------- browse tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.tile .ic { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; font-size: 20px; }
.tile .ic.teal { background: var(--sage-soft); color: var(--sage-deep); }
.tile .ic.gold { background: var(--lav-soft); color: var(--lav-deep); }
.tile h3 { margin: 2px 0 0; font-size: 17px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.tile p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.tile .count { margin-top: auto; padding-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; color: var(--accent-deep); text-transform: uppercase; }
.tile.wide { grid-column: span 2; flex-direction: row; gap: 18px; align-items: stretch; padding: 0; overflow: hidden; }
.tile.wide img { width: 42%; object-fit: cover; min-height: 150px; }
.tile.wide .tile-body { padding: 22px 22px 22px 4px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- stories ---------- */
.story-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.story-card { overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
a.story-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.story-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 22%; }
.story-card .sc-body, .bedtime-card .sc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; flex: 1; }
.story-card .sc-body p, .bedtime-card .sc-body p, .story-card .sc-body .meta, .bedtime-card .sc-body .meta { align-self: stretch; }
.story-card h3, .bedtime-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.2; color: var(--ink); }
.story-card p, .bedtime-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.story-card .meta, .bedtime-card .meta { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--muted); font-weight: 600; display: flex; gap: 12px; flex-wrap: wrap; }
a.bedtime-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.reader-head { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 16px; align-items: start; }
.reader-head img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 22%; }
.byline { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.chapter-list { display: flex; flex-direction: column; gap: 10px; }
.chapter-link {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 20px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.chapter-link:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.chapter-link .ch-meta { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* reader pages — clean and quiet, comfortable measure */
.chapter-body { max-width: 680px; margin: 0 auto; }
.chapter-body h1 { font-weight: 800; font-size: clamp(27px, 4.6vw, 38px); line-height: 1.15; margin: 12px 0 8px; letter-spacing: -0.025em; color: var(--ink); }
.chapter-body .ch-sub { color: var(--muted); font-weight: 600; font-size: 14.5px; margin: 0 0 28px; }
.chapter-body p { font-size: 17.5px; line-height: 1.8; color: var(--prose); margin: 0 0 20px; }
.chapter-body p.lead-para { font-size: 18.5px; }
.chapter-body h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; margin: 36px 0 12px; color: var(--ink); }
.chapter-body ul, .chapter-body ol { font-size: 17px; line-height: 1.75; color: var(--prose); margin: 0 0 20px; padding-left: 24px; }
.chapter-body li { margin-bottom: 8px; }
.chapter-body a { font-weight: 600; text-underline-offset: 3px; }
.chapter-body .keep-exploring { font-size: 15.5px; line-height: 1.65; background: var(--surface-2); border-radius: 16px; padding: 18px 20px; }
.chapter-body .the-end { text-align: center; font-weight: 600; font-style: italic; letter-spacing: 0.02em; color: var(--muted); }
.chapter-nav { display: flex; justify-content: space-between; gap: 14px; max-width: 680px; margin: 10px auto 0; flex-wrap: wrap; }

/* ---------- quotes & wishes ---------- */
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.quote-card { padding: 24px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.quote-card blockquote, .quote-card figcaption { align-self: stretch; }
.quote-card::before {
  content: "\201C"; font-weight: 800; font-size: 44px; line-height: 0.55;
  color: var(--accent); margin: 6px 0 4px;
}
.quote-card blockquote { font-size: 19.5px; line-height: 1.5; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 2px 0 0; }
.quote-card figcaption { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.quote-card .copy-btn { align-self: flex-start; margin-top: auto; }
.wish-list { display: flex; flex-direction: column; gap: 12px; }
.wish-card { padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.wish-card p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.wish-card .copy-btn { flex: none; }
.seo-wishes { max-width: none; }

/* ---------- horoscopes ---------- */
.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 26px; }
.sign-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 8px 14px; text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.sign-btn:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.sign-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sign-btn .glyph { font-size: 26px; line-height: 1.1; }
.sign-btn .nm { font-weight: 800; font-size: 14.5px; letter-spacing: -0.01em; }
.sign-btn .dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.sign-btn.on .dt { color: #cdeedd; }
.scope-card { padding: 30px; }
.scope-card h2 { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; color: var(--ink); }
.scope-card .dates { color: var(--muted); font-weight: 600; font-size: 14px; margin: 0 0 16px; }
.scope-card .ov { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 22px; }
.scope-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.scope-facts .fact { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 17px; }
.scope-facts .k { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.scope-facts .v { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin-top: 3px; }
.focus-line { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin: 0; background: var(--accent-soft); border-radius: var(--radius-sm); padding: 17px 19px; }

/* ---------- dreams ---------- */
.dream-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.dream-card { padding: 22px 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.dream-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.dream-card h3 { font-size: 19.5px; font-weight: 800; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
.dream-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.dream-card .count { margin-top: auto; padding-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; color: var(--accent-deep); text-transform: uppercase; }

/* ---------- riddles, trivia, proverbs ---------- */
.riddle-list { display: flex; flex-direction: column; gap: 12px; }
.riddle-card { padding: 22px 24px; }
.riddle-q { font-size: 16.5px; font-weight: 600; color: var(--ink); margin: 0 0 14px; line-height: 1.6; }
.riddle-a { display: none; font-size: 17.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--accent-deep); margin: 0 0 14px; }
.riddle-card.open .riddle-a { display: block; }
.quiz-box { padding: 28px 30px; max-width: 700px; }
.quiz-progress { color: var(--muted); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; margin: 0 0 12px; text-transform: uppercase; }
.quiz-q { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.35; color: var(--ink); margin: 0 0 20px; }
.quiz-opts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.quiz-opt {
  text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 17px; font-size: 15.5px; font-weight: 600; color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--accent); background: var(--surface-3); }
.quiz-opt.right { background: var(--sage-soft); border-color: var(--sage); color: var(--sage-deep); }
.quiz-opt.wrong { background: var(--blush-soft); border-color: #e0a3b1; color: var(--blush-deep); }
.quiz-opt:disabled { cursor: default; opacity: 0.9; }
.quiz-fact { display: none; margin: 18px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.quiz-fact.on { display: block; }
.quiz-foot { display: flex; justify-content: space-between; margin-top: 20px; }
.score-big { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 6px 0; }
.quiz-done-msg { font-size: 16.5px; color: var(--ink-soft); }
.proverb-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.proverb-card { padding: 24px 26px; }
.proverb-card .p-text { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 6px; }
.proverb-card .p-origin { color: var(--sage-deep); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; margin: 0 0 12px; }
.proverb-card .p-meaning { color: var(--ink-soft); margin: 0; line-height: 1.65; }

/* ---------- word spark ---------- */
.game-box { padding: 30px; max-width: 640px; }
.game-meta { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 18px; }
.scramble-letters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.scramble-letters span {
  width: 46px; height: 54px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep); border-radius: 12px;
  font-size: 25px; font-weight: 800; text-transform: uppercase;
}
.game-hint { color: var(--ink-soft); margin: 0 0 20px; }
.game-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.game-controls input {
  flex: 1; min-width: 170px; font: inherit; font-size: 16px; padding: 12px 17px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink);
}
.game-controls input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(11, 110, 93, 0.16); }
.game-msg { min-height: 24px; font-weight: 700; color: var(--accent-deep); margin: 18px 0 0; }
.game-score { color: var(--muted); font-weight: 600; margin: 6px 0 0; }

/* ---------- contact ---------- */
.info-box { padding: 24px 26px; margin-bottom: 20px; }
.info-box h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 10px; color: var(--ink); }
.info-box p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.contact-form { padding: 26px; max-width: 640px; display: flex; flex-direction: column; gap: 8px; }
.contact-form label { font-weight: 700; font-size: 14px; letter-spacing: 0.01em; color: var(--ink); margin-top: 12px; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 16px; padding: 12px 15px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(11, 110, 93, 0.16); }
.contact-form .btn { align-self: flex-start; margin-top: 18px; }
.cf-result { margin: 10px 0 0; font-weight: 600; color: var(--sage-deep); }
.thanks-box { padding: 26px; max-width: 640px; }
.thanks-box h2 { font-weight: 800; letter-spacing: -0.015em; margin: 0 0 10px; color: var(--ink); }
.thanks-box p { margin: 0; color: var(--ink-soft); line-height: 1.65; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--surface-2); margin-top: 12px; }
.foot-inner { padding: 32px 20px 38px; display: flex; flex-direction: column; gap: 14px; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.foot-nav a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.foot-note { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; max-width: 640px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink); color: #eef7f2; font-weight: 600; font-size: 14.5px;
  padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 90;
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- niche serials (Stage 1, Nov 2026) ---------- */
/* Typographic covers for serials without cover art yet — soft pastel
   fields in the Daylight palette, one per niche, with forest ink text. */
.cover-art {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  width: 100%; aspect-ratio: 4 / 3; padding: 24px; color: #57293a;
  background:
    radial-gradient(420px 200px at 18% 0%, rgba(255, 255, 255, 0.55), transparent 65%),
    linear-gradient(155deg, #f9e3e8 0%, #f3ccd7 55%, #eda9bf 100%);
}
.cover-art.cover-mystery { color: #2f4a2c; background:
    radial-gradient(420px 200px at 18% 0%, rgba(255, 255, 255, 0.55), transparent 65%),
    linear-gradient(155deg, #eaf3e3 0%, #d3e5cb 55%, #b7d6a9 100%); }
.cover-art.cover-magic-academy { color: #3c3163; background:
    radial-gradient(420px 200px at 18% 0%, rgba(255, 255, 255, 0.55), transparent 65%),
    linear-gradient(155deg, #ede8fa 0%, #d9d0f2 55%, #c0aee9 100%); }
.cover-art .cover-genre { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.cover-art .cover-title { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }
.cover-art .cover-author { font-size: 14px; font-weight: 600; opacity: 0.85; }
.reader-head .cover-art { border-radius: var(--radius); box-shadow: var(--shadow); }
.chapter-link.locked { background: var(--surface-2); color: var(--muted); }
.chapter-link.locked:hover { border-color: var(--line); box-shadow: none; transform: none; }
.lock-box {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px; margin: 6px 0 28px;
}
.lock-box h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 10px; color: var(--ink); }
.lock-box p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile.wide { grid-column: span 3; }
  .story-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .dream-grid { grid-template-columns: repeat(2, 1fr); }
  .proverb-list { grid-template-columns: repeat(2, 1fr); }
  .sign-grid { grid-template-columns: repeat(4, 1fr); }
  .scope-facts { grid-template-columns: repeat(4, 1fr); }
  .quiz-opts { grid-template-columns: 1fr 1fr; }
  .reader-head { grid-template-columns: 340px 1fr; }
}
@media (min-width: 1024px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile.wide { grid-column: span 2; }
  .dream-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 639px) {
  .daily-strip { grid-template-columns: 1fr; }
  .tile.wide { flex-direction: column; }
  .tile.wide img { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .tile.wide .tile-body { padding: 20px 22px 22px; }
  .wish-card { flex-direction: column; }
  .date-line { display: none; }
  .hero-text { padding: 56px 22px 22px; }
  .daily-quote, .daily-proverb, .scope-card, .quiz-box, .game-box { padding: 24px 22px; }
  .chapter-nav .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .dream-card, .chapter-link, .house-banner, .story-card, .btn, .sign-btn { transition: none; }
}
