:root {
  --ink: #2d2b25;
  --muted: #665f50;
  --paper: #fffaf0;
  --leaf: #2f7d4a;
  --leaf-dark: #245d3b;
  --yellow: #f6b833;
  --orange: #d88427;
  --chalk: #263133;
  --cream: #fff3c7;
  --line: #3f3527;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 176px;
}

body {
  margin: 0;
  padding-top: 89px;
  color: var(--ink);
  font-family: "Noto Sans TC", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(242, 184, 70, 0.12), transparent 28rem),
    radial-gradient(circle at 80% 25%, rgba(66, 134, 82, 0.1), transparent 24rem),
    linear-gradient(90deg, rgba(89, 68, 43, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(89, 68, 43, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 22px 22px, 22px 22px, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    radial-gradient(circle, rgba(45, 43, 37, 0.34) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px);
  background-position: 0 0, 8px 10px;
  background-size: 18px 18px, 24px 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0;
  transform: translateX(-50%);
  padding: 12px 16px;
  border: 2px solid rgba(63, 53, 39, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 10px 28px rgba(55, 42, 28, 0.1);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  font-family: "Nunito", sans-serif;
  box-shadow: 2px 3px 0 rgba(63, 53, 39, 0.28);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--ink);
  background: #ffe5a1;
}

.site-nav .trial-nav-link {
  position: relative;
  color: #2f7d4a;
}

.site-nav .trial-nav-link::before,
.site-nav .trial-nav-link::after {
  position: absolute;
  color: #f2bd2f;
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(63, 53, 39, 0.16);
  pointer-events: none;
  animation: trialStarTwinkle 1.8s ease-in-out infinite;
}

.site-nav .trial-nav-link::before {
  content: "★";
  top: -5px;
  right: 0;
}

.site-nav .trial-nav-link::after {
  content: "✦";
  bottom: -4px;
  left: 2px;
  font-size: 10px;
  animation-delay: 0.45s;
}

@keyframes trialStarTwinkle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.82) rotate(-8deg);
  }

  45% {
    opacity: 1;
    transform: scale(1.16) rotate(8deg);
  }
}

