body.has-cursor-sprinkles {
  cursor: default;
}

.course-cover {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 40px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 215, 106, .72), transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(255, 154, 194, .62), transparent 25%),
    linear-gradient(145deg, #dff7ff, #fff8dc 58%, #ffe4f0);
}

.course-cover.is-hidden {
  display: none;
}

.course-cover.is-launching .cover-copy,
.course-cover.is-launching .cover-mascot {
  animation: coverLift 880ms ease forwards;
}

.cover-sky i {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  animation: floaty 4s ease-in-out infinite;
}

.cover-sky i:nth-child(1) { width: 120px; height: 58px; left: 8%; top: 14%; }
.cover-sky i:nth-child(2) { width: 92px; height: 46px; right: 12%; top: 18%; animation-delay: .5s; }
.cover-sky i:nth-child(3) { width: 140px; height: 64px; left: 18%; bottom: 14%; animation-delay: .9s; }
.cover-sky i:nth-child(4) { width: 80px; height: 42px; right: 18%; bottom: 18%; animation-delay: 1.2s; }

.cover-mascot {
  position: absolute;
  right: clamp(60px, 10vw, 150px);
  bottom: clamp(70px, 10vh, 130px);
  width: min(30vw, 330px);
  animation: liliHop 2.2s ease-in-out infinite;
}

.cover-mascot img {
  width: 100%;
  filter: drop-shadow(0 28px 30px rgba(31,47,76,.2));
}

.cover-animal {
  width: 100%;
  overflow: visible;
  filter: drop-shadow(0 28px 30px rgba(31,47,76,.2));
}

.animal-shadow ellipse {
  fill: rgba(31,47,76,.16);
}

.animal-fur {
  fill: url("#coverAnimalFur");
  stroke: rgba(36,50,78,.16);
  stroke-width: 5;
  stroke-linejoin: round;
}

.animal-inner {
  fill: #ffb5d2;
  stroke: rgba(255,125,110,.2);
  stroke-width: 4;
}

.animal-cape {
  fill: url("#coverAnimalCape");
  stroke: rgba(36,50,78,.12);
  stroke-width: 4;
  stroke-linejoin: round;
}

.animal-belly {
  fill: rgba(255,248,220,.86);
}

.animal-eye {
  fill: #24324e;
}

.animal-eye-shine {
  fill: #fff;
}

.animal-cheek {
  fill: rgba(255,125,110,.72);
}

.animal-nose {
  fill: #ff7d6e;
}

.animal-smile {
  fill: none;
  stroke: #24324e;
  stroke-width: 7;
  stroke-linecap: round;
}

.animal-star,
.animal-spark {
  fill: #ffd76a;
  stroke: rgba(255,255,255,.82);
  stroke-width: 4;
  stroke-linejoin: round;
}

.animal-ears {
  transform-origin: 180px 190px;
  animation: bunnyEars 2.6s ease-in-out infinite;
}

.animal-wand {
  transform-origin: 76px 310px;
  animation: bunnyWand 1.9s ease-in-out infinite;
}

.animal-star {
  transform-origin: 62px 176px;
  animation: animalStarPulse 1.4s ease-in-out infinite;
}

.animal-spark {
  animation: animalSpark 1.5s ease-in-out infinite;
}

.spark-b {
  animation-delay: .18s;
}

.spark-c {
  animation-delay: .36s;
}

.animal-paw-left {
  transform-origin: 93px 267px;
  animation: bunnyPawLeft 1.9s ease-in-out infinite;
}

.animal-paw-right {
  transform-origin: 263px 270px;
  animation: bunnyPawRight 2.3s ease-in-out infinite;
}

