:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #4b4b4b;
  --muted: #777777;
  --line: #e5e5e5;
  --green: #58cc02;
  --green-dark: #46a302;
  --yellow: #ffc800;
  --rose: #ff4b4b;
  --blue: #1cb0f6;
  --aqua: #00cd9c;
  --lavender: #ce82ff;
  --shadow: 0 12px 28px rgba(75, 75, 75, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
}

button {
  font: inherit;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

h2 {
  margin-bottom: 0.45rem;
}

.eyebrow {
  margin-bottom: 0.35rem;
  color: var(--green-dark);
  font-weight: 900;
  letter-spacing: 0;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 16% 18%, rgba(231, 191, 114, 0.3), transparent 19rem),
    radial-gradient(circle at 84% 80%, rgba(112, 183, 189, 0.2), transparent 20rem),
    var(--bg);
}

.gate-screen {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 200, 0, 0.22), transparent 18rem),
    radial-gradient(circle at 84% 78%, rgba(28, 176, 246, 0.16), transparent 21rem),
    var(--bg);
}

.gate-screen.hidden {
  display: none;
}

.gate-card {
  width: min(31rem, 100%);
  padding: clamp(1.1rem, 4vw, 2rem);
  border: 2px solid var(--line);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.gate-card h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 8vw, 3.7rem);
  line-height: 1;
}

.gate-card p {
  color: var(--muted);
}

.gate-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.gate-form label {
  color: var(--ink);
  font-weight: 1000;
}

.gate-form input {
  min-height: 3.4rem;
  border: 2px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  font: inherit;
  background: white;
}

.gate-form input:focus {
  border-color: var(--blue);
  outline: 0.2rem solid rgba(28, 176, 246, 0.18);
}

.gate-error {
  min-height: 1.4rem;
  margin: 0.85rem 0 0;
  color: var(--rose);
  font-weight: 900;
}

.login-screen.hidden {
  display: none;
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 25rem);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  width: min(62rem, 100%);
}

.login-copy h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.98;
}

.login-copy p:last-child {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.login-mascot-pair {
  display: flex;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 1rem;
}

.login-mascot {
  width: 7.6rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 1rem 1.4rem rgba(31, 45, 61, 0.16));
}

.login-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border: 2px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow);
}

.login-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 5.5rem;
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: 0.9rem;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 0.32rem 0 #c9d4e2;
}

.login-card:hover,
.login-card:focus-visible {
  border-color: var(--green);
  transform: translateY(-0.12rem);
}

.login-animal,
.profile-animal {
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f8f5ee;
  object-fit: contain;
}

.login-animal {
  width: 4rem;
  height: 4rem;
}

.profile-animal {
  width: 3rem;
  height: 3rem;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.menu-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 253, 250, 0.94);
  box-shadow: 0 0.28rem 0 #c9d4e2;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 0.18rem;
  border-radius: 999px;
  background: var(--ink);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 6;
  background: rgba(45, 52, 66, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: min(22rem, calc(100vw - 2rem));
  max-width: 100%;
  overflow-y: auto;
  padding: 1.25rem;
  background: rgba(255, 253, 250, 0.96);
  border-right: 2px solid rgba(219, 228, 240, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transform: translateX(calc(-100% - 1rem));
  transition: transform 220ms ease;
}

body.menu-open .sidebar {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 900;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
}

.brand img {
  width: 3.25rem;
  height: 3.25rem;
}

.brand strong,
.profile-card strong,
.login-card strong {
  display: block;
  line-height: 1.2;
}

.brand span,
.profile-card small,
.login-card small,
.section-heading span,
.stat-card span,
#missionCopy,
#progressCopy {
  color: var(--muted);
}

.profile-switch,
.nav-tabs {
  display: grid;
  gap: 0.75rem;
}

.profile-card,
.nav-tabs button,
.logout-button {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--panel);
  border-radius: 0.85rem;
  padding: 0.85rem;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.profile-card.active,
