:root {
  color: #19273b;
  background: #f4f7fb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  --muted: #52647a;
  --blue: #005fcb;
  --edge: #c8d7e8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
}
button, input {
  font: inherit;
}
button, a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #005fcb;
  outline-offset: 4px;
}
button[hidden], [hidden] {
  display: none !important;
}
a {
  color: var(--blue);
}
p {
  line-height: 1.6;
}
.masthead {
  max-width: 1280px;
  margin: auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #19273b;
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.6px;
}
.brand span {
  border-left: 1px solid var(--edge);
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -.2px;
}
.navigation-options {
  box-shadow: 0 5px 18px #33598408, inset 0 1px #fff;
}
.navigation-options > [aria-current=page], .navigation-options > [aria-pressed=true] {
  background: linear-gradient(155deg, #fff, #dcecff);
  box-shadow: inset 0 2px 1px #fff, inset 0 -2px 3px #31598618, 0 2px 5px #31598620;
  border-color: var(--edge);
}
.navigation-options > :disabled {
  color: #52647a;
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px 44px;
}
main:focus {
  outline: none;
}
.eyebrow {
  color: #586c82;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.5;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(38px, 4.7vw, 62px);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1.05;
  margin: 0 0 20px;
}
h2 {
  font-size: 32px;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin: 0;
}
h3 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -.02em;
}
.glass {
  border: 1px solid var(--edge);
  background: linear-gradient(145deg, #ffffffeb, #f4f8ffc9);
  box-shadow: inset 0 2px 2px #fff, inset 0 -1px 2px #3159860b, 0 10px 32px #31598609;
  border-radius: 26px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  margin: 25px 0 65px;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 24px;
}
.primary {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid #0057ba;
  border-radius: 17px;
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(165deg, #1878de, #005ac5);
  box-shadow: inset 0 1px 1px #ffffff65, 0 4px 8px #005fcb20;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}
.primary:hover {
  background: #0053b5;
}
.primary:active {
  transform: translateY(1px);
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-top: 20px;
  font-size: 12px;
}
.tiny-leaf {
  color: #497260;
  font-size: 19px;
}
.hero-garden {
  position: relative;
  height: 358px;
  border: 1px solid #d1dedd;
  border-radius: 36px;
  background: radial-gradient(ellipse at 50% 120%, #acc8a1 0 39%, transparent 39.4%), linear-gradient(#e8f0f4 0 62%, #d4e3c9 62%);
  box-shadow: inset 0 2px #fff, 0 18px 40px #4b6f7e0c;
  overflow: hidden;
  isolation: isolate;
}
.garden-tag {
  position: absolute;
  top: 26px;
  left: 26px;
  color: #49656a;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
}
.mole {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 240 / 210;
}
.mole-portrait {
  position: absolute;
  left: 7%;
  right: 7%;
  top: -1%;
  height: 113%;
  display: block;
  user-select: none;
  pointer-events: none;
  background: url('assets/mole-expressions.png') 0 0 / 300% 100% no-repeat;
}
.animal-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 93% 93%, 73% 99%, 27% 99%, 7% 93%, 0 84%);
}
.whacked[data-outcome=correct] .mole-portrait {
  background-position: 50% 0;
}
.whacked[data-outcome=mistake] .mole-portrait {
  background-position: 100% 0;
}
.mole-button .mole-portrait {
  left: 0;
  right: 0;
  height: 114%;
  top: var(--pose-y);
  background-image: url('assets/mole-pop-presets.png');
  background-size: 300% 200%;
  clip-path: inset(0 2%);
}
.mole-button[data-pose="1"] .mole-portrait {
  background-position: 50% 0;
}
.mole-button[data-pose="2"] .mole-portrait {
  background-position: 100% 0;
}
.mole-button[data-pose="3"] .mole-portrait {
  background-position: 0 100%;
}
.mole-button[data-pose="4"] .mole-portrait {
  background-position: 50% 100%;
}
.mole-button[data-pose="5"] .mole-portrait {
  background-position: 100% 100%;
}
.mole-button.whacked[data-outcome=correct] .mole-portrait {
  background-position: 50% 100%;
}
.mole-button.whacked[data-outcome=mistake] .mole-portrait {
  background-position: 0 0;
}
.word {
  position: absolute;
  left: 16%;
  right: 16%;
  top: auto;
  bottom: 15%;
  z-index: 3;
  line-height: 1;
  min-height: 28%;
  padding: 3px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e8ded0;
  border-radius: 12px;
  color: #202c3d;
  background: #fffdf6;
  box-shadow: 0 3px 0 #cdbb9f, 0 4px 8px #4f3f2a18;
  font-size: clamp(25px, 3.3vw, 42px);
  font-weight: 700;
  letter-spacing: .01em;
}
.hero-mole {
  position: absolute;
  width: 225px;
  bottom: 64px;
}
.hero-mole.first {
  left: 8px;
  transform: rotate(-7deg);
  z-index: 2;
}
.hero-mole.second {
  right: 2px;
  width: 195px;
  bottom: 88px;
  transform: rotate(7deg);
  z-index: 1;
}
.hero-mole .word {
  font-size: 30px;
}
.garden-caption {
  position: absolute;
  bottom: 23px;
  width: 100%;
  text-align: center;
  color: #3c594b;
  font-size: 12px;
  font-weight: 550;
}
.cloud {
  position: absolute;
  border-radius: 50%;
  background: #fff9;
  width: 85px;
  height: 24px;
  top: 86px;
  right: 30px;
}
.cloud::before {
  content: '';
  position: absolute;
  width: 42px;
  height: 40px;
  left: 18px;
  bottom: 0;
  border-radius: 50%;
  background: #fff9;
}
.cloud-two {
  top: 104px;
  left: 18px;
  transform: scale(.6);
}
.flower {
  position: absolute;
  font-size: 39px;
  color: #faf5df;
  text-shadow: 0 2px #819c6d;
  bottom: 64px;
}
.flower-one {
  left: 22px;
}
.flower-two {
  right: 24px;
  bottom: 42px;
  font-size: 28px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.section-heading .eyebrow {
  margin-bottom: 8px;
}
.collection-tag {
  color: var(--muted);
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 11px;
  white-space: nowrap;
}
.section-note {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 24px;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.activity-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.activity-card:hover {
  border-color: #88b1de;
  box-shadow: inset 0 2px #fff, 0 10px 24px #31598615;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.vowel {
  display: grid;
  place-items: center;
  height: 60px;
  width: 60px;
  border-radius: 20px;
  border: 1px solid #c8dbea;
  color: #35658a;
  background: linear-gradient(145deg, #fff, #e1edf7);
  box-shadow: inset 0 2px #fff, 0 3px 5px #31598612;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}
.card-number {
  color: #6b7c90;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.card-label {
  color: #536b80;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.card-title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.035em;
  margin-bottom: 10px;
}
.card-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #dce5ef;
  margin-top: 22px;
  padding-top: 16px;
  font-size: 12px;
  font-weight: 650;
  color: var(--blue);
}
.card-bottom > span {
  font-size: 20px;
  font-weight: 400;
}
.library-note {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 0 0;
  color: #425e57;
  font-size: 13px;
}
.library-note > span {
  font-size: 30px;
}
.library-note p {
  margin: 4px 0;
  color: var(--muted);
}
footer {
  max-width: 1200px;
  margin: auto;
  padding: 24px 40px 30px;
  border-top: 1px solid #dce4ed;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.back {
  display: block;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 14px 0;
  font-size: 14px;
  min-height: 48px;
}
.back:hover {
  color: var(--blue);
}
.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 16px;
}
.lead strong {
  color: #20334d;
}
.listen {
  min-height: 44px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 10px 16px;
  color: var(--blue);
  background: #f7fbff;
  font-size: 14px;
  font-weight: 600;
}
.listen:disabled {
  color: var(--muted);
  opacity: .7;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 26px 0 0;
}
legend {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 12px;
}
.mode-options {
  display: grid;
  gap: 10px;
}
.mode-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #cbd8e6;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
}
.mode-options label:has(:checked) {
  border-color: #6497d0;
  background: #eaf3ff;
  box-shadow: inset 0 1px #fff;
}
.mode-options input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
  margin: 0;
}
.mode-options strong {
  display: block;
  font-size: 14px;
}
.mode-options small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}
.audio-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 16px 0 0;
}
.score {
  padding: 14px 26px;
  min-width: 120px;
  text-align: center;
  border-radius: 22px;
}
.score span {
  display: block;
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.score strong {
  display: block;
  font-size: 35px;
  font-weight: 700;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.patch-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 2px 12px;
  font-size: 12px;
  color: var(--muted);
}
.patch-info strong {
  color: #31485f;
}
.time-track {
  height: 4px;
  border-radius: 5px;
  background: #d7e4ee;
  margin: 0 0 10px;
  overflow: hidden;
}
#time-fill {
  height: 100%;
  background: #367ab7;
  transform-origin: left;
}
.hole {
  position: relative;
  min-width: 0;
  width: min(100%, calc((100svh - 420px) * .4));
  justify-self: center;
  aspect-ratio: 240 / 290;
}
.mole-slot {
  position: absolute;
  inset: 25% 0 0;
}
.mole-button .word {
  bottom: 100%;
  margin-bottom: 4px;
  border-radius: 15px;
}
.mole-button .word::after {
  content: '';
  position: absolute;
  left: 45%;
  bottom: -7px;
  width: 11px;
  height: 11px;
  transform: rotate(45deg);
  border-right: 2px solid #e8ded0;
  border-bottom: 2px solid #e8ded0;
  background: #fffdf6;
}
.burrow-rim {
  position: absolute;
  z-index: 2;
  bottom: -1%;
  left: 1%;
  width: 98%;
  height: 25%;
  border-bottom: 7px solid #94734F;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 3px 0 #7F9E58;
}
.whack {
  display: none;
  position: absolute;
  z-index: 4;
  width: 90%;
  /* The mallet's lower striking face meets the crown at 48% across and 13% down the mole. */
  left: 24%;
  top: -41%;
  transform-origin: 84% 88%;
  pointer-events: none;
}
.whack svg {
  display: block;
  width: 100%;
}
.whacked .whack {
  display: block;
  animation: hammer-strike .5s ease-out forwards;
}
.mole-button.leaving .mole-portrait {
  animation: burrow-down .45s ease-in forwards;
}
.mole-button.leaving .word {
  animation: label-down .45s ease-in forwards;
}
.mole-button.retreat .animal-window {
  animation: hit-retreat .7s ease-in forwards;
}
.mole-button.retreat .word {
  animation: label-hit .7s ease-in forwards;
}
.board-paused *, .board-paused *::after {
  animation-play-state: paused !important;
}
@keyframes hammer-strike {
  0% {
    opacity: 1;
    transform: translateY(-18%) rotate(32deg);
  }
  35% {
    opacity: 1;
    transform: none;
  }
  75% {
    opacity: 1;
    transform: translateY(-7%) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-12%) rotate(14deg);
  }
}
@keyframes hit-retreat {
  0%, 65% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(100%);
  }
}
@keyframes label-down {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}
@keyframes label-hit {
  0%, 55% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}
