:root {
  --ink: #18305f;
  --muted: #5d7199;
  --line: #c8ddff;
  --paper: #f7fcff;
  --panel: #ffffff;
  --aqua: #25d6d0;
  --blue: #3d84ff;
  --yellow: #ffe45f;
  --coral: #ff6f8f;
  --mint: #82ef90;
  --violet: #9c67ff;
  --orange: #ffb347;
  --pink: #ff8bd8;
  --cream: #fff8df;
  --shadow: 0 14px 0 rgba(64, 103, 190, 0.08), 0 20px 36px rgba(31, 70, 150, 0.14);
  --party-shadow: 4px 5px 0 rgba(24, 48, 95, 0.88);
  --soft-glow: 0 0 0 4px rgba(255, 255, 255, 0.68);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 54px),
    linear-gradient(180deg, #bfefff 0%, #effaff 34%, #fff2b6 66%, #bff6d7 100%);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.4vw, 34px);
  min-height: 104px;
  padding: 16px clamp(34px, 3.5vw, 72px);
  background:
    linear-gradient(90deg, rgba(255, 255, 236, 0.92), rgba(248, 255, 252, 0.94) 42%, rgba(255, 248, 252, 0.92));
  border-bottom: 2px solid rgba(245, 238, 187, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 22px rgba(80, 117, 154, 0.06);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  background:
    linear-gradient(90deg, rgba(255, 232, 82, 0.45), rgba(70, 221, 208, 0.34), rgba(255, 149, 191, 0.3));
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 18px;
  min-width: clamp(310px, 30vw, 620px);
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: #ffd656;
  color: #1e4779;
  box-shadow: 0 15px 0 rgba(105, 151, 166, 0.28);
  isolation: isolate;
}

.brand-mark span {
  display: block;
  transform: translateY(-1px);
  font-size: 31px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.brand-mark.image-mark {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  color: #1d3e6c;
  text-shadow: none;
  font-weight: 950;
}

.brand small,
.muted {
  color: var(--muted);
}

.brand small {
  display: block;
  margin-top: 4px;
  color: #52647d;
  font-size: 18px;
  font-weight: 850;
}

.tabs {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 2px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  border: 1px solid rgba(226, 232, 242, 0.72);
  background: rgba(255, 255, 255, 0.82);
  color: #44516a;
  padding: 15px 25px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(46, 61, 88, 0.08);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.tab.active {
  border-color: rgba(255, 210, 63, 0.64);
  background: #ffd85a;
  color: #1d3e6c;
  box-shadow:
    9px 0 0 rgba(255, 222, 92, 0.28),
    0 8px 16px rgba(235, 183, 40, 0.18);
}

.tab:hover {
  transform: translateY(-1px);
  background: #fff;
}

.topbar .version-badge,
.topbar .user-chip {
  display: none;
}

.version-badge {
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--mint);
  box-shadow: var(--party-shadow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--party-shadow);
  white-space: nowrap;
}

.avatar-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--aqua);
}

.container {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.hero-panel,
.panel,
.card {
  border: 2px solid rgba(24, 48, 95, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 253, 255, 0.94));
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: clamp(24px, 4vw, 42px);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0 12px, transparent 12px 24px),
    linear-gradient(115deg, #ffe45f, #ff7d95 45%, #3d84ff 72%, #25d6d0);
  border-color: rgba(24, 48, 95, 0.34);
  box-shadow: var(--party-shadow), 0 22px 42px rgba(61, 132, 255, 0.2);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -24px -54px 18%;
  height: 126px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0 18px, rgba(255, 255, 255, 0.18) 18px 36px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 248, 223, 0.8));
  transform: rotate(-3deg);
}

.hero-panel::before {
  content: "+  -  x  =  +  -  x  =";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  color: rgba(24, 48, 95, 0.22);
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 3px 0 rgba(24, 48, 95, 0.35);
}

.hero p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  color: rgba(24, 48, 95, 0.88);
  font-size: 18px;
  font-weight: 850;
}

.login-card {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 26px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 223, 0.96));
  box-shadow: var(--party-shadow), var(--shadow);
}

.login-card h2 {
  margin: 0 0 4px;
  font-size: 28px;
}

.login-card .btn {
  width: 100%;
}

.mascot-row {
  position: absolute;
  right: 32px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 18px;
  align-items: flex-end;
}