.cover-guide {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 44% 46% 50% 48%;
  background:
    radial-gradient(circle at 34% 38%, #24324e 0 4.5%, transparent 5%),
    radial-gradient(circle at 64% 38%, #24324e 0 4.5%, transparent 5%),
    radial-gradient(circle at 33% 53%, rgba(255, 125, 110, .86) 0 7%, transparent 7.5%),
    radial-gradient(circle at 67% 53%, rgba(255, 125, 110, .86) 0 7%, transparent 7.5%),
    linear-gradient(145deg, #fff8dc 0 18%, #ffffff 18% 56%, #dff7ff 56% 100%);
  border: 8px solid rgba(255,255,255,.88);
  box-shadow: 0 28px 34px rgba(31,47,76,.18);
}

.cover-guide::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  width: 28%;
  height: 13%;
  border-bottom: 8px solid #24324e;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.cover-guide::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 64%;
  height: 28%;
  border-radius: 48% 52% 44% 42%;
  background: linear-gradient(135deg, #ff7d6e, #ffd76a);
  transform: translateX(-50%) rotate(-3deg);
}

.cover-guide span,
.cover-guide b {
  position: absolute;
  z-index: 2;
  display: block;
}

.cover-guide span {
  left: 18%;
  top: 14%;
  width: 64%;
  height: 24%;
  border-radius: 999px;
  background: linear-gradient(135deg, #d7c6ff, #ffb5d2);
  transform: rotate(-6deg);
}

.cover-guide b {
  right: 10%;
  top: 8%;
  width: 20%;
  aspect-ratio: 1;
  background: #ffd76a;
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 79% 92%, 50% 71%, 21% 92%, 31% 56%, 2% 35%, 38% 34%);
  animation: twinkle 1.6s ease-in-out infinite;
}

.cover-guide i {
  position: absolute;
  left: 16%;
  bottom: 7%;
  z-index: 3;
  width: 18%;
  height: 48%;
  border-radius: 999px;
  background: linear-gradient(180deg, #43a4f4, #7bd8b8);
  transform: rotate(28deg);
  transform-origin: 50% 80%;
  animation: wandWave 1.9s ease-in-out infinite;
}

.cover-copy {
  position: relative;
  z-index: 2;
  width: min(900px, 86vw);
  display: grid;
  gap: 20px;
  justify-items: start;
}

.cover-copy p {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--leaf);
  background: rgba(255,255,255,.78);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
}

.cover-copy h1 {
  margin: 0;
  font-size: clamp(62px, 8.7vw, 124px);
  line-height: .94;
  color: var(--ink);
  text-shadow: 0 10px 0 rgba(255,255,255,.66);
}

.cover-copy strong {
  color: var(--ink);
  font-size: clamp(24px, 3.4vw, 42px);
}

.cover-start {
  min-height: 74px;
  padding: 0 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--yellow), var(--mint));
  box-shadow: 0 18px 28px rgba(31,47,76,.18);
  font-size: 30px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.cover-start:hover {
  transform: translateY(-5px) scale(1.04) rotate(-1deg);
  filter: saturate(1.12);
  box-shadow: 0 24px 38px rgba(31,47,76,.23);
}

.cover-launch-burst {
  position: fixed;
  inset: 0;
  z-index: 7000;
  pointer-events: none;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(255,255,255,.78), rgba(255,248,220,.24) 34%, transparent 62%);
}

.cover-launch-burst::before {
  content: "";
  width: min(42vw, 420px);
  aspect-ratio: 1;
  border-radius: 45% 55% 48% 52%;
  background:
    radial-gradient(circle at 38% 42%, #24324e 0 4%, transparent 4.5%),
    radial-gradient(circle at 62% 42%, #24324e 0 4%, transparent 4.5%),
    radial-gradient(circle at 34% 58%, #ff7d6e 0 7%, transparent 7.6%),
    radial-gradient(circle at 66% 58%, #ff7d6e 0 7%, transparent 7.6%),
    linear-gradient(145deg, #fff, #dff7ff);
  border: 10px solid rgba(255,255,255,.92);
  box-shadow: 0 30px 60px rgba(31,47,76,.2);
  animation: launchBuddy 880ms ease forwards;
}

.cover-launch-burst span {
  position: absolute;
  width: 42px;
  aspect-ratio: 1;
  background: var(--color);
  border-radius: 50%;
  animation: coverBurst 920ms cubic-bezier(.17,.84,.32,1.18) var(--delay) forwards;
}

.cover-launch-burst span:nth-child(3n + 1) {
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 79% 92%, 50% 71%, 21% 92%, 31% 56%, 2% 35%, 38% 34%);
}

.cover-launch-burst span:nth-child(3n + 2) {
  border-radius: 52% 48% 46% 54%;
  transform: rotate(45deg);
}

.cover-launch-burst span:nth-child(3n) {
  clip-path: polygon(50% 8%, 90% 42%, 76% 92%, 50% 78%, 24% 92%, 10% 42%);
}

.slide img {
  cursor: zoom-in;
}

.image-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(20, 27, 44, .78);
  backdrop-filter: blur(8px);
}

.image-fullscreen-overlay.is-open {
  display: grid;
  animation: fullscreenFade 180ms ease;
}

.image-fullscreen-overlay img {
  max-width: min(94vw, 1280px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .36);
  cursor: zoom-out;
}

@keyframes fullscreenFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cursor-sprinkle {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
  border-radius: 50% 50% 50% 8px;
  background: var(--sprinkle-color, #ffd76a);
  box-shadow: 0 8px 16px rgba(31, 47, 76, 0.16);
  transform: translate(var(--sprinkle-x), var(--sprinkle-y)) rotate(var(--sprinkle-rotate));
  animation: cursorSprinkle 820ms ease-out forwards;
}

.cursor-sprinkle.star {
  clip-path: polygon(50% 0, 62% 34%, 100% 50%, 62% 66%, 50% 100%, 38% 66%, 0 50%, 38% 34%);
  border-radius: 0;
}

.cursor-sprinkle.heart {
  border-radius: 55% 55% 50% 50%;
  transform: translate(var(--sprinkle-x), var(--sprinkle-y)) rotate(-45deg);
}

.cursor-sprinkle.heart::before,
.cursor-sprinkle.heart::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: inherit;
}

.cursor-sprinkle.heart::before {
  left: 8px;
}

.cursor-sprinkle.heart::after {
  top: -8px;
}

@keyframes cursorSprinkle {
  0% {
    opacity: 0.95;
    transform: translate(var(--sprinkle-x), var(--sprinkle-y)) rotate(var(--sprinkle-rotate)) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--sprinkle-x) + var(--drift-x)), calc(var(--sprinkle-y) + var(--drift-y))) rotate(calc(var(--sprinkle-rotate) + 120deg)) scale(0.2);
  }
}

.tab.is-hidden,
.slide.is-hidden-step {
  display: none !important;
}

.life-examples article,
.learning-choice,
.scene-card,
.detective-vote,
.rainbow-item {
  user-select: none;
}

.life-examples article.is-active {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 0 16px 24px rgba(31, 47, 76, 0.16);
}

.life-picture-board {
  min-height: 390px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 215, 106, 0.44), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(123, 216, 184, 0.34), transparent 24%),
    #fff;
}

.life-picture-board img {
  width: min(100%, 390px);
  max-height: 285px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(37, 48, 71, 0.15));
  animation: cutePop 360ms ease both;
}

