/* 1인 자기주도형 예시 학습 페이지의 최신 에듀테크 화면 스타일 파일 */
:root {
  --ink: #111827;
  --ink-2: #263244;
  --muted: #667085;
  --line: #d7e0ea;
  --page: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #f9fbff;
  --accent: #ea6d54;
  --accent-2: #2563eb;
  --accent-3: #16a394;
  --accent-4: #f3b33d;
  --soft: #fff2ee;
  --soft-2: #eaf2ff;
  --soft-3: #e4f7f2;
  --danger: #d84d3f;
  --success: #1b8f67;
  --shadow-sm: 0 8px 20px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 18px 48px rgba(17, 24, 39, 0.14);
  --shadow-lg: 0 28px 70px rgba(17, 24, 39, 0.18);
  color-scheme: light;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

body[data-subject="korean"] {
  --accent: #ea6d54;
  --accent-2: #2563eb;
  --accent-3: #16a394;
  --soft: #fff2ee;
}

body[data-subject="math"] {
  --accent: #16a394;
  --accent-2: #ea6d54;
  --accent-3: #4f46e5;
  --soft: #e4f7f2;
}

body[data-subject="english"] {
  --accent: #5b5fd6;
  --accent-2: #16a394;
  --accent-3: #ea6d54;
  --soft: #eef0ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #edf4ff 0, #f8fbff 34%, #fff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0, transparent 70%);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 44px;
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.example-shell {
  width: min(1480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
}

.example-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(16px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(215, 224, 234, 0.86);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
  box-shadow: var(--shadow-sm);
}

.brand-link strong,
.brand-link small {
  display: block;
}

.brand-link strong {
  font-size: 15px;
  line-height: 1.25;
}

.brand-link small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.top-actions a,
.top-actions button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
}

.top-actions button {
  background: var(--ink);
  color: #fff;
}

.example-main {
  display: grid;
  gap: 18px;
  padding: clamp(14px, 2.8vw, 32px);
}

.setup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.setup-copy {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0, rgba(255, 255, 255, 0.86) 48%, color-mix(in srgb, var(--soft) 84%, #fff) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-lg);
}

.setup-copy::after {
  content: "";
  position: absolute;
  right: clamp(18px, 5vw, 58px);
  bottom: clamp(18px, 4vw, 40px);
  width: clamp(140px, 22vw, 260px);
  aspect-ratio: 1.25;
  border-radius: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 72%, #fff), color-mix(in srgb, var(--accent-2) 68%, #fff));
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.24), var(--shadow-md);
  transform: rotate(-4deg);
  opacity: 0.18;
}

.setup-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 7px;
  color: color-mix(in srgb, var(--accent) 78%, var(--ink));
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 12px;
  color: #0f172a;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  color: var(--ink-2);
  line-height: 1.65;
}

.setup-copy p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(15px, 2vw, 18px);
}

.learning-pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 780px;
}

.learning-pulse span {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.learning-pulse strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.learner-controls {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(215, 224, 234, 0.9);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.learner-controls label {
  display: grid;
  gap: 7px;
}

.learner-controls label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.learner-controls input,
.reflection-note textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

.learner-controls input {
  min-height: 52px;
  padding: 11px 14px;
  font-size: 18px;
  font-weight: 900;
}

.segmented,
.emotion-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented legend,
.emotion-picker legend {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.age-btn,
.emotion-btn,
.subject-btn,
.action-row button,
.reflection-grid button {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.age-btn,
.emotion-btn {
  min-height: 52px;
  padding: 10px;
}

.age-btn:hover,
.emotion-btn:hover,
.subject-btn:hover,
.action-row button:hover,
.reflection-grid button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.is-active.age-btn,
.is-active.emotion-btn,
.is-active.subject-btn,
.reflection-grid button.is-picked {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

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

.subject-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 16px;
  text-align: left;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.08);
}

.subject-btn.is-active {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #fff), color-mix(in srgb, var(--accent-2) 78%, #fff));
}

.subject-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.2);
}

.icon-korean {
  background: #ea6d54;
}

.icon-math {
  background: #16a394;
}

.icon-english {
  background: #5b5fd6;
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.activity-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, color-mix(in srgb, var(--soft) 80%, #fff), #fff);
  box-shadow: var(--shadow-lg);
}

.activity-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--accent-2) 8%, transparent) 0 1px, transparent 1px 100%);
  background-size: 40px 40px;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, #000 0, transparent 58%);
}

