/* Spike & Suzy Games — farm look shared with "Do You Speak Dog?" (sky, grass, barn red, straw). */
:root {
  --sky: #8fd3ff; --sky-2: #dff3ff; --grass: #6dbb5a; --grass-2: #3e8e3a;
  --barn: #c43d2c; --barn-2: #a2301f; --straw: #ffcf4a; --straw-2: #fff3c7;
  --ink: #1d2733; --ink-2: #4a5663; --paper: #fffdf7; --line: #e4dccb;
  --wood: #7a4a12; --spike: #2b2622; --spike-tan: #c98a45; --suzy: #6e4a2f; --suzy-2: #a8754f;
  --focus: #0b5fff; --radius: 20px;
  --shadow: 0 6px 0 rgba(29, 39, 51, .12), 0 10px 24px rgba(29, 39, 51, .10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font-family: ui-rounded, "Nunito", "Quicksand", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px; line-height: 1.45;
  background:
    radial-gradient(120% 40% at 20% 104%, var(--grass) 0 60%, transparent 61%),
    radial-gradient(120% 36% at 90% 106%, var(--grass-2) 0 60%, transparent 61%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 45%, #eaf8e3 100%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.ss-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.ss-shell { max-width: 760px; margin: 0 auto; padding: 0 14px calc(150px + env(safe-area-inset-bottom)); }
.ss-header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 0 10px;
  background: var(--sky); box-shadow: 0 8px 12px -10px rgba(29, 39, 51, .35);
  margin: 0 -14px; padding-left: 14px; padding-right: 14px;
}
.ss-back {
  min-height: 48px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px;
  border-radius: 999px; border: 3px solid #fff; background: var(--paper); color: var(--ink);
  font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: 0 3px 0 rgba(29, 39, 51, .15);
}
.ss-back:hover { background: var(--straw-2); }
.ss-brand { text-align: right; line-height: 1.02; }
.ss-brand__name { display: block; font-weight: 900; font-size: 19px; letter-spacing: .03em; color: var(--barn); text-shadow: 0 2px 0 #fff; }
.ss-brand__sub { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ss-main { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }

/* ---------- type ---------- */
.ss-kicker {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--straw); color: #3b2500; font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  border: 3px solid #fff; box-shadow: 0 3px 0 rgba(29, 39, 51, .12);
}
.ss-h1 { font-size: clamp(34px, 9vw, 52px); font-weight: 900; line-height: 1.04; color: var(--barn); text-shadow: 0 3px 0 #fff; letter-spacing: .01em; }
.ss-intro { font-size: 19px; font-weight: 600; line-height: 1.5; }
.ss-h2 { font-size: clamp(24px, 6.4vw, 30px); font-weight: 900; line-height: 1.15; outline: none; }
.ss-h3 { font-size: 22px; font-weight: 900; line-height: 1.2; }
.ss-eyebrow { font-size: 14px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--wood); }
.ss-text { font-size: 18px; line-height: 1.5; }
.ss-muted { color: var(--ink-2); }

/* ---------- cards / panels ---------- */
.ss-card { background: var(--paper); border: 3px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.ss-card--game { padding: 20px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.ss-card--done { background: var(--straw-2); border-color: var(--straw); text-align: center; align-items: center; }
.ss-panel { display: flex; flex-direction: column; gap: 10px; }
.ss-panel__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.ss-panel__head { font-weight: 900; font-size: 18px; }
.ss-panel__xp { font-weight: 900; color: var(--wood); font-variant-numeric: tabular-nums; }
.ss-panel__note { font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.ss-panel__ladder { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--wood); }
.ss-num { font-variant-numeric: tabular-nums; }
.ss-emoji { margin-right: 6px; }
.ss-bar { height: 14px; border-radius: 999px; background: rgba(122, 74, 18, .14); overflow: hidden; }
.ss-bar__fill { height: 100%; border-radius: 999px; background: var(--barn); transition: width .5s ease; }
.ss-bar__fill--gold { background: linear-gradient(90deg, #f4b400, #ffd84d); }
.ss-bar__fill--green { background: var(--grass-2); }
.ss-panels { display: grid; gap: 16px; }
@media (min-width: 720px) { .ss-panels--two { grid-template-columns: 1fr 1fr; } }

/* ---------- age bands ---------- */
.ss-bands { display: flex; flex-wrap: wrap; gap: 10px; }
.ss-band {
  min-height: 56px; min-width: 48px; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 8px 16px; border-radius: 18px; border: 3px solid var(--line); background: #fff; cursor: pointer; text-align: left;
}
.ss-band__label { font-weight: 900; font-size: 17px; }
.ss-band__ages { font-size: 14px; color: var(--ink-2); }
.ss-band.is-on { background: var(--grass-2); border-color: var(--grass-2); color: #fff; box-shadow: 0 3px 0 rgba(29, 39, 51, .18); }
.ss-band.is-on .ss-band__ages { color: rgba(255, 255, 255, .9); }

/* ---------- stills (placeholders) ---------- */
.ss-stills { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.ss-stills--1 { grid-template-columns: 1fr; }
.ss-stills--3 { grid-template-columns: repeat(3, 1fr); }
.ss-still {
  margin: 0; aspect-ratio: 4 / 3; border-radius: 18px; border: 3px solid #fff; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center;
  background:
    radial-gradient(140% 55% at 50% 118%, var(--grass) 0 60%, transparent 61%),
    linear-gradient(180deg, #bfe6ff 0%, #f2fbff 100%);
}
.ss-stills--1 .ss-still { aspect-ratio: 16 / 7; }
.ss-still__emoji { font-size: clamp(38px, 11vw, 64px); line-height: 1; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .12)); }
.ss-still__cap { font-size: 13px; font-weight: 800; color: var(--ink); background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 3px 10px; line-height: 1.25; }
@media (max-width: 420px) { .ss-stills--3 .ss-still__cap { font-size: 11px; padding: 2px 6px; } }

/* ---------- buttons ---------- */
.ss-btn {
  min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 3px solid rgba(0, 0, 0, .08); border-radius: 999px; padding: 10px 22px; cursor: pointer; text-decoration: none; text-align: center;
  font-weight: 900; font-size: 19px; letter-spacing: .02em; color: var(--ink); background: #fff; box-shadow: var(--shadow);
  transition: transform .08s ease; touch-action: manipulation;
}
.ss-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(29, 39, 51, .15); }
.ss-btn[disabled] { opacity: .5; cursor: default; }
.ss-btn--primary { background: var(--barn); color: #fff; }
.ss-btn--primary:hover { background: var(--barn-2); }
.ss-btn--cta { background: linear-gradient(180deg, #ffd84d, #f4b400); color: #3b2500; border-color: #fff; }
.ss-btn--ghost { background: rgba(255, 255, 255, .92); }
.ss-btn--sm { min-height: 48px; font-size: 16px; padding: 8px 18px; align-self: flex-start; }
.ss-btn--wide { width: 100%; }
@media (min-width: 560px) { .ss-btn--wide { width: auto; align-self: flex-start; } }
.ss-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ss-lock { font-size: 16px; color: var(--ink-2); }

/* ---------- question card ---------- */
.ss-qhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ss-count { font-weight: 900; color: var(--wood); font-size: 17px; }
.ss-badge { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; background: var(--straw-2); border: 2px solid var(--straw); border-radius: 999px; padding: 4px 12px; }
.ss-host { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--wood); }
.ss-host__dot { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.ss-host__dot--spike { background: linear-gradient(135deg, var(--spike) 60%, var(--spike-tan) 61%); }
.ss-host__dot--suzy { background: linear-gradient(135deg, var(--suzy) 60%, var(--suzy-2) 61%); }
.ss-sentence { font-size: clamp(22px, 6vw, 28px); font-weight: 900; line-height: 1.35; background: #fff; border: 3px dashed var(--straw); border-radius: 16px; padding: 12px 16px; }
.ss-visual { font-size: clamp(30px, 9vw, 42px); letter-spacing: .06em; line-height: 1.2; }
.ss-prompt { font-size: 20px; font-weight: 700; line-height: 1.45; }
.ss-tip { background: #fff7d6; border: 3px solid var(--straw); border-radius: 16px; padding: 10px 14px; font-size: 17px; font-weight: 700; }
.ss-fact { background: #eef8ea; border: 3px solid #bfe3b3; border-radius: 16px; padding: 12px 14px; font-size: 18px; font-weight: 700; line-height: 1.45; }
.ss-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ss-option {
  width: 100%; min-height: 64px; display: flex; align-items: center; text-align: left; gap: 10px;
  padding: 12px 18px; border-radius: 18px; border: 3px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 900; font-size: 20px; box-shadow: 0 4px 0 rgba(29, 39, 51, .10); touch-action: manipulation;
}
.ss-option:hover { border-color: var(--straw); background: var(--straw-2); }
.ss-option:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(29, 39, 51, .10); }
.ss-steps { margin: 0; padding-left: 26px; font-weight: 800; font-size: 18px; color: var(--grass-2); display: grid; gap: 4px; }
.ss-done-title { font-size: clamp(28px, 7.5vw, 38px); font-weight: 900; color: var(--barn); line-height: 1.1; outline: none; }
.ss-done-award { font-weight: 900; font-size: 20px; color: var(--wood); }
.ss-done-emoji { font-size: 56px; line-height: 1; }

/* ---------- toasts ---------- */
.ss-toasts { position: fixed; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 12px; pointer-events: none; }
.ss-toast {
  pointer-events: none; width: min(520px, 100%); background: rgba(29, 39, 51, .94); color: #fff; border-radius: 16px; padding: 12px 16px;
  border: 3px solid var(--straw); box-shadow: 0 10px 28px rgba(0, 0, 0, .25); animation: ss-toast-in .22s ease-out;
}
.ss-toast.is-out { opacity: 0; transform: translateY(8px); transition: all .22s ease; }
.ss-toast__title { font-weight: 900; font-size: 17px; }
.ss-toast__desc { font-size: 15px; opacity: .92; margin-top: 2px; }
@keyframes ss-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ss-footer { text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.ss-screen-in { animation: ss-in .25s ease-out; }
@keyframes ss-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
