:root {
  --bg1: #1c2430;
  --bg2: #2a3544;
  --page-top: #070414;
  --page-mid: #120628;
  --page-bot: #1a0830;
  --sand: #f6e7c1;
  --ink: #143642;
  --card: #f7f1e6;
  --accent: #e84393;
  --ok: #2a9d8f;
  --bad: #e76f51;
  --lamp-off: #6b7280;
  --lamp-on: #ffd60a;
  --safe: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #070414;
  background-attachment: fixed;
  overflow-x: hidden;
  user-select: none;
}
body::before {
  content: "";
  position: fixed;
  inset: -28px;
  background: url("../背景-街舞.jpg") center 30% / cover no-repeat;
  opacity: 0.52;
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(7,4,20,.12) 28%, rgba(6,2,18,.42) 100%);
}
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
  padding-bottom: calc(12px + var(--safe));
}

.screen {
  display: none;
  padding: 16px 16px 24px;
  min-height: 100dvh;
  animation: fade .25s ease;
}
.screen.active { display: block; }

@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.hero {
  text-align: center;
  padding: 36px 12px 20px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.eyebrow {
  margin: 0;
  opacity: .85;
  font-size: 13px;
  letter-spacing: .08em;
}
.hero h1 {
  margin: 8px 0 6px;
  font-size: 30px;
  letter-spacing: .04em;
  text-shadow: 0 3px 12px rgba(0,0,0,.55);
}
.sub { margin: 0; opacity: .92; font-size: 15px; }

.card-stack {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.level-card {
  border: none;
  text-align: left;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 8px 0 rgba(20,54,66,.18);
  cursor: pointer;
  transition: transform .12s ease;
}
.level-card:active { transform: translateY(3px) scale(.99); }
.level-card .badge {
  display: inline-block;
  font-size: 12px;
  background: #ffedd5;
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.level-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}
.level-card span:last-child {
  color: #5c6b73;
  font-size: 13px;
}

.hint {
  text-align: center;
  color: #fff;
  opacity: .85;
  font-size: 12px;
  margin-top: 20px;
}

.topbar {
  display: grid;
  grid-template-columns: 72px 1fr 64px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.topbar h2 {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 20px;
}
.back, .score {
  color: #fff;
  font-size: 14px;
}
.back {
  background: rgba(255,255,255,.18);
  border: none;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
}
.score { text-align: right; font-weight: 700; }

.mission {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.88);
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
}

.phase-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.phase {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: rgba(255,255,255,.75);
}
.phase.on {
  background: #fff;
  color: var(--bg1);
  box-shadow: 0 3px 0 rgba(20,54,66,.15);
}
.phase.done {
  background: rgba(42,157,143,.95);
  color: #fff;
}
.phase-panel { margin-bottom: 4px; }
.phase-tip {
  margin: 10px 0 0;
  text-align: center;
  color: #fff;
  font-size: 12px;
  opacity: .9;
}
.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.learn-card {
  border: none;
  border-radius: 18px;
  background: var(--card);
  padding: 22px 12px;
  box-shadow: 0 6px 0 rgba(20,54,66,.16);
  cursor: pointer;
  text-align: center;
}
.learn-card .en {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--bg1);
}
.learn-card .zh {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #5c6b73;
}
.learn-card.heard {
  outline: 3px solid var(--ok);
}
.learn-card .check {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ok);
  min-height: 16px;
}
.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.choice-btn {
  border: none;
  border-radius: 16px;
  background: var(--card);
  padding: 20px 10px;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 5px 0 rgba(20,54,66,.15);
  cursor: pointer;
}
.choice-btn .mini {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5c6b73;
}
.choice-btn.ok-flash { background: #d8f3ef; }
.choice-btn.bad-flash { background: #fde8e4; animation: shake .35s ease; }
.learn-hero {
  background: var(--card);
  border-radius: 20px;
  padding: 28px 16px;
  text-align: center;
  box-shadow: 0 8px 0 rgba(20,54,66,.14);
}
.learn-hero .emoji { font-size: 64px; line-height: 1; }
.learn-hero .en {
  margin: 10px 0 4px;
  font-size: 32px;
  font-weight: 800;
  color: var(--bg1);
}
.learn-hero .zh { margin: 0; color: #5c6b73; font-size: 16px; }

.dock {
  display: flex;
  gap: 10px;
  justify-content: stretch;
  margin-top: 16px;
}
.dock.center { justify-content: center; }
.btn {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 0 #8a1d5a;
}
.btn.primary:active { transform: translateY(2px); box-shadow: 0 3px 0 #8a1d5a; }
.btn.ghost {
  background: rgba(255,255,255,.9);
  color: var(--ink);
}
.btn:disabled { opacity: .5; cursor: default; }

.audio-btn {
  width: 100%;
  margin-bottom: 12px;
  background: #fff;
  color: var(--bg1);
  box-shadow: 0 4px 0 rgba(20,54,66,.15);
}

/* 名字铃 */
.street {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  min-height: 280px;
  padding: 16px 8px 24px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.06));
  border-radius: 16px;
}
.lamp {
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.lamp .bulb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--lamp-off);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.2);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.lamp.on .bulb {
  background: var(--lamp-on);
  box-shadow: 0 0 24px #ffd60a, inset 0 -6px 0 rgba(0,0,0,.12);
  transform: scale(1.06);
}
.lamp.pulse .bulb {
  animation: pulse .55s ease;
}
.lamp .pole {
  width: 8px;
  height: 56px;
  background: #334155;
  border-radius: 4px;
}
.lamp .tag {
  font-size: 11px;
  color: #fff;
  background: rgba(0,0,0,.25);
  padding: 2px 6px;
  border-radius: 6px;
  min-height: 18px;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* 家庭站位 */
.photo-set {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.slot {
  min-height: 96px;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  border: 2px dashed rgba(20,54,66,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  transition: border-color .15s, background .15s;
}
.slot.filled {
  border-style: solid;
  border-color: var(--ok);
  background: #e7f6f3;
}
.slot.wrong {
  border-color: var(--bad);
  animation: shake .35s ease;
}
.slot .foot {
  width: 36px;
  height: 18px;
  border-radius: 50%;
  background: rgba(20,54,66,.12);
}
.slot .label {
  font-size: 11px;
  color: #5c6b73;
  text-align: center;
}
.slot .who {
  font-size: 28px;
  min-height: 32px;
  line-height: 1;
}
.slot .silhouette {
  font-size: 36px;
  line-height: 1;
  filter: grayscale(0.2);
  opacity: 0.55;
  margin-bottom: 2px;
}
.slot.filled .silhouette { display: none; }
.slot .label {
  font-size: 10px;
  color: #5c6b73;
  text-align: center;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.card .card-en {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg1);
  margin-top: 2px;
}

.parent-report {
  text-align: left;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
  box-shadow: inset 0 0 0 1px rgba(20,54,66,.08);
}
.parent-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--bg1);
}
.parent-report ul {
  margin: 0;
  padding-left: 18px;
  color: #5c6b73;
  font-size: 13px;
  line-height: 1.55;
}

.hand-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-height: 120px;
}
.card {
  border: none;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 5px 0 rgba(20,54,66,.16);
  padding: 12px 6px;
  cursor: grab;
  font-size: 13px;
  font-weight: 700;
  touch-action: none;
}
.card:active { cursor: grabbing; }
.card.used {
  opacity: .35;
  pointer-events: none;
}
.card .emoji { display: block; font-size: 28px; margin-bottom: 4px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe));
  transform: translateX(-50%);
  background: rgba(20,54,66,.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 20;
  max-width: 90%;
  text-align: center;
}

