:root {
  --bg-sky: #1E2D24;
  --bg-meadow: #121A16;
  --card-white: #F5EFE2;
  --ink: #1A211E;
  --muted: #4A554E;
  --accent: #9E2B25; /* Goron Ruby Crimson */
  --gold: #C89D38;   /* Aged Triforce Brass Gold */
  --green: #3B6E46;  /* Kokiri Emerald */
  --green-shadow: #23452B;
  --purple: #5E4282; /* Forest Temple Amethyst */
  --purple-shadow: #3B2754;
  --blue: #2D5C88;   /* Zora Sapphire */
  --blue-shadow: #1B3957;
  --orange: #B86228; /* Lon Lon Amber */
  --orange-shadow: #7A3E14;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  background: radial-gradient(circle at 50% 20%, #2B3D34 0%, #17211C 60%, #0E1411 100%);
  color: var(--ink);
  height: 100vh;
  overflow: hidden;
}

.kid-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 8px 16px 10px;
  gap: 6px;
}

/* 1. TOP BAR — Ocarina of Time Carved Temple Stone + Aged Triforce Brass */
.kid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #242E28 0%, #181F1B 100%);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 5px 0 #0D120F, 0 8px 20px rgba(0, 0, 0, 0.45);
  border: 2.5px solid #B8923A;
}

.subject-bar {
  display: flex;
  gap: 10px;
}

.subj-pill {
  border: 2px solid #4A5D52;
  background: #26332B;
  color: #E6DEC8;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 0 #0F1411;
  transition: transform 0.12s;
}
.subj-pill:active {
  transform: translateY(3px);
}
.subj-pill.active {
  color: #F8F3E6;
  border-color: #D4AF53;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
  transform: scale(1.04);
}

/* Stepping Stones (1 - 2 - 3 - 4) — Ocarina Note Medallions */
.stepping-stones {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1B241E;
  padding: 5px 14px;
  border-radius: 999px;
  border: 2px solid #6E8274;
}

.stone-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid #B8923A;
  background: #26332B;
  color: #D4AF53;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 #0F1411;
  transition: all 0.15s;
}
.stone-btn.active {
  background: #9E2B25;
  color: #F8F3E6;
  border-color: #E2C16B;
  box-shadow: 0 4px 0 #5C1612;
  transform: scale(1.1);
}
.stone-btn.done {
  background: #B8923A;
  border-color: #F5E6B8;
  color: #181F1B;
}

.stone-quiz-pill {
  border: 2px solid #E2C16B;
  background: linear-gradient(180deg, #C89D38, #966F1E);
  color: #181F1B;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #59400E;
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.star-pill {
  background: linear-gradient(180deg, #D4AF53, #A67E26);
  border: 2px solid #F5E6B8;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 900;
  color: #181F1B;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 0 #59400E;
}

.parent-gate-btn {
  background: #26332B;
  border: 2px solid #7C9482;
  color: #EDE4D0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.weak-dot {
  background: #9E2B25;
  color: #F8F3E6;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
}

/* 2. MAIN CENTER STAGE */
.kid-main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  min-height: 0;
}

/* Kaepora Gaebora (Owl) Speech Bar — Ocarina of Time Dialog Frame */
.owl-banner {
  width: 100%;
  background: linear-gradient(180deg, #222B26 0%, #171E1A 100%);
  border: 2.5px solid #967A3C;
  border-radius: 999px;
  padding: 5px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 5px 0 #0D120F;
}

.owl-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C89D38, #8A5A22);
  border: 2px solid #E8D59E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 0 #4A3010;
}

.owl-bubble {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.owl-lesson-tag {
  background: #3B6E46;
  color: #F5EFE2;
  border: 2px solid #B8923A;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.owl-short-chant {
  font-size: 19px;
  font-weight: 900;
  color: #F2E8D5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.big-tts-btn {
  background: linear-gradient(180deg, #C89D38, #966F1E);
  border: 2px solid #E8D59E;
  color: #181F1B;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 0 #59400E;
}
.big-tts-btn:active {
  transform: translateY(3px);
}

/* Center Stage Card — Carved Hylian Stone Frame */
.stage-card {
  width: 100%;
  flex: 1;
  background: #1A221E;
  border-radius: 26px;
  border: 3.5px solid #A68436;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
}

/* GIANT PICTURE-BOOK FLASHCARD STAGE */
.flashcard-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 0;
}

.flashcard-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  min-height: 0;
}

.fc-picture-box {
  background: #FFF1F2;
  border: 5px solid #FDA4AF;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.15s;
}
.fc-picture-box:hover {
  transform: scale(1.02);
}

.fc-giant-emoji {
  font-size: 112px;
  line-height: 1.15;
  text-align: center;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.08));
}