.activity-stage > * {
  position: relative;
  z-index: 1;
}

.mission-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mission-status span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 16px rgba(17, 24, 39, 0.06);
}

.mission-status span:first-child {
  background: var(--ink);
  color: #fff;
}

.stage-visual {
  aspect-ratio: 21 / 10;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--soft) 78%, #fff), #fff),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), var(--shadow-sm);
  margin-bottom: 18px;
}

.stage-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

.visual-bg {
  fill: color-mix(in srgb, var(--soft) 90%, #fff);
}

.visual-one {
  fill: var(--accent);
}

.visual-two {
  fill: var(--accent-4);
}

.visual-three {
  fill: var(--accent-2);
}

.visual-line {
  fill: none;
  stroke: var(--accent-3);
  stroke-width: 11;
  stroke-linecap: round;
}

.stage-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.stage-head p:last-child {
  margin-bottom: 0;
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 750;
}

.mission-progress {
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  padding: 12px;
  border-radius: 18px;
  background: #0f172a;
  color: #fff;
}

.progress-copy span,
.progress-copy strong {
  display: block;
}

.progress-copy span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.progress-copy strong {
  margin-top: 2px;
  font-size: 15px;
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-4), var(--accent), var(--accent-3));
  transition: width 220ms ease;
}

.level-card,
.concept-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  margin: 12px 0;
  border: 1px solid rgba(215, 224, 234, 0.88);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 20px rgba(17, 24, 39, 0.06);
}

.level-card span,
.concept-card span,
.mini-card span,
.report-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.level-card strong,
.concept-card strong,
.review-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.level-card p,
.concept-card p,
.mini-card p,
.report-card p {
  margin-bottom: 0;
}

.concept-card code {
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  background: #eef2ff;
  color: #353194;
  font-size: 12px;
  font-weight: 850;
  white-space: normal;
  overflow-wrap: anywhere;
}

.level-ladder {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.level-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3f8;
  color: #526174;
  font-size: 11px;
  font-weight: 900;
}

.level-pill.is-current {
  background: var(--accent);
  color: #fff;
}

.step-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.step-strip span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eef3f8;
  color: #526174;
  font-size: 13px;
  font-weight: 950;
}

.step-strip span.is-active {
  background: var(--accent-4);
  color: #332200;
  box-shadow: 0 8px 20px rgba(243, 179, 61, 0.26);
}

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

.choice-grid button {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  padding: 16px;
  border: 2px solid rgba(215, 224, 234, 0.9);
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 950;
  line-height: 1.08;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.choice-grid button::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.choice-grid button:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.12);
}

.choice-grid button.is-picked {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--soft) 72%, #fff);
}

.choice-grid button.is-correct {
  border-color: var(--success);
}

.choice-grid button.is-needs-review {
  border-color: var(--danger);
  background: #fff4f1;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.action-row button {
  min-height: 56px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.07);
}

.action-row button:nth-child(1) {
  background: var(--soft-2);
}

.action-row button:nth-child(2) {
  background: #fff8e7;
}

.action-row button:nth-child(3),
.action-row button:nth-child(4) {
  background: var(--soft-3);
}

.coach-feedback {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, #101827, #273246);
  color: #fff;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 850;
  line-height: 1.55;
  box-shadow: var(--shadow-md);
}

.insight-panel {
  display: grid;
  gap: 12px;
}

.insight-head {
  padding: 16px 16px 4px;
}