.life-picture-board strong {
  font-size: 26px;
}

.icebreaker-refresh .life-examples,
.concept-refresh .idea-grid {
  grid-template-columns: 1fr;
  align-content: start;
}

.icebreaker-refresh .life-examples article,
.concept-refresh .idea-grid article {
  min-height: 108px;
  grid-template-columns: auto 1fr;
  justify-items: start;
  text-align: left;
}

.icebreaker-refresh .life-examples .example-icon {
  grid-row: span 2;
}

.concept-refresh .signal-board {
  min-height: 390px;
  margin-top: 34px;
}

.welcome-refresh {
  grid-template-columns: 1fr !important;
  gap: 18px;
}

.welcome-refresh .slide-copy {
  max-width: none;
}

.welcome-refresh .magic-world {
  min-height: 270px;
  padding-top: 58px;
  background: transparent;
  border: 0;
}

.welcome-refresh #magicCanvas {
  display: none;
}

.welcome-refresh .mascot {
  box-shadow: 0 14px 24px rgba(31, 47, 76, 0.12);
}

.stage-wide,
.detective-slide.refresh-detective,
.game-slide.refresh-game {
  grid-template-columns: 1fr !important;
}

.stage-wide .slide-copy,
.refresh-detective .slide-copy,
.refresh-game .slide-copy {
  max-width: none;
}

.welcome-slide .magic-world {
  min-height: 320px;
}

.learning-lab {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.knowledge-feeder {
  min-height: 350px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 215, 106, 0.42), transparent 26%),
    radial-gradient(circle at 76% 18%, rgba(67, 164, 244, 0.28), transparent 26%),
    #fff;
  clip-path: polygon(4% 0, 98% 5%, 100% 86%, 88% 100%, 5% 96%, 0 12%);
}

.learning-bot {
  width: 170px;
  height: 170px;
  position: relative;
  border-radius: 46px 46px 56px 56px;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  box-shadow: 0 18px 28px rgba(31, 47, 76, 0.16);
}

.learning-bot::before,
.learning-bot::after {
  content: "";
  position: absolute;
  top: 58px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.learning-bot::before {
  left: 48px;
}

.learning-bot::after {
  right: 48px;
}

.learning-mouth {
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: 70px;
  height: 34px;
  border-radius: 0 0 60px 60px;
  background: #253047;
  transform: translateX(-50%);
  overflow: hidden;
}

.learning-mouth i {
  position: absolute;
  left: 50%;
  top: 44px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateX(-50%);
}

.knowledge-feeder.is-fed .learning-mouth i {
  animation: candyEat 520ms ease;
}

.learning-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.learning-choice {
  min-height: 124px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid rgba(67, 164, 244, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.learning-choice:hover,
.learning-choice.is-picked {
  transform: translateY(-5px) rotate(-1deg);
  border-color: var(--yellow);
  box-shadow: 0 14px 22px rgba(31, 47, 76, 0.12);
}

.learning-choice.is-tricky {
  border-color: rgba(255, 125, 110, 0.42);
}

.fruit-pic {
  width: 62px;
  height: 62px;
  position: relative;
  display: block;
  border-radius: 48% 52% 50% 50%;
  background: var(--coral);
  box-shadow: inset -10px -12px rgba(0, 0, 0, 0.08);
}

.fruit-pic::before {
  content: "";
  position: absolute;
  left: 31px;
  top: -16px;
  width: 8px;
  height: 22px;
  border-radius: 8px;
  background: #8a5c00;
  transform: rotate(18deg);
}

.fruit-pic::after {
  content: "";
  position: absolute;
  left: 37px;
  top: -11px;
  width: 22px;
  height: 14px;
  border-radius: 14px 14px 14px 2px;
  background: var(--mint);
  transform: rotate(-16deg);
}

.fruit-pic.green {
  background: var(--mint);
}

.fruit-pic.bite::after {
  left: 44px;
  top: 15px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
}

.fruit-pic.tomato {
  border-radius: 50%;
  background: #ff5b4f;
}

.learning-feedback {
  min-height: 54px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 215, 106, 0.22);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.training-lab {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.training-left {
  min-height: 390px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 215, 106, 0.42), transparent 26%),
    radial-gradient(circle at 78% 18%, rgba(67, 164, 244, 0.28), transparent 24%),
    #fff;
  clip-path: polygon(4% 0, 98% 5%, 100% 86%, 88% 100%, 5% 96%, 0 12%);
}

.training-meter {
  width: min(100%, 330px);
  height: 34px;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(37, 48, 71, 0.1);
  border: 1px solid rgba(37, 48, 71, 0.12);
}

.training-meter span {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 900;
}

.training-meter b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--mint));
  transition: width 360ms ease;
}

.training-bot {
  width: min(100%, 300px);
  min-height: 210px;
  position: relative;
  display: grid;
  place-items: center;
  align-content: end;
  gap: 12px;
  padding: 92px 18px 20px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  box-shadow: 0 18px 28px rgba(31, 47, 76, 0.16);
  color: #fff;
  text-align: center;
  font-weight: 900;
}

.training-bot .bot-eye {
  position: absolute;
  top: 56px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.training-bot .bot-eye:first-child {
  left: 96px;
}

.training-bot .bot-eye:nth-child(2) {
  right: 96px;
}

.training-bot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 92px;
  width: 58px;
  height: 22px;
  border-bottom: 7px solid #fff;
  border-radius: 0 0 40px 40px;
  transform: translateX(-50%);
}