.mascot {
  position: relative;
  width: 82px;
  height: 96px;
  border: 3px solid var(--ink);
  border-radius: 48% 48% 44% 44%;
  background:
    linear-gradient(180deg, #fff 0 24%, var(--mint) 24% 100%);
  box-shadow: 5px 7px 0 var(--ink);
}

.mascot::before,
.mascot::after {
  content: "";
  position: absolute;
  top: 35px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.mascot::before {
  left: 24px;
}

.mascot::after {
  right: 24px;
}

.mascot span {
  position: absolute;
  left: 50%;
  top: 54px;
  width: 24px;
  height: 10px;
  border-bottom: 3px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}

.mascot.alt {
  width: 70px;
  height: 84px;
  background:
    linear-gradient(180deg, #fff 0 22%, var(--blue) 22% 100%);
}

.party-avatar {
  --skin-base: #ffd85a;
  --skin-accent: #4fd8d2;
  --skin-trim: #ffffff;
  --skin-shadow: #18305f;
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 112px;
  border: 3px solid var(--ink);
  border-radius: 48% 48% 44% 44%;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.92) 0 16%, transparent 17%),
    linear-gradient(180deg, var(--skin-trim) 0 24%, var(--skin-base) 24% 72%, var(--skin-accent) 72% 100%);
  box-shadow: 7px 8px 0 var(--skin-shadow), var(--soft-glow);
  overflow: hidden;
}

.party-avatar::before,
.party-avatar::after {
  content: "";
  position: absolute;
  top: 40px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  z-index: 2;
}

.party-avatar::before {
  left: 29px;
}

.party-avatar::after {
  right: 29px;
}

.party-avatar-face {
  position: absolute;
  left: 50%;
  top: 60px;
  width: 26px;
  height: 10px;
  border-bottom: 3px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.party-avatar-gloss {
  position: absolute;
  inset: 8px auto auto 18px;
  width: 26px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  transform: rotate(-22deg);
}

.party-avatar b {
  position: absolute;
  right: 11px;
  bottom: 13px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--skin-trim);
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  z-index: 2;
}

.small-avatar {
  width: 58px;
  height: 68px;
  box-shadow: 4px 5px 0 var(--skin-shadow);
}

.small-avatar::before,
.small-avatar::after {
  top: 25px;
  width: 6px;
  height: 6px;
}

.small-avatar::before {
  left: 18px;
}

.small-avatar::after {
  right: 18px;
}

.small-avatar .party-avatar-face {
  top: 38px;
  width: 18px;
  height: 8px;
}

.small-avatar b,
.mini-avatar b {
  display: none;
}

.mini-avatar {
  width: 32px;
  height: 38px;
  border-width: 2px;
  box-shadow: 2px 3px 0 var(--skin-shadow);
}

.mini-avatar::before,
.mini-avatar::after,
.mini-avatar .party-avatar-face,
.mini-avatar .party-avatar-gloss {
  display: none;
}

.hero-avatar {
  width: 126px;
  height: 148px;
}

.profile-party-avatar {
  width: 120px;
  height: 140px;
}

.skin-card-avatar {
  width: 66px;
  height: 78px;
  box-shadow: 4px 5px 0 var(--skin-shadow);
}

.skin-card-avatar::before,
.skin-card-avatar::after {
  top: 29px;
  width: 6px;
  height: 6px;
}

.skin-card-avatar::before {
  left: 20px;
}

.skin-card-avatar::after {
  right: 20px;
}

.skin-card-avatar .party-avatar-face {
  top: 44px;
  width: 18px;
}

.skin-card-avatar b {
  right: 7px;
  bottom: 8px;
  min-width: 22px;
  height: 22px;
  font-size: 12px;
}

.official-mascot {
  width: min(128px, 22vw);
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(5px 7px 0 rgba(37, 48, 71, 0.8));
}

.mascot-large {
  margin: 0 auto;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.today-command {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.7fr) minmax(260px, 0.95fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.today-player,
.today-command-main,
.today-accuracy-card {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 223, 0.96));
  box-shadow: var(--party-shadow), var(--shadow);
}

.today-player {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 18px;
  text-align: center;
}

.today-player h2,
.today-player p,
.today-player span {
  margin: 0;
}

.today-player h2 {
  font-size: 24px;
}

.today-player span {
  color: var(--muted);
  font-weight: 900;
}

.today-command-main {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.4vw, 34px);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 12px, transparent 12px 24px),
    linear-gradient(115deg, #ffe45f, #ff8aa2 42%, #66adff 72%, #25d6d0);
}

.today-command-main h1 {
  max-width: 720px;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  text-shadow: 0 3px 0 rgba(24, 48, 95, 0.35);
}

.today-command-main p {
  max-width: 720px;
  margin: 0 0 18px;
  color: rgba(24, 48, 95, 0.86);
  font-size: 18px;
  font-weight: 900;
}

.today-command-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.today-command-row span {
  color: rgba(24, 48, 95, 0.78);
  font-weight: 950;
}

.start-learning-btn {
  min-height: 62px;
  padding: 16px 24px;
  font-size: 22px;
}

.today-progress {
  height: 16px;
  margin: 0 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.today-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--mint), var(--yellow), var(--coral));
}

.today-accuracy-card {
  padding: 16px;
}