.insight-head h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.mini-card {
  padding: 15px;
  border: 1px solid rgba(215, 224, 234, 0.88);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.mini-card ul,
.mini-card ol {
  margin: 0;
  padding-left: 18px;
  color: #405066;
  line-height: 1.65;
}

.mini-card li + li {
  margin-top: 5px;
}

.review-card {
  background: #fff8e8;
  border-color: #f0cf80;
}

.reflection-panel {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(215, 224, 234, 0.88);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

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

.reflection-grid button {
  min-height: 58px;
  padding: 11px 12px;
  border-radius: 18px;
}

.reflection-note {
  display: grid;
  gap: 7px;
}

.reflection-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.reflection-note textarea {
  min-height: 96px;
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.6;
}

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

.report-card {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(215, 224, 234, 0.88);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

@media (max-width: 1080px) {
  .setup-panel,
  .learning-layout {
    grid-template-columns: 1fr;
  }

  .insight-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-head {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body {
    background: #f7fbff;
  }

  .example-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-link {
    align-items: flex-start;
  }

  .setup-copy {
    min-height: 0;
    border-radius: 24px;
  }

  .setup-copy::after {
    display: none;
  }

  .learning-pulse,
  .subject-panel,
  .choice-grid,
  .action-row,
  .reflection-grid,
  .report-grid,
  .insight-panel {
    grid-template-columns: 1fr;
  }

  .segmented,
  .emotion-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-stage,
  .learner-controls,
  .reflection-panel,
  .report-card {
    border-radius: 24px;
  }

  .stage-visual {
    aspect-ratio: 16 / 10;
  }

  .mission-progress,
  .level-card,
  .concept-card {
    grid-template-columns: 1fr;
  }

  .level-ladder {
    justify-content: flex-start;
  }

  .step-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .example-main {
    padding: 12px;
  }

  .segmented,
  .emotion-picker {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 글로벌 인기 학습 앱형 예시 페이지 최종 레이어 */
body {
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 212, 90, 0.5), transparent 24%),
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 28%),
    linear-gradient(180deg, #f6fbff 0%, #ecf8ff 48%, #fffaf2 100%);
}

.example-topbar {
  margin: 12px auto 0;
  width: min(1380px, calc(100% - 24px));
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 52px rgba(17, 24, 39, 0.1);
}

.example-main {
  gap: 16px;
}

.setup-panel {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: stretch;
}

.setup-copy {
  min-height: 520px;
  display: grid;
  align-content: center;
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--soft) 72%, #fff));
}

.setup-copy h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
}

.setup-copy p:not(.eyebrow) {
  max-width: 560px;
  color: #405571;
  font-size: 22px;
  line-height: 1.55;
}

.learning-pulse {
  max-width: 680px;
}

.learning-pulse span {
  min-height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.app-mission-mascot {
  width: min(520px, 100%);
  min-height: 190px;
  margin-top: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.09);
  overflow: hidden;
}

.app-mission-mascot svg {
  width: 100%;
  height: 100%;
}

.app-mascot-route {
  stroke: color-mix(in srgb, var(--accent-3) 80%, #fff);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 420;
  animation: routeDraw 3.8s ease-in-out infinite;
}

.app-mascot {
  fill: color-mix(in srgb, var(--accent) 46%, #fff);
  transform-origin: center;
  animation: mascotFloat 2.8s ease-in-out infinite;
}

.app-mascot-b {
  fill: color-mix(in srgb, var(--accent-2) 34%, #fff);
  animation-delay: 0.25s;
}

.app-mascot circle:nth-of-type(n + 2) {
  fill: #111827;
}

.app-mascot path:last-child {
  fill: none;
  stroke: #111827;
  stroke-width: 4;
  stroke-linecap: round;
}

.learner-controls {
  border: 0;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 52px rgba(17, 24, 39, 0.11);
}

.subject-panel {
  position: sticky;
  top: 96px;
  z-index: 12;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
}

.learning-layout {
  grid-template-columns: minmax(0, 1fr);
}

.activity-stage {
  border: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--accent-4) 38%, transparent), transparent 24%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.13);
}

.stage-visual {
  min-height: 300px;
}

.stage-head h2 {
  font-size: clamp(38px, 5vw, 68px);
}

.level-card,
.concept-card,
.step-strip {
  display: none;
}

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

.choice-grid button {
  min-height: 128px;
  border-radius: 28px;
  font-size: 24px;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.1);
}

.action-row button {
  min-height: 62px;
  border-radius: 20px;
}

.coach-feedback {
  border-radius: 24px;
  font-size: 18px;
}

.insight-panel {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
}

.insight-panel summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-radius: 18px;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.insight-panel summary::-webkit-details-marker {
  display: none;
}

.insight-panel summary::after {
  content: "+";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.insight-panel[open] summary::after {
  content: "−";
}

.reflection-panel,
.report-card {
  border: 0;
  background: rgba(255, 255, 255, 0.72);
}

@keyframes routeDraw {
  0% {
    stroke-dashoffset: 420;
  }
  60%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .setup-panel {
    grid-template-columns: 1fr;
  }

  .setup-copy {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .setup-copy h1 {
    font-size: 42px;
  }

  .setup-copy p:not(.eyebrow) {
    font-size: 18px;
  }

  .subject-panel,
  .choice-grid,
  .action-row {
    grid-template-columns: 1fr;
  }

  .stage-visual {
    min-height: 220px;
  }
}
