/* HeyProofly Quest - Accessible Student & High-School Learning Studio CSS */

:root,
[data-theme="daylight-studio"] {
  --bg-main: #f8f7f3;
  --bg-card: #ffffff;
  --bg-elevated: #f1efe9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-primary: #2563eb;
  --accent-secondary: #f97316;
  --accent-success: #16a34a;
  --accent-warning: #d97706;
  --border-color: #e2e8f0;
  --btn-shadow: #1d4ed8;
  --btn-sec-shadow: #c2410c;
  --passage-bg: #ffffff;
  --studio-shell-bg: #dbeafe;
}

[data-theme="rocket-arena"] {
  --bg-main: #0b1120;
  --bg-card: #131c31;
  --bg-elevated: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-primary: #0ea5e9;
  --accent-secondary: #f97316;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --border-color: rgba(56, 189, 248, 0.25);
  --btn-shadow: #0284c7;
  --btn-sec-shadow: #c2410c;
  --passage-bg: #0f172a;
  --studio-shell-bg: #172554;
}

[data-theme="geo-neon"] {
  --bg-main: #120924;
  --bg-card: #1e103a;
  --bg-elevated: #2d1854;
  --text-primary: #fdf4ff;
  --text-secondary: #f0abfc;
  --text-muted: #c084fc;
  --accent-primary: #ec4899;
  --accent-secondary: #06b6d4;
  --accent-success: #22c55e;
  --accent-warning: #eab308;
  --border-color: rgba(236, 72, 153, 0.32);
  --btn-shadow: #be185d;
  --btn-sec-shadow: #0891b2;
  --passage-bg: #170b2c;
  --studio-shell-bg: #2e1065;
}

[data-theme="natgeo-explorer"] {
  --bg-main: #f4f7f4;
  --bg-card: #ffffff;
  --bg-elevated: #e6efe8;
  --text-primary: #14281d;
  --text-secondary: #2e4f3e;
  --text-muted: #527964;
  --accent-primary: #059669;
  --accent-secondary: #d97706;
  --accent-success: #16a34a;
  --accent-warning: #d97706;
  --border-color: #d1e2d6;
  --btn-shadow: #047857;
  --btn-sec-shadow: #b45309;
  --passage-bg: #ffffff;
  --studio-shell-bg: #d1fae5;
}

[data-theme="cosmic-galaxy"] {
  --bg-main: #090a1a;
  --bg-card: #131530;
  --bg-elevated: #1e2147;
  --text-primary: #eef2ff;
  --text-secondary: #c7d2fe;
  --text-muted: #818cf8;
  --accent-primary: #8b5cf6;
  --accent-secondary: #38bdf8;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --border-color: rgba(139, 92, 246, 0.32);
  --btn-shadow: #6d28d9;
  --btn-sec-shadow: #0284c7;
  --passage-bg: #0e1026;
  --studio-shell-bg: #1e1b4b;
}

[data-theme="skyline-scholar"] {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-primary: #3b82f6;
  --accent-secondary: #6366f1;
  --accent-success: #16a34a;
  --accent-warning: #d97706;
  --border-color: #e2e8f0;
  --btn-shadow: #2563eb;
  --btn-sec-shadow: #4f46e5;
  --passage-bg: #ffffff;
  --studio-shell-bg: #e0e7ff;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: calc(16px * var(--font-scale, 1.0));
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

body[data-font="storybook"] .passage-body {
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

body[data-font="clean-sans"] .passage-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body[data-font="dyslexia-friendly"] .passage-body {
  font-family: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif;
  letter-spacing: 0.04em;
  word-spacing: 0.12em;
  line-height: 1.85;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
}

.kid-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.kid-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kid-pill:hover {
  transform: translateY(-1px);
}

.kid-pill.active {
  border-color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-primary);
}

.stats-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.86rem;
}

.stat-badge.xp-pill,
.xp-gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-weight: 800;
  font-size: 0.92rem;
}

.stat-badge.ticket-pill {
  background: #ffedd5;
  border-color: #fed7aa;
  color: #9a3412;
}

/* Clean Buttons */
.btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 14px;
  border: none;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--btn-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  user-select: none;
}

.btn-3d:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--btn-shadow);
}

.btn-3d:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--btn-shadow);
}

.btn-3d.secondary {
  background: var(--accent-secondary);
  box-shadow: 0 3px 0 var(--btn-sec-shadow);
  color: #ffffff;
}

.btn-3d.ghost {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.btn-3d.ghost:hover {
  background: var(--border-color);
}

.btn-3d.sm {
  padding: 7px 13px;
  font-size: 0.85rem;
  border-radius: 10px;
}

/* Kid Theme & Vibe Knobs Bar */
.knobs-drawer {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.knob-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.knob-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.theme-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-chip.active {
  border-color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.14);
  color: var(--accent-primary);
  font-weight: 700;
}

/* Student Mode Navigation Pill Bar */
.mode-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 24px 0;
  max-width: 1180px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.mode-tab {
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.mode-tab:hover {
  background: var(--bg-elevated);
}

.mode-tab.active {
  background: var(--bg-card);
  color: var(--accent-primary);
  border-color: var(--border-color);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.main-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

/* ==================== STUDENT HOME ("MY LEARNING" VIEW) ==================== */
.student-home-wrap {
  max-width: 880px;
  margin: 8px auto 0;
}

.home-greeting-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.home-greeting-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.home-greeting-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Prominent Blue Hero Card (Matches Screenshot 7.47.12 PM) */
.hero-adventure-card {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
  position: relative;
  overflow: hidden;
}

.hero-adventure-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 6px;
}

.hero-adventure-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.hero-adventure-meta {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
}

.hero-progress-wrap {
  margin-bottom: 6px;
}

.hero-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.hero-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #fbbf24;
  transition: width 0.35s ease;
}

.hero-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 6px;
  font-weight: 600;
}