@keyframes burrow-down {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}
.mole-button.retreat {
  animation: retreat .7s ease-in forwards;
  pointer-events: none;
}
@keyframes retreat {
  0%, 80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mole-button.retreat {
    opacity: 1;
  }
  .whacked .whack, [data-outcome=correct] .hit-burst {
    display: none;
  }
}
.soil {
  position: absolute;
  width: 97%;
  height: 26%;
  bottom: -1%;
  left: 1.5%;
  border-radius: 50%;
  background: #59483B;
  border: 5px solid #94734F;
  box-shadow: 0 3px 0 #7F9E58;
}
.mole-button {
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  background: none;
  position: relative;
  margin-bottom: 8px;
  border-radius: 30%;
}
.mole-button .mole-portrait {
  animation: emerge .35s ease-out;
}
.mole-button .word {
  animation: label-up .35s ease-out;
}
.mole-button[data-phase=hold][data-hold=peek] .mole-portrait {
  animation: peek 4.6s ease-in-out infinite;
}
.mole-button[data-phase=hold][data-hold=lean] .mole-portrait {
  animation: lean 5.2s ease-in-out infinite;
}
.mole-button[data-phase=hold][data-hold=giggle] .mole-portrait {
  animation: giggle 3.8s ease-in-out infinite;
}
.mole-portrait {
  transform-origin: 50% 94%;
}
@keyframes peek {
  0%, 70%, 100% {
    transform: translateY(0);
  }
  82% {
    transform: translateY(3%);
  }
}
@keyframes lean {
  0%, 65%, 100% {
    transform: rotate(0);
  }
  80% {
    transform: rotate(-3deg);
  }
  90% {
    transform: rotate(2deg);
  }
}
@keyframes giggle {
  0%, 70%, 88%, 100% {
    transform: translateY(0);
  }
  76%, 84% {
    transform: translateY(2%);
  }
  80% {
    transform: translateY(-1%);
  }
}
@keyframes label-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mole-button:hover:not(:disabled) .word {
  border-color: #687e8d;
}
.mole-button:active:not(:disabled) .word {
  transform: translateY(2px);
}
.mole-button:disabled {
  opacity: 1;
}
.hit-result {
  display: none;
  position: absolute;
  z-index: 5;
  bottom: 65%;
  left: 50%;
  width: max(84px, calc(100% + 24px));
  height: clamp(84px, 112%, 190px);
  transform: translateX(-50%);
  font-size: clamp(24px, 3.2cqw, 36px);
  font-weight: 900;
  pointer-events: none;
  text-shadow: 0 2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 -2px 0 #fff;
}
.hit-mark {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 1;
  transform: rotate(-10deg);
  animation: answer-pop .65s cubic-bezier(.2, .8, .3, 1) both;
}
.hit-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hit-result > span:not(.hit-mark) {
  position: absolute;
  right: -5%;
  bottom: 2%;
  transform: rotate(9deg);
  animation: points-pop .7s ease-out both;
}
.whacked .word {
  visibility: hidden;
}
.whacked .mole-portrait {
  animation: none;
}
.whacked[data-outcome=correct] .mole {
  animation: mole-cheer .65s ease-out;
}
.whacked[data-outcome=mistake] .mole {
  animation: mole-shake .65s ease-out;
}
.hit-burst {
  display: none;
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}
[data-outcome=correct] .hit-burst {
  display: block;
}
.hit-burst::before {
  content: '';
  position: absolute;
  inset: -10% -12%;
  background: #ffe55b;
  clip-path: polygon(50% 0, 59% 25%, 80% 8%, 78% 35%, 100% 32%, 84% 52%, 100% 72%,
    73% 72%, 77% 100%, 54% 83%, 35% 100%, 32% 76%, 6% 87%, 17% 59%, 0 43%, 28% 36%, 24% 9%, 43% 25%);
  animation: comic-flash .4s ease-out both;
}
.hit-burst i {
  position: absolute;
  left: 42%;
  top: 35%;
  color: #ffe05a;
  font-style: normal;
  font-size: clamp(30px, 5cqw, 60px);
  text-shadow: 0 3px 0 #8b5728, 2px 0 0 #8b5728, -2px 0 0 #8b5728;
  animation: hit-celebrate .65s ease-out forwards;
}
.hit-burst i:nth-child(even) {
  color: #7ce8de;
}
@keyframes answer-pop {
  0% {
    opacity: 0;
    transform: translateY(15%) rotate(15deg) scale(.35);
  }
  22% {
    opacity: 1;
    transform: translateY(-6%) rotate(-15deg) scale(1.18);
  }
  45% {
    transform: rotate(-6deg) scale(.94);
  }
  65%, 100% {
    opacity: 1;
    transform: rotate(-10deg) scale(1);
  }
}
@keyframes points-pop {
  from {
    opacity: 0;
    transform: translateY(30%) rotate(-12deg) scale(.5);
  }
  35%, 100% {
    opacity: 1;
    transform: rotate(9deg) scale(1);
  }
}
@keyframes comic-flash {
  from {
    opacity: 0;
    transform: scale(.5) rotate(-15deg);
  }
  30% {
    opacity: .9;
  }
  to {
    opacity: 0;
    transform: scale(1.2) rotate(5deg);
  }
}
@keyframes hit-celebrate {
  from {
    opacity: 0;
    transform: rotate(calc(var(--ray) * 60deg)) translateX(12px) scale(.4);
  }
  25% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: rotate(calc(var(--ray) * 60deg)) translateX(clamp(52px, 9cqw, 120px)) scale(1);
  }
}
@keyframes mole-cheer {
  0%, 100% {
    transform: none;
  }
  25% {
    transform: translateY(12%) scale(1.18, .78) rotate(-5deg);
  }
  55% {
    transform: translateY(-12%) scale(.88, 1.13) rotate(5deg);
  }
}
@keyframes mole-shake {
  0%, 100% {
    transform: none;
  }
  20%, 50% {
    transform: translateX(-8%) rotate(-9deg) scale(1.05, .94);
  }
  35%, 65% {
    transform: translateX(8%) rotate(9deg) scale(1.05, .94);
  }
  80% {
    transform: translateX(-4%) rotate(-4deg);
  }
}
[data-outcome=correct] .hit-result {
  display: block;
  color: #14813b;
}
[data-outcome=mistake] .hit-result {
  display: block;
  color: #bf252f;
}
.game-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}
#feedback {
  font-size: 14px;
  color: #31485f;
  margin: 16px 0;
}
.pause-icon {
  display: block;
  font-size: 32px;
  color: var(--blue);
  margin-bottom: 12px;
}
.results {
  margin-top: 30px;
}
.results h1 {
  font-size: clamp(36px, 4.7vw, 54px);
}
.result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px;
  margin-top: 26px;
}
.result-stats > div {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  border-right: 1px solid #cbd8e6;
  gap: 5px;
}
.result-stats > div:last-child {
  border: 0;
}
.result-stats strong {
  font-size: 34px;
  letter-spacing: -.04em;
}
.result-stats small {
  font-size: 16px;
  color: var(--muted);
}
.result-stats span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.result-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 40px;
}
.review-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.review-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.review-patch {
  padding: 24px;
}
.review-patch ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.review-word {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #dbe4ec;
  min-height: 50px;
}
.review-word button {
  min-width: 90px;
  min-height: 44px;
  text-align: left;
  font-size: 21px;
  font-weight: 650;
  background: none;
  border: 0;
  padding: 5px 0;
}
.review-word button > span {
  font-size: 13px;
  color: var(--muted);
  margin-left: 12px;
}
.review-word button:disabled > span {
  display: none;
}
.review-word > span {
  font-size: 11px;
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 9px;
}
.review-word.correct > span {
  background: #e4f1e9;
  color: #21553f;
}
.review-word.mistake > span, .review-word.missed > span {
  background: #fff0da;
  color: #76512b;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  padding: 12px;
  background: #fff;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
@keyframes emerge {
  from {
    opacity: 1;
    transform: translateY(90%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1000px) {
  .hero {
    gap: 30px;
  }
  .hero-garden {
    height: 330px;
  }
  .hero-mole.first {
    width: 195px;
    left: -10px;
  }
  .hero-mole.second {
    width: 170px;
    right: -15px;
  }
  .activity-grid {
    gap: 14px;
  }
  .activity-card {
    padding: 20px;
  }
  .card-title {
    font-size: 20px;
  }
}
@media (max-width: 760px) {
  .hole {
    width: 100%;
  }
  .masthead {
    padding: 20px 24px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 26px;
  }
  main {
    padding: 8px 24px 32px;
  }
  .hero {
    gap: 25px;
    margin-bottom: 40px;
  }
  h1 {
    font-size: 42px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }
  .hero-garden {
    height: 290px;
  }
  .hero-mole.first {
    width: 180px;
    bottom: 60px;
    left: -12px;
  }
  .hero-mole.second {
    width: 140px;
    bottom: 95px;
    right: -18px;
  }
  .garden-tag {
    font-size: 7px;
    left: 15px;
  }
  .garden-caption {
    font-size: 10px;
  }
  .section-heading {
    align-items: start;
  }
  .collection-tag {
    display: none;
  }
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .result-stats {
    padding: 20px 8px;
  }
  .result-stats > div {
    padding: 0 14px;
  }
  footer {
    padding: 22px 24px;
  }
}
@media (max-width: 540px) {
  .masthead {
    padding: 18px 18px 12px;
    gap: 16px;
  }
  .brand {
    width: 100%;
    justify-content: space-between;
    font-size: 27px;
  }
  .brand span {
    font-size: 12px;
  }
  .navigation-options {
    width: 100%;
    justify-content: space-between;
  }
  .navigation-options > button {
    flex: 1 1 auto;
    font-size: 13px;
    padding: 8px 10px;
  }
  main {
    padding: 12px 18px 30px;
  }
  .hero {
    grid-template-columns: 1fr;
    margin: 20px 0 36px;
    gap: 26px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
    max-width: 360px;
  }
  .hero-garden {
    height: 255px;
  }
  .hero-mole.first {
    width: 190px;
    left: 18px;
    bottom: 44px;
  }
  .hero-mole.second {
    width: 165px;
    right: 8px;
    bottom: 55px;
  }
  .garden-tag {
    font-size: 8px;
    left: 22px;
    top: 20px;
  }
  .garden-caption {
    bottom: 17px;
  }
  .cloud {
    top: 50px;
  }
  .cloud-two {
    top: 60px;
  }
  h2 {
    font-size: 29px;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .activity-card {
    padding: 22px;
  }
  .card-top {
    margin-bottom: 18px;
  }
  .card-title {
    font-size: 24px;
  }
  .card-description {
    font-size: 14px;
  }
  .library-note {
    align-items: start;
  }
  footer {
    padding: 20px 18px;
    flex-direction: column;
    font-size: 10px;
  }
  .score {
    min-width: 76px;
    padding: 12px;
    border-radius: 18px;
  }
  .score span {
    font-size: 7px;
  }
  .score strong {
    font-size: 29px;
  }
  .patch-info {
    font-size: 10px;
    margin-top: 14px;
  }
  .word {
    font-size: 26px;
    border-radius: 8px;
    left: 12%;
    right: 12%;
    bottom: 0;
  }
  .soil {
    border-width: 4px;
  }
  .game-bottom {
    gap: 10px;
    align-items: center;
  }
  #feedback {
    font-size: 12px;
  }
  .game-bottom .primary {
    font-size: 12px;
    min-width: 120px;
    gap: 5px;
    padding: 12px;
  }
  .results {
    margin-top: 22px;
  }
  .results .lead {
    font-size: 16px;
  }
  .result-stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
    padding: 22px 10px;
  }
  .result-stats > div:nth-child(2) {
    border: 0;
  }
  .result-stats strong {
    font-size: 30px;
  }
  .result-stats span {
    font-size: 11px;
  }
  .result-actions {
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  .review-heading {
    flex-direction: column;
    gap: 10px;
  }
  .review-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .review-patch {
    padding: 20px;
  }
}
@media (min-width: 761px) and (max-height: 850px) {
  .hole {
    width: min(100%, calc((100svh - 390px) * .4));
  }
}
@media (max-width: 360px) {
  .hero-mole.first {
    width: 160px;
    left: 8px;
  }
  .hero-mole.second {
    width: 140px;
    right: 0;
    bottom: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) {
  .glass {
    background: #fff;
    border-color: #52647a;
    box-shadow: none;
  }
}
@media (forced-colors: active) {
  .glass, .primary, .word, .mode-options label, .score {
    border: 2px solid ButtonText;
  }
  .primary, .word {
    background: Canvas;
    color: CanvasText;
  }
  .mole-portrait {
    forced-color-adjust: none;
  }
  .mole-button {
    border: 1px solid ButtonText;
  }
}

/* Burrow theatre: the viewport and earth stay still; each transform owns one job. */
.stage .hole .soil { z-index: 0; background: radial-gradient(ellipse at 50% 20%, #1b1718 12%, #382823 60%, #624435 90%); border: 4px solid #997346; box-shadow: inset 0 5px 8px #0009, 0 5px 0 #537b45; }
.stage .burrow-rim { z-index: 3; height: 17%; bottom: -1%; background: linear-gradient(#b19260, #7f5a3a); border: 0; border-radius: 8% 8% 50% 50% / 14% 14% 80% 80%; box-shadow: inset 0 3px #d7b980, 0 4px #4e7545; }
.stage .mole-slot { z-index: 1; }
.stage .mole-button { overflow: visible; }
.stage .mole-button .mole { animation: none; }
.stage .mole-button .animal-window { animation: none; transform: none; clip-path: polygon(0 0,100% 0,100% 84%,93% 93%,73% 99%,27% 99%,7% 93%,0 84%); }
.stage :is(.mole-rise,.mole-impact,.mole-idle) { display: block; position: absolute; inset: 0; transform-origin: 50% 94%; }
.stage .mole-rise { animation: burrow-emerge .8s both; }
.stage .mole-button .mole-portrait { animation: none !important; transform: none; }
.stage [data-phase=hold] .mole-idle { animation: burrow-personality 4s ease-in-out infinite; }
.stage [data-hold=lean] .mole-idle { animation-name: burrow-lean; }
.stage [data-phase=retreat] .mole-rise { animation: burrow-hide .65s ease-in both; }
.stage .whacked .animal-window { animation: none; }
.stage .whacked .mole-rise { animation: burrow-hide .5s 1s ease-in forwards; }
.stage .whacked .mole-impact { animation: comic-squish 1s both; }
.stage .whacked .mole-idle { animation: none; }
.stage .mole-button .word { animation: word-arrive .8s both; }
.stage .mole-button.leaving .word { animation: word-leave .65s both; }
.stage .whacked .word { visibility: visible; animation: word-leave .35s .35s both; }
.stage .whacked .whack { width: 90%; top: 6%; left: 24%; animation: crown-contact 1.15s both; }
.stage .whacked .hit-result { display: block; width: 48%; height: 58%; left: 85%; bottom: 54%; z-index: 6; font-size: 18px; }
.stage .hit-result > span:not(.hit-mark) { bottom: -15%; right: 0; }
.stage .hit-mark { animation: answer-pop .8s .22s both; }
.stage .whacked .hit-burst { display: block; z-index: 2; }
.stage .hit-burst::before { inset: 12% 10%; background: radial-gradient(ellipse, #fffcefb0, #fff0 68%); clip-path: none; animation: contact-puff .7s .18s both; }
.stage .hit-burst i { animation-delay: .18s; font-size: 19px; }
.stage .hole:has(.whacked) .soil { animation: soil-rattle .55s .18s both; }
.stage .board.impact-bump { animation: classroom-bump .45s .18s both; }
.stage .board-paused *, .stage .board-paused *::before, .stage .board-paused *::after, .stage .board-paused { animation-play-state: paused !important; }
.stage .group-setting { display: block; margin-top: 12px; font-size: 13px; }
.stage .group-setting select { width: 100%; padding: 10px; margin-top: 6px; border-radius: 10px; border: 1px solid #b5c8ab; background: #fffaf0; color: #294942; }
.stage .level-steps { gap: 4px; }
.stage .level-steps span { flex: 1; min-width: 0; padding: 4px; font-size: 10px; }
@keyframes burrow-emerge { 0% { transform: translateY(105%); } 22% { transform: translateY(75%) rotate(-4deg); } 38% { transform: translateY(75%) rotate(2deg); } 75% { transform: translateY(-7%) scaleY(1.04); } 100% { transform: none; } }
@keyframes burrow-hide { from { transform: translateY(0); } 25% { transform: translateY(-4%) scaleX(1.05); } to { transform: translateY(110%) scaleX(.92); } }
@keyframes comic-squish { 0%,16% { transform: none; } 24%,32% { transform: translateY(13%) scale(1.24,.64) rotate(-4deg); } 46% { transform: scale(.91,1.1) rotate(7deg); } 60% { transform: scale(1.06,.94) rotate(-6deg); } 76% { transform: scale(.98,1.03) rotate(3deg); } 90%,100% { transform: none; } }
@keyframes crown-contact { 0% { opacity: 1; transform: translate(5%,-22%) rotate(38deg); } 15% { transform: translate(3%,-14%) rotate(25deg); } 22%,34% { opacity: 1; transform: none; } 55% { opacity: 1; transform: translate(5%,-14%) rotate(16deg); } 80% { opacity: .95; transform: translate(10%,-20%) rotate(25deg); } 100% { opacity: 0; transform: translate(15%,-30%) rotate(35deg); } }
@keyframes burrow-personality { 0%,65%,100% { transform: none; } 75% { transform: translateY(3%) scaleX(1.02); } 85% { transform: rotate(2deg); } }
@keyframes burrow-lean { 0%,55%,100% { transform: none; } 72% { transform: rotate(-5deg); } 86% { transform: rotate(3deg); } }
@keyframes word-arrive { 0%,45% { opacity: 0; transform: translateY(9px); } 80%,100% { opacity: 1; transform: none; } }
@keyframes word-leave { to { opacity: 0; transform: translateY(12px); } }
@keyframes contact-puff { from { opacity: 0; transform: scale(.3); } 20% { opacity: .8; } to { opacity: 0; transform: scale(1.7); } }
@keyframes soil-rattle { 20% { transform: scaleX(1.08) translateX(-2%); } 40% { transform: scaleX(.96) translateX(2%); } 60% { transform: scaleX(1.04); } 100% { transform: none; } }
@keyframes classroom-bump { 0%,100% { translate: 0 0; } 20% { translate: 0 4px; } 45% { translate: -3px -2px; } 70% { translate: 2px 1px; } }
@media (prefers-reduced-motion: reduce) {
  .stage .board, .stage .board * { animation: none !important; translate: none !important; }
  .stage [data-phase=rise] .mole-rise { transform: translateY(35%); }
  .stage [data-phase=retreat] .mole-rise { transform: translateY(75%); }
  .stage .whacked .mole-impact { transform: scale(1.1,.8); }
  .stage .whacked .whack { opacity: 1; }
  .stage .whacked .hit-burst { display: none; }
}