.section-anchor {
  scroll-margin-top: 176px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding: 54px 16px 8px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(880px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #7c633a;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.section-kicker {
  margin: 0 0 8px;
  color: #79582a;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 3px 4px 0 rgba(246, 184, 51, 0.32);
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(46px, 7.4vw, 86px);
  line-height: 0.96;
}

.hero-subtitle {
  width: min(690px, 100%);
  margin: 0 auto;
  color: #4f4638;
  font-size: clamp(18px, 2.25vw, 26px);
  font-weight: 700;
  line-height: 1.72;
}


@media (max-width: 860px) {
  .hero-copy {
    width: min(620px, 100%);
  }

  .hero-subtitle {
    width: min(560px, 100%);
    font-size: clamp(18px, 3.2vw, 22px);
    line-height: 1.68;
  }
}

@media (max-width: 560px) {
  .eyebrow {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: clamp(46px, 14.6vw, 58px);
    line-height: 0.94;
  }

  .hero-subtitle {
    width: min(334px, 100%);
    font-size: 19px;
    line-height: 1.66;
    font-weight: 700;
  }
}
.jungle-stage {
  position: relative;
  width: min(1040px, 100%);
  height: 430px;
  margin: 34px auto 0;
}

.hills {
  position: absolute;
  right: 40px;
  bottom: 52px;
  left: 40px;
  height: 180px;
  border-radius: 55% 45% 0 0;
  background:
    radial-gradient(ellipse at 20% 95%, #81b86f 0 35%, transparent 36%),
    radial-gradient(ellipse at 58% 95%, #a6cd73 0 42%, transparent 43%),
    radial-gradient(ellipse at 88% 95%, #6fa65d 0 35%, transparent 36%);
  opacity: 0.92;
}

.sun {
  position: absolute;
  top: 78px;
  right: 16%;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: #ffe08a;
  box-shadow: 0 0 0 12px rgba(255, 224, 138, 0.26);
}

.palm {
  position: absolute;
  bottom: 62px;
  width: 56px;
  height: 230px;
  border-radius: 40px;
  background: repeating-linear-gradient(20deg, #a46f38 0 14px, #895628 15px 22px);
  transform-origin: bottom;
}

.palm::before,
.palm::after,
.palm span::before,
.palm span::after {
  position: absolute;
  width: 150px;
  height: 44px;
  border: 2px solid rgba(36, 93, 59, 0.45);
  border-radius: 90% 0 90% 0;
  background: linear-gradient(90deg, #2d914f, #9dbd56);
  content: "";
}

.palm::before {
  top: -28px;
  left: -84px;
  transform: rotate(28deg);
}

.palm::after {
  top: -44px;
  left: -24px;
  transform: rotate(-12deg);
}

.palm span::before {
  top: -12px;
  left: 4px;
  transform: rotate(42deg);
}

.palm span::after {
  top: -58px;
  left: -100px;
  transform: rotate(-44deg);
}

.palm-left {
  left: 2%;
  transform: rotate(-8deg);
}

.palm-right {
  right: 4%;
  transform: rotate(8deg) scale(0.86);
}

.vine {
  position: absolute;
  z-index: 3;
  width: 130px;
  height: 300px;
  border: solid var(--leaf);
  border-width: 0 0 0 5px;
  opacity: 0.78;
}

.vine::before,
.vine::after {
  position: absolute;
  width: 44px;
  height: 22px;
  border-radius: 100% 0 100% 0;
  background: #5b9d46;
  content: "";
}

.vine-left {
  left: 0;
  bottom: 34px;
  border-radius: 0 0 0 90%;
  transform: rotate(-26deg);
}

.vine-right {
  top: 0;
  right: -20px;
  border-radius: 0 0 90% 0;
  transform: rotate(24deg);
}

.vine-left::before {
  left: 24px;
  bottom: 72px;
  transform: rotate(32deg);
}

.vine-left::after {
  left: 32px;
  bottom: 160px;
  transform: rotate(-24deg);
}

.vine-right::before {
  right: 40px;
  top: 82px;
  transform: rotate(-18deg);
}

.vine-right::after {
  right: 54px;
  top: 170px;
  transform: rotate(38deg);
}

.paper-plane,
.cloud {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  color: #6b4a20;
  font-weight: 900;
}

.paper-plane {
  width: 74px;
  height: 42px;
  clip-path: polygon(0 45%, 100% 0, 76% 50%, 100% 100%);
  background: #e7c27a;
}

.plane-one {
  top: 128px;
  left: 27%;
  transform: rotate(-14deg);
}

.plane-two {
  top: 104px;
  right: 25%;
  transform: rotate(10deg);
}

.cloud {
  width: 78px;
  height: 56px;
  border: 2px solid rgba(63, 53, 39, 0.34);
  border-radius: 40px;
  background: #fffdfa;
  box-shadow: 16px -8px 0 #fffdfa, -10px 4px 0 #fffdfa;
}

.cloud-one {
  top: 74px;
  left: 20%;
}

.cloud-two {
  top: 192px;
  right: 14%;
}

.train {
  position: absolute;
  right: 7%;
  bottom: 88px;
  left: 13%;
  z-index: 7;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.engine,
.car {
  position: relative;
  border: 3px solid var(--line);
  box-shadow: 4px 6px 0 rgba(63, 53, 39, 0.24);
}

.engine {
  width: 250px;
  height: 136px;
  border-radius: 32px 24px 18px 22px;
  background: linear-gradient(#c77d36, #a8652f);
}

.engine::before {
  position: absolute;
  bottom: 10px;
  left: -72px;
  width: 78px;
  height: 90px;
  border: 3px solid var(--line);
  border-radius: 40px 16px 16px 40px;
  background: repeating-linear-gradient(90deg, #be7a38 0 10px, #e5b36c 11px 22px);
  content: "";
}

.engine::after {
  position: absolute;
  top: -72px;
  left: -32px;
  width: 46px;
  height: 78px;
  border: 3px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #302c27;
  content: "";
}

.window {
  position: absolute;
  top: 22px;
  right: 26px;
  display: grid;
  width: 76px;
  height: 72px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #f5d27a;
  font-size: 28px;
  font-weight: 900;
}

.wheel {
  position: absolute;
  bottom: -28px;
  width: 54px;
  height: 54px;
  border: 4px solid var(--line);
  border-radius: 50%;
  background: #75502f;
  box-shadow: inset 0 0 0 12px #d39a44;
}

.wheel-a {
  left: 32px;
}

.wheel-b {
  right: 32px;
}

.smoke {
  position: absolute;
  top: -98px;
  left: -52px;
  border: 2px solid rgba(63, 53, 39, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
}

.smoke-one {
  width: 44px;
  height: 44px;
}

.smoke-two {
  top: -132px;
  left: -84px;
  width: 34px;
  height: 34px;
}

.car {
  display: grid;
  width: 128px;
  height: 112px;
  place-items: center;
  border-radius: 18px 18px 20px 20px;
  background: #c77d36;
}

.car .wheel {
  left: 38px;
}

.car-tiger {
  background: #e59a3f;
}

.car-monkey {
  background: #b87541;
}

.car-giraffe {
  height: 148px;
  background: #e7b24d;
}

.animal-face {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: #fff5cf;
  font-size: 34px;
  font-weight: 900;
}

.track {
  position: absolute;
  right: 4%;
  bottom: 70px;
  left: 6%;
  z-index: 6;
  height: 16px;
  border: 3px solid var(--line);
  border-right: 0;
  border-left: 0;
  border-radius: 50%;
  transform: rotate(-1deg);
}

.track::after {
  position: absolute;
  inset: 6px 0 auto;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 20px, transparent 20px 38px);
  content: "";
}

.flower {
  position: absolute;
  z-index: 8;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #f4c542 0 25%, #df6d45 26% 100%);
  box-shadow: -24px 12px 0 #e88943, 24px 10px 0 #ecb342;
}

.flower-a {
  bottom: 38px;
  left: 2%;
}

.flower-b {
  right: 3%;
  bottom: 42px;
}

.intro,
.highlights,
.freebie,
.games {
  position: relative;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  text-align: center;
}

.intro-inner {
  width: min(780px, 100%);
  margin: 0 auto;
}

.star {
  margin-bottom: 6px;
  color: var(--yellow);
  font-size: 30px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.18;
}

.intro p:not(.star) {
  color: #332f28;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
}

.benefit-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.benefit-row span {
  padding: 10px 15px;
  border: 2px solid rgba(63, 53, 39, 0.18);
  border-radius: 999px;
  background: #fff4d5;
  font-weight: 900;
}

.highlight-grid,
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.highlight-grid article,
.game-card {
  padding: 24px 18px;
  border-radius: 8px;
}

.highlight-grid article {
  border: 2px dashed rgba(63, 53, 39, 0.24);
  background: rgba(255, 255, 255, 0.38);
}

.icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin: 0 auto 12px;
  border: 2px solid rgba(63, 53, 39, 0.2);
  border-radius: 50%;
  background: var(--cream);
  font-size: 34px;
}

h3 {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 900;
}

.highlight-grid p,
.game-card p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.freebie {
  padding-top: 24px;
}

.cta-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  padding: 16px 28px;
  border: 3px solid rgba(131, 80, 24, 0.14);
  border-radius: 16px;
  background: var(--yellow);
  box-shadow: 0 7px 0 #cf8a23, 0 18px 34px rgba(120, 82, 32, 0.16);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.25;
}

.download-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 50%;
  font-family: "Nunito", sans-serif;
  line-height: 1;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(940px, 100%);
  margin: 28px auto 0;
  padding: 20px;
  border: 2px solid rgba(63, 53, 39, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 30px rgba(55, 42, 28, 0.08);
  text-align: left;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: #4a4032;
  font-size: 14px;
  font-weight: 900;
}

.lead-form input,
.lead-form select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 2px solid rgba(63, 53, 39, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
  font-weight: 700;
}

.lead-form button {
  align-self: end;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fffdf8;
  background: #267a52;
  box-shadow: 0 5px 0 #185336;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.lead-form button:hover {
  transform: translateY(1px);
  box-shadow: 0 4px 0 #185336;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.game-card {
  background: transparent;
}

.game-illo {
  position: relative;
  display: grid;
  width: 178px;
  height: 178px;
  place-items: center;
  margin: 0 auto 14px;
  border: 2px solid rgba(63, 53, 39, 0.18);
  border-radius: 50%;
  background: #ffe09b;
}

.puzzle-illo span,
.train-illo span {
  display: inline-grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 12px;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  transform: rotate(-8deg);
}

.puzzle-illo span:first-child {
  background: #5e9b6c;
}

.puzzle-illo span:last-child {
  margin-left: -18px;
  background: #d96758;
  transform: rotate(7deg);
}

.radio-illo span {
  font-size: 86px;
  filter: drop-shadow(3px 4px 0 rgba(63, 53, 39, 0.18));
}

.train-illo {
  display: flex;
  justify-content: center;
  gap: 0;
}

.train-illo span:first-child {
  background: #b87340;
}

.train-illo span:last-child {
  margin-left: -10px;
  background: #e4a345;
  transform: rotate(8deg);
}

.game-card a {
  display: inline-block;
  padding: 5px 2px 3px;
  border-bottom: 3px solid var(--yellow);
  font-family: "Nunito", "Noto Sans TC", sans-serif;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

.match-game {
  position: relative;
  width: min(860px, 100%);
  margin: 42px auto 0;
  padding: 24px;
  border: 3px solid rgba(63, 53, 39, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(63, 53, 39, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(63, 53, 39, 0.04) 1px, transparent 1px),
    rgba(255, 253, 248, 0.82);
  background-size: 18px 18px;
  box-shadow: 0 18px 42px rgba(63, 53, 39, 0.12);
  text-align: left;
}

.match-game-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.match-game:not(.mini-match) .match-game-header,
.full-game .game-module-header {
  padding-right: 150px;
}

.match-game-label {
  margin-bottom: 4px;
  color: #79582a;
  font-family: "Nunito", "Noto Sans TC", sans-serif;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.match-game h3 {
  margin-bottom: 8px;
  font-size: clamp(26px, 4vw, 38px);
}

.match-game-header p:last-child,
.match-instruction,
.match-actions p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.match-stats {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.match-stats span,
.memory-timer {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 2px solid rgba(63, 53, 39, 0.18);
  border-radius: 8px;
  background: #fff4d5;
  color: #5b4220;
  font-size: 15px;
  font-weight: 900;
}

.match-stats strong,
.memory-timer strong {
  margin-right: 4px;
  color: var(--ink);
  font-family: "Nunito", "Noto Sans TC", sans-serif;
  font-size: 20px;
}

.match-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 14px;
}

.match-level,
.match-reset {
  min-height: 44px;
  border: 2px solid rgba(63, 53, 39, 0.28);
  border-radius: 8px;
  color: #3a2d1c;
  background: #fff8e6;
  box-shadow: 0 4px 0 rgba(63, 53, 39, 0.16);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.match-level:hover,
.match-reset:hover {
  transform: translateY(1px);
  box-shadow: 0 3px 0 rgba(63, 53, 39, 0.16);
}

.match-level.is-active {
  color: #fffdf8;
  border-color: rgba(38, 122, 82, 0.55);
  background: #267a52;
  box-shadow: 0 4px 0 #185336;
}

.match-instruction {
  min-height: 25px;
  margin-bottom: 12px;
}

.memory-timer {
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  background: #ffe09b;
}

.match-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.match-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  cursor: pointer;
  perspective: 800px;
}

.match-card:disabled {
  cursor: default;
}

.match-card-inner {
  position: absolute;
  inset: 0;
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 5px 7px 0 rgba(63, 53, 39, 0.18);
  transform-style: preserve-3d;
  transition: transform 0.34s ease;
}

.match-card.is-flipped .match-card-inner,
.match-card.is-matched .match-card-inner {
  transform: rotateY(180deg);
}

.match-card-front,
.match-card-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 5px;
  backface-visibility: hidden;
}

.match-card-front {
  color: #7a3817;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.38) 0 16%, transparent 17%),
    linear-gradient(145deg, #ffd76d, #e89a34);
  font-size: clamp(34px, 8vw, 58px);
  font-weight: 900;
}

.match-card-front::after {
  content: "ㄅㄆㄇ";
  font-size: 18px;
  letter-spacing: 0;
  transform: rotate(-10deg);
}

.match-card-back {
  background: #fffaf0;
  transform: rotateY(180deg);
}

.match-card-symbol {
  color: #2f7d4a;
  font-size: clamp(42px, 9vw, 68px);
  font-weight: 900;
  line-height: 1;
}

.match-card-image {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--ink);
  font-weight: 900;
}

.match-card-image .match-emoji {
  font-size: clamp(42px, 8vw, 64px);
  line-height: 1;
  filter: drop-shadow(2px 3px 0 rgba(63, 53, 39, 0.16));
}

.match-card-image .match-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 54px;
  max-width: 100%;
  font-size: clamp(17px, 3vw, 24px);
  line-height: 1.1;
  text-align: center;
}

.match-card.is-matched .match-card-inner {
  border-color: rgba(38, 122, 82, 0.75);
  box-shadow: 0 0 0 5px rgba(38, 122, 82, 0.12), 4px 6px 0 rgba(63, 53, 39, 0.12);
  animation: correctPop 0.5s ease;
}

.match-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.match-reset {
  min-width: 126px;
  color: #fffdf8;
  border-color: rgba(131, 80, 24, 0.22);
  background: #d88427;
  box-shadow: 0 4px 0 #ad6220;
}

.match-actions p {
  margin: 0;
  text-align: right;
}

.trial-games,
.full-game {
  position: relative;
  width: min(860px, 100%);
  margin: 42px auto 0;
  padding: 24px;
  border: 3px solid rgba(63, 53, 39, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(63, 53, 39, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(63, 53, 39, 0.04) 1px, transparent 1px),
    rgba(255, 253, 248, 0.84);
  background-size: 18px 18px;
  box-shadow: 0 18px 42px rgba(63, 53, 39, 0.12);
  text-align: left;
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.is-success-flash {
  box-shadow:
    0 0 0 6px rgba(38, 122, 82, 0.16),
    0 18px 42px rgba(63, 53, 39, 0.12);
}

.is-error-flash {
  box-shadow:
    0 0 0 6px rgba(217, 103, 88, 0.2),
    0 18px 42px rgba(63, 53, 39, 0.12);
}

.trial-games h3 {
  margin-bottom: 8px;
  font-size: clamp(26px, 4vw, 38px);
}

.trial-copy {
  width: min(560px, 100%);
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.7;
}

.trial-lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  margin: 18px 164px 20px 0;
  padding: 16px;
  border: 2px solid rgba(63, 53, 39, 0.2);
  border-radius: 8px;
  background: rgba(255, 244, 213, 0.72);
}

.trial-lead-form label {
  display: grid;
  gap: 7px;
  color: #4a4032;
  font-size: 14px;
  font-weight: 900;
}

.trial-lead-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 2px solid rgba(63, 53, 39, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
  font-weight: 700;
}

.trial-lead-form button {
  align-self: end;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #fffdf8;
  background: #267a52;
  box-shadow: 0 5px 0 #185336;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.trial-lead-form .form-note {
  grid-column: 1 / -1;
  text-align: left;
}

.game-mascot {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-grid;
  justify-items: center;
  gap: 7px;
  width: 148px;
  pointer-events: none;
}

@media (max-width: 980px) {
  .game-mascot {
    position: static;
    width: 100%;
    margin: 8px 0 16px;
  }

  .trial-copy {
    width: 100%;
  }

  .trial-lead-form {
    margin-right: 0;
  }
}

.mascot-face {
  position: relative;
  display: block;
  width: 78px;
  height: 78px;
  border: 4px solid var(--line);
  border-radius: 46% 46% 42% 42%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.36) 0 16%, transparent 17%),
    linear-gradient(145deg, #f6b833, #d88427);
  box-shadow: 5px 7px 0 rgba(63, 53, 39, 0.18);
  font-size: 34px;
  font-weight: 900;
  animation: mascotIdle 2.4s ease-in-out infinite;
}

.mascot-face {
  color: transparent;
}

.mascot-face::before,
.mascot-face::after {
  position: absolute;
  top: -13px;
  width: 23px;
  height: 28px;
  border: 4px solid var(--line);
  border-radius: 18px 18px 8px 8px;
  background: #f5d27a;
  content: "";
}

.mascot-face::before {
  left: 11px;
  transform: rotate(-17deg);
}

.mascot-face::after {
  right: 11px;
  transform: rotate(17deg);
}

.game-mascot::before,
.game-mascot::after {
  content: none;
}

.mascot-eyes,
.mascot-mouth {
  position: absolute;
  z-index: 3;
  display: block;
  pointer-events: none;
}

.mascot-eyes {
  top: 28px;
  left: 20px;
  width: 8px;
  height: 12px;
  border-radius: 50%;
  background: #3a2417;
  box-shadow: 31px 0 0 #3a2417;
}

.mascot-mouth {
  top: 47px;
  left: 29px;
  width: 22px;
  height: 13px;
  border: 4px solid #743720;
  border-top: 0;
  border-radius: 0 0 22px 22px;
}

.mascot-bubble {
  max-width: 144px;
  padding: 7px 9px;
  border: 2px solid rgba(63, 53, 39, 0.18);
  border-radius: 8px;
  background: #fff4d5;
  color: #5b4220;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  box-shadow: 2px 3px 0 rgba(63, 53, 39, 0.1);
}

.game-mascot.is-happy .mascot-face {
  animation: mascotHappy 0.72s ease;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.38) 0 16%, transparent 17%),
    linear-gradient(145deg, #8ccf5e, #267a52);
}

.game-mascot.is-happy .mascot-mouth {
  height: 16px;
  border-color: #7a2f22;
}

.game-mascot.is-oops .mascot-face {
  animation: mascotOops 0.54s ease;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.38) 0 16%, transparent 17%),
    linear-gradient(145deg, #ff9b8d, #d96758);
}

.game-mascot.is-oops .mascot-eyes {
  top: 31px;
  width: 13px;
  height: 4px;
  border-radius: 999px;
  transform: rotate(14deg);
  box-shadow: 28px -7px 0 #3a2417;
}

.game-mascot.is-oops .mascot-mouth {
  top: 54px;
  height: 9px;
  border-top: 4px solid #743720;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
}

.trial-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.trial-tab,
.sound-option,
.train-piece {
  min-height: 44px;
  border: 2px solid rgba(63, 53, 39, 0.28);
  border-radius: 8px;
  color: #3a2d1c;
  background: #fff8e6;
  box-shadow: 0 4px 0 rgba(63, 53, 39, 0.16);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.trial-tab.is-active,
.sound-option.is-correct,
.train-piece.is-selected {
  color: #fffdf8;
  border-color: rgba(38, 122, 82, 0.55);
  background: #267a52;
  box-shadow: 0 4px 0 #185336;
}

.trial-panel {
  padding-top: 6px;
}

.mini-game-heading,
.game-module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mini-game-heading {
  justify-content: flex-start;
}

.mini-game-heading > span {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 16px;
  color: #fffdf8;
  background: #d88427;
  box-shadow: 4px 5px 0 rgba(63, 53, 39, 0.18);
  font-size: 30px;
  font-weight: 900;
  transform: rotate(-5deg);
}

.mini-game-heading h4 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
}

.mini-game-heading p,
.game-module-header p,
.sound-stage p,
.game-message,
.train-word {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.mini-match {
  width: 100%;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sound-game,
.train-game {
  scroll-margin-top: 176px;
}

.sound-stage {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 2px dashed rgba(63, 53, 39, 0.22);
  border-radius: 8px;
  background: rgba(255, 244, 213, 0.66);
}

.sound-stage strong,
.game-module-header > strong {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 2px solid rgba(63, 53, 39, 0.18);
  border-radius: 8px;
  background: #fff4d5;
  color: #5b4220;
  font-size: 15px;
  white-space: nowrap;
}

.sound-play {
  display: grid;
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 50%;
  color: #fffdf8;
  background: #267a52;
  box-shadow: 4px 6px 0 rgba(63, 53, 39, 0.2);
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
}

.sound-options,
.train-pieces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sound-option {
  min-height: 62px;
  font-size: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sound-picture-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 118px;
  padding: 12px 8px;
  font-size: 18px;
}

.sound-card-emoji {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(2px 3px 0 rgba(63, 53, 39, 0.14));
}

.sound-card-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 54px;
  max-width: 100%;
  color: var(--ink);
  font-size: 21px;
  text-align: center;
}

.zhuyin-annotated-char {
  position: relative;
  display: inline-flex;
  min-width: 1em;
  min-height: 1.25em;
  align-items: center;
  justify-content: center;
  padding-right: 1em;
}

.zhuyin-main-char,
.zhuyin-rest-chars {
  display: inline-block;
  line-height: 1;
}

.zhuyin-mark {
  position: absolute;
  top: 50%;
  right: 0.03em;
  display: inline-grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  justify-items: center;
  column-gap: 1px;
  transform: translateY(-50%);
  color: #79582a;
  font-size: clamp(10px, 0.54em, 13px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}

.zhuyin-base {
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.zhuyin-tone {
  display: inline-block;
  align-self: start;
  padding-top: 0.12em;
  writing-mode: horizontal-tb;
  line-height: 1;
}

.sound-option:hover,
.train-piece:hover,
.trial-tab:hover,
.sound-play:hover {
  transform: translateY(1px) scale(1.02);
}

.sound-option.is-wrong {
  color: #fffdf8;
  border-color: rgba(179, 51, 37, 0.4);
  background: #d96758;
  box-shadow: 0 4px 0 #a9473c;
}

.sound-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.sound-actions .match-reset {
  min-width: 126px;
  background: #db9029;
  box-shadow: 0 4px 0 #b96f1d;
}

.game-actions-row,
.train-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.trial-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fffdf8;
  background: #2f7d4a;
  box-shadow: 0 5px 0 #245d3b;
  font-weight: 900;
}

.line-audio-tip {
  margin: -2px 0 12px;
  padding: 9px 12px;
  border: 2px dashed rgba(47, 125, 74, 0.24);
  border-radius: 8px;
  color: #5b4220;
  background: rgba(255, 244, 213, 0.72);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.train-word {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 2px solid rgba(63, 53, 39, 0.18);
  border-radius: 8px;
  background: #fff4d5;
  color: #4a3217;
}

.train-slots {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}

.train-engine {
  position: relative;
  flex: 0 0 132px;
  height: 94px;
  border: 3px solid var(--line);
  border-radius: 28px 16px 12px 12px;
  background:
    radial-gradient(circle at 73% 42%, #191817 0 10%, transparent 11%),
    linear-gradient(145deg, #d96b35 0 48%, #aa5930 49% 100%);
  box-shadow: 4px 6px 0 rgba(63, 53, 39, 0.18);
}

.train-engine::before,
.train-engine::after,
.engine-cabin::before {
  position: absolute;
  bottom: -21px;
  width: 42px;
  height: 42px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, #8a2f23 0 28%, #f4c542 29% 100%);
  content: "";
}

.train-engine::before {
  left: 12px;
}

.train-engine::after {
  right: 14px;
}

.engine-stack {
  position: absolute;
  top: -27px;
  left: 15px;
  width: 20px;
  height: 32px;
  border: 3px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #a85d2f;
}

.engine-window {
  position: absolute;
  top: 18px;
  left: 51px;
  width: 26px;
  height: 26px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: #161514;
}

.engine-cabin {
  position: absolute;
  right: -18px;
  bottom: 0;
  width: 54px;
  height: 72px;
  border: 3px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #efc28d;
}

.engine-cabin::before {
  right: -8px;
}

.train-slot {
  display: grid;
  flex: 1 1 112px;
  min-height: 88px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 16px 16px 8px 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 48%),
    #e7b24d;
  box-shadow: 4px 6px 0 rgba(63, 53, 39, 0.18);
  color: #68421d;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  position: relative;
}

.train-slot::after {
  display: block;
  width: 42px;
  height: 42px;
  margin-top: 6px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: #75502f;
  box-shadow: inset 0 0 0 10px #d39a44;
  content: "";
}

.train-slot.has-piece {
  color: #fffdf8;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 48%),
    #267a52;
}

.train-slot-value {
  display: block;
  color: inherit;
  font-size: 34px;
  line-height: 1.1;
}

.train-piece {
  min-height: 60px;
  font-size: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.train-piece:disabled {
  opacity: 0.48;
  cursor: default;
}

.success-burst {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(255, 250, 240, 0.58);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.success-burst-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(520px, 100%);
  padding: 34px 24px;
  border: 4px solid var(--line);
  border-radius: 8px;
  color: #fffdf8;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,0.32) 0 12%, transparent 13%),
    linear-gradient(145deg, #f6b833, #267a52);
  box-shadow: 0 18px 0 rgba(63, 53, 39, 0.18), 0 24px 48px rgba(63, 53, 39, 0.26);
  text-align: center;
  animation: successBoom 0.72s cubic-bezier(.18, 1.2, .28, 1) both;
}

.success-burst-card span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 34px;
}

.success-burst-card strong {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
}

.success-burst-card p {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}

.stamp-ceremony {
  position: fixed;
  inset: 0;
  z-index: 310;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(45, 43, 37, 0.22);
  backdrop-filter: blur(4px);
}

.stamp-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(440px, 100%);
  padding: 28px 22px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 20px 44px rgba(63, 53, 39, 0.24);
  text-align: center;
}

.stamp-card p {
  margin: 0;
  color: #5b4220;
  font-size: 20px;
  font-weight: 900;
}

.stamp-button {
  min-height: 54px;
  padding: 12px 24px;
  border: 3px solid var(--line);
  border-radius: 50%;
  color: #fffdf8;
  background: #d96758;
  box-shadow: 0 8px 0 #8f3b31;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.stamp-paper {
  display: grid;
  width: 180px;
  height: 132px;
  place-items: center;
  border: 2px dashed rgba(63, 53, 39, 0.28);
  border-radius: 8px;
  background: #fffdf8;
}

.stamp-mark {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border: 6px solid #c74735;
  border-radius: 50%;
  color: #c74735;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  opacity: 0;
  transform: rotate(-12deg) scale(1.4);
}

.stamp-ceremony.is-stamped .stamp-button {
  transform: translateY(8px);
  box-shadow: 0 0 0 #8f3b31;
}

.stamp-ceremony.is-stamped .stamp-mark {
  opacity: 1;
  animation: stampDown 0.45s cubic-bezier(.18, 1.2, .28, 1) both;
}

.match-board.is-previewing .match-card-inner {
  transform: rotateY(180deg);
}

.match-board.is-locked:not(.is-previewing) .match-card {
  pointer-events: none;
}

@media (max-width: 680px) {
  .match-game {
    padding: 18px;
  }

  .match-game-header,
  .match-actions,
  .mini-game-heading,
  .game-module-header,
  .game-actions-row,
  .train-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .match-game:not(.mini-match) .match-game-header,
  .full-game .game-module-header {
    padding-right: 0;
  }

  .match-stats {
    justify-content: flex-start;
  }

  .match-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .match-actions p {
    text-align: left;
  }

  .trial-games,
  .full-game {
    padding: 18px;
  }

  .trial-lead-form {
    grid-template-columns: 1fr;
    margin-right: 0;
  }

  .game-mascot {
    position: static;
    width: 100%;
    margin: 0 0 16px;
  }

  .trial-tabs,
  .sound-options,
  .train-pieces {
    grid-template-columns: 1fr;
  }

  .train-slots {
    align-items: stretch;
    flex-direction: column;
  }

  .train-engine,
  .train-slot {
    flex-basis: auto;
    width: 100%;
  }

  .train-engine {
    height: 86px;
  }

  .sound-stage {
    align-items: flex-start;
    flex-direction: column;
  }
}

.site-footer {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  margin-top: 20px;
  padding: 54px 16px 58px;
  color: #fff7e2;
  background:
    radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.08), transparent 12rem),
    linear-gradient(180deg, #303b3d, var(--chalk));
}

.site-footer::before {
  position: absolute;
  top: -18px;
  right: -20px;
  left: -20px;
  height: 40px;
  border-radius: 0 0 50% 50%;
  background: var(--paper);
  content: "";
}

.butterfly {
  position: absolute;
  top: 42px;
  left: 6%;
  width: 66px;
  height: 42px;
  opacity: 0.78;
}

.butterfly::before,
.butterfly::after {
  position: absolute;
  width: 34px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 80% 20% 80% 20%;
  background: rgba(255, 244, 213, 0.18);
  content: "";
}

.butterfly::after {
  right: 0;
  transform: scaleX(-1);
}

.footer-cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(960px, 100%);
  margin: 0 auto;
}

.footer-cta a:first-child {
  color: #ffe4a1;
  font-size: 22px;
  font-weight: 900;
}

.line-btn {
  padding: 18px 30px;
  border-radius: 8px;
  color: #fff;
  background: #d9852d;
  box-shadow: 0 6px 0 #ad6220;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
}

@media (max-width: 860px) {
  body {
    padding-top: 134px;
  }

  .site-header {
    align-items: center;
    border-radius: 22px;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  
@media (max-width: 860px) {
  .hero-copy {
    width: min(620px, 100%);
  }

  .hero-subtitle {
    width: min(560px, 100%);
    font-size: clamp(18px, 3.2vw, 22px);
    line-height: 1.68;
  }
}

@media (max-width: 560px) {
  .eyebrow {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: clamp(46px, 14.6vw, 58px);
    line-height: 0.94;
  }

  .hero-subtitle {
    width: min(334px, 100%);
    font-size: 19px;
    line-height: 1.66;
    font-weight: 700;
  }
}
.jungle-stage {
    height: 350px;
  }

  .train {
    left: 23%;
    right: 0;
    transform: scale(0.68);
    transform-origin: left bottom;
  }

  .engine {
    width: 220px;
  }

  .palm-right {
    display: none;
  }

  .highlight-grid,
  .game-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .form-note {
    text-align: left;
  }
}

@media (max-width: 560px) {
  body {
    padding-top: 130px;
  }

  .site-header {
    width: calc(100% - 20px);
  }

  .brand {
    white-space: normal;
  }

  .site-nav a {
    padding: 7px 9px;
    font-size: 14px;
  }

  .hero {
    padding-top: 26px;
  }

  
@media (max-width: 860px) {
  .hero-copy {
    width: min(620px, 100%);
  }

  .hero-subtitle {
    width: min(560px, 100%);
    font-size: clamp(18px, 3.2vw, 22px);
    line-height: 1.68;
  }
}

@media (max-width: 560px) {
  .eyebrow {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: clamp(46px, 14.6vw, 58px);
    line-height: 0.94;
  }

  .hero-subtitle {
    width: min(334px, 100%);
    font-size: 19px;
    line-height: 1.66;
    font-weight: 700;
  }
}
.jungle-stage {
    height: 300px;
    margin-top: 30px;
  }

  .palm-left {
    left: -16px;
    transform: rotate(-8deg) scale(0.68);
  }

  .cloud-one,
  .plane-two,
  .flower-b {
    display: none;
  }

  .train {
    left: 18%;
    bottom: 68px;
    transform: scale(0.52);
  }

  .track {
    bottom: 55px;
  }

  .intro,
  .highlights,
  .freebie,
  .games {
    width: min(100% - 22px, 1040px);
    padding: 34px 0;
  }

  .intro p:not(.star) {
    font-size: 17px;
  }

  .cta-banner {
    padding: 14px 16px;
  }

  .footer-cta {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
}

.lead-form button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.form-note.is-error {
  color: #b33325;
}

.success-page {
  min-height: 100vh;
}

.success-wrap {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 16px;
}

.success-card {
  width: min(760px, 100%);
  padding: 46px 34px;
  border: 3px solid rgba(63, 53, 39, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 18px 48px rgba(55, 42, 28, 0.14);
  text-align: center;
}

.success-card h1 {
  font-size: clamp(34px, 6vw, 62px);
}

.success-card p {
  color: #3c382f;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.7;
}

.download-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 14px auto 18px;
  padding: 14px 28px;
  border-radius: 8px;
  color: #fffdf8;
  background: #267a52;
  box-shadow: 0 6px 0 #185336;
  font-size: 22px;
  font-weight: 900;
}

.countdown {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 4px;
  padding: 14px 16px;
  border: 2px solid rgba(63, 53, 39, 0.2);
  border-radius: 8px;
  background: #fff4d5;
  color: var(--ink);
  text-align: center;
}

.countdown-label {
  color: #79582a;
  font-size: 15px;
  font-weight: 900;
}

.game-page {
  min-height: 100vh;
}

.is-hidden {
  display: none !important;
}

.game-access {
  width: min(840px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 18px;
  text-align: center;
}

.game-access h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 6vw, 68px);
}

.game-access > p:not(.section-kicker) {
  width: min(620px, 100%);
  margin: 0 auto 22px;
  color: #4f4638;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.7;
}

.access-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 2px solid rgba(63, 53, 39, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 30px rgba(55, 42, 28, 0.08);
  text-align: left;
}

.access-form label {
  display: grid;
  gap: 7px;
  color: #4a4032;
  font-size: 14px;
  font-weight: 900;
}

.access-form input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 2px solid rgba(63, 53, 39, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
  font-weight: 700;
}

.access-form button {
  align-self: end;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  color: #fffdf8;
  background: #267a52;
  box-shadow: 0 5px 0 #185336;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.access-form button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.access-form .form-note {
  grid-column: 1 / -1;
}

@media (max-width: 680px) {
  .access-form {
    grid-template-columns: 1fr;
  }
}

.countdown-time {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  font-weight: 900;
}

.countdown-time strong {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 2px 3px 0 rgba(63, 53, 39, 0.2);
  font-family: "Nunito", "Noto Sans TC", sans-serif;
  font-size: 24px;
  line-height: 1;
}

.countdown-time span {
  margin-right: 4px;
  color: #4a4032;
  font-size: 16px;
}

.countdown.is-launched {
  background: #e3f2dd;
}

.countdown.is-launched .countdown-time {
  color: #267a52;
}

/* RWD copy and layout refinements */
html,
body {
  overflow-x: hidden;
}

h1 span,
h2 span,
.line-btn span {
  display: block;
}

.site-nav {
  flex-wrap: nowrap;
  white-space: nowrap;
}


@media (max-width: 860px) {
  .hero-copy {
    width: min(620px, 100%);
  }

  .hero-subtitle {
    width: min(560px, 100%);
    font-size: clamp(18px, 3.2vw, 22px);
    line-height: 1.68;
  }
}

@media (max-width: 560px) {
  .eyebrow {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: clamp(46px, 14.6vw, 58px);
    line-height: 0.94;
  }

  .hero-subtitle {
    width: min(334px, 100%);
    font-size: 19px;
    line-height: 1.66;
    font-weight: 700;
  }
}
.jungle-stage {
  --jungle-scale: min(1, calc((100vw - 32px) / 1040px));
  width: min(1040px, calc(100vw - 32px));
  height: auto;
  aspect-ratio: 1040 / 430;
  overflow: visible;
}

.jungle-art {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1040px;
  height: 430px;
  transform: translateX(-50%) scale(var(--jungle-scale));
  transform-origin: top center;
}

.line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  line-height: 1.25;
}

.countdown {
  flex-wrap: nowrap;
}

.countdown-time {
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 4px;
  }

  .site-nav a {
    padding: 7px 9px;
    font-size: 16px;
  }

  
@media (max-width: 860px) {
  .hero-copy {
    width: min(620px, 100%);
  }

  .hero-subtitle {
    width: min(560px, 100%);
    font-size: clamp(18px, 3.2vw, 22px);
    line-height: 1.68;
  }
}

@media (max-width: 560px) {
  .eyebrow {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: clamp(46px, 14.6vw, 58px);
    line-height: 0.94;
  }

  .hero-subtitle {
    width: min(334px, 100%);
    font-size: 19px;
    line-height: 1.66;
    font-weight: 700;
  }
}
.jungle-stage {
    height: auto;
  }

  .train {
    right: 7%;
    bottom: 88px;
    left: 13%;
    transform: none;
  }

  .engine {
    width: 250px;
  }

  .palm-right,
  .cloud-one,
  .plane-two,
  .flower-b {
    display: block;
  }

  .cloud-one,
  .cloud-two {
    display: grid;
  }

  .countdown {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }

  .countdown-time {
    gap: 4px;
  }

  .countdown-time strong {
    min-width: clamp(30px, 8.8vw, 42px);
    height: clamp(30px, 8.8vw, 42px);
    border-width: 2px;
    border-radius: 7px;
    font-size: clamp(18px, 5.5vw, 24px);
  }

  .countdown-time span {
    margin-right: 2px;
    font-size: clamp(13px, 3.8vw, 16px);
  }
}

@media (max-width: 560px) {
  body {
    padding-top: 130px;
  }

  .site-header {
    width: calc(100% - 16px);
    padding: 10px 7px;
  }

  .brand {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }

  .site-nav {
    gap: 1px;
  }

  .site-nav a {
    padding: 7px 4px;
    font-size: clamp(15px, 4.2vw, 16px);
  }

  .hero {
    padding: 42px 11px 4px;
  }

  
@media (max-width: 860px) {
  .hero-copy {
    width: min(620px, 100%);
  }

  .hero-subtitle {
    width: min(560px, 100%);
    font-size: clamp(18px, 3.2vw, 22px);
    line-height: 1.68;
  }
}

@media (max-width: 560px) {
  .eyebrow {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: clamp(46px, 14.6vw, 58px);
    line-height: 0.94;
  }

  .hero-subtitle {
    width: min(334px, 100%);
    font-size: 19px;
    line-height: 1.66;
    font-weight: 700;
  }
}
.jungle-stage {
    --jungle-scale: min(1, calc((100vw - 22px) / 1040px));
    width: calc(100vw - 22px);
    height: auto;
    margin-top: 30px;
  }

  .palm-left {
    left: 2%;
    transform: rotate(-8deg);
  }

  .track {
    bottom: 70px;
  }

  .train {
    right: 7%;
    bottom: 88px;
    left: 13%;
    transform: none;
  }

  .cloud-one,
  .plane-two,
  .flower-b {
    display: grid;
  }

  .flower-b {
    display: block;
  }

  .lead-form {
    padding: 14px;
  }

  .countdown {
    padding: 12px 8px;
  }

  .countdown-label {
    font-size: 13px;
  }

  .countdown-time {
    gap: 3px;
  }

  .countdown-time strong {
    min-width: clamp(28px, 8.3vw, 34px);
    height: clamp(28px, 8.3vw, 34px);
    font-size: clamp(17px, 5vw, 20px);
  }

  .countdown-time span {
    margin-right: 1px;
    font-size: clamp(12px, 3.5vw, 14px);
  }

  .line-btn {
    width: min(100%, 320px);
    margin: 0 auto;
  }
}









/* Targeted hero refinements: one-line title, train passengers, mobile decoration clearance */
.hero h1 {
  display: block;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(36px, 10.2vw, 78px);
  line-height: 1;
  white-space: nowrap;
}

.train-passenger {
  position: absolute;
  top: -34px;
  left: 50%;
  z-index: 4;
  width: 44px;
  height: 46px;
  transform: translateX(-50%);
  pointer-events: none;
}

.train-passenger .face {
  position: absolute;
  right: 3px;
  bottom: 0;
  left: 3px;
  height: 34px;
  border: 2px solid rgba(63, 53, 39, 0.72);
  border-radius: 48% 48% 44% 44%;
  background: #fff5df;
  box-shadow: 2px 3px 0 rgba(63, 53, 39, 0.16);
}

.train-passenger .ear {
  position: absolute;
  top: 2px;
  width: 14px;
  height: 22px;
  border: 2px solid rgba(63, 53, 39, 0.68);
  background: #fff5df;
}

.train-passenger .ear-left {
  left: 8px;
  transform: rotate(-18deg);
}

.train-passenger .ear-right {
  right: 8px;
  transform: rotate(18deg);
}

.train-passenger .eyes,
.train-passenger .eyes::before,
.train-passenger .eyes::after {
  position: absolute;
  content: "";
}

.train-passenger .eyes {
  top: 12px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
  box-shadow: 12px 0 0 var(--line);
  transform: translateX(-8px);
}

.train-passenger .eyes::before {
  top: 9px;
  left: 7px;
  width: 6px;
  height: 4px;
  border-radius: 50%;
  background: #d98673;
}

.train-passenger .eyes::after {
  top: 16px;
  left: -2px;
  width: 20px;
  height: 8px;
  border-bottom: 2px solid rgba(63, 53, 39, 0.58);
  border-radius: 50%;
}

.passenger-bunny {
  top: -38px;
  left: 46%;
}

.passenger-bunny .ear {
  height: 28px;
  border-radius: 52% 52% 44% 44%;
}

.passenger-bunny .face,
.passenger-bunny .ear {
  background: #fff7ed;
}

.passenger-bear {
  top: -30px;
  left: 56%;
  width: 42px;
  height: 42px;
}

.passenger-bear .ear {
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #c98a52;
}

.passenger-bear .face {
  background: #d9a268;
}

.passenger-cat {
  top: -31px;
  left: 43%;
  width: 40px;
  height: 42px;
}

.passenger-cat .ear {
  top: 5px;
  width: 16px;
  height: 16px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 0;
  background: #f1c36f;
}

.passenger-cat .face {
  background: #f5cf82;
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(35px, 10vw, 41px);
  }

  .vine {
    z-index: 1;
    opacity: 0.42;
  }

  .vine-left {
    left: -88px;
    bottom: 22px;
    transform: rotate(-32deg) scale(0.74);
  }

  .vine-right {
    top: 188px;
    right: -92px;
    transform: rotate(26deg) scale(0.74);
  }

  .train-passenger {
    transform: translateX(-50%) scale(0.9);
  }
}

@media (min-width: 861px) {
  .hero h1 {
    font-size: clamp(58px, 6.2vw, 78px);
  }
}

@media (max-width: 560px) {
  .vine-left {
    top: 270px;
    bottom: auto;
    left: -148px;
    transform: rotate(-32deg) scale(0.68);
  }

  .vine-right {
    top: 278px;
    right: -148px;
    transform: rotate(28deg) scale(0.68);
  }
}

/* Storybook train passenger polish */
.car {
  overflow: visible;
}

.car::after {
  position: absolute;
  top: 20px;
  right: 9px;
  left: 9px;
  z-index: 5;
  height: 20px;
  border: 2px solid rgba(63, 53, 39, 0.42);
  border-radius: 11px 11px 8px 8px;
  background: inherit;
  box-shadow: 0 3px 0 rgba(63, 53, 39, 0.12);
  content: "";
  pointer-events: none;
}

.animal-face {
  position: relative;
  z-index: 6;
}

.train-passenger {
  top: -61px;
  width: 62px;
  height: 78px;
  filter: drop-shadow(2px 3px 0 rgba(63, 53, 39, 0.13));
}

.train-passenger::before {
  position: absolute;
  right: 13px;
  bottom: 2px;
  left: 13px;
  z-index: 1;
  height: 26px;
  border: 2px solid rgba(63, 53, 39, 0.58);
  border-radius: 15px 15px 9px 9px;
  background: #8ac77a;
  content: "";
}

.train-passenger::after {
  position: absolute;
  z-index: 4;
  width: 14px;
  height: 18px;
  border: 2px solid rgba(63, 53, 39, 0.56);
  border-radius: 999px;
  background: #fff5df;
  content: "";
}

.train-passenger .face {
  right: 4px;
  bottom: 18px;
  left: 4px;
  z-index: 3;
  height: 50px;
  border-width: 3px;
  border-radius: 48% 48% 43% 43%;
}

.train-passenger .face::before,
.train-passenger .face::after {
  position: absolute;
  top: 27px;
  z-index: 3;
  width: 8px;
  height: 6px;
  border-radius: 50%;
  background: #ee8e86;
  content: "";
}

.train-passenger .face::before {
  left: 10px;
}

.train-passenger .face::after {
  right: 10px;
}

.train-passenger .ear {
  z-index: 2;
}

.train-passenger .eyes {
  top: 18px;
  left: 50%;
  width: 6px;
  height: 6px;
  box-shadow: 18px 0 0 var(--line);
  transform: translateX(-12px);
}

.train-passenger .eyes::before {
  top: 14px;
  left: 8px;
  z-index: 4;
  width: 13px;
  height: 8px;
  border: 2px solid rgba(63, 53, 39, 0.68);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #8b473a;
}

.train-passenger .eyes::after {
  display: none;
}

.passenger-bunny {
  top: -68px;
  left: 35%;
  transform: translateX(-50%) rotate(-4deg);
}

.passenger-bunny::before {
  background: #7fc58c;
}

.passenger-bunny::after {
  right: 2px;
  bottom: 14px;
  transform: rotate(-28deg);
  background: #fff7ed;
}

.passenger-bunny .ear {
  top: 0;
  width: 15px;
  height: 38px;
  border-width: 3px;
  border-radius: 52% 52% 44% 44%;
}

.passenger-bunny .ear-left {
  left: 14px;
  transform: rotate(-16deg);
}

.passenger-bunny .ear-right {
  right: 12px;
  transform: rotate(18deg);
}

.passenger-bear {
  top: -53px;
  left: 68%;
  width: 58px;
  height: 68px;
  transform: translateX(-50%) rotate(5deg);
}

.passenger-bear::before {
  right: 12px;
  left: 12px;
  background: #6fb4d5;
}

.passenger-bear::after {
  left: 0;
  bottom: 13px;
  transform: rotate(24deg);
  background: #d9a268;
}

.passenger-bear .face {
  background: #dda86c;
}

.passenger-bear .ear {
  top: 9px;
  width: 18px;
  height: 18px;
  border-width: 3px;
  border-radius: 50%;
  background: #c98a52;
}

.passenger-bear .ear-left {
  left: 5px;
}

.passenger-bear .ear-right {
  right: 5px;
}

.passenger-bear .eyes {
  box-shadow: 18px 0 0 transparent;
}

.passenger-bear .eyes::after {
  display: block;
  top: -1px;
  left: 14px;
  width: 9px;
  height: 6px;
  border-top: 3px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 50%;
  background: transparent;
  transform: rotate(-8deg);
}

.passenger-cat {
  top: -53px;
  left: 31%;
  width: 58px;
  height: 68px;
  transform: translateX(-50%) rotate(-3deg);
}

.passenger-cat::before {
  background: #f0a35f;
}

.passenger-cat::after {
  right: 1px;
  bottom: 10px;
  transform: rotate(-42deg);
  background: #f5cf82;
}

.passenger-cat .ear {
  top: 7px;
  width: 21px;
  height: 22px;
  border-width: 3px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 0;
  background: #f1c36f;
}

.passenger-cat .ear-left {
  left: 6px;
  transform: rotate(-15deg);
}

.passenger-cat .ear-right {
  right: 6px;
  transform: rotate(16deg);
}

.passenger-cat .face {
  background: #f5cf82;
}

.passenger-cat .eyes::before {
  height: 7px;
  border-radius: 0 0 50% 50%;
}

@media (max-width: 560px) {
  .train-passenger {
    transform: translateX(-50%) scale(1);
  }

  .passenger-bunny {
    left: 32%;
    transform: translateX(-50%) rotate(-4deg) scale(0.94);
  }

  .passenger-bear {
    left: 70%;
    transform: translateX(-50%) rotate(5deg) scale(0.92);
  }

  .passenger-cat {
    left: 31%;
    transform: translateX(-50%) rotate(-3deg) scale(0.92);
  }
}

/* Passenger-only scale correction: unmistakable big-head storybook riders */
.train-passenger {
  top: -96px;
  width: 104px;
  height: 124px;
  filter: drop-shadow(3px 4px 0 rgba(63, 53, 39, 0.14));
}

.train-passenger::before {
  right: 31px;
  bottom: 2px;
  left: 31px;
  z-index: 1;
  height: 34px;
  border-width: 3px;
  border-radius: 18px 18px 10px 10px;
}

.train-passenger::after {
  z-index: 5;
  width: 21px;
  height: 27px;
  border-width: 3px;
}

.train-passenger .face {
  right: 8px;
  bottom: 25px;
  left: 8px;
  height: 86px;
  border-width: 4px;
  border-radius: 48% 48% 42% 42%;
  box-shadow: 3px 5px 0 rgba(63, 53, 39, 0.15);
}

.train-passenger .face::before,
.train-passenger .face::after {
  top: 50px;
  width: 14px;
  height: 10px;
  background: #ee8d87;
}

.train-passenger .face::before {
  left: 16px;
}

.train-passenger .face::after {
  right: 16px;
}

.train-passenger .eyes {
  top: 31px;
  left: 50%;
  width: 9px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 28px 0 0 var(--line);
  transform: translateX(-18px);
}

.train-passenger .eyes::before {
  top: 24px;
  left: 11px;
  width: 23px;
  height: 15px;
  border-width: 3px;
  border-radius: 0 0 22px 22px;
  background: #8b473a;
}

.train-passenger .eyes::after {
  display: block;
  top: -3px;
  left: 3px;
  width: 3px;
  height: 3px;
  border: 0;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 28px 0 0 #fffdf8;
}

.passenger-bunny {
  top: -110px;
  left: 47%;
  width: 108px;
  height: 142px;
  transform: translateX(-50%) rotate(-4deg);
}

.passenger-bunny .face {
  bottom: 22px;
  height: 88px;
}

.passenger-bunny .ear {
  top: 0;
  width: 22px;
  height: 58px;
  border-width: 4px;
  border-radius: 54% 54% 44% 44%;
}

.passenger-bunny .ear-left {
  left: 27px;
  transform: rotate(-18deg);
}

.passenger-bunny .ear-right {
  right: 24px;
  transform: rotate(20deg);
}

.passenger-bunny::before {
  bottom: 5px;
  background: #7fc58c;
}

.passenger-bunny::after {
  right: 8px;
  bottom: 21px;
  transform: rotate(-30deg);
  background: #fff7ed;
}

.passenger-bear {
  top: -83px;
  left: 50%;
  width: 98px;
  height: 112px;
  transform: translateX(-50%) rotate(4deg);
}

.passenger-bear .face {
  right: 9px;
  bottom: 22px;
  left: 9px;
  height: 78px;
}

.passenger-bear .ear {
  top: 14px;
  width: 28px;
  height: 28px;
  border-width: 4px;
}

.passenger-bear .ear-left {
  left: 7px;
}

.passenger-bear .ear-right {
  right: 7px;
}

.passenger-bear .eyes {
  width: 10px;
  height: 10px;
  box-shadow: 28px 0 0 transparent;
}

.passenger-bear .eyes::after {
  display: block;
  top: -2px;
  left: 23px;
  width: 15px;
  height: 10px;
  border-top: 4px solid var(--line);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transform: rotate(-8deg);
}

.passenger-bear::after {
  left: 6px;
  bottom: 20px;
  transform: rotate(24deg);
}

.passenger-cat {
  top: -86px;
  left: 50%;
  width: 98px;
  height: 112px;
  transform: translateX(-50%) rotate(-3deg);
}

.passenger-cat .face {
  right: 9px;
  bottom: 22px;
  left: 9px;
  height: 80px;
}

.passenger-cat .ear {
  top: 10px;
  width: 31px;
  height: 35px;
  border-width: 4px;
}

.passenger-cat .ear-left {
  left: 9px;
  transform: rotate(-17deg);
}

.passenger-cat .ear-right {
  right: 9px;
  transform: rotate(17deg);
}

.passenger-cat::after {
  right: 6px;
  bottom: 17px;
  transform: rotate(-42deg);
}

@media (max-width: 560px) {
  .passenger-bunny {
    left: 47%;
    transform: translateX(-50%) rotate(-4deg) scale(0.96);
  }

  .passenger-bear {
    left: 50%;
    transform: translateX(-50%) rotate(4deg) scale(0.94);
  }

  .passenger-cat {
    left: 50%;
    transform: translateX(-50%) rotate(-3deg) scale(0.94);
  }
}

/* Hero subtitle checklist only */
.hero-subtitle {
  display: inline-grid;
  width: auto;
  max-width: min(100%, 560px);
  justify-items: start;
  gap: 10px;
  margin-right: auto;
  margin-left: auto;
  color: #4f4638;
  font-size: clamp(20px, 2.05vw, 25px);
  font-weight: 800;
  line-height: 1.42;
  text-align: left;
}

.hero-subtitle span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .hero-subtitle {
    max-width: min(100%, 342px);
    gap: 9px;
    font-size: clamp(18px, 5.05vw, 20px);
    line-height: 1.42;
  }
}

/* 3D rescue-train zhuyin burst, scoped to the train illustration */
.rescue-kit {
  position: absolute;
  right: -6px;
  bottom: 18px;
  z-index: 7;
  width: 48px;
  height: 36px;
  border: 3px solid rgba(96, 52, 18, 0.8);
  border-radius: 10px 10px 12px 12px;
  background: linear-gradient(145deg, #ffd86a 0%, #f7a82f 58%, #df7d1f 100%);
  box-shadow:
    inset 5px 6px 0 rgba(255, 255, 255, 0.32),
    inset -5px -6px 0 rgba(131, 61, 13, 0.18),
    3px 5px 0 rgba(63, 53, 39, 0.18);
  transform: rotate(-6deg);
}

.kit-lid {
  position: absolute;
  right: 1px;
  bottom: 27px;
  left: 1px;
  height: 18px;
  border: 3px solid rgba(96, 52, 18, 0.75);
  border-bottom: 0;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(145deg, #ffe58b, #f6a831);
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.42);
  transform: rotate(-16deg) translate(-4px, -7px);
  transform-origin: left bottom;
}

.kit-glow {
  position: absolute;
  top: -20px;
  left: 50%;
  z-index: -1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 157, 0.92), rgba(255, 198, 48, 0.36) 52%, transparent 72%);
  filter: blur(1px);
  transform: translateX(-50%);
  animation: kitPulse 2.2s ease-in-out infinite;
}

.kit-cross,
.kit-cross::before {
  position: absolute;
  background: #c34d36;
  content: "";
}

.kit-cross {
  top: 14px;
  left: 19px;
  width: 10px;
  height: 18px;
  border-radius: 3px;
}

.kit-cross::before {
  top: 4px;
  left: -4px;
  width: 18px;
  height: 10px;
  border-radius: 3px;
}

.rescue-burst {
  position: absolute;
  right: -48px;
  bottom: 55px;
  z-index: 2;
  width: 170px;
  height: 150px;
  pointer-events: none;
}

.zhuyin-card {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 54px;
  place-items: center;
  border: 3px solid rgba(99, 54, 20, 0.68);
  border-radius: 13px;
  color: #6f3518;
  font-family: "Noto Sans TC", system-ui, sans-serif;
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 5px 7px 0 rgba(255, 255, 255, 0.35),
    inset -5px -7px 0 rgba(78, 48, 20, 0.12),
    4px 7px 0 rgba(63, 53, 39, 0.15);
  animation: cardFloat 2.9s ease-in-out infinite;
}

.card-bo {
  top: 0;
  left: 0;
  background: linear-gradient(145deg, #fff1b9, #ffc44c);
  transform: rotate(-16deg);
}

.card-po {
  top: -12px;
  left: 62px;
  border-radius: 50%;
  background: linear-gradient(145deg, #efff91, #a7cf39);
  animation-delay: -0.55s;
}

.card-mo {
  top: 18px;
  right: 6px;
  background: linear-gradient(145deg, #bfeeff, #63badb);
  transform: rotate(15deg);
  animation-delay: -1.05s;
}

.burst-line {
  position: absolute;
  bottom: 22px;
  left: 72px;
  z-index: 1;
  width: 6px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 213, 68, 0), rgba(255, 163, 41, 0.9));
  transform-origin: bottom center;
}

.line-a {
  transform: rotate(-34deg);
}

.line-b {
  height: 92px;
  transform: rotate(0deg);
}

.line-c {
  transform: rotate(35deg);
  background: linear-gradient(180deg, rgba(111, 190, 216, 0), rgba(111, 190, 216, 0.9));
}

.burst-spark,
.burst-spark::before,
.burst-spark::after {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: #ffca41;
  content: "";
  transform: rotate(45deg);
}

.burst-spark::before,
.burst-spark::after {
  top: 0;
  left: 0;
  background: inherit;
}

.burst-spark::before {
  transform: rotate(90deg) scaleX(0.45);
}

.burst-spark::after {
  transform: rotate(0deg) scaleX(0.45);
}

.spark-a {
  top: 13px;
  right: 28px;
  background: #ff8b83;
}

.spark-b {
  top: 34px;
  left: 42px;
  width: 10px;
  height: 10px;
  background: #ffd84c;
}

@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes correctPop {
  0% { transform: rotateY(180deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.06); }
  100% { transform: rotateY(180deg) scale(1); }
}

@keyframes mascotIdle {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes mascotHappy {
  0% { transform: translateY(0) scale(1) rotate(0); }
  35% { transform: translateY(-18px) scale(1.08) rotate(-8deg); }
  70% { transform: translateY(2px) scale(0.98) rotate(6deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}

@keyframes mascotOops {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-7px) rotate(-8deg); }
  40% { transform: translateX(7px) rotate(8deg); }
  60% { transform: translateX(-5px) rotate(-5deg); }
  80% { transform: translateX(5px) rotate(5deg); }
}

@keyframes successBoom {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(-4deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.06) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes stampDown {
  0% {
    opacity: 0;
    transform: rotate(-12deg) scale(1.45);
  }
  55% {
    opacity: 1;
    transform: rotate(-12deg) scale(0.88);
  }
  100% {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
  }
}

@keyframes kitPulse {
  0%, 100% { opacity: 0.72; scale: 0.96; }
  50% { opacity: 1; scale: 1.08; }
}

@media (max-width: 560px) {
  .rescue-burst {
    right: -34px;
    bottom: 60px;
    width: 140px;
    height: 126px;
    transform: scale(0.82);
    transform-origin: bottom center;
  }

  .rescue-kit {
    right: -2px;
    bottom: 20px;
    transform: rotate(-6deg) scale(0.88);
  }
}

/* Final train-visual replacement: premium 3D zhuyin rescue train */
.jungle-stage .hills {
  background:
    radial-gradient(ellipse at 24% 98%, #9bcf58 0 38%, transparent 39%),
    radial-gradient(ellipse at 60% 98%, #bada64 0 45%, transparent 46%),
    radial-gradient(ellipse at 90% 98%, #78b953 0 38%, transparent 39%);
  filter: drop-shadow(0 10px 0 rgba(93, 119, 36, 0.14));
}

.jungle-stage .train {
  align-items: flex-end;
  gap: 7px;
  filter: drop-shadow(0 14px 12px rgba(69, 47, 25, 0.2));
}

.jungle-stage .engine,
.jungle-stage .car {
  border-color: rgba(86, 47, 20, 0.92);
  box-shadow:
    inset 8px 10px 0 rgba(255, 255, 255, 0.18),
    inset -8px -10px 0 rgba(69, 38, 16, 0.15),
    4px 7px 0 rgba(63, 53, 39, 0.22);
}

.jungle-stage .engine {
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 215, 82, 0.86) 0 20%, transparent 21%),
    linear-gradient(90deg, #8fb333 0 34%, #a4642e 35% 70%, #d48231 71% 100%);
}

.jungle-stage .engine::before {
  background: linear-gradient(145deg, #f36f32, #d74b26 58%, #a73922);
  box-shadow:
    inset 7px 7px 0 rgba(255, 255, 255, 0.18),
    4px 6px 0 rgba(63, 53, 39, 0.16);
}

.jungle-stage .engine::after {
  background: linear-gradient(180deg, #dc6a2d 0 22%, #2f3f28 23% 100%);
  box-shadow: inset 5px 0 0 rgba(255, 255, 255, 0.12);
}

.jungle-stage .window {
  top: 20px;
  right: 28px;
  border-color: rgba(86, 47, 20, 0.9);
  color: #7a3817;
  background: radial-gradient(circle at 35% 30%, #fff4b6, #ffc844 62%, #de8d20);
  box-shadow:
    inset 6px 7px 0 rgba(255, 255, 255, 0.3),
    2px 4px 0 rgba(63, 53, 39, 0.14);
}

.jungle-stage .wheel {
  border-color: rgba(67, 43, 24, 0.96);
  background: radial-gradient(circle, #ffc23d 0 19%, #873d22 20% 38%, #2f2a25 39% 100%);
  box-shadow:
    inset 3px 4px 0 rgba(255, 255, 255, 0.2),
    2px 4px 0 rgba(63, 53, 39, 0.16);
}

.jungle-stage .car {
  border-radius: 20px 20px 18px 18px;
  background: linear-gradient(145deg, #f37a36 0%, #d95728 54%, #b94321 100%);
}

.jungle-stage .car-monkey {
  background: linear-gradient(145deg, #ffc54b 0%, #ed9c25 60%, #c9741d 100%);
}

.jungle-stage .car-giraffe {
  background: linear-gradient(145deg, #8ecf4a 0%, #5fae36 60%, #3f842c 100%);
}

.jungle-stage .car::before {
  position: absolute;
  right: 13px;
  bottom: 22px;
  left: 13px;
  z-index: 7;
  height: 44px;
  border: 3px solid rgba(82, 46, 20, 0.78);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.14) 0 22%, transparent 23%),
    linear-gradient(145deg, rgba(255, 234, 130, 0.24), rgba(91, 49, 18, 0.06));
  box-shadow:
    inset 5px 6px 0 rgba(255, 255, 255, 0.2),
    0 -4px 0 rgba(69, 38, 16, 0.1);
  content: "";
}

.jungle-stage .car::after {
  top: 11px;
  right: 8px;
  left: 8px;
  z-index: 8;
  height: 34px;
  border: 3px solid rgba(82, 46, 20, 0.78);
  border-radius: 15px 15px 10px 10px;
  background: inherit;
  box-shadow:
    inset 5px 6px 0 rgba(255, 255, 255, 0.2),
    0 5px 0 rgba(68, 35, 14, 0.15);
}

.jungle-stage .animal-face {
  display: none;
}

.jungle-stage .train-passenger {
  top: -98px;
  z-index: 6;
  width: 106px;
  height: 132px;
  filter: drop-shadow(4px 7px 0 rgba(63, 53, 39, 0.13));
}

.jungle-stage .train-passenger::before {
  right: 28px;
  bottom: 16px;
  left: 28px;
  height: 42px;
  border: 4px solid rgba(82, 46, 20, 0.68);
  border-radius: 22px 22px 13px 13px;
  box-shadow: inset 5px 6px 0 rgba(255, 255, 255, 0.2);
}

.jungle-stage .train-passenger::after {
  bottom: 39px;
  z-index: 9;
  width: 21px;
  height: 29px;
  border: 4px solid rgba(82, 46, 20, 0.64);
  box-shadow: inset 4px 5px 0 rgba(255, 255, 255, 0.18);
}

.jungle-stage .train-passenger .face {
  right: 7px;
  bottom: 42px;
  left: 7px;
  height: 88px;
  border: 4px solid rgba(82, 46, 20, 0.88);
  box-shadow:
    inset 10px 13px 0 rgba(255, 255, 255, 0.35),
    inset -8px -10px 0 rgba(111, 62, 24, 0.1),
    4px 6px 0 rgba(63, 53, 39, 0.12);
}

.jungle-stage .train-passenger .face::before,
.jungle-stage .train-passenger .face::after {
  top: 51px;
  width: 17px;
  height: 12px;
  background: radial-gradient(circle, #ff9f96, #ee756e);
  filter: blur(0.1px);
}

.jungle-stage .train-passenger .face::before { left: 14px; }
.jungle-stage .train-passenger .face::after { right: 14px; }

.jungle-stage .train-passenger .eyes {
  top: 30px;
  width: 12px;
  height: 15px;
  background: radial-gradient(circle at 34% 24%, #fff 0 12%, #3a2417 13% 100%);
  box-shadow: 30px 0 0 #3a2417;
  transform: translateX(-21px);
}

.jungle-stage .train-passenger .eyes::before {
  top: 27px;
  left: 13px;
  width: 25px;
  height: 16px;
  border: 4px solid #5b2c1b;
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: radial-gradient(circle at 50% 65%, #ffcab8 0 25%, #8e3f2e 26% 100%);
}

.jungle-stage .train-passenger .eyes::after {
  top: 2px;
  left: 3px;
  width: 4px;
  height: 4px;
  box-shadow: 30px 0 0 #fff;
}

.jungle-stage .passenger-bunny {
  top: -116px;
  left: 47%;
  width: 112px;
  height: 154px;
  transform: translateX(-50%) rotate(-3deg);
}

.jungle-stage .passenger-bunny .face {
  bottom: 42px;
  height: 92px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,0.8) 0 14%, transparent 15%),
    linear-gradient(145deg, #fffdf5, #ffe9d8 72%, #f8c6ae);
}

.jungle-stage .passenger-bunny .ear {
  top: 0;
  width: 24px;
  height: 64px;
  border: 4px solid rgba(82, 46, 20, 0.82);
  background: linear-gradient(145deg, #fffdf5, #ffe2d6 72%, #ffa996);
  box-shadow: inset 6px 8px 0 rgba(255,255,255,0.45);
}

.jungle-stage .passenger-bunny .ear-left { left: 27px; transform: rotate(-16deg); }
.jungle-stage .passenger-bunny .ear-right { right: 23px; transform: rotate(18deg); }

.jungle-stage .passenger-bunny::before {
  bottom: 18px;
  background: linear-gradient(145deg, #ff7b42, #d94b2f);
}

.jungle-stage .passenger-bunny::after {
  right: 3px;
  bottom: 51px;
  transform: rotate(-30deg);
  background: linear-gradient(145deg, #fffdf5, #ffd7c6);
}

.jungle-stage .passenger-bear {
  top: -94px;
  left: 50%;
  width: 104px;
  height: 130px;
  transform: translateX(-50%) rotate(3deg);
}

.jungle-stage .passenger-bear .face {
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,0.42) 0 12%, transparent 13%),
    linear-gradient(145deg, #d88c3f, #b96a2f 75%, #91501f);
}

.jungle-stage .passenger-bear .ear {
  top: 11px;
  width: 31px;
  height: 31px;
  border: 4px solid rgba(82, 46, 20, 0.86);
  background: linear-gradient(145deg, #db934d, #a65c29);
  box-shadow: inset 5px 6px 0 rgba(255,255,255,0.22);
}

.jungle-stage .passenger-bear .ear-left { left: 5px; }
.jungle-stage .passenger-bear .ear-right { right: 5px; }

.jungle-stage .passenger-bear::before {
  background: linear-gradient(145deg, #36a9d6, #15729c);
}

.jungle-stage .passenger-bear::after {
  left: 3px;
  bottom: 49px;
  background: linear-gradient(145deg, #d88c3f, #b96a2f);
  transform: rotate(26deg);
}

.jungle-stage .passenger-bear .eyes {
  background: radial-gradient(circle at 34% 24%, #fff 0 12%, #3a2417 13% 100%);
  box-shadow: 30px 0 0 transparent;
}

.jungle-stage .passenger-bear .eyes::after {
  display: block;
  top: 0;
  left: 29px;
  width: 18px;
  height: 11px;
  border-top: 5px solid #3a2417;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.jungle-stage .passenger-cat {
  top: -94px;
  left: 50%;
  width: 104px;
  height: 130px;
  transform: translateX(-50%) rotate(-2deg);
}

.jungle-stage .passenger-cat .face {
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,0.5) 0 12%, transparent 13%),
    linear-gradient(145deg, #ffd675, #f0a84a 72%, #d78027);
}

.jungle-stage .passenger-cat .ear {
  top: 7px;
  width: 33px;
  height: 39px;
  border: 4px solid rgba(82, 46, 20, 0.84);
  background: linear-gradient(145deg, #ffd675, #f0a84a);
  box-shadow: inset 5px 6px 0 rgba(255,255,255,0.25);
}

.jungle-stage .passenger-cat .ear-left { left: 8px; transform: rotate(-17deg); }
.jungle-stage .passenger-cat .ear-right { right: 8px; transform: rotate(17deg); }

.jungle-stage .passenger-cat::before {
  background: linear-gradient(145deg, #84c842, #3f9031);
}

.jungle-stage .passenger-cat::after {
  right: 3px;
  bottom: 47px;
  background: linear-gradient(145deg, #ffd675, #f0a84a);
  transform: rotate(-42deg);
}

.jungle-stage .rescue-kit {
  right: -13px;
  bottom: 43px;
  z-index: 12;
  width: 62px;
  height: 46px;
  border-width: 4px;
  border-radius: 13px 13px 15px 15px;
  background: linear-gradient(145deg, #ffe589 0%, #ffbb39 48%, #e98220 100%);
  box-shadow:
    inset 9px 10px 0 rgba(255,255,255,0.38),
    inset -7px -8px 0 rgba(105, 53, 13, 0.16),
    5px 7px 0 rgba(63,53,39,0.18);
}

.jungle-stage .kit-lid {
  bottom: 36px;
  height: 25px;
  border-width: 4px;
  background: linear-gradient(145deg, #fff09b, #ffb02e);
  transform: rotate(-18deg) translate(-8px, -11px);
}

.jungle-stage .kit-glow {
  top: -38px;
  width: 92px;
  height: 92px;
  background: radial-gradient(circle, rgba(255, 248, 166, 1), rgba(255, 191, 36, 0.5) 48%, transparent 72%);
}

.jungle-stage .kit-cross { top: 17px; left: 25px; width: 12px; height: 22px; }
.jungle-stage .kit-cross::before { top: 5px; left: -5px; width: 22px; height: 12px; }

.jungle-stage .rescue-burst {
  right: -96px;
  bottom: 92px;
  z-index: 10;
  width: 246px;
  height: 188px;
}

.jungle-stage .zhuyin-card {
  width: 70px;
  height: 76px;
  border-width: 4px;
  border-radius: 18px;
  font-size: 47px;
  color: #6b3216;
  box-shadow:
    inset 8px 10px 0 rgba(255,255,255,0.42),
    inset -7px -9px 0 rgba(78,48,20,0.13),
    6px 10px 0 rgba(63,53,39,0.16);
}

.jungle-stage .card-bo { top: 4px; left: 4px; transform: rotate(-17deg); }
.jungle-stage .card-po { top: -20px; left: 88px; }
.jungle-stage .card-mo { top: 22px; right: 2px; transform: rotate(15deg); }

.jungle-stage .burst-line {
  bottom: 22px;
  left: 104px;
  width: 7px;
  height: 116px;
}

.jungle-stage .line-b { height: 132px; }

.jungle-stage .burst-spark {
  width: 17px;
  height: 17px;
}

.jungle-stage .spark-a { top: 0; right: 38px; }
.jungle-stage .spark-b { top: 43px; left: 45px; }

@media (max-width: 560px) {
  .jungle-stage .train-passenger {
    filter: drop-shadow(3px 5px 0 rgba(63,53,39,0.12));
  }

  .jungle-stage .passenger-bunny {
    transform: translateX(-50%) rotate(-3deg) scale(0.86);
  }

  .jungle-stage .passenger-bear {
    transform: translateX(-50%) rotate(3deg) scale(0.84);
  }

  .jungle-stage .passenger-cat {
    transform: translateX(-50%) rotate(-2deg) scale(0.84);
  }

  .jungle-stage .rescue-burst {
    right: -78px;
    bottom: 100px;
    transform: scale(0.6);
    transform-origin: bottom center;
  }

  .jungle-stage .rescue-kit {
    right: -12px;
    bottom: 45px;
    transform: rotate(-6deg) scale(0.76);
  }
}

/* Keep zhuyin burst inside train zone on desktop */
@media (min-width: 861px) {
  .jungle-stage .rescue-burst {
    bottom: 70px;
    transform: scale(0.86);
    transform-origin: bottom center;
  }

  .jungle-stage .rescue-kit {
    bottom: 36px;
    transform: rotate(-6deg) scale(0.92);
  }
}

/* Intro copy breathing room */
.intro p:not(.star) {
  width: min(100%, 760px);
  margin-right: auto;
  margin-left: auto;
  padding-right: 18px;
  padding-left: 18px;
}

@media (max-width: 560px) {
  .intro p:not(.star) {
    width: min(100%, 340px);
    padding-right: 18px;
    padding-left: 18px;
    line-height: 1.82;
  }
}

/* Intro two-paragraph spacing */
.intro p:not(.star) + p:not(.star) {
  margin-top: 12px;
}

/* Trial navigation and mobile play frame */
body.is-trial-focus .site-header {
  opacity: 0.18;
  transform: translate(-50%, -74%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.is-trial-focus .site-header:hover,
body.is-trial-focus .site-header:focus-within {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sound-unlock {
  display: none;
}

@media (min-width: 681px) and (max-width: 860px) {
  html {
    scroll-padding-top: 28px;
  }

  body.is-trial-focus {
    padding-top: 22px;
  }

  .trial-games {
    width: min(100%, calc(100vw - 28px));
    min-height: calc(100dvh - 34px);
    margin-top: 18px;
    padding: 18px;
    overflow: hidden;
  }

  .trial-games > .section-kicker,
  .trial-copy {
    display: none;
  }

  .trial-games h3 {
    max-width: calc(100% - 130px);
    margin-bottom: 10px;
    font-size: 34px;
    line-height: 1.15;
  }

  .trial-games .game-mascot {
    top: 16px;
    right: 18px;
    transform: scale(0.82);
    transform-origin: top right;
  }

  .trial-playground:not(.is-hidden) {
    display: flex;
    min-height: calc(100dvh - 152px);
    flex-direction: column;
  }

  .sound-unlock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0 0 10px;
    padding: 8px 12px;
    border: 2px solid rgba(63, 53, 39, 0.18);
    border-radius: 8px;
    color: #fffdf8;
    background: #2f7d4a;
    box-shadow: 0 4px 0 #245d3b;
    font-weight: 900;
  }

  .sound-unlock.is-unlocked {
    color: #4a3217;
    background: #fff4d5;
    box-shadow: 0 3px 0 rgba(63, 53, 39, 0.16);
  }

  .line-audio-tip {
    margin: -1px 0 8px;
    padding: 7px 9px;
    font-size: 12px;
    line-height: 1.35;
  }

  .trial-tabs {
    gap: 8px;
    margin-bottom: 10px;
  }

  .trial-panel:not(.is-hidden) {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
  }

  .mini-game-heading {
    margin-bottom: 8px;
  }

  .mini-game-heading h4 {
    font-size: 26px;
    line-height: 1.12;
  }

  .mini-game-heading p {
    font-size: 14px;
    line-height: 1.4;
  }

  .mini-match,
  .sound-game,
  .train-game {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
  }

  .mini-match .match-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    flex: 1 1 auto;
    align-content: center;
  }

  .mini-match .match-card {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .mini-match .match-card-image {
    gap: 4px;
  }

  .mini-match .match-card-image .match-emoji {
    font-size: clamp(34px, 6vw, 48px);
  }

  .mini-match .match-card-image .match-word,
  .sound-card-word {
    min-height: 42px;
    font-size: 19px;
  }

  .sound-options {
    flex: 1 1 auto;
    align-content: center;
  }

  .train-word {
    margin-bottom: 10px;
    padding: 10px 12px;
  }

  .train-slots {
    display: grid;
    grid-template-columns: 128px repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
  }

  .train-engine {
    width: 128px;
    height: 84px;
  }

  .train-slot {
    min-height: 84px;
  }

  .train-pieces {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1 1 auto;
    align-content: start;
  }

  .train-actions {
    margin-top: 10px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 24px;
  }

  body.is-trial-focus {
    padding-top: 18px;
  }

  body.is-trial-focus .site-header {
    opacity: 0.08;
    transform: translate(-50%, -84%);
  }

  body.is-trial-focus .site-header:hover,
  body.is-trial-focus .site-header:focus-within {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .trial-games {
    width: min(100%, calc(100vw - 16px));
    min-height: calc(100dvh - 24px);
    margin-top: 14px;
    padding: 12px;
    overflow: hidden;
  }

  .trial-games > .section-kicker,
  .trial-copy {
    display: none;
  }

  .trial-games h3 {
    max-width: calc(100% - 104px);
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1.12;
  }

  .trial-games .game-mascot {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 88px;
    margin: 0;
    transform: scale(0.72);
    transform-origin: top right;
  }

  .trial-games .mascot-bubble {
    max-width: 118px;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.25;
  }

  .trial-playground:not(.is-hidden) {
    display: flex;
    min-height: calc(100dvh - 130px);
    flex-direction: column;
  }

  .sound-unlock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 2px 0 8px;
    padding: 8px 12px;
    border: 2px solid rgba(63, 53, 39, 0.18);
    border-radius: 8px;
    color: #fffdf8;
    background: #2f7d4a;
    box-shadow: 0 4px 0 #245d3b;
    font-weight: 900;
  }

  .sound-unlock.is-unlocked {
    color: #4a3217;
    background: #fff4d5;
    box-shadow: 0 3px 0 rgba(63, 53, 39, 0.16);
  }

  .trial-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }

  .trial-tab {
    min-height: 40px;
    padding: 6px 4px;
    font-size: 14px;
    line-height: 1.15;
  }

  .trial-panel:not(.is-hidden) {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
  }

  .mini-game-heading {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  .mini-game-heading > span {
    width: 40px;
    height: 40px;
    font-size: 25px;
  }

  .mini-game-heading h4 {
    font-size: 22px;
    line-height: 1.12;
  }

  .mini-game-heading p {
    font-size: 13px;
    line-height: 1.35;
  }

  .mini-match,
  .sound-game,
  .train-game {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
  }

  .mini-match .match-stats {
    align-self: flex-end;
    gap: 6px;
    margin-bottom: 6px;
  }

  .mini-match .match-stats span {
    padding: 6px 8px;
    font-size: 12px;
  }

  .mini-match .match-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    flex: 1 1 auto;
    align-content: center;
  }

  .mini-match .match-card {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .mini-match .match-card-inner {
    border-width: 2px;
    border-radius: 8px;
  }

  .mini-match .match-card-symbol {
    font-size: clamp(30px, 12vw, 48px);
  }

  .mini-match .match-card-image {
    gap: 3px;
  }

  .mini-match .match-card-image .match-emoji {
    font-size: clamp(32px, 11vw, 46px);
  }

  .mini-match .match-card-image .match-word,
  .sound-card-word {
    min-height: 34px;
    font-size: 18px;
  }

  .mini-match .zhuyin-word {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    min-height: 36px;
    padding: 0 2px;
    align-items: center;
    justify-content: center;
  }

  .mini-match .zhuyin-annotated-char {
    position: static;
    display: contents;
    padding-right: 0;
  }

  .mini-match .zhuyin-main-char,
  .mini-match .zhuyin-rest-chars {
    display: inline;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
  }

  .mini-match .zhuyin-main-char::after {
    content: "";
  }

  .mini-match .zhuyin-mark,
  .sound-picture-card .zhuyin-mark {
    top: -18px;
    right: -18px;
    min-width: 20px;
    max-width: 24px;
    max-height: 56px;
    padding: 2px 1px;
    transform: none;
    border-radius: 6px;
    background: rgba(255, 244, 213, 0.96);
    box-shadow:
      inset 0 0 0 1px rgba(121, 88, 42, 0.24),
      1px 2px 0 rgba(63, 53, 39, 0.1);
    font-size: 10px;
    overflow: hidden;
  }

  .mini-match .zhuyin-tone,
  .sound-picture-card .zhuyin-tone {
    font-size: 0.95em;
  }

  .mini-match .match-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .mini-match .match-actions p {
    grid-column: 1 / -1;
    min-height: 18px;
    font-size: 12px;
    line-height: 1.3;
  }

  .sound-stage {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 10px;
    min-height: 86px;
    padding: 10px;
  }

  .sound-play {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }

  .sound-options {
    grid-template-columns: 1fr;
    gap: 8px;
    flex: 1 1 auto;
    align-content: center;
  }

  .sound-picture-card {
    min-height: 86px;
    grid-template-columns: 72px 1fr;
    justify-items: center;
    padding: 8px 10px;
  }

  .sound-card-emoji {
    font-size: 36px;
  }

  .sound-card-word.zhuyin-word {
    position: relative;
    display: inline-flex;
    min-width: 96px;
    min-height: 42px;
    padding: 0 24px 0 4px;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .sound-card-word .zhuyin-annotated-char {
    position: static;
    display: contents;
    padding-right: 0;
  }

  .sound-card-word .zhuyin-main-char,
  .sound-card-word .zhuyin-rest-chars {
    display: inline;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
  }

  .sound-picture-card .zhuyin-mark {
    top: 50%;
    right: 2px;
    min-width: 18px;
    max-width: 20px;
    max-height: 50px;
    transform: translateY(-50%);
    font-size: 9px;
  }

  .train-word {
    margin-bottom: 6px;
    padding: 7px 9px;
    font-size: 13px;
    line-height: 1.25;
  }

  .train-slots {
    display: grid;
    grid-template-columns: 94px repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 8px 0 12px;
  }

  .train-engine {
    width: 94px;
    height: 72px;
  }

  .train-slot {
    min-height: 72px;
    font-size: 13px;
  }

  .train-pieces {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    flex: 1 1 auto;
    align-content: center;
  }

  .train-piece {
    min-height: 50px;
    font-size: 24px;
  }

  .train-actions {
    display: grid;
    grid-template-columns: minmax(112px, auto) 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .game-message {
    font-size: 13px;
    line-height: 1.35;
  }

  .trial-cta {
    min-height: 38px;
    margin-top: 8px;
    padding: 9px 12px;
    font-size: 14px;
  }
}
