:root {
  --paper: #f2f0e9;
  --ink: #151515;
  --yellow: #f5d54c;
  --blue: #76a7f7;
  --coral: #f67d63;
  --green: #8fc788;
  --cream: #fffaf0;
  --line: 2px solid var(--ink);
  --shadow: 5px 6px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
button { color: inherit; font: inherit; }
button:focus-visible { outline: 4px solid #316fe5; outline-offset: 3px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 12px 3vw;
  border-bottom: var(--line);
  background: rgba(242,240,233,.94);
  backdrop-filter: blur(10px);
}
.brand {
  justify-self: start;
  border: 0;
  background: none;
  font: 700 2rem/1 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  cursor: pointer;
  transform: rotate(-2deg);
}
nav { display: flex; gap: 4px; }
.nav-link {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.nav-link.active, .nav-link:hover { background: var(--yellow); }
.reward-pill {
  justify-self: end;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
  border: var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 1.1rem;
}
.reward-pill span { color: #e7b900; -webkit-text-stroke: 1px var(--ink); }
.view { display: none; min-height: calc(100vh - 76px); }
.view.active { display: block; animation: paperIn .45s ease both; }
@keyframes paperIn { from { opacity: 0; transform: translateY(8px); } }

.hero {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 620px;
  border-bottom: var(--line);
  overflow: hidden;
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vw;
  border-right: 0;
}
.hero-date {
  position: absolute;
  top: 42px;
  left: 6vw;
  width: fit-content;
  margin: 0;
  font: 900 clamp(1.05rem, 1.8vw, 1.45rem)/1.15 "Comic Sans MS", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(-1.2deg);
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: transform .18s ease;
}
.hero-date:hover { transform: rotate(1deg) scale(1.035); }
.hero-date::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -7px;
  bottom: -8px;
  height: 7px;
  background: repeating-linear-gradient(-12deg, #f05e46 0 12px, #ff8a68 12px 17px);
  clip-path: polygon(0 44%, 8% 18%, 16% 55%, 25% 25%, 36% 62%, 48% 30%, 60% 67%, 72% 35%, 84% 65%, 100% 42%, 100% 100%, 0 100%);
}
.eyebrow, .section-kicker {
  margin: 0 0 12px;
  font: 700 .85rem/1.2 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1, .page-intro h1, .completion-view h1 {
  margin: 0;
  max-width: 800px;
  font: 700 clamp(3.9rem, 8vw, 8rem)/1.02 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  letter-spacing: -.045em;
}
.hero h1 {
  max-width: 900px;
  font-family: "Andika", "Trebuchet MS", sans-serif;
  font-size: clamp(3rem, 6vw, 6.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero h1.quote-medium { font-size: clamp(2.6rem, 5vw, 5.3rem); }
.hero h1.quote-long { font-size: clamp(2.25rem, 4.2vw, 4.5rem); line-height: 1.04; }
.daily-quote-cn {
  max-width: 720px;
  margin: 28px 0 8px;
  color: #f05e46;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 800;
  line-height: 1.6;
}
.daily-quote-author {
  margin: 0 0 30px;
  font: 900 1rem/1.4 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  letter-spacing: .08em;
}
.doodle-calendar {
  width: min(92vw, 650px);
  max-height: 92vh;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 30px 22px 34px 25px;
  background: var(--paper);
  box-shadow: 9px 11px 0 var(--ink);
  color: var(--ink);
  overflow: visible;
  transform: rotate(-.35deg);
}
.doodle-calendar[open] { animation: calendarPop .22s ease both; }
.doodle-calendar::backdrop { background: rgba(21,21,21,.48); backdrop-filter: blur(3px); }
@keyframes calendarPop { from { opacity: 0; transform: translateY(14px) rotate(-1.5deg) scale(.96); } }
.calendar-paper { position: relative; padding: 28px 30px 26px; overflow: hidden; border-radius: inherit; }
.calendar-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background: repeating-linear-gradient(0deg, transparent 0 31px, #76a7f7 31px 33px);
}
.calendar-topline, .calendar-nav, .calendar-weekdays, .calendar-grid, .calendar-legend { position: relative; z-index: 1; }
.calendar-topline { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.calendar-topline p { margin: 0 0 5px; color: #f05e46; font: 900 .86rem/1 "Comic Sans MS", "Trebuchet MS", sans-serif; letter-spacing: .14em; }
.calendar-topline h2 { margin: 0; font: 900 clamp(2rem, 5vw, 3.1rem)/1 "Comic Sans MS", "Arial Rounded MT Bold", sans-serif; transform: rotate(-1deg); }
.calendar-close, .calendar-nav button {
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 2px 3px 0 var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.calendar-close { width: 39px; height: 39px; border-radius: 50%; font-size: 1.7rem; line-height: 1; }
.calendar-nav { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 14px; margin: 28px 0 20px; }
.calendar-nav button { width: 42px; height: 38px; border-radius: 12px 9px 13px 8px; font-size: 1.3rem; }
.calendar-nav strong { text-align: center; font: 900 1.25rem/1 "Comic Sans MS", "Arial Rounded MT Bold", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.calendar-weekdays { margin-bottom: 8px; text-align: center; font: 900 .82rem/1 "Comic Sans MS", sans-serif; letter-spacing: .06em; }
.calendar-day, .calendar-blank {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
}
.calendar-day { border: 2px solid transparent; border-radius: 50% 45% 52% 43%; font: 900 clamp(.82rem, 2.5vw, 1rem)/1 "Comic Sans MS", "Trebuchet MS", sans-serif; }
.calendar-day.today { border-color: var(--blue); border-style: dashed; background: #fff; }
.calendar-day.learned { border-color: var(--ink); background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); transform: rotate(-3deg); }
.calendar-day.learned:nth-child(3n) { transform: rotate(3deg); }
.calendar-day em { position: absolute; right: -1px; top: -5px; color: #f05e46; font-size: .8rem; font-style: normal; -webkit-text-stroke: 1px var(--ink); }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 13px 24px; margin-top: 22px; font: 900 .78rem/1.3 "Comic Sans MS", sans-serif; letter-spacing: .05em; }
.calendar-legend span { display: flex; align-items: center; gap: 7px; }
.calendar-legend b { color: #f05e46; font-size: 1.1rem; -webkit-text-stroke: 1px var(--ink); }
.calendar-legend i { width: 17px; height: 17px; border: 2px dashed var(--blue); border-radius: 50%; background: #fff; }
.primary-button, .outline-button {
  width: fit-content;
  border: var(--line);
  border-radius: 999px;
  padding: 15px 24px;
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
}
.primary-button:hover, .outline-button:hover { transform: translate(-2px,-2px); box-shadow: 5px 6px 0 var(--ink); }
.primary-button span { margin-left: 18px; }
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 18px 18px 72px;
  background: #f7f3e9;
  overflow: hidden;
}
.hero-art img {
  position: absolute;
  inset: 0 0 58px;
  width: 100%;
  height: calc(100% - 58px);
  object-fit: contain;
  background: #f7f3e9;
}
.hero-art img.art-fade { animation: artSwap .3s ease both; }
@keyframes artSwap { from { opacity: .25; transform: scale(.985); } }
.carousel-controls {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 42px;
  align-items: center;
  gap: 10px;
}
.carousel-controls button {
  width: 42px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 13px 9px 12px 8px;
  background: var(--yellow);
  box-shadow: 2px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
}
.carousel-controls button:hover { transform: translateY(-2px); }
.carousel-controls span {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 900 .78rem/1.2 "Comic Sans MS", "Trebuchet MS", sans-serif;
  letter-spacing: .06em;
}

.today-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 38px 5vw;
  background: var(--yellow);
  border-bottom: var(--line);
}
.today-panel h2, .section-heading h2 { margin: 0; font: 700 clamp(2rem,4vw,3.7rem)/1 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 8px; }
.progress-track { height: 18px; border: var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.progress-track span { display: block; width: 33%; height: 100%; background: var(--coral); border-right: var(--line); transition: width .4s ease; }
.today-stats { display: grid; grid-template-columns: repeat(3,1fr); border: var(--line); border-radius: 20px; background: #fff; }
.today-stats div { display: grid; place-items: center; gap: 2px; padding: 12px; }
.today-stats div + div { border-left: var(--line); }
.today-stats b { font: 700 1.8rem "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
.today-stats span { font-size: .85rem; }

.mission-section { padding: 80px 5vw 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-heading > p { max-width: 340px; line-height: 1.7; }
.mission-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.mission-card {
  position: relative;
  min-height: 285px;
  padding: 22px;
  border: var(--line);
  border-radius: 26px;
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: .22s ease;
  overflow: hidden;
}
.mission-card:nth-child(-n+3) { grid-column: span 2; }
.mission-card:nth-child(n+4) { grid-column: span 6; min-height: 235px; }
.mission-card:hover { transform: translateY(-7px) rotate(-1deg); box-shadow: 7px 13px 0 var(--ink); }
.mission-card.yellow { background: var(--yellow); }
.mission-card.blue { background: var(--blue); }
.mission-card.coral { background: var(--coral); }
.mission-card.green { background: var(--green); }
.mission-card.cream { background: var(--cream); }
.card-number { position: absolute; right: 20px; top: 16px; font: 700 1rem "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
.sketch-icon { display: block; margin: 28px 0 35px; font-size: 4.2rem; filter: grayscale(.1); }
.mission-card strong {
  display: block;
  width: fit-content;
  font: 900 clamp(2rem, 3vw, 2.7rem)/1 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  letter-spacing: -.035em;
  text-shadow: 1px 2px 0 rgba(255,255,255,.28);
}
.mission-card strong::after {
  content: "";
  display: block;
  width: 62%;
  height: 7px;
  margin-top: 7px;
  background: var(--ink);
  opacity: .82;
  clip-path: polygon(0 30%, 15% 8%, 32% 37%, 47% 10%, 64% 42%, 81% 14%, 100% 35%, 98% 88%, 79% 73%, 60% 100%, 42% 74%, 21% 95%, 2% 72%);
}
.mission-card small { display: block; margin-top: 11px; font-size: 1rem; font-weight: 700; line-height: 1.45; }
.card-arrow { position: absolute; right: 22px; bottom: 18px; font-size: 1.8rem; }

.training-view { padding: 24px 4vw 70px; }
.training-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 24px; }
.back-button, .replay-button, .next-button {
  border: var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.dot-progress { display: flex; gap: 8px; }
.dot-progress span { width: 35px; height: 12px; border: var(--line); border-radius: 999px; background: #fff; }
.dot-progress span.done { background: var(--green); }
.dot-progress span.current { background: var(--yellow); }
.mini-stars { justify-self: end; font: 700 1.15rem "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(280px,.75fr) minmax(430px,1.25fr);
  max-width: 1200px;
  min-height: 620px;
  margin: 0 auto;
  border: var(--line);
  border-radius: 34px;
  box-shadow: 8px 9px 0 var(--ink);
  overflow: hidden;
  background: #fff;
}
.teacher-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  padding: 28px;
  background: var(--blue);
  border-right: var(--line);
}
.teacher-panel img { width: 90%; max-height: 330px; object-fit: contain; }
.teacher-tag { padding: 7px 14px; border: var(--line); border-radius: 99px; background: #fff; font-weight: 800; transform: rotate(-2deg); }
.speech-bubble { width: 100%; margin: 18px 0; padding: 18px; border: var(--line); border-radius: 24px 24px 24px 4px; background: #fff; text-align: center; }
.speech-bubble span { font: 700 .75rem "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; letter-spacing: .15em; color: #666; }
.speech-bubble p { margin: 6px 0 0; font: 700 1.5rem/1.25 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
.replay-button { background: var(--yellow); }
.question-panel { display: flex; flex-direction: column; padding: 46px; }
.lesson-label { margin: 0; font-weight: 800; color: #e8533d; }
.question-panel h2 { margin: 8px 0; font-size: clamp(1.8rem,3vw,2.8rem); }
.question-hint { margin: 0 0 25px; color: #555; }
.hint-button {
  display: none;
  align-self: flex-start;
  margin: 2px 0 16px;
  padding: 9px 15px;
  border: var(--line);
  border-radius: 999px;
  background: var(--yellow);
  font-weight: 800;
  cursor: pointer;
}
.hint-button.visible { display: inline-flex; }
.hint-reveal {
  display: none;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: var(--line);
  border-radius: 14px;
  background: #fff6c9;
  font-weight: 700;
}
.hint-reveal.visible { display: block; animation: paperIn .2s ease both; }
.visual-stage { min-height: 90px; display: flex; gap: 20px; align-items: center; justify-content: center; margin-bottom: 22px; }
.visual-stage .stage-emoji { font-size: 4.5rem; padding: 10px 24px; border: var(--line); border-radius: 20px; background: var(--paper); }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.answer-option {
  min-height: 74px;
  padding: 14px 18px;
  border: var(--line);
  border-radius: 18px;
  background: var(--paper);
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}
.answer-option:hover { transform: translateY(-3px); background: var(--yellow); }
.answer-option.correct { background: var(--green); box-shadow: 3px 4px 0 var(--ink); }
.answer-option.wrong { background: #ffd5cd; animation: wiggle .3s ease; }
@keyframes wiggle { 25% {transform: translateX(-5px)} 75% {transform: translateX(5px)} }
.feedback-box { min-height: 56px; margin-top: 18px; font-weight: 800; line-height: 1.6; }
.feedback-box.good { color: #25732b; }
.feedback-box.try { color: #c43c28; }
.next-button { display: none; align-self: end; margin-top: auto; background: var(--yellow); box-shadow: 3px 4px 0 var(--ink); }

.page-intro { padding: 75px 6vw 45px; text-align: center; }
.page-intro h1 { margin: auto; font-size: clamp(3rem,6vw,6rem); }
.page-intro > p:last-child { font-size: 1.08rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 1100px; margin: 0 auto 100px; padding: 0 4vw; }
.tool-card { position: relative; min-height: 132px; padding: 20px 24px; border: var(--line); border-radius: 24px; background: #fff; box-shadow: 4px 5px 0 var(--ink); }
.tool-card:nth-child(3n+1) { background: var(--yellow); }
.tool-card:nth-child(3n+2) { background: var(--blue); }
.tool-card button { position: absolute; right: 20px; top: 20px; width: 44px; height: 44px; border: var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.tool-card strong { display: block; padding-right: 50px; font: 700 1.5rem/1.2 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
.tool-card p { margin: 10px 0 0; }

.topic-intro { position: relative; border-bottom: var(--line); background: var(--yellow); }
.topic-back { position: absolute; left: 5vw; top: 28px; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 4vw 100px;
}
.topic-card {
  position: relative;
  min-height: 245px;
  padding: 24px;
  border: var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 5px 6px 0 var(--ink);
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
  overflow: hidden;
}
.topic-card:nth-child(4n+1) { background: var(--blue); }
.topic-card:nth-child(4n+2) { background: var(--coral); }
.topic-card:nth-child(4n+3) { background: var(--green); }
.topic-card:nth-child(4n) { background: var(--cream); }
.topic-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 7px 11px 0 var(--ink); }
.topic-card .topic-emoji { display: block; margin: 18px 0 28px; font-size: 4.4rem; }
.topic-card b { display: block; font-size: 1.4rem; }
.topic-card small { display: block; margin-top: 7px; font-size: .9rem; line-height: 1.5; }
.topic-card .topic-count { position: absolute; top: 18px; right: 18px; font-weight: 800; }

.completion-view { padding: 65px 5vw; text-align: center; }
.completion-view img { width: min(280px, 70vw); height: 240px; object-fit: contain; }
.completion-view h1 { margin: 0 auto; font-size: clamp(3rem,7vw,6rem); }
.big-stars { margin: 20px 0; color: #f0bd00; font-size: 3.2rem; letter-spacing: 8px; -webkit-text-stroke: 2px var(--ink); }
.learned-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 700px; margin: 28px auto; }
.learned-list span { padding: 9px 15px; border: var(--line); border-radius: 99px; background: #fff; font-weight: 700; }
.completion-actions { display: flex; justify-content: center; gap: 16px; }
.outline-button { background: #fff; }

footer { display: flex; justify-content: space-between; padding: 30px 4vw; background: var(--ink); color: #fff; font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
footer button { border: 0; background: none; color: #fff; cursor: pointer; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 520px; border-right: 0; border-bottom: 0; }
  .hero-art { min-height: 480px; }
  .today-panel { grid-template-columns: 1fr; gap: 22px; }
  .mission-card:nth-child(n) { grid-column: span 3; }
  .lesson-layout { grid-template-columns: 1fr; }
  .teacher-panel { border-right: 0; border-bottom: var(--line); }
  .teacher-panel img { max-height: 230px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .topbar { min-height: 64px; }
  .brand { font-size: 1.55rem; }
  .reward-pill { padding: 6px 11px; }
  .hero-copy { min-height: 470px; padding: 45px 6vw; }
  .hero-date { top: 25px; }
  .calendar-paper { padding: 23px 17px 20px; }
  .calendar-weekdays, .calendar-grid { gap: 3px; }
  .calendar-weekdays { font-size: .72rem; }
  .hero h1 { font-size: 3.25rem; }
  .hero h1.quote-medium { font-size: 2.85rem; }
  .hero h1.quote-long { font-size: 2.45rem; }
  .hero-art { min-height: 390px; }
  .hero-art { padding-inline: 8px; }
  .carousel-controls { left: 10px; right: 10px; gap: 7px; }
  .carousel-controls span { font-size: .67rem; letter-spacing: .025em; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-card:nth-child(n) { grid-column: auto; min-height: 230px; }
  .section-heading { align-items: start; flex-direction: column; }
  .training-view { padding: 16px 12px 50px; }
  .training-top { grid-template-columns: auto 1fr auto; gap: 10px; }
  .dot-progress span { width: 18px; }
  .lesson-layout { border-radius: 24px; }
  .question-panel { padding: 28px 20px; }
  .answer-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; padding-top: 32px; }
  .topic-card { min-height: 210px; }
  .topic-back { position: static; margin-bottom: 35px; }
  .completion-actions { flex-direction: column; align-items: center; }
  footer { flex-direction: column; gap: 12px; }
}

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

/* Uneven, round-ended pencil dashes between quote and daily artwork. */
.hero-art::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 9px;
  background: url("./assets/divider-vertical.svg") repeat-y center top / 9px 150px;
}
@media (max-width: 900px) {
  .hero-art::after {
    top: 0;
    bottom: auto;
    left: 12px;
    right: 12px;
    width: auto;
    height: 9px;
    background: url("./assets/divider-horizontal.svg") repeat-x left center / 150px 9px;
  }
}

.daily-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.daily-counts { font-size: .93rem; line-height: 1.8; margin-top: 18px; font-weight: 700; }
.settings-button { border: 2px dashed var(--ink); border-radius: 14px 18px 13px 16px; background: var(--cream); padding: 10px 16px; cursor: pointer; font-weight: 800; }
.module-count { font-size: .87rem; font-weight: 700; display: block; margin-top: 12px; }
.settings-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; background: var(--paper); border: 3px solid var(--ink); border-radius: 27px 35px 29px 22px; box-shadow: 7px 8px 0 var(--ink); padding: 28px; }
.settings-dialog::backdrop { background: #15151570; backdrop-filter: blur(3px); }
.settings-dialog h2 { font-size: 1.65rem; margin: 8px 0 16px; }
.settings-dialog label { display: flex; justify-content: space-between; align-items: center; margin: 18px 0; font-size: 1.2rem; font-weight: 800; gap: 20px; }
.settings-dialog input { width: 100px; padding: 10px; font: inherit; border: 2px solid var(--ink); border-radius: 12px; background: white; }
.settings-note { color: #555; font-size: .9rem; line-height: 1.7; }
#settings-error { color: #a52315; }
.question-context { padding: 14px 18px; background: var(--cream); border: 2px dashed #888; border-radius: 14px; line-height: 1.7; font-family: Andika, sans-serif; }
.question-context[hidden] { display: none; }
.dot-progress { flex-wrap: wrap; max-width: 60%; gap: 5px; }
.answer-option { font-family: Andika, "Microsoft YaHei", sans-serif; overflow-wrap: anywhere; }
.feedback-box { min-height: 65px; }
@media (max-width: 560px) {
  .daily-actions .primary-button, .daily-actions .outline-button { padding: 12px 17px; font-size: .95rem; }
  .settings-dialog { padding: 22px; }
  .hero-copy { padding-bottom: 32px; }
}


#learning-settings-button { margin-top: 26px; }
.tool-groups { padding-bottom: 60px; }
.tool-group { max-width: 1200px; margin: 0 auto 52px; padding: 0 4vw; }
.tool-group h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin: 0 0 24px; }
.tool-group .tool-grid { max-width: none; margin: 0; padding: 0; }
.tool-card strong { font-family: Andika, sans-serif; font-size: 1.25rem; line-height: 1.5; overflow-wrap: anywhere; }
#storage-error { margin: 0; padding: 12px 5vw; background: #ffe2d4; }
.mission-card.green { display: flex; align-items: center; gap: 32px; padding: 34px 42px; }
.explore-copy { display: block; width: 45%; position: relative; z-index: 1; }
.explore-kicker { display: block; font-weight: 800; letter-spacing: .12em; margin-bottom: 22px; }
.explore-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.explore-tags span { display: inline-block; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 30px; background: #fff9e9; font-size: .9rem; font-weight: 700; }
.explore-doodle { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 24px; width: 55%; min-height: 190px; padding: 22px 48px; border: var(--line); border-radius: 24px; background: #fbf8ed; transform: rotate(-2deg); box-shadow: 4px 5px 0 var(--ink); }
.explore-doodle span { font-size: clamp(1.7rem, 3.1vw, 3.5rem); font-weight: 900; }
.explore-doodle span:first-child, .explore-doodle span:last-child { font-size: 1.25rem; color: #e95842; transform: rotate(-7deg); }
@media (max-width: 680px) { .mission-card.green { padding: 24px; align-items: stretch; flex-direction: column; } .explore-copy, .explore-doodle { width: 100%; } .explore-doodle { min-height: 140px; padding: 15px 28px; } }
.login-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: #f2f0e9; }
.login-screen[hidden] { display: none; }

#usage-guide {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

#usage-guide::backdrop { background: transparent; }

#guide-highlight {
  position: absolute;
  border: 3px solid #fae577;
  border-radius: 12px;
  box-shadow: 0 0 0 200vmax rgb(20 22 30 / 65%);
}

#guide-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 24px));
  padding: 16px;
  border-radius: 14px;
  background: #fffdf5;
  color: #20212a;
  box-shadow: 0 4px 24px rgb(0 0 0 / 24%);
}

#guide-copy { margin: 0 0 12px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.guide-actions button {
  padding: 8px 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: #fffdf5;
  color: #20212a;
  min-height: 44px;
}
.guide-actions button:disabled { opacity: .45; }
#guide-next { background: #fae577; }
.login-card { width: min(430px, 100%); background: #fff; border: 2px solid #222; border-radius: 24px; padding: 32px; box-shadow: 8px 8px 0 #f4c665; }
.login-card h1 { font-size: 2rem; margin: 8px 0; }
.login-card p { line-height: 1.6; }
.login-card label:not(.remember-label) { display: block; font-weight: 700; margin: 22px 0 8px; }
.login-card #nickname-input { width: 100%; padding: 13px 15px; border: 2px solid #333; border-radius: 12px; font: inherit; font-size: 1rem; }
.remember-label { display: flex; align-items: center; gap: 10px; margin: 18px 0; cursor: pointer; font-weight: 700; }
.remember-label input { width: 20px; height: 20px; }
.login-card .login-note { color: #555; font-size: .9rem; }
#login-error { color: #a22; min-height: 1.5em; }
.login-card .primary-button { width: 100%; }
.nickname-button { border: 1px solid #333; background: white; border-radius: 20px; padding: 7px 12px; font: inherit; cursor: pointer; }
.nickname-button[hidden] { display: none; }