.accuracy-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.today-accuracy-card .accuracy-pills {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.accuracy-pill {
  padding: 12px;
  border: 2px solid rgba(24, 48, 95, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #eaffff);
  box-shadow: 0 5px 0 rgba(24, 48, 95, 0.08);
}

.accuracy-pill b,
.accuracy-pill span,
.accuracy-pill small {
  display: block;
}

.accuracy-pill b {
  font-size: 28px;
}

.accuracy-pill span {
  font-weight: 950;
}

.accuracy-pill small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 850;
}

.stat {
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #fff8df);
  box-shadow: var(--party-shadow);
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 8px;
  color: rgba(61, 132, 255, 0.16);
  font-size: 34px;
  font-weight: 950;
}

.stat:nth-child(2n) {
  background: linear-gradient(180deg, #fff, #eaffff);
}

.stat:nth-child(3n) {
  background: linear-gradient(180deg, #fff, #fff0f7);
}

.stat b {
  display: block;
  font-size: 30px;
}

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

.span-8 {
  grid-column: span 8;
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.panel {
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 22px;
}

.panel-title.compact {
  margin: 16px 0 8px;
}

.panel-title.compact h4 {
  margin: 0;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 2px solid rgba(24, 48, 95, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(238, 250, 255, 0.96));
  box-shadow: 0 5px 0 rgba(24, 48, 95, 0.08);
}

.task.done {
  background:
    linear-gradient(90deg, rgba(240, 255, 244, 0.98), rgba(234, 255, 255, 0.96));
  border-color: #65d978;
}

.school-strip {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff8d8;
  box-shadow: 3px 4px 0 var(--ink);
}

.school-strip span {
  color: var(--muted);
  font-size: 14px;
}

.task-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--yellow), var(--orange));
  font-weight: 800;
  box-shadow: 2px 3px 0 rgba(24, 48, 95, 0.88);
}

.task strong {
  display: block;
}

.task small {
  color: var(--muted);
}

.btn {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 10px 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: var(--party-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 5px 6px 0 rgba(24, 48, 95, 0.88);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn.primary {
  background:
    linear-gradient(180deg, #ff8aa2, var(--coral));
  color: #fff;
}

.btn.blue {
  background:
    linear-gradient(180deg, #66adff, var(--blue));
  color: #fff;
}

.btn.mint {
  background:
    linear-gradient(180deg, #b4ffba, var(--mint));
}

.btn.yellow {
  background:
    linear-gradient(180deg, #fff09d, var(--yellow));
}

.btn.ghost {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.42);
}

.btn.small {
  padding: 7px 10px;
  font-size: 14px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.book-card,
.reward-card,
.student-card {
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f6fcff);
  box-shadow: var(--party-shadow);
}

.book-card h3,
.reward-card h3,
.student-card h3 {
  margin: 0 0 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border: 1px solid rgba(24, 48, 95, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff8df;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.level-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
}

.level-btn {
  min-width: 46px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  font-weight: 900;
}

.level-btn.active {
  background: var(--aqua);
  box-shadow: 3px 4px 0 var(--ink);
}

.book-grid,
.reward-grid,
.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.resource-list {
  display: grid;
  gap: 8px;
}

.resource-row {
  display: grid;
  grid-template-columns: 116px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.resource-row-muted {
  background: #f7f8fb;
  opacity: 0.88;
}

.resource-row strong {
  display: grid;
  gap: 2px;
}

.resource-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.button-row.compact {
  justify-content: flex-start;
  margin-top: 0;
}

.practice-block {
  margin: 16px 0;
}

.practice-list {
  display: grid;
  gap: 8px;
}

.practice-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.practice-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.viewer {
  min-height: 68vh;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--party-shadow);
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, #eef8ff, #fff8df);
}

.practice-pdf-viewer {
  margin-top: 16px;
}

.practice-pdf-viewer .viewer-toolbar {
  justify-content: space-between;
}

.viewer iframe,
.viewer object,
.viewer video {
  display: block;
  width: 100%;
  height: calc(68vh - 54px);
  border: 0;
  background: #fff;
}

.viewer audio {
  width: min(720px, calc(100% - 32px));
  margin: 34px 16px;
}

.reader-progress {
  margin-bottom: 14px;
}

.learning-checklist {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.learning-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.learning-item span {
  grid-row: span 2;
  font-size: 20px;
}

.learning-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.learning-item.done {
  border-color: #8ddf9a;
  background:
    linear-gradient(180deg, #f0fff4, #eaffff);
}

.empty-state,
.boot {
  display: grid;
  place-items: center;
  min-height: 52vh;
  text-align: center;
  padding: 28px;
}

.boot h1 {
  margin: 18px 0 6px;
}

.notice {
  padding: 12px;
  border: 2px dashed var(--blue);
  border-radius: 8px;
  background:
    linear-gradient(90deg, #eef6ff, #fff8df);
  font-weight: 800;
}

.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.form-row input,
.form-row select,
.form-row textarea,
.search {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.search:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(61, 132, 255, 0.16);
}

.searchbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

.dictation-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.dictation-row input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.quiz-card {
  display: grid;
  gap: 14px;
}

.question {
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #fffdf2);
}

.review-grid,
.settings-grid {
  display: grid;
  gap: 12px;
}

.review-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #eefcff);
}

.settings-grid .btn {
  align-self: end;
}

.word-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #fff8df);
}

.word-card span,
.word-card > strong {
  font-weight: 900;
}

.word-card input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 10px;
  background:
    linear-gradient(180deg, #fff09d, var(--yellow));
  font-weight: 900;
  box-shadow: 2px 3px 0 rgba(24, 48, 95, 0.88);
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 22px;
  border: 2px solid rgba(37, 48, 71, 0.16);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, rgba(255, 228, 95, 0.72), rgba(37, 214, 208, 0.32), rgba(156, 103, 255, 0.24)),
    #fff;
  border-color: rgba(24, 48, 95, 0.24);
  box-shadow: var(--party-shadow), var(--shadow);
}

.profile-hero h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.profile-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 94px;
  height: 94px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--party-shadow), var(--soft-glow);
  color: #fff;
  font-size: 36px;
  font-weight: 950;
}

.profile-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.profile-day {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 92px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f7fbff);
  overflow: hidden;
}

.profile-day.has-points {
  border-color: rgba(92, 141, 246, 0.48);
  background:
    linear-gradient(180deg, #fff, #e9f7ff);
}

.profile-day.checked {
  box-shadow: inset 0 0 0 2px rgba(157, 231, 123, 0.48);
}

.profile-day span,
.profile-day small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-day strong {
  font-size: 22px;
  line-height: 1;
}

.profile-day b {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.badge-grid,
.reward-inventory,
.leaderboard-grid {
  display: grid;
  gap: 12px;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 12px;
}

.skin-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 124px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f6fcff);
  box-shadow: var(--party-shadow);
  overflow: hidden;
}

.skin-card h3,
.skin-card p {
  margin: 0;
}

.skin-card p,
.skin-card small {
  color: var(--muted);
  font-weight: 850;
}

.skin-card .btn {
  grid-column: 1 / -1;
}

.skin-card.active {
  background:
    linear-gradient(180deg, #fff8df, #eaffff);
  outline: 4px solid rgba(255, 216, 90, 0.46);
}

.skin-rarity {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 26px;
  padding: 4px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 2px 3px 0 rgba(24, 48, 95, 0.88);
}

.skin-rarity.rarity-starter {
  background: linear-gradient(180deg, #fff, #fff8df);
}

.skin-rarity.rarity-common {
  background: linear-gradient(180deg, #eaffff, #bfefff);
}

.skin-rarity.rarity-rare {
  background: linear-gradient(180deg, #d8cbff, #9c67ff);
  color: #fff;
}

.skin-rarity.rarity-ultra {
  background:
    linear-gradient(90deg, #ffe45f, #ff8bd8, #9c67ff, #25d6d0);
  color: #fff;
  text-shadow: 0 2px 0 rgba(24, 48, 95, 0.35);
  box-shadow:
    2px 3px 0 rgba(24, 48, 95, 0.88),
    0 0 0 4px rgba(255, 228, 95, 0.28),
    0 0 18px rgba(156, 103, 255, 0.38);
}

.skin-card.rarity-rare {
  background:
    linear-gradient(180deg, #fff, #f3efff);
}

.skin-card.rarity-ultra {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, #fff8df, #fff0f7 42%, #eaffff);
  outline: 3px solid rgba(255, 228, 95, 0.42);
}

.skin-card.locked {
  filter: grayscale(0.65);
  opacity: 0.72;
}

.skin-card.locked .party-avatar {
  box-shadow: 4px 5px 0 rgba(24, 48, 95, 0.46);
}

.badge-card {
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff09d, var(--yellow));
  box-shadow: var(--party-shadow);
}

.badge-card strong,
.badge-card small {
  display: block;
}

.badge-card small {
  color: var(--muted);
  margin-top: 4px;
  font-weight: 800;
}

.inventory-reward {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffdf7, #eefcff);
  box-shadow: var(--party-shadow);
}

.inventory-reward h3 {
  margin: 0 0 4px;
}

.inventory-reward small {
  color: var(--muted);
  font-weight: 800;
}

.inventory-reward.used {
  opacity: 0.55;
  filter: grayscale(0.8);
  box-shadow: none;
}

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

.leaderboard-board:last-child {
  grid-column: span 2;
}

.leaderboard {
  display: grid;
  gap: 12px;
}

.rank {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f6fcff);
  box-shadow: var(--party-shadow);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, var(--yellow), var(--orange));
  font-weight: 900;
}

.bar {
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--aqua), var(--blue));
}

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

.month-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-empty,
.calendar-day {
  min-height: 172px;
  border-radius: 8px;
}

.calendar-day {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
  border: 2px solid var(--line);
  background: #fff;
}

.calendar-day.today {
  border-color: var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
}

.calendar-day.weekend {
  background: #fffbec;
}

.calendar-day.skipped {
  background: #f0f2f7;
  opacity: 0.86;
}

.calendar-day.completed {
  background: #f0fff4;
  border-color: #8ddf9a;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-head strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.calendar-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calendar-book,
.calendar-school {
  margin: 0;
  font-size: 13px;
  line-height: 1.32;
}

.calendar-book {
  font-weight: 850;
}

.calendar-school {
  color: #52617d;
}

.calendar-tasks {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.school-plan {
  display: grid;
  gap: 12px;
}

.school-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.school-step b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--aqua);
}

.school-step p {
  margin: 4px 0 0;
  color: var(--muted);
}

.unit-list {
  display: grid;
  gap: 10px;
  max-height: 70vh;
  overflow: auto;
  padding-right: 4px;
}

.unit-card {
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.unit-card.active {
  border-color: var(--ink);
  background: #fff8d8;
  box-shadow: 3px 4px 0 var(--ink);
}

.unit-card strong,
.unit-card small {
  display: block;
}

.unit-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.mini-list li:last-child {
  border-bottom: 0;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.span-12 {
  grid-column: span 12;
}

.upgrade-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 20px;
  border: 2px solid rgba(37, 48, 71, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(157, 231, 123, 0.28), rgba(100, 214, 202, 0.16)),
    #fff;
  box-shadow: var(--shadow);
}

.upgrade-hero h2 {
  margin: 0;
  font-size: 30px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--coral);
  font-weight: 900;
  text-transform: uppercase;
}

.upgrade-stats,
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

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

.mini-metrics span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fffdf7;
  font-size: 12px;
  font-weight: 800;
}

.upgrade-stage {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.upgrade-stage.review-single-stage {
  grid-template-columns: minmax(0, 1fr);
}

.mode-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.mode-overview article {
  padding: 16px;
  border: 2px solid rgba(37, 48, 71, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.mode-overview span,
.source-badge {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-overview h3,
.mode-overview p {
  margin: 6px 0;
}

.word-castle-switch {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.word-castle-learning {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.castle-word-list,
.castle-word-detail {
  border: 2px solid rgba(37, 48, 71, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.castle-word-list {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 14px;
}

.castle-word-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.castle-word-item span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--blue);
  font-weight: 950;
}

.castle-word-item b {
  overflow-wrap: anywhere;
}

.castle-word-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.castle-word-item.learned span {
  background: rgba(157, 231, 123, 0.45);
  color: #20744a;
}

.castle-word-item.active {
  border-color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
}

.castle-word-detail {
  min-height: 620px;
  padding: clamp(18px, 3vw, 30px);
}

.castle-word-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.castle-word-title h2 {
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.castle-word-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.castle-meaning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.castle-meaning-grid div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
}

.castle-meaning-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.castle-meaning-grid strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.castle-examples li {
  font-size: 16px;
  line-height: 1.45;
}

.word-teaching-module {
  margin-bottom: 16px;
}

.word-teaching-module > h3 {
  margin: 16px 0 10px;
}

.teaching-word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.teaching-word-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff8d8;
  box-shadow: 3px 4px 0 var(--ink);
}

.teaching-word-card.important {
  border-color: #bfe8ef;
  background: #f0fcff;
  box-shadow: none;
}

.teaching-word-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.teaching-word-head h3 {
  margin: 2px 0;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.teaching-word-head span,
.teaching-word-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.teaching-spell {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.teaching-word-card p {
  margin: 0;
}

.word-sense-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.word-sense-list h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.word-sense-list.compact {
  margin: 4px 0;
}

.word-sense-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(55, 131, 238, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.word-sense-item span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.word-sense-item b {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.word-sense-item small {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
}

.word-sense-item em,
.word-sense-item i {
  color: #53637c;
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.dictionary-supplement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.dictionary-supplement-grid section {
  padding: 12px;
  border: 1px solid rgba(55, 131, 238, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.dictionary-supplement-grid h4,
.dictionary-supplement-grid p {
  margin: 0 0 8px;
}

.dictionary-supplement-grid span,
.dictionary-supplement-grid small {
  color: var(--muted);
  font-weight: 850;
}

.word-overview-panel {
  margin-top: 16px;
}

.segmented-control {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.segmented-control button {
  min-height: 36px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
}

.segmented-control button.active {
  border-color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
}

.overview-group-grid {
  display: grid;
  gap: 12px;
}

.overview-group {
  padding: 12px;
  border: 2px solid rgba(37, 48, 71, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.overview-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.overview-group-head h3 {
  margin: 0;
}

.overview-group-head span {
  color: var(--blue);
  font-weight: 950;
}

.overview-word-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.overview-word-cloud button,
.listening-word-bank button {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 9px 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.overview-word-cloud b,
.listening-word-bank b {
  overflow-wrap: anywhere;
}

.overview-word-cloud small,
.listening-word-bank span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.word-sprint-stage {
  display: grid;
  margin-top: 16px;
}

.sprint-card {
  max-width: 980px;
  margin: 0 auto;
}

.listening-layout {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.listening-word-bank,
.listening-card {
  border: 2px solid rgba(37, 48, 71, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.listening-word-bank {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.listening-word-bank h3 {
  margin: 0;
}

.listening-card {
  display: grid;
  gap: 16px;
  min-height: 540px;
  padding: clamp(18px, 3vw, 30px);
}

.listening-card h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
}

.dialogue-box {
  padding: 14px;
  border: 2px solid rgba(80, 214, 204, 0.45);
  border-radius: 8px;
  background: #f0fffb;
}

.upgrade-queue,
.word-upgrade-card,
.upgrade-done,
.word-parent-panel {
  border: 2px solid rgba(37, 48, 71, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.upgrade-queue {
  padding: 14px;
  position: sticky;
  top: 92px;
}

.queue-privacy-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.queue-item b,
.queue-item span {
  grid-column: 1;
}

.queue-item.active {
  border-color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
}

.queue-item.done {
  background:
    linear-gradient(180deg, #f3fff6, #eaffff);
  border-color: rgba(101, 217, 120, 0.58);
}

.queue-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.queue-item .mini-audio {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.word-upgrade-card {
  min-height: 620px;
  padding: clamp(18px, 3vw, 30px);
}

.card-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.card-ribbon span {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--mint);
  box-shadow: 3px 4px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.learning-ladder {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.learning-ladder div {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
}

.learning-ladder b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.mini-audio {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--aqua);
  padding: 5px 8px;
  font-weight: 900;
}

.recall-face {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 20px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 214, 90, 0.3), rgba(255, 127, 110, 0.18)),
    #fff;
  box-shadow: 5px 6px 0 var(--ink);
  text-align: center;
}

.recall-face span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.recall-face strong {
  overflow-wrap: anywhere;
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1.05;
}

.recall-face small {
  color: var(--muted);
  font-weight: 800;
}

.recall-face.sentence strong {
  font-size: clamp(24px, 3vw, 38px);
}

.upgrade-answer-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.upgrade-answer-form input[name="answer"],
.upgrade-answer-form textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  font-size: 18px;
}

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

.meaning-choice-grid label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  min-height: 64px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.meaning-choice-grid label:has(input:checked) {
  border-color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
}

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

.quality-row label {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fffdf7;
  font-size: 13px;
  font-weight: 800;
}

.upgrade-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 4px 0 var(--ink);
}

.upgrade-result.good {
  background: rgba(157, 231, 123, 0.35);
}

.upgrade-result.practice {
  background: rgba(255, 214, 90, 0.32);
}

.upgrade-box-path {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.upgrade-box-path span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.upgrade-box-path span.active {
  border-color: var(--ink);
  background: var(--blue);
  color: #fff;
}

.context-strip {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #eefaf7;
}

.context-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.button-row.spread {
  justify-content: space-between;
  margin-top: 18px;
}

.upgrade-done,
.word-parent-panel {
  padding: 20px;
}

.raz-coach-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 22px;
  border: 2px solid rgba(37, 48, 71, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 214, 90, 0.34), rgba(100, 214, 202, 0.2)),
    #fff;
  box-shadow: var(--shadow);
}

.raz-coach-hero h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.coach-day-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 5px 6px 0 var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.coach-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.coach-stats .stat {
  min-height: 104px;
}

.coach-task-list {
  display: grid;
  gap: 10px;
}

.coach-task-list .task {
  grid-template-columns: auto minmax(0, 1fr);
}

.raz-word-layer {
  margin-bottom: 12px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.raz-word-layer h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.raz-word-layer.core {
  border-color: var(--ink);
  background: #fff8d8;
  box-shadow: 3px 4px 0 var(--ink);
}

.raz-word-layer.recognition {
  background: #eefaf7;
}

.raz-word-layer.skip {
  background: #f7f8fb;
}

.raz-word-layer .chip {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  max-width: 100%;
  border-radius: 8px;
  padding: 7px 9px;
}

.raz-word-layer .chip small {
  max-width: 190px;
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.retell-template,
.sentence-mission {
  margin-top: 14px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
}

.retell-template p {
  margin: 7px 0;
  font-weight: 800;
}

.sentence-mission h3 {
  margin: 0 0 8px;
}

.sentence-mission .mini-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.raz-parent-panel {
  margin-bottom: 16px;
}

.reward-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: linear-gradient(120deg, #3d82ee, #745cf4);
  box-shadow: var(--shadow);
  color: #fff;
}

.reward-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
}

.reward-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.reward-hero .eyebrow {
  color: #d9fff7;
}

.reward-score-ring {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 128px;
  height: 128px;
  border: 10px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.reward-score-ring strong {
  font-size: 36px;
  line-height: 1;
}

.reward-score-ring span {
  font-size: 12px;
  font-weight: 900;
}

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

.reward-panel {
  position: relative;
  overflow: hidden;
  min-height: 270px;
}

.reward-panel.wide {
  grid-column: span 2;
}

.reward-panel.shop {
  grid-column: span 3;
}

.reward-panel h3 {
  margin: 0 0 4px 38px;
  font-size: 22px;
}

.reward-panel h4 {
  margin: 14px 0 8px;
}

.reward-step {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 950;
}

.reward-step.purple {
  background: var(--violet);
}

.reward-step.green {
  background: #2fbf71;
}

.reward-step.orange {
  background: #ff9f43;
}

.reward-step.pink {
  background: #e9488d;
}

.reward-step.cyan {
  background: #20a8b8;
}

.reward-step.gold {
  background: #e7a30a;
}

.week-dots,
.milestone-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}

.week-dots span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #cfe0fb;
  border-radius: 50%;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 900;
}

.week-dots span.done {
  border-color: var(--ink);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 2px 3px 0 var(--ink);
}

.reward-rule-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reward-rule-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.reward-rule-list b {
  color: var(--blue);
}

.reward-note {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #eef6ff;
  color: #2f5d9a;
  font-weight: 800;
}

.reward-note.warm {
  background: #fff4d6;
  color: #9a6a00;
}

.reward-note.orange-note {
  background: #fff6e8;
  color: #a35e0f;
}

.reward-score-list,
.chance-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.reward-score-row,
.chance-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1.6fr) auto;
  gap: 10px;
  align-items: center;
}

.reward-score-row span,
.chance-row span {
  color: var(--muted);
  font-weight: 800;
}

.reward-score-track,
.chance-track {
  height: 11px;
  border-radius: 999px;
  background: #edf1f7;
  overflow: hidden;
}

.reward-score-track b,
.chance-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.chance-track b {
  background: #ffa949;
}

.fixed-reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fixed-reward-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid #2fbf71;
  border-radius: 8px;
  background: #f8fbff;
}

.fixed-reward-grid span,
.card-levels small,
.challenge-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fixed-reward-grid strong {
  display: block;
  margin-top: 4px;
  color: #2fbf71;
  font-size: 20px;
}

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

.card-levels span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
}

.card-levels small {
  color: rgba(255, 255, 255, 0.86);
}

.surprise-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.milestone-line {
  justify-content: space-between;
  padding: 18px 8px;
  border-top: 8px solid #dbe3f0;
}

.milestone-line div {
  display: grid;
  place-items: center;
  gap: 5px;
  min-width: 62px;
  margin-top: -36px;
}

.milestone-line b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e9488d;
  color: #fff;
  box-shadow: 3px 4px 0 rgba(37, 48, 71, 0.16);
}

.milestone-line div:not(.unlocked) b {
  background: #cbd4e3;
}

.milestone-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rainbow-egg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px auto 0;
  max-width: 560px;
  padding: 18px;
  border-radius: 999px;
  background: #f2eafe;
  color: #6c48d8;
  font-weight: 900;
}

.challenge-grid,
.reward-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.challenge-grid div,
.reward-subpanel,
.shop-item {
  border: 1px solid #bfe8ef;
  border-radius: 8px;
  background: #f0fcff;
}

.challenge-grid div {
  padding: 13px;
}

.reward-subpanel {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f7fbff;
}

.reward-subpanel.gold {
  border-color: #f1d49b;
  background: #fffaf0;
}

.reward-subpanel h3 {
  margin: 0;
  font-size: 18px;
  text-align: center;
}

.shop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  background: #fff;
}

.shop-item strong {
  color: var(--blue);
  white-space: nowrap;
}

.reward-subpanel.gold .shop-item strong {
  color: #b77900;
}

.safety-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 16px;
  background: #1e2a44;
  color: #fff;
}

.safety-strip span {
  color: #9de7d9;
  font-weight: 800;
}

/* Sunny Eggy Math Island theme overrides */
.calendar-day,
.school-step,
.unit-card,
.mode-overview article,
.castle-word-list,
.castle-word-detail,
.upgrade-queue,
.word-upgrade-card,
.upgrade-done,
.word-parent-panel,
.raz-word-layer,
.retell-template,
.sentence-mission,
.reward-panel,
.reward-subpanel,
.shop-item,
.challenge-grid div {
  border-color: rgba(24, 48, 95, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 255, 0.96));
  box-shadow: var(--party-shadow);
}

.calendar-day.today,
.unit-card.active,
.castle-word-item.active,
.queue-item.active,
.raz-word-layer.core {
  background:
    linear-gradient(180deg, #fff5a5, #ffe45f);
  box-shadow: var(--party-shadow);
}

.calendar-day.weekend,
.learning-ladder div,
.quality-row label,
.castle-meaning-grid div,
.context-strip,
.retell-template,
.sentence-mission {
  background:
    linear-gradient(180deg, #fff, #fff8df);
}

.calendar-day.completed,
.calendar-day.skipped,
.school-step,
.unit-card,
.castle-word-item,
.queue-item,
.meaning-choice-grid label {
  box-shadow: 0 4px 0 rgba(24, 48, 95, 0.08);
}

.upgrade-hero,
.raz-coach-hero,
.reward-hero {
  border: 2px solid rgba(24, 48, 95, 0.32);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0 10px, transparent 10px 20px),
    linear-gradient(120deg, #ffe45f, #ff8bd8 38%, #3d84ff 72%, #25d6d0);
  box-shadow: var(--party-shadow), 0 22px 42px rgba(61, 132, 255, 0.2);
  color: #fff;
}

.upgrade-hero h2,
.raz-coach-hero h2,
.reward-hero h2,
.upgrade-hero .muted,
.raz-coach-hero .muted,
.reward-hero p {
  color: #fff;
  text-shadow: 0 2px 0 rgba(24, 48, 95, 0.26);
}

.upgrade-hero .eyebrow,
.raz-coach-hero .eyebrow,
.reward-hero .eyebrow {
  color: #eaffff;
}

.coach-day-badge,
.reward-score-ring {
  background:
    linear-gradient(180deg, #fff09d, var(--yellow));
  color: var(--ink);
  box-shadow: var(--party-shadow), var(--soft-glow);
}

.teaching-word-card {
  background:
    linear-gradient(180deg, #fff7a8, #fff8df);
  box-shadow: var(--party-shadow);
}

.teaching-word-card.important,
.raz-word-layer.recognition {
  border-color: rgba(37, 214, 208, 0.48);
  background:
    linear-gradient(180deg, #f4ffff, #e8fbff);
  box-shadow: 0 5px 0 rgba(24, 48, 95, 0.08);
}

.teaching-spell,
.mini-audio {
  background:
    linear-gradient(180deg, #fff, #eaf8ff);
  border: 1px solid rgba(24, 48, 95, 0.16);
}

.card-ribbon span,
.learning-ladder b,
.upgrade-box-path span.active {
  background:
    linear-gradient(180deg, #66adff, var(--blue));
  color: #fff;
  box-shadow: 2px 3px 0 rgba(24, 48, 95, 0.88);
}

.recall-face {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.38) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, rgba(255, 228, 95, 0.82), rgba(255, 111, 143, 0.24), rgba(37, 214, 208, 0.28)),
    #fff;
  box-shadow: var(--party-shadow);
}

.meaning-choice-grid label:has(input:checked),
.upgrade-result,
.upgrade-box-path span.active {
  box-shadow: var(--party-shadow);
}

.upgrade-result.good {
  background:
    linear-gradient(180deg, rgba(130, 239, 144, 0.42), rgba(234, 255, 255, 0.96));
}

.upgrade-result.practice {
  background:
    linear-gradient(180deg, rgba(255, 228, 95, 0.42), rgba(255, 248, 223, 0.98));
}

.reward-panel::after,
.word-upgrade-card::after,
.castle-word-detail::after {
  content: "+ - x =";
  display: block;
  margin-top: 14px;
  color: rgba(61, 132, 255, 0.15);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 10px;
}

.reward-note,
.reward-note.warm,
.reward-note.orange-note,
.fixed-reward-grid div,
.surprise-layout aside {
  background:
    linear-gradient(180deg, #fff, #fff8df);
  border: 1px solid rgba(24, 48, 95, 0.14);
  color: var(--ink);
}

.reward-score-track,
.chance-track,
.bar {
  background: rgba(24, 48, 95, 0.08);
}

.reward-score-track b,
.chance-track b {
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--aqua), var(--blue));
}

.milestone-line {
  border-top-color: rgba(61, 132, 255, 0.22);
}

.milestone-line b,
.reward-step {
  box-shadow: 2px 3px 0 rgba(24, 48, 95, 0.88);
}

.rainbow-egg {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(90deg, #fff0f7, #fff8df, #eaffff);
  color: var(--ink);
  box-shadow: var(--party-shadow);
}

.safety-strip {
  background:
    linear-gradient(90deg, #18305f, #3d84ff);
  box-shadow: var(--party-shadow);
}

.safety-strip span {
  color: #d8fff8;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .hero,
  .today-command,
  .reader,
  .two-col,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .span-8,
  .span-4,
  .span-6,
  .span-12 {
    grid-column: span 12;
  }

  .upgrade-hero,
  .raz-coach-hero,
  .reward-hero,
  .profile-hero,
  .rainbow-egg,
  .upgrade-result {
    flex-direction: column;
    align-items: stretch;
  }

  .upgrade-stage {
    grid-template-columns: 1fr;
  }

  .word-castle-learning,
  .castle-meaning-grid,
  .dictionary-supplement-grid,
  .listening-layout {
    grid-template-columns: 1fr;
  }

  .mode-overview {
    grid-template-columns: 1fr;
  }

  .listening-word-bank {
    position: static;
  }

  .leaderboard-grid,
  .leaderboard-board:last-child {
    grid-template-columns: 1fr;
    grid-column: span 1;
  }

  .reward-system-grid,
  .reward-panel.wide,
  .reward-panel.shop,
  .surprise-layout,
  .challenge-grid,
  .reward-shop-grid {
    grid-template-columns: 1fr;
    grid-column: span 1;
  }

  .upgrade-queue {
    position: static;
  }

  .castle-word-list {
    position: static;
    max-height: none;
  }

  .quality-row,
  .upgrade-stats,
  .coach-stats,
  .card-levels,
  .mini-metrics,
  .meaning-choice-grid,
  .accuracy-pills {
    grid-template-columns: 1fr 1fr;
  }

  .mascot-row {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 22px;
  }

  .viewer,
  .viewer iframe,
  .viewer object,
  .viewer video {
    height: 62vh;
  }

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

  .calendar-weekdays {
    display: none;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 20px, 1220px);
  }

  .task,
  .resource-row,
  .practice-row,
  .inventory-reward,
  .reward-score-row,
  .chance-row,
  .dictation-row {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .quality-row,
  .upgrade-stats,
  .coach-stats,
  .fixed-reward-grid,
  .card-levels,
  .mini-metrics,
  .meaning-choice-grid,
  .accuracy-pills,
  .skin-card {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }
}
