/* Spike & Suzy Games — band B "Paddock pups" look (colours and fonts from Wool Wisdom / Do You Speak Dog?). */
:root {
  --sky: #8fd3ff; --sky-2: #dff3ff; --grass: #6dbb5a; --grass-2: #3e8e3a;
  --barn: #c43d2c; --barn-2: #a8321f; --straw: #ffcf4a; --straw-2: #fff3c7;
  --ink: #1d2733; --ink-2: #4a5663; --paper: #fffdf7; --line: #e4dccb;
  --spike: #2b2622; --spike-tan: #c98a45; --suzy: #7a4a1e; --suzy-amber: #f2b705;
  --green: #2e8b3e; --red: #b3261e; --focus: #0b5fff;
  --radius: 20px;
  --shadow: 0 6px 0 rgba(29, 39, 51, .12), 0 10px 24px rgba(29, 39, 51, .10);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); overflow-x: hidden;
  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;
}
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ssg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* shell */
.ssg-shell { max-width: 760px; margin: 0 auto; padding: 0 14px 56px; }
.ssg-top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 0 12px; background: linear-gradient(180deg, rgba(143, 211, 255, .97) 72%, rgba(143, 211, 255, 0));
}
.ssg-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 999px;
  background: var(--paper); border: 3px solid #fff; box-shadow: 0 3px 0 rgba(29, 39, 51, .15);
  color: var(--ink); font-weight: 900; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.ssg-back:hover { background: #fff; }
.ssg-top__right { display: flex; align-items: center; gap: 8px; }
.ssg-brand { text-align: right; line-height: 1.05; font-weight: 900; color: var(--barn); font-size: 18px; letter-spacing: .03em; text-shadow: 0 2px 0 #fff; }
.ssg-brand small { display: block; font-size: 11px; color: var(--ink); letter-spacing: .1em; text-shadow: none; text-transform: uppercase; }
.ssg-mute {
  min-width: 48px; min-height: 48px; border-radius: 999px; border: 3px solid #fff; background: var(--paper);
  box-shadow: 0 3px 0 rgba(29, 39, 51, .15); font-size: 22px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px;
}
.ssg-mute[aria-pressed="true"] { background: #eee6d6; }
@media (max-width: 440px) { .ssg-brand { font-size: 15px; white-space: nowrap; } .ssg-brand small { font-size: 10px; } }
@media (max-width: 370px) { .ssg-back { padding: 0 10px; font-size: 15px; } .ssg-brand { font-size: 13px; } }
.ssg-main { display: flex; flex-direction: column; gap: 16px; outline: none; }

/* headings */
.ssg-eyebrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #7a4a12;
  background: var(--straw); border-radius: 999px; padding: 6px 14px; border: 2px solid #fff;
}
.ssg-h1 { font-size: clamp(32px, 9vw, 50px); font-weight: 900; line-height: 1.05; color: var(--ink); text-shadow: 0 3px 0 #fff; outline: none; }
.ssg-lead { font-size: 19px; font-weight: 600; color: var(--ink); }

/* cards */
.ssg-card { background: var(--paper); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ssg-kicker { font-size: 14px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--barn); }
.ssg-h2 { font-size: clamp(22px, 6vw, 30px); font-weight: 900; line-height: 1.15; outline: none; }
.ssg-text { font-size: 17px; color: var(--ink-2); }
.ssg-small { font-size: 15px; color: var(--ink-2); }

/* host bubble (Spike or Suzy) */
.ssg-host { display: flex; align-items: flex-start; gap: 10px; border-radius: 18px; padding: 10px 12px; border: 3px solid; }
.ssg-host--spike { background: #f1eee9; border-color: #cfc6b8; }
.ssg-host--suzy { background: #fff3dc; border-color: #ecc98a; }
.ssg-host__badge { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; border: 3px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.ssg-host--spike .ssg-host__badge { background: linear-gradient(135deg, var(--spike) 55%, var(--spike-tan) 56%); }
.ssg-host--suzy .ssg-host__badge { background: linear-gradient(135deg, var(--suzy) 55%, var(--suzy-amber) 56%); }
.ssg-host__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ssg-host__who { font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.ssg-host__text { font-size: 18px; font-weight: 700; }
.ssg-hear {
  flex: none; min-width: 48px; min-height: 48px; border-radius: 999px; border: 3px solid #fff; background: #fff;
  box-shadow: 0 3px 0 rgba(29, 39, 51, .15); font-size: 22px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; font-weight: 900;
}
.ssg-hear[disabled] { opacity: .45; cursor: default; }

/* buttons */
.ssg-btn {
  min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center;
  border-radius: 999px; border: 3px solid rgba(0, 0, 0, .06); padding: 10px 22px; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 19px; letter-spacing: .02em; color: var(--ink); background: #fff; box-shadow: var(--shadow);
}
.ssg-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(29, 39, 51, .15); }
.ssg-btn[disabled] { opacity: .5; cursor: default; transform: none; }
.ssg-btn--primary { background: var(--barn); color: #fff; }
.ssg-btn--primary:hover:not([disabled]) { background: var(--barn-2); }
.ssg-btn--cta { background: linear-gradient(180deg, #ffd84d, #f4b400); color: #3b2500; border-color: #fff; }
.ssg-btn--ghost { background: rgba(255, 255, 255, .94); }
.ssg-btn--small { min-height: 48px; font-size: 16px; padding: 6px 16px; }
.ssg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ssg-actions > * { flex: 1 1 150px; }

/* level picker */
.ssg-levels { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .ssg-levels { grid-template-columns: repeat(3, 1fr); } }
.ssg-level {
  min-height: 88px; border-radius: 18px; border: 3px solid #d8cfbd; background: #fff; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; box-shadow: 0 3px 0 rgba(29, 39, 51, .12);
}
@media (hover: hover) { .ssg-level:hover { border-color: var(--barn); } }
.ssg-level__num { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--straw); color: #5a3500; font-weight: 900; font-size: 24px; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.1); }
.ssg-level__body { display: flex; flex-direction: column; min-width: 0; }
.ssg-level__name { font-weight: 900; font-size: 19px; line-height: 1.15; }
.ssg-level__desc { font-size: 15px; color: var(--ink-2); font-weight: 700; }
.ssg-level__stars { font-size: 15px; letter-spacing: .1em; }
.ssg-level.is-done { border-color: var(--green); background: #f3fbef; }

/* progress strip */
.ssg-progress { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 800; font-size: 15px; color: var(--ink-2); }
.ssg-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px 12px; border: 2px solid var(--line); }

/* HUD */
.ssg-hud { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ssg-hud__count { font-size: 17px; font-weight: 900; background: #fff; border-radius: 999px; padding: 8px 14px; }
.ssg-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.ssg-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #cfc6b8; }
.ssg-dot.is-done { background: var(--green); border-color: var(--green); }
.ssg-dot.is-now { background: var(--straw); border-color: #e0a800; }
.ssg-feedback { min-height: 28px; text-align: center; font-weight: 800; font-size: 18px; color: var(--ink-2); }
.ssg-feedback.is-good { color: var(--green); }
.ssg-feedback.is-try { color: #8a4b0f; }
.ssg-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* toast */
.ssg-toasts { position: fixed; left: 0; right: 0; bottom: 14px; z-index: 60; display: flex; justify-content: center; pointer-events: none; padding: 0 12px; }
.ssg-toast { max-width: 420px; width: 100%; background: #fff; border: 3px solid var(--straw); border-radius: 18px; padding: 10px 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); animation: ssg-drop .22s ease-out; }
.ssg-toast__title { font-weight: 900; font-size: 18px; }
.ssg-toast__desc { font-size: 16px; color: var(--ink-2); }
@keyframes ssg-drop { from { transform: translateY(12px); opacity: 0; } }

/* celebration */
.ssg-win { background: #fff8dc; border: 4px solid var(--straw); text-align: center; align-items: center; position: relative; overflow: hidden; }
.ssg-win__art { font-size: 72px; line-height: 1; animation: ssg-bounce 1s ease-in-out infinite alternate; }
.ssg-win__stars { font-size: 34px; letter-spacing: .1em; }
.ssg-win__reward { font-weight: 900; font-size: 18px; background: #fff; border-radius: 999px; padding: 8px 16px; border: 2px solid var(--straw); }
.ssg-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ssg-confetti span { position: absolute; top: -30px; font-size: 24px; animation: ssg-fall 2.6s linear forwards; }
@keyframes ssg-fall { to { transform: translateY(520px) rotate(300deg); opacity: 0; } }
@keyframes ssg-bounce { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes ssg-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg) scale(1.06); } 75% { transform: rotate(9deg) scale(1.06); } }
@keyframes ssg-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes ssg-pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.is-shake { animation: ssg-shake .35s ease-in-out 2; }
.is-hint { animation: ssg-wiggle .8s ease-in-out infinite; box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--suzy-amber) !important; }

.ssg-footer { margin-top: 24px; text-align: center; font-size: 14px; color: var(--ink-2); font-weight: 700; }
.ssg-screen { display: flex; flex-direction: column; gap: 16px; animation: ssg-in .25s ease-out; min-width: 0; }
@keyframes ssg-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.ssg-how { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