.result-card {
  margin-top: 48px;
  background: var(--card);
  border-radius: 22px;
  padding: 28px 20px 20px;
  text-align: center;
  box-shadow: 0 12px 0 rgba(20,54,66,.15);
}
.stars {
  margin: 0;
  font-size: 28px;
  letter-spacing: 4px;
  color: #f4a261;
}
.result-card h2 { margin: 8px 0; font-size: 28px; }
#result-desc { color: #5c6b73; margin: 0 0 16px; }
.spirits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.spirit-chip {
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  box-shadow: 0 2px 0 rgba(20,54,66,.1);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (min-width: 768px) {
  #app { max-width: 640px; padding-top: 12px; }
  .street { grid-template-columns: repeat(4, 1fr); min-height: 340px; }
  .lamp .bulb { width: 68px; height: 68px; }
  .photo-set, .hand-cards { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .slot { min-height: 120px; }
}

.home-reset {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: rgba(255,255,255,.2) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.cloud-panel {
  margin-top: 14px;
  background: rgba(255,248,234,.95);
  border-radius: 14px;
  padding: 12px 14px 10px;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(20,54,66,.12);
}
.cloud-ver {
  margin: 0 0 8px;
  font-size: 12px;
  color: #5c6b73;
}
.sync-input {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20,54,66,.12);
  margin-bottom: 6px;
}
.cloud-hint, .cloud-msg {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #5c6b73;
}
.cloud-msg { min-height: 16px; color: var(--bg1); font-weight: 700; }
.cloud-panel .btn {
  width: 100%;
  margin-top: 8px;
  display: block;
}

.today-card {
  background: var(--card);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 8px 0 rgba(20,54,66,.16);
  margin-bottom: 14px;
}
.today-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
}
.today-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}
.today-card span {
  display: block;
  color: #5c6b73;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.today-card .btn { width: 100%; }
.today-card.done strong { color: var(--ok); }

.today-steps {
  display: grid;
  gap: 8px;
  margin: 4px 0 12px;
}
.step-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20,54,66,.08);
  cursor: pointer;
}
.step-btn strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.step-btn span {
  display: block;
  font-size: 12px;
  color: #5c6b73;
  margin: 0;
  line-height: 1.35;
}
.step-btn.current {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.step-btn.done {
  background: #e7f6f3;
}
.step-btn.done strong { color: var(--ok); }
.step-btn.warn {
  background: #fff4ed;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.memo-progress {
  margin: 0 0 8px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.memo-card {
  width: 100%;
  border: none;
  border-radius: 20px;
  background: var(--card);
  padding: 28px 16px 22px;
  box-shadow: 0 8px 0 rgba(20,54,66,.16);
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.memo-card .emoji { display: block; font-size: 56px; line-height: 1; }
.memo-card .en {
  display: block;
  margin: 10px 0 6px;
  font-size: 34px;
  font-weight: 800;
  color: var(--bg1);
}
.memo-card .zh {
  display: block;
  font-size: 16px;
  color: #5c6b73;
}
.memo-card .zh.hide { opacity: .55; font-size: 13px; }
.memo-prompt {
  background: var(--card);
  border-radius: 18px;
  padding: 20px 12px;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 6px 0 rgba(20,54,66,.14);
}
.memo-prompt .emoji { display: block; font-size: 48px; }
.memo-prompt strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.wrong-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  justify-content: center;
}
.spirit-chip.done {
  background: #d8f3ef;
  color: var(--ok);
}
#screen-wrong .dock {
  position: sticky;
  bottom: 0;
  z-index: 6;
  padding-top: 10px;
  padding-bottom: calc(8px + var(--safe));
  background: linear-gradient(180deg, rgba(16,20,26,0), rgba(16,20,26,.94) 28%);
}

.week-progress {
  margin: 0 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.level-card.locked {
  opacity: .55;
  box-shadow: 0 4px 0 rgba(20,54,66,.1);
}
.level-card .badge.lock {
  background: #e5e7eb;
  color: #6b7280;
}

.old-levels {
  margin-top: 18px;
  color: #fff;
}
.old-levels summary {
  cursor: pointer;
  font-size: 13px;
  opacity: .9;
  padding: 8px 4px;
}
.old-levels .nested { margin-top: 8px; }

.rule-chip {
  margin: 0 0 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--bg1);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 3px 0 rgba(20,54,66,.12);
}
.rule-label {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.learn-card .emoji { display: block; font-size: 28px; line-height: 1; }
.learn-card u.mark,
.choice-btn u.mark,
.stone .en u.mark {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-style: normal;
}
.choice-btn.text-only.combo {
  font-size: 28px;
  letter-spacing: .06em;
}
.stone.text-only {
  min-height: 64px;
  padding: 18px 8px;
}
.stone.text-only .emoji { display: none; }
.stone.text-only .en { font-size: 22px; }
.stone.locked-choice {
  opacity: .4;
}
.parent-brief {
  margin-top: 12px;
  background: rgba(255,248,234,.95);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(20,54,66,.12);
}
.parent-brief .parent-title { margin: 0 0 6px; }
.parent-brief p:last-child {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #5c6b73;
}
body.is-speaking .score::after {
  content: " ♪";
}

.stone-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stone {
  border: none;
  border-radius: 16px;
  background: var(--card);
  padding: 14px 8px;
  box-shadow: 0 5px 0 rgba(20,54,66,.16);
  cursor: pointer;
  min-height: 76px;
}
.stone .emoji { display: block; font-size: 24px; }
.stone .en {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--bg1);
}
.stone.on {
  background: #d8f3ef;
  outline: 3px solid var(--ok);
}
.stone.wrong { animation: shake .35s ease; background: #fde8e4; }

.bin-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sound-bin {
  min-height: 140px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 6px 0 rgba(20,54,66,.16);
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
}
.bin-title {
  margin: 8px 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: var(--bg1);
}
.bin-sub {
  margin: 0;
  font-size: 12px;
  color: #5c6b73;
  line-height: 1.35;
}
.sound-bin.ok-flash { background: #d8f3ef; }
.sound-bin.wrong { animation: shake .35s ease; background: #fde8e4; }

#ph-learn-cards {
  max-height: none;
}
#screen-phonics .dock {
  position: sticky;
  bottom: 0;
  z-index: 6;
  padding-top: 10px;
  padding-bottom: calc(8px + var(--safe));
  background: linear-gradient(180deg, rgba(16,20,26,0), rgba(16,20,26,.94) 28%);
}

@media (max-width: 430px) {
  .hero h1 { font-size: 32px; }
  .hero { padding: 24px 8px 12px; }
  .learn-card .en { font-size: 22px; }
  .choice-btn { font-size: 18px; padding: 14px 8px; }
}

.lamp .tag {
  font-size: 12px;
  font-weight: 700;
  min-width: 44px;
  text-align: center;
}
.lamp.on .tag {
  background: rgba(0,0,0,.45);
  color: #ffe566;
}
.lamp.wrong-lamp .bulb {
  background: var(--bad) !important;
  animation: shake .35s ease;
}

.phase-enter {
  animation: phaseIn .45s ease;
}
@keyframes phaseIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}

#fx-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
}
.spirit-pop {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, 12px) scale(.85);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  text-align: center;
  background: rgba(255,248,234,.95);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  min-width: 140px;
}
.spirit-pop.show {
  opacity: 1;
  transform: translate(-50%, -20px) scale(1);
}
.spirit-pop.bad { background: #ffe8e2; }
.spirit-pop.soft { background: #e8f4ff; }
.spirit-face { font-size: 28px; }
.spirit-text {
  margin-top: 4px;
  font-weight: 800;
  color: var(--ink);
  font-size: 16px;
}
.phase-banner {
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translate(-50%, 0) scale(.9);
  opacity: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 0 #8a1d5a;
  transition: opacity .3s ease, transform .3s ease;
}
.phase-banner.show {
  opacity: 1;
  transform: translate(-50%, -8px) scale(1);
}

.week-score-card {
  background: var(--card);
  border-radius: 16px;
  padding: 12px 12px 10px;
  box-shadow: 0 8px 0 rgba(20,54,66,.16);
  margin-bottom: 12px;
}
.week-score-kicker {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
}
.week-score-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.week-score-head strong {
  font-size: 36px;
  line-height: 1.1;
  color: var(--bg1);
}
.week-score-head span {
  font-size: 16px;
  letter-spacing: 2px;
  color: #f4a261;
}
#week-score-desc {
  margin: 4px 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #5c6b73;
}
.week-score-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(40px, 1fr));
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}
.day-pill {
  min-width: 40px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 6px 0 5px;
  box-shadow: inset 0 0 0 1px rgba(20,54,66,.08);
}
.day-pill small {
  display: block;
  font-size: 10px;
  color: #5c6b73;
  letter-spacing: .02em;
}
.day-pill b {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-top: 1px;
}
.day-pill.scored {
  background: #e7f6f3;
}
.day-pill.scored b { color: var(--ok); }
.day-pill.done {
  box-shadow: inset 0 0 0 1px rgba(42,157,143,.35);
}
#btn-week-exam {
  width: 100%;
  margin-top: 4px;
  padding: 12px 10px;
  font-size: 15px;
}

.grade-box {
  margin: 4px 0 2px;
}
.grade-score {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  color: var(--bg1);
}
.grade-label {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ok);
}
#screen-exam .dock {
  position: sticky;
  bottom: 0;
  z-index: 6;
  padding-top: 10px;
  padding-bottom: calc(8px + var(--safe));
  background: linear-gradient(180deg, rgba(16,20,26,0), rgba(16,20,26,.94) 28%);
}
#result-week-sum-list {
  margin: 0;
  padding-left: 18px;
  color: #5c6b73;
  font-size: 13px;
  line-height: 1.55;
}
