@import url("motion.css");
/* Game Kit 0.4.0 • shared styles; keep game-specific CSS outside this file. */
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/baloo-2-regular.woff') format('woff'); }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/baloo-2-bold.woff') format('woff'); }
:root {
  color-scheme: dark;
  --bg: #131b26;
  --surface: #1c2938;
  --raised: #26374a;
  --line: #3c5066;
  --text: #f3f6fa;
  --muted: #adbed0;
  --accent: #a5edab;
  --accent-edge: #579965;
  --accent-ink: #142b21;
  --error: #ffb7ac;
  --space: 1rem;
  font-family: 'Baloo 2', ui-rounded, sans-serif;
  font-size: 100%;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: .25em; }
button, .button { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: 1.25rem; }
small { font-size: .875rem; }
.shell {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}
.stack { display: grid; gap: var(--space); }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space); }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.game { width: min(100%, 46rem); margin: clamp(2rem, 6vh, 4rem) auto; }
.game > header { text-align: center; margin-bottom: 2rem; }
.button {
  --button-edge: var(--line);
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 3.25rem; padding: .7rem 1.4rem;
  border: 2px solid transparent; border-radius: 1rem;
  background: var(--raised); color: var(--text);
  box-shadow: 0 4px 0 var(--button-edge);
  font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 60ms ease;
}
.button.secondary { border-color: var(--line); }
.button.primary { --button-edge: var(--accent-edge); background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 var(--button-edge); }
.button:disabled { border-color: transparent; opacity: .4; cursor: not-allowed; }
@media (hover: hover) { .button:hover:not(:disabled) { filter: brightness(1.08); } }
.choices { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.choice { position: relative; display: flex; min-width: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .button { width: 100%; min-height: 4rem; font-size: 1.25rem; }
.choice input:checked + .button { --button-edge: var(--accent-edge); background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 var(--button-edge); }
.choice input:checked + .button::after { content: "✓"; margin-left: .5rem; font-size: 1rem; }
.button:active:not(:disabled), .choice:active input + .button, .choice input:active + .button, .button[data-pressed], .choice input + .button[data-pressed] { transform: translateY(3px); box-shadow: 0 1px 0 var(--button-edge); }
.choice input:focus-visible + .button { outline: 3px solid var(--accent); outline-offset: 5px; }
.feedback { min-height: 1.5em; font-weight: 700; }
.feedback[data-tone='success'] { color: var(--accent); }
.feedback[data-tone='error'] { color: var(--error); }
progress { appearance: none; display: block; width: 100%; height: .65rem; border: 0; border-radius: 1rem; overflow: hidden; background: var(--raised); color: var(--accent); }
progress::-webkit-progress-bar { background: var(--raised); }
progress::-webkit-progress-value { background: var(--accent); border-radius: 1rem; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 1rem; }
@media (max-width: 30rem) {
  .game { margin-block: 2rem; }
  .game footer .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