.fc-tap-hint {
  background: rgba(255, 255, 255, 0.88);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  color: #475569;
}

.fc-symbol-box {
  background: #F8FAFC;
  border: 5px solid #CBD5E1;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  gap: 10px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s;
}
.fc-symbol-box:hover {
  transform: scale(1.02);
}

.fc-giant-symbol {
  font-size: 108px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--accent);
}

.fc-short-headline {
  font-size: 32px;
  font-weight: 900;
  color: #0F172A;
}

.fc-kid-chant {
  background: var(--accent);
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 900;
  margin-top: 4px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

/* 4 Big Picture Step Buttons */
.fc-step-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.fc-tab-btn {
  border: 4px solid #CBD5E1;
  background: #F8FAFC;
  color: #1E293B;
  padding: 12px 10px;
  border-radius: 22px;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 #CBD5E1;
  transition: all 0.14s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.fc-tab-btn:hover {
  transform: translateY(-2px);
}
.fc-tab-btn.active {
  background: #FEF08A;
  border-color: #F59E0B;
  color: #92400E;
  box-shadow: 0 5px 0 #D97706;
  transform: scale(1.04);
}

/* Video Stage (Optional Toggle) */
.video-stage {
  flex: 1;
  width: 100%;
  background: #0F172A;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

video {
  width: 100%;
  height: 100%;
  max-height: 52vh;
  object-fit: contain;
}

/* Interactive 3D + Tactile Toy Stage (Ocarina of Time Kokiri Sanctuary Viewport) */
.toy-stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #233028;
  border: 2.5px solid #967A3C;
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
  box-shadow: inset 0 6px 24px rgba(0, 0, 0, 0.45);
}

.three-stage-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #233028;
  cursor: grab;
  z-index: 1;
}
.three-stage-container:active {
  cursor: grabbing;
}

.stage3d-top-banner {
  display: none;
}

.stage3d-cam-bar {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 6;
}

.stage3d-cam-btn {
  border: 2px solid #B8923A;
  background: rgba(24, 31, 27, 0.9);
  color: #E2C16B;
  font-size: 14px;
  font-weight: 900;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 0 #0D120F;
  transition: all 0.12s;
}
.stage3d-cam-btn:hover {
  background: #3B6E46;
  color: #F5EFE2;
  border-color: #E2C16B;
  transform: translateY(-1px);
}
.stage3d-cam-btn:active {
  transform: translateY(2px);
}

.stage3d-hud-pill {
  position: absolute;
  top: 54px;
  right: 16px;
  background: rgba(24, 31, 27, 0.84);
  border: 1.5px solid #7C9482;
  color: #D8D0BE;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.toy-canvas {
  position: relative;
  z-index: 8;
  width: auto;
  max-width: 96%;
  margin-bottom: 10px;
  background: rgba(24, 31, 27, 0.9);
  backdrop-filter: blur(10px);
  border: 2.5px solid #B8923A;
  border-radius: 22px;
  padding: 8px 18px;
  box-shadow: 0 6px 0 #0D120F, 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.widget-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.widget-pill-btn {
  border: 2px solid #6E8274;
  background: #26332B;
  color: #EDE4D0;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 0 #0F1411;
  transition: all 0.12s;
}
.widget-pill-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #0F1411;
}
.widget-pill-btn.active {
  background: linear-gradient(180deg, #C89D38, #966F1E);
  border-color: #F5E6B8;
  color: #181F1B;
  box-shadow: 0 4px 0 #59400E;
}

.ten-frame-grid {
  display: grid;
  grid-template-columns: repeat(5, 64px);
  gap: 10px;
  background: #F5EFE2;
  padding: 14px;
  border-radius: 24px;
  border: 4px solid #8C6B22;
}

.ten-cell {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 2px dashed #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: #F8FAFC;
}

/* Bottom Tactile 3D Button Bar */
.stage-bottom-bar {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 2px;
}

.kid-btn {
  border: 2px solid rgba(232, 213, 158, 0.45);
  padding: 11px 28px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
  color: #F5EFE2;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s;
}
.kid-btn:active {
  transform: translateY(4px);
}

.btn-green {
  background: linear-gradient(180deg, #498256, var(--green));
  box-shadow: 0 5px 0 var(--green-shadow);
}
.btn-purple {
  background: linear-gradient(180deg, #74539E, var(--purple));
  box-shadow: 0 5px 0 var(--purple-shadow);
}
.btn-blue {
  background: linear-gradient(180deg, #3C73A8, var(--blue));
  box-shadow: 0 5px 0 var(--blue-shadow);
}
.btn-orange {
  background: linear-gradient(180deg, #CC7335, var(--orange));
  box-shadow: 0 5px 0 var(--orange-shadow);
}

/* ACTIVITY 2: PICTURE QUIZ STAGE */
.quiz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kid-back-btn,
.quiz-listen-btn {
  background: #F1F5F9;
  border: 3px solid #CBD5E1;
  color: #334155;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #CBD5E1;
}

.quiz-listen-btn {
  background: #FEF9C3;
  border-color: #FACC15;
  color: #B45309;
  box-shadow: 0 4px 0 #EAB308;
}

.quiz-ai-gen-btn {
  background: linear-gradient(180deg, #A855F7, #7C3AED);
  border: 3px solid #DDD6FE;
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #5B21B6;
  transition: transform 0.12s;
}
.quiz-ai-gen-btn:hover {
  transform: scale(1.04);
}
.quiz-ai-gen-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ai-question-badge {
  background: linear-gradient(90deg, #7C3AED, #2563EB);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 900;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 6px;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.25);
}

.quiz-progress-dots {
  display: flex;
  gap: 10px;
}

.q-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E2E8F0;
  border: 3px solid #CBD5E1;
}
.q-dot.active {
  background: #38BDF8;
  border-color: #0284C7;
  transform: scale(1.2);
}
.q-dot.done {
  background: #22C55E;
  border-color: #15803D;
}

.quiz-question-box {
  background: #F0F9FF;
  border: 4px solid #BAE6FD;
  border-radius: 28px;
  padding: 16px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.quiz-hero-emoji {
  font-size: 72px;
  line-height: 1.1;
}

.quiz-prompt-text {
  font-size: 30px;
  font-weight: 900;
  color: #0F172A;
}

/* 3 Giant Visual Answer Cards Side-by-Side */
.quiz-options-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 4px 0;
}

.option-btn {
  background: #FFFFFF;
  border: 5px solid #CBD5E1;
  border-radius: 28px;
  padding: 18px 14px;
  min-height: 155px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  box-shadow: 0 8px 0 #CBD5E1;
  transition: all 0.14s;
}
.option-btn:hover {
  border-color: #38BDF8;
  background: #F0F9FF;
  transform: translateY(-3px);
}
.option-btn:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 #CBD5E1;
}

.opt-giant-label {
  font-size: 46px;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.15;
}

.opt-sub-hint {
  font-size: 18px;
  font-weight: 800;
  color: #64748B;
  background: #F1F5F9;
  padding: 4px 14px;
  border-radius: 999px;
}

.option-btn.correct {
  background: #DCFCE7;
  border-color: #22C55E;
  box-shadow: 0 8px 0 #15803D;
}
.option-btn.wrong {
  background: #FEE2E2;
  border-color: #EF4444;
  box-shadow: 0 8px 0 #B91C1C;
}

.kid-feedback-pop {
  border-radius: 22px;
  padding: 12px 20px;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}
.kid-feedback-pop.ok {
  background: #DCFCE7;
  border: 3px solid #22C55E;
  color: #166534;
}
.kid-feedback-pop.err {
  background: #FEF3C7;
  border: 3px solid #F59E0B;
  color: #92400E;
}

/* Floating Owl Button */
.floating-owl-btn {
  position: fixed;
  right: 26px;
  bottom: 22px;
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  color: #FFFFFF;
  border: 4px solid #FFFFFF;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35), 0 5px 0 #9A3412;
  z-index: 50;
}

/* Modals */
.kid-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.kid-modal {
  background: #FFFFFF;
  border-radius: 32px;
  width: 100%;
  max-width: 680px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 86vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 22px;
  font-weight: 900;
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 10px;
}

.close-btn {
  background: #F1F5F9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.owl-reply-box {
  background: #FFFBEB;
  border: 3px solid #FCD34D;
  border-radius: 22px;
  padding: 18px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
  color: #92400E;
}

.quick-kid-asks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kid-ask-pill {
  background: #E0F2FE;
  border: 3px solid #38BDF8;
  color: #0369A1;
  padding: 14px;
  border-radius: 20px;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #0284C7;
}

/* Parent Modal Content */
.parent-setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #F8FAFC;
  padding: 12px;
  border-radius: 16px;
}

.parent-select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid #CBD5E1;
  font-weight: 800;
}

.parent-action-btn {
  margin-left: auto;
  background: #7C3AED;
  color: #FFFFFF;
  border: none;
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.parent-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.p-kpi {
  background: #F1F5F9;
  padding: 12px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-kpi strong {
  font-size: 22px;
}
.p-kpi.warn {
  background: #FEF2F2;
  color: #DC2626;
}

.parent-section h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #334155;
}

.parent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

/* =========================================================================
   RECESS OPEN LOBBY & MECHA CHAMELEON ARCADE (学而思课间广场模式)
   ========================================================================= */
.token-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #EDE9FE;
  border: 3px solid #A855F7;
  color: #6B21A8;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #9333EA;
}

.recess-plaza-btn {
  background: linear-gradient(180deg, #10B981, #059669);
  border: 3px solid #A7F3D0;
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #047857;
  transition: transform 0.12s;
}
.recess-plaza-btn:hover {
  transform: scale(1.04);
}
.recess-plaza-btn:active {
  transform: translateY(3px);
}

.kid-modal.recess-modal-card {
  width: min(1020px, 95vw);
  max-width: 1020px;
  max-height: 94vh;
  overflow: hidden;
  padding: 18px 24px;
  background: #0F172A;
  color: #FFFFFF;
  border: 5px solid #38BDF8;
}

.recess-header {
  border-bottom: 2px solid #1E293B;
  padding-bottom: 10px;
  flex-wrap: nowrap;
  gap: 12px;
}

.recess-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  color: #F8FAFC;
  white-space: nowrap;
}

.recess-sub-pill {
  background: #0284C7;
  color: #E0F2FE;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.recess-hud-group {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.recess-hud-pill {
  background: #1E293B;
  border: 2px solid #475569;
  color: #FACC15;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.recess-header .close-btn {
  width: auto;
  height: auto;
  padding: 7px 16px;
  border-radius: 999px;
  background: #EF4444;
  color: #FFFFFF;
  white-space: nowrap;
}

.recess-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recess-canvas-wrap {
  position: relative;
  width: 100%;
  background: #020617;
  border-radius: 22px;
  border: 4px solid #334155;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#recessCanvas {
  width: 100%;
  max-width: 880px;
  height: auto;
  aspect-ratio: 880 / 390;
  display: block;
  cursor: pointer;
}

.recess-control-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 62px;
}

.chameleon-color-btn {
  border: 4px solid rgba(255, 255, 255, 0.7);
  padding: 12px 26px;
  border-radius: 22px;
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  cursor: pointer;
  transition: transform 0.08s;
  min-width: 170px;
}
.chameleon-color-btn:active {
  transform: scale(0.95);
}
.cham-red {
  background: linear-gradient(180deg, #F87171, #DC2626);
  box-shadow: 0 6px 0 #991B1B;
}
.cham-yellow {
  background: linear-gradient(180deg, #FACC15, #CA8A04);
  color: #0F172A;
  box-shadow: 0 6px 0 #854D0E;
}
.cham-blue {
  background: linear-gradient(180deg, #60A5FA, #2563EB);
  box-shadow: 0 6px 0 #1E40AF;
}
.cham-jump {
  background: linear-gradient(180deg, #C084FC, #7E22CE);
  box-shadow: 0 6px 0 #581C87;
}

.plaza-exam-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.plaza-exam-card {
  background: #FFFFFF;
  color: #0F172A;
  border: 5px solid #FACC15;
  border-radius: 28px;
  padding: 20px 28px;
  width: min(620px, 92%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.plaza-exam-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 900;
  color: #B45309;
}

.plaza-exam-q {
  font-size: 28px;
  font-weight: 900;
  color: #0F172A;
  background: #FEF9C3;
  padding: 14px;
  border-radius: 18px;
}

.plaza-exam-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plaza-exam-opt-btn {
  background: #F8FAFC;
  border: 4px solid #CBD5E1;
  border-radius: 20px;
  padding: 14px;
  font-size: 28px;
  font-weight: 900;
  color: #0F172A;
  cursor: pointer;
  box-shadow: 0 5px 0 #94A3B8;
}
.plaza-exam-opt-btn:hover {
  border-color: #38BDF8;
  background: #F0F9FF;
}

.plaza-exam-fb {
  font-size: 20px;
  font-weight: 900;
  min-height: 28px;
}