.nav-tabs button.active {
  border-color: rgba(88, 204, 2, 0.75);
  box-shadow: 0 0 0 0.2rem rgba(88, 204, 2, 0.16);
}

.logout-button {
  margin-top: auto;
  background: #fbf8ef;
}

main {
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 2rem;
  padding-top: 5.25rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.status-pills span,
.lesson-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.status-pills b {
  margin-right: 0.2rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 16rem);
  align-items: center;
  gap: 1.25rem;
  min-height: 16rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 2px solid rgba(219, 228, 240, 0.9);
  border-radius: 1rem;
  background:
    linear-gradient(120deg, rgba(255, 253, 250, 0.96), rgba(238, 245, 241, 0.92)),
    repeating-linear-gradient(45deg, rgba(125, 159, 211, 0.07) 0 0.7rem, transparent 0.7rem 1.4rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-band h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.hero-band p {
  max-width: 42rem;
  font-size: 1.05rem;
}

.hero-mascot {
  width: min(100%, 14rem);
  justify-self: center;
  filter: drop-shadow(0 1rem 1.5rem rgba(31, 45, 61, 0.18));
}

.primary-action,
.secondary-action {
  min-height: 3rem;
  border: 0;
  border-radius: 0.85rem;
  padding: 0.8rem 1.1rem;
  font-weight: 1000;
  cursor: pointer;
}

.primary-action {
  background: var(--green);
  color: white;
  box-shadow: 0 0.35rem 0 var(--green-dark);
}

.primary-action:disabled {
  cursor: not-allowed;
  background: #aab7c4;
  box-shadow: 0 0.35rem 0 #8290a0;
}

.secondary-action {
  border: 2px solid var(--line);
  background: white;
  color: var(--ink);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 1.8rem 0 0.8rem;
}

.lesson-path {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 1rem 0;
}

.path-node,
.recommend-card,
.stat-card,
.competition-panel,
.time-panel,
.progress-summary,
.subject-bars {
  border: 2px solid var(--line);
  border-radius: 0.95rem;
  background: var(--panel);
  box-shadow: 0 0.36rem 0 #c9d4e2;
}

.path-node,
.recommend-card {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  width: min(13rem, 100%);
  min-height: 11rem;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
}

.path-node:nth-child(even) {
  transform: translateY(1.2rem);
}

.path-icon {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  color: white;
  font-size: 1.55rem;
  font-weight: 1000;
}

.recommend-grid,
.stats-grid {
  display: grid;
  gap: 0.9rem;
}

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

.competition-panel,
.time-panel {
  margin-top: 2rem;
  padding: 1.2rem;
}

.leaderboard,
.time-bars,
.subject-bars {
  display: grid;
  gap: 0.85rem;
}

.leader-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 0.85rem;
  background: #f7f4ed;
}

.leader-row.active {
  background: #eef6ef;
  outline: 2px solid rgba(117, 183, 158, 0.35);
}

.rank-medal {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--yellow);
  color: #57451f;
  font-weight: 1000;
}

.leader-score {
  font-weight: 1000;
  color: var(--green-dark);
}

.lesson-panel {
  display: grid;
  gap: 1.25rem;
  min-height: calc(100vh - 7rem);
  padding: clamp(1rem, 4vw, 2rem);
  border: 2px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.lesson-header,
.lesson-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.lesson-actions {
  grid-template-columns: auto auto;
  justify-content: end;
}

.icon-button {
  width: 2.8rem;
  height: 2.8rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.progress-track {
  height: 0.85rem;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--aqua));
  transition: width 220ms ease;
}

.question-area {
  align-self: center;
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
}

