/* Season theme: generic tropical sunset / 80s neon. No game logos, fonts or artwork. */
:root {
  --bg: #0f0a1a;
  --surface: #181127;
  --surface-2: #211836;
  --border: #33264d;
  --text: #f3eefb;
  --muted: #a99bc4;
  --accent: #ff4fa3;
  --accent-ink: #1a0612;
  --accent-2: #2dd4bf;
  --sun: #ffd36e;
  --danger: #f87171;
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbf5f0;
    --surface: #ffffff;
    --surface-2: #f8eff3;
    --border: #ecdde6;
    --text: #1d1226;
    --muted: #6b5a78;
    --accent: #c0266d;
    --accent-ink: #ffffff;
    --accent-2: #0f766e;
    --danger: #b91c1c;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }

.topbar {
  display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center;
  max-width: 760px; margin: 0 auto; padding: 16px;
}
.brand { font-family: var(--mono); font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.brand-mark { color: var(--accent); }
.kofi { font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }
.kofi:hover { color: var(--text); border-color: var(--muted); }
.topbar-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.language-link { color: var(--muted); font-size: 14px; text-underline-offset: 3px; }
.language-suggestion {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 8px 12px; margin-bottom: 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); font-size: 14px;
}
.language-suggestion a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.language-suggestion button {
  font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 10px; cursor: pointer;
}

main { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; }

/* Hero: a sunset postcard. Always dark, in both colour schemes. */
.hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  border-radius: 22px; margin: 4px 0 24px; padding: 36px 16px 200px;
  background: linear-gradient(180deg, #120a26 0%, #24103f 32%, #5a1656 62%, #b8285f 82%, #ff7a45 100%);
}
.hero > :not(canvas) { position: relative; z-index: 1; }
.hero .hero-scene { position: absolute; left: 0; bottom: 0; width: 100%; max-width: none; height: 190px; margin: 0; border: 0; border-radius: 0; z-index: 0; pointer-events: none; }
.eyebrow { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--sun); margin: 0 0 8px; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; margin: 0 0 24px; }
.countdown { display: flex; justify-content: center; gap: clamp(12px, 4vw, 32px); margin-bottom: 20px; }
.countdown > div { display: flex; flex-direction: column; min-width: 64px; }
.num {
  font-family: var(--mono); font-size: clamp(34px, 9vw, 56px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 0 18px rgba(255, 79, 163, .65), 0 0 2px rgba(255, 79, 163, .9);
}
.unit { font-size: 12px; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
.hero-sub { color: rgba(255, 255, 255, .85); margin: 0 0 16px; }
.stats { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.stats li { font-size: 13px; background: rgba(10, 4, 24, .35); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 12px; color: rgba(255, 255, 255, .8); }
.stats strong { color: #fff; font-weight: 600; }
.hero .btn-primary { background: var(--sun); border-color: var(--sun); color: #2a0f2a; }
.home-hero h1 { margin-bottom: 8px; }
.home-hero .countdown > div { min-width: 0; }
.hero-calendar-link { color: #fff; background: #1b092d; border-color: rgba(255, 255, 255, .35); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.card h2 { margin: 0 0 4px; font-size: 22px; }
.muted { color: var(--muted); margin: 0 0 16px; font-size: 15px; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
input {
  font: inherit; font-size: 15px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; width: 100%;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.seg-group { border: 0; padding: 0; margin: 0 0 12px; }
.seg-group legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  font: inherit; font-size: 14px; color: var(--text); background: transparent;
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.seg button:hover { border-color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.quest-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.quest-kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0; }
.quest h2 { font-size: 19px; }
.quest-xp { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.xp-bar { height: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.xp-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent) 60%, var(--sun)); transition: width .5s ease; }
.objectives { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 16px; }
.objectives li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.objectives .box { width: 18px; height: 18px; flex: none; border: 1.5px solid var(--border); border-radius: 5px; display: grid; place-items: center; font-size: 12px; line-height: 1; }
.objectives li.done { color: var(--text); }
.objectives li.done .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.objectives li.done .label { text-decoration: line-through; text-decoration-color: var(--muted); }
.quest.complete { border-color: var(--accent); }

.mail { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 16px 0 12px; }
.mail-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mail-title { font-size: 13px; font-weight: 600; }
.mail-variant { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mail-row { display: flex; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: 14px; min-width: 0; }
.mail-row span:last-child { min-width: 0; overflow-wrap: anywhere; }
.mail-key { color: var(--muted); width: 56px; flex: none; }
.mail-body { margin: 0; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 15px; }

.meter { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.meter-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.meter-head span:last-child { font-family: var(--mono); color: var(--text); }
.meter-bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent) 60%, var(--sun)); border-radius: 999px; transition: width .4s ease; }
.meter-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions-center { justify-content: center; }
.btn {
  font: inherit; font-size: 15px; color: var(--text); background: transparent; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 16px; cursor: pointer; display: inline-block;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--accent); }

.reply { margin-top: 16px; border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.reply-label { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.reply-text { margin: 0; font-size: 16px; }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }

.example { border-left: 3px solid var(--accent); margin: 12px 0; padding: 4px 0 4px 14px; }
.example-label { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.example blockquote { font-size: 15px; margin: 0; white-space: pre-line; }
.example-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

.release-list { margin: 0; padding: 0; list-style: none; }
.release-item {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--border); scroll-margin-top: 16px;
}
.release-item:target { outline: 2px solid var(--accent); outline-offset: 4px; }
.release-item h3 { margin: 0; font-size: 17px; }
.release-platforms { margin: 0; color: var(--muted); font-size: 14px; }
.release-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; margin-top: 4px; }
.release-status { color: var(--accent); font-weight: 600; }
.release-source { color: var(--muted); text-underline-offset: 3px; }
#watch-title { margin: 16px 0 8px; }

canvas { display: block; width: 100%; max-width: 340px; height: auto; margin: 8px auto 16px; border-radius: 12px; border: 1px solid var(--border); }

.kit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0 16px; flex-wrap: wrap; margin-bottom: 12px; }
.kit-store-pick { flex-direction: row; align-items: center; gap: 8px; }
select {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 10px;
}
.kit-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kit-item {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; text-decoration: none;
}
.kit-item:hover { border-color: var(--accent); }
.kit-icon { font-size: 22px; line-height: 1.2; flex: none; }
.kit-name { margin: 0; font-weight: 600; font-size: 15px; }
.kit-why { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.kit-cta { margin: 6px 0 0; font-size: 13px; color: var(--accent); font-weight: 600; }
.disclosure { font-size: 12px; color: var(--muted); margin: 0; }

.about p { margin: 0 0 8px; color: var(--muted); }
.about strong { color: var(--text); }

.footer { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; font-size: 12px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--accent);
  border-radius: 12px; padding: 10px 16px; min-width: 260px; max-width: calc(100% - 32px);
}
.toast-icon { font-size: 22px; color: var(--accent); }
.toast-title { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-family: var(--mono); }
.toast-text { margin: 0; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .meter-fill, .xp-fill { transition: none; } }