.hero-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  border: none;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease;
}

.hero-continue-btn:hover {
  transform: translateY(-2px);
}

.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.section-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* "Your learning worlds" 2x2 Grid (Matches Screenshot 7.47.12 PM) */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .worlds-grid {
    grid-template-columns: 1fr;
  }
}

.world-card {
  border-radius: 18px;
  padding: 20px 22px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.world-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.world-card.active-world {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.world-card.tone-green {
  background: #dcfce7;
  color: #14532d;
}
.world-card.tone-green .world-bar-fill { background: #16a34a; }

.world-card.tone-purple {
  background: #ede9fe;
  color: #3b0764;
}
.world-card.tone-purple .world-bar-fill { background: #7c3aed; }

.world-card.tone-teal {
  background: #ccfbf1;
  color: #134e4a;
}
.world-card.tone-teal .world-bar-fill { background: #0d9488; }

.world-card.tone-coral {
  background: #ffedd5;
  color: #7c2d12;
}
.world-card.tone-coral .world-bar-fill { background: #ea580c; }

.world-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.world-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.world-sub {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-bottom: 14px;
}

.world-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 6px;
}

.world-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.world-mastery-label {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.85;
}

/* Recent Lessons Grid */
.recent-lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.recent-lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.recent-lesson-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.home-streak-footer {
  margin-top: 28px;
  padding: 16px 22px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.home-footer-link {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.home-footer-link:hover {
  color: var(--accent-primary);
}

/* ==================== FOCUSED LESSON STUDIO (Matches Screenshot 7.48.02 PM) ==================== */
.studio-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.studio-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.studio-exit-btn:hover {
  background: var(--bg-elevated);
}

.studio-stepper-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #bfdbfe;
  border: 1px solid #93c5fd;
}

.step-node {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid #3b82f6;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.step-node.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  transform: scale(1.08);
}

.step-node.done {
  background: #16a34a;
  color: #ffffff;
  border-color: #15803d;
}

.step-connector {
  width: 14px;
  height: 2px;
  background: #60a5fa;
}

.studio-coach-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.coach-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.coach-banner-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}

.studio-stage-shell {
  background: var(--studio-shell-bg);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Split-Pane i-Ready Style Workspace */
.workspace-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

.passage-card,
.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.publication-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.passage-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.passage-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.passage-body {
  background: var(--passage-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
}

.para-block {
  margin-bottom: 16px;
  position: relative;
}

.para-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.para-num {
  display: inline-block;
  min-width: 24px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 0.78rem;
  margin-right: 8px;
}

.sidebar-callout {
  margin-top: 18px;
  background: rgba(249, 115, 22, 0.08);
  border-left: 4px solid var(--accent-secondary);
  border-radius: 10px;
  padding: 14px 16px;
}

.sidebar-callout h4 {
  color: var(--accent-secondary);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.sidebar-callout ul {
  padding-left: 18px;
  font-size: 0.92rem;
}

.vocab-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.vocab-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
}

.vocab-word {
  font-weight: 800;
  color: var(--accent-primary);
  font-size: 0.92rem;
}

.speaker-round-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.speaker-round-btn:hover {
  background: #dbeafe;
}

.studio-question-prompt {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* Selectable Choice Cards (i-Ready Style) */
.choices-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.choice-card-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.choice-card-btn:hover {
  border-color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.04);
}

.choice-card-btn.selected {
  border-color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.answer-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border-color);
  background: var(--passage-bg);
  color: var(--text-primary);
  font-size: 1.02rem;
  line-height: 1.5;
  resize: vertical;
  margin-top: 8px;
}

.answer-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.studio-ok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: #16a34a;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 0 #15803d;
  transition: transform 0.12s ease;
}

.studio-ok-btn:hover {
  transform: translateY(-1px);
  background: #15803d;
}

/* iPad Stylus / Apple Pencil Canvas Box */
.stylus-pad-wrapper {
  margin-top: 12px;
  background: var(--bg-elevated);
  border: 2px dashed var(--accent-primary);
  border-radius: 14px;
  padding: 14px;
}

.stylus-canvas {
  width: 100%;
  height: 220px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: crosshair;
  touch-action: none;
  display: block;
}

.coach-feedback-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--accent-primary);
}

.socratic-callout {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
}

.exemplar-callout {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #dcfce7;
  color: #14532d;
  font-size: 0.92rem;
}

/* Post-Lesson 3-Level Survey Card */
.survey-card {
  margin-top: 20px;
  padding: 22px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 2px solid var(--accent-secondary);
}

.survey-faces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.survey-face-btn {
  padding: 14px 10px;
  border-radius: 14px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease;
}

.survey-face-btn.selected {
  border-color: var(--accent-secondary);
  background: rgba(249, 115, 22, 0.14);
  transform: scale(1.03);
}

/* Control Deck */
.lesson-control-deck {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.select-pill,
.input-pill {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Arcade & 3D Viewport */
.arcade-stage {
  background: #070a14;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.game-canvas-wrap {
  width: 100%;
  height: 500px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #050811;
}

.game-hud-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.touch-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

/* Creatures Grid */
.creatures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.creature-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.creature-card-item img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Parent Portal Grid */
.parent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 960px) {
  .parent-grid {
    grid-template-columns: 1fr;
  }
}

.panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  font-size: 0.84rem;
  font-weight: 600;
}

.copilot-chat-log {
  height: 270px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.chat-msg {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.chat-msg.parent {
  border-left: 4px solid var(--accent-secondary);
}

.chat-msg.ai {
  border-left: 4px solid var(--accent-primary);
}