.question-area h2 {
  font-size: clamp(1.65rem, 4vw, 3.2rem);
  line-height: 1.25;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.choice {
  min-height: 4rem;
  border: 2px solid var(--line);
  border-radius: 0.85rem;
  background: white;
  padding: 0.85rem;
  font-weight: 1000;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 0.25rem 0 #c9d4e2;
}

.choice.correct {
  border-color: var(--green);
  background: #edf7f1;
}

.choice.wrong {
  border-color: var(--rose);
  background: #fff0f0;
}

.feedback {
  min-height: 3.2rem;
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  background: #f2f6fb;
  font-weight: 900;
}

.progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 44rem);
  gap: 1rem;
  align-items: stretch;
}

.progress-summary,
.subject-bars {
  padding: 1.25rem;
}

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

.stat-card {
  display: grid;
  place-items: center;
  min-height: 8rem;
  padding: 1rem;
  text-align: center;
}

.stat-card strong {
  font-size: 2rem;
}

.subject-bars {
  margin-top: 1rem;
}

.bar-row,
.time-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) 5rem;
  gap: 0.75rem;
  align-items: center;
}

.bar,
.time-fill {
  height: 0.95rem;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}

.bar span,
.time-fill span {
  display: block;
  height: 100%;
}

.bar span {
  background: var(--blue);
}

.time-fill span {
  background: linear-gradient(90deg, var(--green), var(--yellow));
}

@media (max-width: 1020px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .login-hero,
  .hero-band,
  .progress-layout {
    grid-template-columns: 1fr;
  }

  .login-copy h1 {
    max-width: 14ch;
  }

  .profile-switch,
  .nav-tabs,
  .recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-mascot {
    max-height: 10rem;
  }
}

@media (max-width: 560px) {
  main {
    padding: 0.85rem;
    padding-top: 4.75rem;
  }

  .sidebar {
    padding: 0.85rem;
  }

  .profile-switch,
  .nav-tabs,
  .recommend-grid,
  .stats-grid,
  .choices {
    grid-template-columns: 1fr;
  }

  .brand {
    min-height: 3rem;
  }

  .hero-band {
    min-height: 0;
  }

  .path-node:nth-child(even) {
    transform: none;
  }

  .section-heading,
  .lesson-header {
    align-items: start;
  }

  .lesson-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .lesson-chip {
    grid-column: 1 / -1;
    width: max-content;
  }

  .bar-row,
  .time-row {
    grid-template-columns: 1fr;
  }
}

.calendar-panel {
  margin-top: 2rem;
  padding: 1.2rem;
  border: 2px solid var(--line);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 4px 0 #d7d7d7;
}

.calendar-weekdays,
.study-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-weekdays {
  margin-bottom: 0.55rem;
  color: #777777;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  display: grid;
  place-items: center;
  min-height: 4.1rem;
  border: 2px solid var(--line);
  border-radius: 0.8rem;
  background: #ffffff;
  color: #777777;
  text-align: center;
}

.calendar-day strong {
  color: #4b4b4b;
  font-size: 0.98rem;
}

.calendar-day small {
  min-height: 1rem;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
}

.calendar-day.studied {
  border-color: var(--green);
  background: #efffe8;
  box-shadow: inset 0 -4px 0 rgba(88, 204, 2, 0.16);
}

.calendar-day.today {
  outline: 3px solid rgba(28, 176, 246, 0.28);
}

.calendar-day.empty {
  visibility: hidden;
}

@media (max-width: 560px) {
  .calendar-panel {
    padding: 0.85rem;
  }

  .calendar-weekdays,
  .study-calendar {
    gap: 0.28rem;
  }

  .calendar-day {
    min-height: 3.25rem;
    border-radius: 0.65rem;
  }

  .calendar-day small {
    font-size: 0.58rem;
  }
}

/* Duolingo-inspired refresh: bright classroom, chunky controls, compact lesson-first layout. */
.login-screen {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 200, 0, 0.2), transparent 15rem),
    radial-gradient(circle at 86% 78%, rgba(28, 176, 246, 0.15), transparent 18rem),
    #ffffff;
}