.training-bot.is-thinking {
  animation: matchPop 520ms ease;
}

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

.word-inputs.is-removed,
.action-row .is-removed,
.is-removed {
  display: none !important;
}

.word-bank.refresh-word-bank {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.word-bank.refresh-word-bank button.is-selected {
  transform: translateY(-5px) rotate(-1deg) scale(1.03);
  background: linear-gradient(135deg, var(--yellow), var(--coral));
  color: #fff;
  box-shadow: 0 14px 22px rgba(255, 125, 110, 0.2);
}

.prompt-duel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.prompt-duel-card {
  min-height: 430px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  clip-path: polygon(4% 0, 97% 4%, 100% 88%, 90% 100%, 5% 96%, 0 12%);
}

.prompt-duel-card.simple {
  background: linear-gradient(135deg, #fff, #f2fbff);
}

.prompt-duel-card.magic {
  background: linear-gradient(135deg, #fff8dc, #e7fff4);
}

.prompt-duel-card h3 {
  margin: 0;
  font-size: 28px;
}

.prompt-text {
  min-height: 78px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(37, 48, 71, 0.2);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.55;
}

.duel-image-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.72) 1px, transparent 1px),
    rgba(255,255,255,.62);
  background-size: 24px 24px;
}

.duel-image-frame img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.duel-image-frame img.is-visible {
  display: block;
}

.cat-placeholder {
  width: 160px;
  height: 150px;
  position: relative;
  border-radius: 48px 48px 60px 60px;
  background: #ffb36a;
}

.cat-placeholder::before,
.cat-placeholder::after {
  content: "";
  position: absolute;
  top: -38px;
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-bottom: 58px solid #ffb36a;
}

.cat-placeholder::before {
  left: 8px;
}

.cat-placeholder::after {
  right: 8px;
}

.cat-placeholder span {
  position: absolute;
  top: 58px;
  left: 42px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 60px 0 var(--ink);
}

.cat-placeholder span::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 36px;
  width: 34px;
  height: 14px;
  border-bottom: 6px solid #fff;
  border-radius: 0 0 28px 28px;
}

.cat-placeholder.magic-cat {
  background: linear-gradient(135deg, #ffb36a, #ffd76a);
  box-shadow: 0 0 0 12px rgba(255, 215, 106, 0.22);
}

.cat-placeholder.magic-cat i {
  position: absolute;
  right: -18px;
  top: 18px;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%);
  animation: cutePop 1.2s ease-in-out infinite;
}

.lili-preview.refresh-lili {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 215, 106, 0.45), transparent 26%),
    radial-gradient(circle at 78% 22%, rgba(123, 216, 184, 0.34), transparent 24%),
    #fff;
}

.lili-preview .lili-default-img,
.game-lili .lili-default-img {
  width: min(82%, 310px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(31, 47, 76, 0.16));
}

.game-lili .lili-default-img {
  width: 116px;
}

.refresh-game .game-panel {
  padding: 20px;
}

.maze-board {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(67, 164, 244, 0.22);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 215, 106, 0.4), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(123, 216, 184, 0.34), transparent 24%),
    linear-gradient(180deg, #dcf6ff, #fff8dd 58%, #dbf4df);
}

