/*!
 * Solfege Scoops v2 — the cover's beach over the same game (with js/kid-kit.js).
 * Colours from the cover (covers/solfege-scoops/scene.js): sky #8fd6f4, dunes
 * #fde8c4 / #f4d79d. The engine draws the same flat world during play
 * (window.SCOOPS_SKIN = "v2"); this file restyles the DOM on top of it.
 */
body.is-v2 { background: #8fd6f4; }
body.is-v2 .ss-play { background: #8fd6f4; }

/* the game's own menu stays in the page (the kit presses its buttons) but is never seen */
html.kk-menu-on body.is-v2 { overflow: hidden; }
body.is-v2 #ssMenu { visibility: hidden; background: none; }

/* Rob's cone and scoops on the Scoops! button */
body.is-v2 .kk-btn { container-type: inline-size; }
body.is-v2 .kk-ico .v2-cone-ico {
  width: auto; height: 112px; height: 54cqw; margin-top: -12cqw;
  overflow: visible; filter: drop-shadow(0 4px 0 rgba(27, 35, 62, 0.22));
}

/* the hero's cone rides C's lean (it is held by the rig) */
.v2-hero { z-index: 1; }

/* a locked stone that isn't reached yet: a little "not yet" shake */
.kk-stone.kk-nope { animation: v2-nope 0.36s ease-in-out; }
@keyframes v2-nope { 25% { translate: calc(-50% - 6px) -50%; } 75% { translate: calc(-50% + 6px) -50%; } }

/* the game's names row, moved into the grown-ups sheet, wears the kit's pills */
.kk-sheet .ss-labels { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.kk-sheet .ss-pill {
  appearance: none; border: 2px solid #d5dced; background: #fff; color: #1b233e;
  font: 900 14px/1 Nunito, system-ui, sans-serif; padding: 10px 16px; border-radius: 999px; min-height: 44px; cursor: pointer;
}
.kk-sheet .ss-pill[aria-pressed="true"] { background: #1b233e; border-color: #1b233e; color: #fff; }
.kk-sheet .kk-hint b { color: #1b233e; }

/* ── Play: light HUD pills on the flat sky ──────────────────────────────── */
body.is-v2 .ss-hearts,
body.is-v2 .ss-count,
body.is-v2 .ss-ticket {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 0 rgba(27, 35, 62, 0.12);
}
body.is-v2 .ss-count {
  flex-direction: row; align-items: baseline; gap: 7px;
  min-width: 0; padding: 6px 14px 7px; border-radius: 999px;
}
body.is-v2 .ss-count b { font-family: "Grobold", "Nunito", system-ui, sans-serif; font-weight: 400; font-size: 26px; color: #1b233e; }
body.is-v2 .ss-count small { color: #6a7392; }
body.is-v2 .ss-note { box-shadow: 0 2px 0 rgba(27, 35, 62, 0.18); }
body.is-v2 .ss-ticket-cone { font-size: 20px; }

/* big words in Grobold small caps, like the title */
body.is-v2 .ss-banner {
  font-family: "Grobold", "Nunito", system-ui, sans-serif; font-weight: 400;
  font-variant-caps: small-caps; letter-spacing: 0;
  text-shadow: 0 0.07em 0 rgba(27, 35, 62, 0.32);
}
body.is-v2 .ss-toast {
  background: rgba(255, 255, 255, 0.96); color: #1b233e;
  box-shadow: 0 4px 0 rgba(27, 35, 62, 0.14);
}

/* ── Results: a soft card, a Grobold title, chunky buttons ──────────────── */
body.is-v2 .ss-veil { background: rgba(27, 35, 62, 0.34); }
body.is-v2 .ss-card {
  border-radius: 32px; padding: 24px 22px 16px;
  background: #fdfbf6;
  box-shadow: 0 20px 50px rgba(27, 35, 62, 0.3);
}
body.is-v2 .ss-card h2 {
  font-family: "Grobold", "Nunito", system-ui, sans-serif; font-weight: 400;
  font-variant-caps: small-caps; letter-spacing: 0; line-height: 1.05;
  font-size: clamp(30px, 7vw, 40px); color: #ea6ba3;
  text-shadow: 0 0.07em 0 #b8487c;
}
body.is-v2 .ss-big span { font-family: "Grobold", "Nunito", system-ui, sans-serif; font-weight: 400; color: #1b233e; }
body.is-v2 .ss-card button { border-radius: 999px; }
body.is-v2 .ss-next { background: #6ab845; box-shadow: 0 5px 0 #4c8f30; }
body.is-v2 .ss-next:hover { background: #62ad3f; }
body.is-v2 .ss-again { background: #009999; color: #fff; box-shadow: 0 5px 0 #007373; }
body.is-v2 .ss-menu-btn { color: #6a7392; }

/* a phone held sideways: the card fits the short screen (Play again beside Next) */
@media (max-height: 520px) and (orientation: landscape) {
  body.is-v2 .ss-card { width: min(560px, 100%); padding: 12px 18px 8px; }
  body.is-v2 .ss-card h2 { font-size: 28px; }
  body.is-v2 .ss-stars { font-size: 28px; margin: 0; }
  body.is-v2 .ss-big { margin: 0; }
  body.is-v2 .ss-big span { font-size: 38px; }
  body.is-v2 .ss-stats { margin: 4px 0; }
  body.is-v2 .ss-noterow { margin: 2px 0 4px; }
  body.is-v2 .ss-next, body.is-v2 .ss-again { display: inline-block; width: calc(50% - 12px); min-height: 50px; margin: 6px 2px 0; vertical-align: top; }
  body.is-v2 .ss-menu-btn { min-height: 40px !important; margin-top: 4px; }
}

/* a phone held sideways: the map is short, so the stones shrink to keep their gaps */
@media (max-height: 500px) and (orientation: landscape) {
  body.is-v2 .kk-stone { width: 62px; border-width: 4px; }
  body.is-v2 .kk-num { font-size: 26px; }
  body.is-v2 .kk-stone .kk-lock { width: 24px; height: 24px; }
  body.is-v2 .kk-go { width: 32px; height: 32px; right: -10px; top: -10px; }
}