.login-panel,
.sidebar,
.hero-band,
.lesson-panel,
.competition-panel,
.time-panel,
.progress-summary,
.subject-bars,
.path-node,
.recommend-card,
.stat-card,
.login-card,
.profile-card,
.nav-tabs button,
.logout-button,
.choice,
.secondary-action,
.menu-toggle,
.drawer-close {
  border-color: var(--line);
  box-shadow: 0 4px 0 #d7d7d7;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  background: #ffffff;
  padding: 0;
}

.menu-toggle span {
  flex: 0 0 auto;
  background: #4b4b4b;
}

.sidebar {
  background: #ffffff;
  border-right-color: var(--line);
}

.brand {
  padding-right: 3rem;
}

.brand strong {
  color: #3c3c3c;
  font-size: 1.25rem;
  font-weight: 900;
}

.brand span {
  font-weight: 800;
}

.profile-card,
.nav-tabs button,
.logout-button,
.login-card {
  border-radius: 1rem;
  background: #ffffff;
  color: #4b4b4b;
  min-height: 4.4rem;
}

.profile-card.active,
.nav-tabs button.active {
  border-color: var(--green);
  background: #efffe8;
  box-shadow: 0 4px 0 #b8eb9b;
  color: #3c3c3c;
}

.logout-button {
  background: #fffaf0;
}

main {
  max-width: 74rem;
  margin: 0 auto;
}

.topbar {
  align-items: flex-start;
  padding: 0.75rem 0 1rem;
}