.maze-board.theme-forest {
  background: linear-gradient(180deg, #e7fff4, #fff4cf 62%, #bdecb9);
}

.maze-board.theme-space {
  background: radial-gradient(circle at 18% 20%, #ffd76a 0 8px, transparent 9px), linear-gradient(180deg, #2d3d72, #7465b9);
}

.maze-board.theme-ocean {
  background: linear-gradient(180deg, #bdeeff, #76d0ff 58%, #4db5d9);
}

.maze-board.theme-library {
  background: linear-gradient(180deg, #fff2cd, #ffe1c7 58%, #dfc39a);
}

.maze-board.theme-moon {
  background: radial-gradient(circle at 78% 22%, #fff8bd 0 38px, transparent 39px), linear-gradient(180deg, #34467f, #8fb2ff);
}

.maze-road {
  position: absolute;
  left: 74px;
  right: 96px;
  bottom: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0;
}

.maze-road span {
  height: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px dashed rgba(37, 48, 71, 0.18);
}

.maze-lili {
  position: absolute;
  left: calc(54px + var(--step, 0) * 24%);
  bottom: 40px;
  z-index: 4;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  transition: left 320ms ease, transform 220ms ease;
}

.maze-lili img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(31, 47, 76, 0.18));
}

.maze-lili[style*="--step: 1"],
.maze-lili[style*="--step: 2"],
.maze-lili[style*="--step: 3"] {
  animation: liliHop 430ms ease;
}

.maze-task {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  width: min(540px, calc(100% - 36px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 14px rgba(31, 47, 76, 0.1);
}

.maze-task strong {
  font-size: 20px;
}

.maze-task p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.maze-task span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
}

.maze-task span.now {
  background: var(--yellow);
}

.maze-task span.done {
  background: var(--mint);
  color: #fff;
}

.maze-items {
  position: absolute;
  inset: 0;
}

.maze-item {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 96px;
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  box-shadow: 0 14px 22px rgba(31, 47, 76, 0.16);
  font-size: 22px;
  font-weight: 900;
  clip-path: polygon(8% 0, 96% 6%, 100% 86%, 88% 100%, 4% 94%, 0 12%);
  animation: floaty 2.5s ease-in-out infinite;
}

.maze-item.decoy {
  background: linear-gradient(135deg, var(--coral), #ffb36a);
}

.maze-item.is-collected {
  opacity: 0;
  transform: scale(1.5) rotate(20deg);
  pointer-events: none;
}

.maze-item.is-wrong {
  animation: shake 420ms ease;
}

.rainbow-playground {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(67, 164, 244, 0.22);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 215, 106, 0.4), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(123, 216, 184, 0.34), transparent 24%),
    linear-gradient(180deg, #dcf6ff, #fff8dd 58%, #dbf4df);
}

.rainbow-playground.theme-forest {
  background: linear-gradient(180deg, #e7fff4, #fff4cf 62%, #bdecb9);
}

.rainbow-playground.theme-space {
  background: radial-gradient(circle at 20% 20%, #ffd76a 0 8px, transparent 9px), linear-gradient(180deg, #2d3d72, #7465b9);
}

.rainbow-playground.theme-ocean {
  background: linear-gradient(180deg, #bdeeff, #76d0ff 58%, #4db5d9);
}

.rainbow-playground.theme-library {
  background: linear-gradient(180deg, #fff2cd, #ffe1c7 58%, #dfc39a);
}

.rainbow-playground.theme-moon {
  background: radial-gradient(circle at 78% 22%, #fff8bd 0 38px, transparent 39px), linear-gradient(180deg, #34467f, #8fb2ff);
}

.rainbow-level-info {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.rainbow-level-info span,
.rainbow-level-info strong {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  font-weight: 900;
  box-shadow: 0 8px 14px rgba(31, 47, 76, 0.1);
}

.rainbow-lili {
  position: absolute;
  left: 48px;
  bottom: 40px;
  z-index: 3;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  transition: transform 180ms ease;
}

.rainbow-lili img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(31, 47, 76, 0.18));
}

.rainbow-lili.is-hop {
  animation: liliHop 420ms ease;
}

.rainbow-items {
  position: absolute;
  inset: 0;
}

.rainbow-item {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  box-shadow: 0 14px 22px rgba(31, 47, 76, 0.16);
  font-size: 42px;
  font-weight: 900;
  animation: floaty 2.5s ease-in-out infinite;
  transition: transform 160ms ease, opacity 160ms ease;
}

.rainbow-item[data-kind="target"] {
  background: linear-gradient(135deg, var(--blue), var(--mint));
}

.rainbow-item.is-collected {
  opacity: 0;
  transform: scale(1.5) rotate(20deg);
  pointer-events: none;
}

.rainbow-item.is-wrong {
  animation: shake 420ms ease;
}

.rainbow-finish {
  position: absolute;
  right: 34px;
  bottom: 48px;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: conic-gradient(from 0deg, var(--coral), var(--yellow), var(--mint), var(--blue), var(--lavender), var(--coral));
  box-shadow: 0 18px 28px rgba(31, 47, 76, 0.18);
  font-weight: 900;
}

.refresh-detective .detective-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
}

.detective-scene-card {
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8dc, #e7fff4);
  border: 1px solid var(--line);
  text-align: center;
}

.detective-big-visual {
  width: min(100%, 300px);
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.72) 1px, transparent 1px),
    rgba(255,255,255,.52);
  background-size: 26px 26px;
}

.detective-big-visual svg {
  width: 86%;
  height: 86%;
}

.detective-board-new {
  display: grid;
  gap: 12px;
  align-content: center;
}

.detective-ai-answer {
  min-height: 88px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  border: 2px dashed rgba(67, 164, 244, 0.24);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.45;
}

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

.detective-vote {
  min-height: 84px;
  border-radius: 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.detective-vote[data-vote="yes"] {
  background: linear-gradient(135deg, var(--mint), var(--blue));
}

.detective-vote[data-vote="no"] {
  background: linear-gradient(135deg, var(--coral), #ff9ac2);
}

.detective-vote.is-right {
  animation: matchPop 620ms ease;
  box-shadow: 0 0 0 8px rgba(255, 215, 106, 0.28);
}

.detective-vote.is-wrong {
  animation: shake 460ms ease;
}

.pass-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pass-card-grid article {
  min-height: 178px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  clip-path: polygon(5% 0, 98% 5%, 100% 86%, 88% 100%, 4% 94%, 0 12%);
  text-align: center;
}

.pass-icon {
  width: 62px;
  height: 62px;
  position: relative;
  display: block;
  border-radius: 50%;
  background: linear-gradient(135deg, #43a4f4, #7bd8b8);
  box-shadow: inset 0 -8px 0 rgba(36,50,78,.12), 0 8px 16px rgba(31,47,76,.12);
}

.pass-icon::before,
.pass-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.ask-icon {
  background: linear-gradient(135deg, #43a4f4, #d7c6ff);
}

.ask-icon::before {
  left: 16px;
  top: 18px;
  width: 30px;
  height: 22px;
  border-radius: 10px;
  background: #fff;
}

.ask-icon::after {
  left: 24px;
  top: 34px;
  width: 13px;
  height: 13px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 10% 100%);
}

.imagine-icon {
  background: linear-gradient(135deg, #ff7d6e, #ffd76a);
}

.imagine-icon::before {
  inset: 13px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 79% 92%, 50% 71%, 21% 92%, 31% 56%, 2% 35%, 38% 34%);
}

.imagine-icon::after {
  right: 10px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff8dc;
}

.learn-icon {
  background: linear-gradient(135deg, #7bd8b8, #ffd76a);
}

.learn-icon::before {
  left: 13px;
  top: 18px;
  width: 36px;
  height: 28px;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(90deg, #fff 0 47%, rgba(36,50,78,.16) 47% 53%, #fff 53% 100%);
  transform: perspective(60px) rotateX(12deg);
}

.learn-icon::after {
  left: 22px;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff7d6e;
  box-shadow: 0 0 0 5px rgba(255,255,255,.72);
}

.check-icon {
  background: linear-gradient(135deg, #d7c6ff, #43a4f4);
}

.check-icon::before {
  left: 15px;
  top: 13px;
  width: 27px;
  height: 27px;
  border: 7px solid #fff;
  border-radius: 50%;
}

.check-icon::after {
  right: 13px;
  bottom: 14px;
  width: 21px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  transform: rotate(43deg);
}

.shield-icon {
  background: linear-gradient(135deg, #ffb5d2, #ff7d6e);
}

.shield-icon::before {
  left: 16px;
  top: 11px;
  width: 30px;
  height: 39px;
  background: #fff;
  clip-path: polygon(50% 0, 91% 14%, 82% 70%, 50% 100%, 18% 70%, 9% 14%);
}

.shield-icon::after {
  left: 27px;
  top: 22px;
  width: 8px;
  height: 20px;
  border-radius: 999px;
  background: #ff7d6e;
  box-shadow: 0 24px 0 -2px #ff7d6e;
}

.final-promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.final-promise article {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 900;
}

.final-refresh {
  display: none;
  grid-template-columns: 1fr !important;
  padding-top: 120px;
}

.final-refresh.is-active {
  display: grid;
}

.final-wide {
  min-height: 420px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
}

.final-wide h2 {
  max-width: 1040px;
}

.final-bottom {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.final-challenge {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff8dc, #e7fff4);
  clip-path: polygon(5% 0, 98% 6%, 100% 86%, 88% 100%, 4% 94%, 0 12%);
}

.final-challenge span,
.final-challenge strong {
  font-weight: 900;
}

.final-challenge span {
  color: var(--coral);
}

.final-challenge p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

@keyframes candyEat {
  0% {
    top: 44px;
    opacity: 0;
  }
  45% {
    top: 4px;
    opacity: 1;
  }
  100% {
    top: 24px;
    opacity: 0;
  }
}

@keyframes cutePop {
  0% {
    transform: scale(0.86) rotate(-2deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes liliHop {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-22px) scale(1.04);
  }
}

@keyframes coverLift {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-26px) scale(1.08);
    opacity: 0;
  }
}

@keyframes wandWave {
  0%,
  100% {
    transform: rotate(25deg);
  }
  50% {
    transform: rotate(42deg) translateY(-6px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(.86) rotate(0);
  }
  50% {
    transform: scale(1.14) rotate(16deg);
  }
}

@keyframes launchBuddy {
  0% {
    transform: translateY(40px) scale(.6) rotate(-8deg);
    opacity: 0;
  }
  45% {
    transform: translateY(0) scale(1.04) rotate(4deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) scale(.9) rotate(0);
    opacity: 0;
  }
}

@keyframes coverBurst {
  0% {
    transform: translate(0, 0) scale(.2) rotate(0);
    opacity: 0;
  }
  16% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(1.08) rotate(210deg);
    opacity: 0;
  }
}

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

@keyframes bunnyWand {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(-9deg) translateY(-8px);
  }
}

@keyframes animalStarPulse {
  0%,
  100% {
    transform: scale(1) rotate(0);
  }
  50% {
    transform: scale(1.13) rotate(12deg);
  }
}

@keyframes animalSpark {
  0%,
  100% {
    transform: translateY(0) scale(.86);
    opacity: .65;
  }
  50% {
    transform: translateY(-10px) scale(1.18);
    opacity: 1;
  }
}

@keyframes bunnyPawLeft {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(-8deg) translateY(-4px);
  }
}

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

@media (max-width: 860px) {
  .learning-lab,
  .training-lab,
  .prompt-duel,
  .refresh-detective .detective-card,
  .pass-card-grid,
  .final-promise,
  .final-bottom {
    grid-template-columns: 1fr;
  }

  .learning-choice-grid,
  .training-actions,
  .word-bank.refresh-word-bank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rainbow-item {
    width: 74px;
    height: 74px;
    font-size: 32px;
  }
}

.slide.compact-slide {
  min-height: 500px;
  gap: 16px;
  padding-top: 128px;
}

.compact-slide .lead {
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.45;
}

.icebreaker-refresh .life-picture-board,
.concept-refresh .signal-board {
  min-height: 320px;
}

.icebreaker-refresh .life-examples article,
.concept-refresh .idea-grid article {
  min-height: 92px;
}

.life-picture-board img {
  width: min(100%, 430px);
  max-height: 238px;
  border-radius: 18px;
}

.welcome-refresh .magic-world {
  min-height: 245px;
  display: flex;
  justify-content: center;
  gap: clamp(32px, 8vw, 86px);
  padding-top: 34px;
}

.welcome-refresh .mascot {
  width: clamp(150px, 16vw, 185px);
  height: clamp(150px, 16vw, 185px);
  transform-origin: center bottom;
}

.learning-refresh .training-lab {
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 16px;
}

.learning-refresh .training-left {
  min-height: 300px;
  padding: 16px;
}

.training-photo {
  width: 92px;
  height: 70px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 12px rgba(31, 47, 76, 0.12);
}

.learning-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.training-bot.is-good-data {
  background: linear-gradient(135deg, #7bd8b8, #43a4f4);
  box-shadow: 0 0 0 8px rgba(123, 216, 184, 0.22), 0 18px 28px rgba(31, 47, 76, 0.16);
}

.training-bot.is-bad-data {
  background: linear-gradient(135deg, #ff7d6e, #ffb36a);
  box-shadow: 0 0 0 8px rgba(255, 125, 110, 0.22), 0 18px 28px rgba(31, 47, 76, 0.16);
}

.prompt-duel-card {
  min-height: 360px;
}

.prompt-duel-card .prompt-text {
  min-height: 74px;
}

.duel-image-frame {
  min-height: 180px;
}

.duel-image-frame::before {
  content: "等待生成";
  color: rgba(37, 48, 71, 0.42);
  font-size: 28px;
  font-weight: 900;
}

.duel-image-frame:has(img.is-visible)::before,
.duel-image-frame:has(.mini-loader.is-visible)::before {
  content: "";
}

.bridge-board {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(67, 164, 244, 0.22);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 215, 106, 0.44), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(123, 216, 184, 0.34), transparent 24%),
    linear-gradient(180deg, #dcf6ff, #fff8dd 58%, #dbf4df);
}

.bridge-board.theme-forest {
  background: linear-gradient(180deg, #e7fff4, #fff4cf 62%, #bdecb9);
}

.bridge-board.theme-space {
  background: radial-gradient(circle at 18% 20%, #ffd76a 0 8px, transparent 9px), linear-gradient(180deg, #2d3d72, #7465b9);
}

.bridge-board.theme-ocean {
  background: linear-gradient(180deg, #bdeeff, #76d0ff 58%, #4db5d9);
}

.bridge-board.theme-library {
  background: linear-gradient(180deg, #fff2cd, #ffe1c7 58%, #dfc39a);
}

.bridge-board.theme-moon {
  background: radial-gradient(circle at 78% 22%, #fff8bd 0 38px, transparent 39px), linear-gradient(180deg, #34467f, #8fb2ff);
}

.bridge-sky span {
  position: absolute;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  animation: floaty 3s ease-in-out infinite;
}

.bridge-sky span:nth-child(1) { left: 12%; top: 15%; }
.bridge-sky span:nth-child(2) { left: 45%; top: 10%; animation-delay: .4s; }
.bridge-sky span:nth-child(3) { right: 11%; top: 18%; animation-delay: .8s; }

.bridge-track {
  position: absolute;
  left: 96px;
  right: 96px;
  bottom: 108px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bridge-track span {
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 3px dashed rgba(37, 48, 71, 0.2);
  transition: background 240ms ease, transform 240ms ease;
}

.bridge-track span.is-fixed {
  background: linear-gradient(90deg, #ff7d6e, #ffd76a, #7bd8b8, #43a4f4);
  border-style: solid;
  transform: translateY(-6px);
  animation: matchPop 520ms ease;
}

.bridge-lili {
  position: absolute;
  left: calc(58px + var(--step, 0) * 27%);
  bottom: 34px;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  transition: left 360ms ease;
}

.bridge-lili img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(31, 47, 76, 0.18));
}

.bridge-task {
  position: absolute;
  left: 18px;
  top: 18px;
  width: min(560px, calc(100% - 36px));
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 14px rgba(31, 47, 76, 0.1);
}

.bridge-task strong {
  font-size: 22px;
}

.bridge-task p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.bridge-options {
  position: absolute;
  right: 20px;
  top: 118px;
  width: min(360px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bridge-option {
  min-height: 74px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  border: 3px solid rgba(67, 164, 244, 0.22);
  box-shadow: 0 12px 18px rgba(31, 47, 76, 0.12);
  font-size: 20px;
  font-weight: 900;
  clip-path: polygon(8% 0, 96% 6%, 100% 86%, 88% 100%, 4% 94%, 0 12%);
}

.bridge-option.is-right {
  background: linear-gradient(135deg, var(--yellow), var(--mint));
  color: #fff;
  animation: matchPop 520ms ease;
}

.bridge-option.is-wrong {
  animation: shake 420ms ease;
  background: linear-gradient(135deg, var(--coral), #ffb36a);
  color: #fff;
}

.detective-big-visual img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.refresh-detective .detective-card {
  padding: 14px;
}

.detective-scene-card {
  min-height: 310px;
}

.detective-big-visual {
  height: 190px;
}

.pass-refresh {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px) !important;
}

.pass-refresh .pass-card-grid article {
  min-height: 142px;
  padding: 14px;
}

.pass-refresh .pass-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.final-refresh .final-wide {
  min-height: 320px;
  align-content: center;
}

.final-refresh .final-bottom {
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
}

.ai-fraud-refresh {
  grid-template-columns: minmax(0, .72fr) minmax(520px, 1.28fr) !important;
}

.ai-fraud-refresh .slide-copy {
  max-width: 560px;
}

.fraud-panel {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  grid-template-rows: minmax(340px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(67, 164, 244, .22);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 215, 106, .46), transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(255, 154, 194, .4), transparent 24%),
    #fff;
  box-shadow: 0 18px 30px rgba(31, 47, 76, .12);
}

.fraud-arrow {
  width: 58px;
  height: 92px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--lavender));
  box-shadow: 0 14px 20px rgba(31, 47, 76, .16);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.fraud-arrow:hover {
  transform: translateY(-4px) scale(1.04);
}

.fraud-image-frame {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f8fbff;
  border: 5px solid #fff;
  box-shadow: inset 0 0 0 1px rgba(37, 48, 71, .1), 0 16px 24px rgba(31, 47, 76, .14);
}

.fraud-image-frame img {
  width: 100%;
  height: min(55vh, 460px);
  min-height: 340px;
  object-fit: contain;
  background: #fff;
}

.fraud-image-frame.is-correct {
  animation: fraudCorrect 680ms ease;
  box-shadow: 0 0 0 10px rgba(123, 216, 184, .3), 0 18px 28px rgba(31, 47, 76, .14);
}

.fraud-image-frame.is-correct::after {
  content: "判断正确";
  position: absolute;
  inset: auto 24px 24px auto;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--mint), var(--blue));
  font-size: 24px;
  font-weight: 900;
}

.fraud-image-frame.is-wrong {
  animation: shake 460ms ease;
  box-shadow: 0 0 0 10px rgba(255, 125, 110, .24), 0 18px 28px rgba(31, 47, 76, .14);
}

.fraud-image-frame.is-wrong::after {
  content: "再想一想";
  position: absolute;
  inset: auto 24px 24px auto;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #ff9ac2);
  font-size: 24px;
  font-weight: 900;
}

.fraud-choice-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fraud-choice {
  min-height: 78px;
  font-size: 26px;
}

.ai-fraud-refresh .fraud-choice.primary-action,
.ai-fraud-refresh .fraud-choice.secondary-action {
  color: var(--ink);
  background: #fff;
  border: 2px solid rgba(67, 164, 244, .22);
  box-shadow: 0 12px 18px rgba(31, 47, 76, .1);
}

.ai-fraud-refresh .fraud-choice.primary-action:hover,
.ai-fraud-refresh .fraud-choice.secondary-action:hover {
  background: rgba(255, 248, 220, .95);
}

.fraud-choice.is-right {
  animation: matchPop 620ms ease;
  box-shadow: 0 0 0 8px rgba(123, 216, 184, .26);
}

.fraud-choice.is-wrong {
  animation: shake 460ms ease;
  box-shadow: 0 0 0 8px rgba(255, 125, 110, .24);
}

.fraud-feedback {
  grid-column: 1 / -1;
  min-height: 56px;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  border: 1px dashed rgba(67, 164, 244, .28);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

@keyframes fraudCorrect {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.03) rotate(-1deg);
  }
}

.memory-game-slide .game-panel {
  padding: 16px;
}

.memory-spell-card {
  margin: 14px 0;
  padding: 16px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 215, 106, .52), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(215, 198, 255, .5), transparent 25%),
    #fff;
  border: 1px solid var(--line);
  clip-path: polygon(4% 0, 98% 4%, 100% 88%, 90% 100%, 3% 96%, 0 12%);
}

.memory-spell-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.memory-spell-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.memory-actions .secondary-action:disabled,
.memory-actions .primary-action:disabled {
  opacity: .48;
  cursor: wait;
}

.memory-workbench {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(420px, 1.18fr);
  gap: 14px;
  align-items: stretch;
}

.memory-code-panel,
.memory-preview-panel {
  min-height: 410px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(67, 164, 244, .22);
  background: #fff;
  box-shadow: 0 16px 26px rgba(31, 47, 76, .12);
}

.memory-code-panel {
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: #22304f;
  color: #f7fbff;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .08);
}

.code-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
}

.code-header span:nth-child(2) {
  background: var(--yellow);
}

.code-header span:nth-child(3) {
  background: var(--mint);
}

.code-header strong {
  margin-left: auto;
  font-size: 14px;
}

.spell-progress {
  height: 12px;
  background: rgba(255,255,255,.16);
}

.spell-progress b {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--mint), var(--blue));
  transition: width 420ms ease;
}

.memory-code-panel pre {
  margin: 0;
  padding: 18px;
  white-space: pre-wrap;
  color: #eafff7;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 800;
}

.memory-preview-panel {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 215, 106, .45), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(123, 216, 184, .42), transparent 24%),
    linear-gradient(180deg, #dff7ff, #fff7da 58%, #ffe5ee);
}

.memory-stage {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
  padding: 18px;
}

.memory-start-card {
  width: min(100%, 360px);
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 22px;
  text-align: center;
  color: var(--ink);
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  clip-path: polygon(5% 0, 98% 6%, 100% 86%, 88% 100%, 4% 94%, 0 12%);
}

.memory-start-card strong {
  font-size: 30px;
}

.memory-start-card.is-loading {
  animation: matchPop 1s ease-in-out infinite;
}

.memory-start-card.is-ready {
  box-shadow: 0 0 0 10px rgba(255, 215, 106, .25);
}

.memory-card-grid {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.memory-card {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--lavender));
  border: 4px solid rgba(255,255,255,.88);
  box-shadow: 0 14px 20px rgba(31, 47, 76, .16);
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 900;
  transform-style: preserve-3d;
  transition: transform 260ms ease, background 260ms ease;
  clip-path: polygon(7% 0, 96% 5%, 100% 88%, 88% 100%, 4% 94%, 0 12%);
}

.memory-card.is-revealed {
  background: linear-gradient(135deg, #fff, #fff8dc);
  color: var(--ink);
  transform: rotateY(180deg) scale(1.03);
}

.memory-card span {
  display: block;
  transform: rotateY(0deg);
}

.memory-card.is-revealed span {
  transform: rotateY(180deg);
}

.memory-countdown {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: conic-gradient(var(--coral), var(--yellow), var(--mint), var(--blue), var(--coral));
  box-shadow: 0 12px 20px rgba(31, 47, 76, .16);
  font-size: 34px;
  font-weight: 900;
  z-index: 2;
}

@media (max-width: 860px) {
  .memory-workbench {
    grid-template-columns: 1fr;
  }

  .memory-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