.topbar h1 {
  color: #3c3c3c;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.status-pills span,
.lesson-chip {
  min-height: 2.55rem;
  border: 2px solid var(--line);
  background: #ffffff;
  color: #4b4b4b;
  font-weight: 900;
  box-shadow: 0 3px 0 #eeeeee;
}

.status-pills span:nth-child(1) b {
  color: #ff9600;
}

.status-pills span:nth-child(2) b {
  color: var(--yellow);
}

.status-pills span:nth-child(3) b {
  color: var(--blue);
}

.status-pills span:nth-child(4) b {
  color: var(--rose);
}

.hero-band {
  min-height: 11rem;
  grid-template-columns: minmax(0, 1fr) minmax(6rem, 10rem);
  border-color: var(--line);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 5px 0 #d7d7d7;
}

.hero-band h2 {
  max-width: 24ch;
  color: #3c3c3c;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  font-weight: 900;
}

.hero-band p {
  color: #777777;
  font-weight: 800;
}

.hero-mascot {
  width: min(100%, 9.5rem);
}

.primary-action,
.secondary-action,
.choice,
.path-node,
.recommend-card,
.login-card,
.profile-card,
.nav-tabs button,
.logout-button {
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.primary-action {
  border-radius: 1rem;
  background: var(--green);
  box-shadow: 0 5px 0 var(--green-dark);
  text-transform: none;
}

.primary-action:active,
.secondary-action:active,
.choice:active,
.path-node:active,
.recommend-card:active,
.login-card:active,
.profile-card:active,
.nav-tabs button:active,
.logout-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #d7d7d7;
}

.section-heading h2 {
  color: #3c3c3c;
  font-weight: 900;
}

.lesson-path {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 1.2rem;
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.25rem 0 1.75rem;
}

.lesson-path::before {
  content: "";
  position: absolute;
  top: 3.4rem;
  bottom: 3.4rem;
  left: 50%;
  width: 0.45rem;
  border-radius: 999px;
  background: #e5e5e5;
  transform: translateX(-50%);
}

.path-node {
  position: relative;
  z-index: 1;
  width: 8.25rem;
  min-height: 8.25rem;
  border-radius: 999px;
  border: 3px solid #d7d7d7;
  background: #ffffff;
  box-shadow: 0 7px 0 #d7d7d7;
  color: #4b4b4b;
}

.path-node:nth-child(even) {
  transform: translateX(4.25rem);
}

.path-node:nth-child(odd) {
  transform: translateX(-4.25rem);
}

.path-node:hover {
  border-color: var(--green);
}

.path-icon {
  width: 4.5rem;
  height: 4.5rem;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
}

.path-node strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.path-node span:last-child {
  font-size: 0.78rem;
  color: #777777;
}

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

.recommend-card {
  width: auto;
  min-height: 9rem;
  border-radius: 1rem;
}

.competition-panel,
.time-panel,
.progress-summary,
.subject-bars,
.stat-card {
  border-radius: 1.25rem;
  background: #ffffff;
}

.leader-row {
  border: 2px solid var(--line);
  background: #ffffff;
  box-shadow: 0 3px 0 #eeeeee;
}

.leader-row.active {
  background: #efffe8;
  outline: none;
  border-color: var(--green);
}

.rank-medal {
  background: var(--yellow);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.lesson-panel {
  min-height: calc(100vh - 6.5rem);
  border-color: transparent;
  background: #ffffff;
  box-shadow: none;
}

.progress-track {
  height: 1rem;
  background: #e5e5e5;
}

.question-area {
  text-align: left;
}

.question-area h2 {
  color: #3c3c3c;
  font-weight: 900;
}

.choices {
  gap: 1rem;
}

.choice {
  min-height: 4.6rem;
  border: 2px solid var(--line);
  background: #ffffff;
  box-shadow: 0 4px 0 #d7d7d7;
  color: #4b4b4b;
  font-size: 1.05rem;
}

.choice:hover {
  border-color: var(--blue);
  background: #f0faff;
}

.choice.correct {
  border-color: var(--green);
  background: #efffe8;
  box-shadow: 0 4px 0 #b8eb9b;
}

.choice.wrong {
  border-color: var(--rose);
  background: #fff0f0;
  box-shadow: 0 4px 0 #ffb5b5;
}

.feedback {
  border: 2px solid var(--line);
  background: #ffffff;
  color: #4b4b4b;
}

@media (max-width: 880px) {
  .topbar {
    gap: 0.8rem;
  }

  .hero-band {
    grid-template-columns: minmax(0, 1fr) 7rem;
  }

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

@media (max-width: 560px) {
  .hero-band {
    grid-template-columns: 1fr;
  }

  .hero-mascot {
    max-height: 7rem;
  }

  .lesson-path {
    max-width: 100%;
  }

  .lesson-path::before {
    left: 50%;
  }

  .path-node,
  .path-node:nth-child(even),
  .path-node:nth-child(odd) {
    width: 7.35rem;
    min-height: 7.35rem;
    transform: none;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 4.25rem;
  }
}

.review-panel,
.shop-panel,
.review-list-panel,
.reward-history-panel {
  margin-top: 2rem;
  padding: 1.2rem;
  border: 2px solid var(--line);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 4px 0 #d7d7d7;
}

.review-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.review-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.reward-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  min-height: 15rem;
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 4px 0 #d7d7d7;
}

.reward-card strong,
.review-row strong,
.reward-history-row strong {
  color: #3c3c3c;
  font-weight: 900;
}

.reward-card span,
.reward-card small,
.review-row span,
.reward-history-row span {
  color: var(--muted);
}

.reward-card p {
  margin-bottom: 0;
}

.reward-card button:disabled {
  cursor: not-allowed;
  color: #777777;
  background: #f3f3f3;
}

.review-list,
.reward-history {
  display: grid;
  gap: 0.75rem;
}

.review-row,
.reward-history-row,
.empty-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 2px solid var(--line);
  border-radius: 0.9rem;
  background: #ffffff;
}

.empty-row {
  color: var(--muted);
}

@media (max-width: 880px) {
  .reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .review-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .reward-grid {
    grid-template-columns: 1fr;
  }
}
