/* Preview v2. Original clay book companion on vermilion and paper white.
   The student discovers books first, then follows their reading growth.
   Desktop pairs clear left-aligned tasks with the right-side character.
   Mobile stacks the task before the character. Preview only, no deployment. */
:root { --play-red:#bf352b; --play-ink:#392c27; --play-paper:#fffaf4; }
body { font-family:"Aptos","Microsoft YaHei",sans-serif; }
.reading-adventure { display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:20px; min-height:460px; padding:34px 42px; border-radius:26px; background:var(--play-paper); border:1px solid #efdfd1; overflow:hidden; }
.adventure-copy { position:relative; z-index:2; }
.adventure-greeting { margin:0 0 20px; color:#89624d; font-size:15px; font-weight:650; }
.reading-adventure h1 { margin:0 0 23px; color:var(--play-ink); font-family:"Microsoft YaHei","Aptos",sans-serif; font-weight:850; letter-spacing:-.035em; font-size:clamp(34px,4.2vw,56px); line-height:1.25; }
.reading-adventure h1 span { color:var(--play-red); }
.reading-adventure.brand-hero h1,.reading-adventure.growth-welcome.brand-hero h1 { font-family:"Aptos","Microsoft YaHei",sans-serif; font-size:clamp(32px,3.2vw,46px); font-weight:800; line-height:1.2; max-width:24ch; }
.reading-adventure.brand-hero h1 span { color:var(--play-ink); white-space:normal; }
.reading-adventure.brand-hero .brand-context { color:#80604d; margin-bottom:18px; }
.reading-adventure.brand-hero .brand-tagline-zh { color:#85604b; font-size:20px; margin-bottom:28px; letter-spacing:.04em; }
.reading-adventure .student-book-action { width:max-content; background:var(--play-red); color:#fff; border:0; margin-top:26px; }
.reading-adventure .student-book-action:hover { background:#a32c24; }
.preview-student .passport-identity small { color:#76563d; }
.toolbar-companion { position:relative; padding-right:110px; }
.toolbar-mascot { position:absolute; right:16px; top:8px; width:76px; height:86px; object-fit:contain; pointer-events:none; }
.adventure-description { color:#756052; margin:0 0 30px; line-height:1.85; font-size:16px; }
.adventure-actions { display:flex; align-items:center; flex-wrap:wrap; gap:18px; }
.adventure-primary { display:inline-flex; align-items:center; justify-content:center; gap:25px; border-radius:16px; min-height:54px; padding:14px 24px; background:var(--play-red); color:#fff; font-size:16px; box-shadow:0 6px 16px #b9352b1a; }
.adventure-primary span { font-size:23px; line-height:1; }
.adventure-primary:hover { background:#a32c24; }
.adventure-secondary { color:#715143; text-decoration:none; font-size:14px; font-weight:650; padding-block:12px; }
.adventure-secondary:hover { color:var(--play-red); text-decoration:underline; }
.mascot-stage { position:relative; display:grid; place-items:center; height:420px; isolation:isolate; }
.mascot-greet { display:block; position:relative; z-index:2; width:340px; height:365px; margin-top:32px; padding:0; border:0; background:transparent; cursor:pointer; border-radius:30px; }
.mascot-greet:hover,.mascot-greet:active { background:transparent; }
.mascot-image { display:block; width:100%; height:100%; object-fit:contain; transform:translate(var(--mascot-x,0px),var(--mascot-y,0px)) rotate(var(--mascot-r,0deg)); transition:transform 220ms cubic-bezier(.2,.8,.2,1); filter:drop-shadow(0 12px 12px #55301d15); }
.mascot-bubble { position:absolute; z-index:3; top:0; right:12%; margin:0; padding:11px 18px; border-radius:18px 18px 5px 18px; background:#fff; color:#7e3d2a; border:1px solid #e8d6c3; box-shadow:0 5px 15px #5a3c2410; font-size:14px; font-weight:650; transform:rotate(3deg); }
.mascot-ground { position:absolute; z-index:-1; bottom:20px; width:250px; height:32px; border-radius:50%; background:#eedfce; opacity:.6; }
.stage-dot { position:absolute; z-index:-1; border-radius:50%; }
.dot-yellow { width:240px; height:240px; background:#f9e9bd; left:12%; top:23%; }
.dot-blue { width:58px; height:58px; background:#dcecef; right:4%; top:28%; }
.mascot-hint { position:absolute; bottom:0; color:#7c6657; font-size:11px; }
.mascot-greet.is-greeting .mascot-image { animation:book-greeting 600ms cubic-bezier(.2,.8,.2,1); }
@keyframes book-greeting { 0%,100%{transform:translateY(0) rotate(0)} 35%{transform:translateY(-12px) rotate(-5deg)} 65%{transform:translateY(-4px) rotate(4deg)} }
.preview-student .growth-showcase { margin-top:24px; border-color:#eddfcf; box-shadow:none; border-radius:22px; }
.preview-student .passport-identity { background:#f9e9ce; color:#593d2d; padding:24px; }
.preview-student .passport-identity::before { border-color:#d9bb8c; }
.preview-student .passport-identity h2,.preview-student .passport-identity p { color:#65452f; }
.preview-student .passport-identity span { color:#76563d; }
.preview-student .passport-identity::after { content:none; }
.chips .chipbtn.on .catbi,
.chips .chipbtn.on .catbi span,
.catpick .optinput:checked + .catcard .catname,
.catpick .optinput:checked + .catcard .catbi span,
.catpick .optinput:checked + .catcard .catdesc { color:#fff; }
.preview-student .passport-emblem { width:150px; height:166px; border:0; background:transparent; border-radius:0; margin:2px auto 12px; box-shadow:none; }
.passport-emblem img { width:100%; height:100%; object-fit:contain; }
.preview-student .passport-identity .eyebrow { display:none; }
.preview-student .passport-page { background:#fff; }
.preview-student .passport-page h2 { font-family:inherit; font-weight:750; }
.preview-student .growth-totals strong { font-family:inherit; font-weight:750; }
.preview-student .home-paths { gap:16px; }
.preview-student .path-card { border-radius:18px; background:#fff; border-color:#ecdfd3; padding:24px; }
.preview-student .path-card:first-child { background:#fff1e7; }
.preview-student .path-card:nth-child(2) { background:#edf4f4; }
.preview-student .path-card:nth-child(3) { background:#fbf1d9; }
.preview-student .path-card:hover { border-color:#c78567; }
.library-companion { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:12px 24px 14px; margin-bottom:10px; }
.library-companion h1 { font-size:clamp(24px,3vw,34px); font-weight:800; margin:0 0 10px; color:var(--play-ink); }
.library-companion p { color:#806453; margin:0; }
.library-companion img { width:112px; height:120px; object-fit:contain; flex-shrink:0; }
.preview-library .seriesfolder,.preview-books .card { border-radius:18px; }
.preview-login .hubgrid .card { border-radius:18px; }
.preview-login .hubgrid .card:nth-child(2) { background:#f2f7f6; }
.preview-login .hubgrid .card:nth-child(3) { background:#fff6df; }
@media(max-width:900px) {
  .reading-adventure { padding:28px; gap:5px; }
  .mascot-greet { width:270px; height:330px; }
  .reading-adventure h1 { font-size:40px; }
  .adventure-actions { gap:8px 16px; }
}
@media(max-width:700px) {
  .reading-adventure { grid-template-columns:1fr; padding:28px 24px 18px; border-radius:22px; gap:12px; }
  .adventure-greeting { margin-bottom:15px; font-size:13px; }
  .reading-adventure h1 { font-size:37px; margin-bottom:17px; }
  .reading-adventure.brand-hero h1,.reading-adventure.growth-welcome.brand-hero h1 { font-size:31px; }
  .reading-adventure.brand-hero .brand-tagline-zh { font-size:17px; margin-bottom:20px; }
  .reading-adventure .student-book-action { width:100%; margin-top:20px; }
  .toolbar-companion { padding-right:20px; padding-bottom:86px; }
  .toolbar-mascot { top:auto; bottom:0; right:18px; }
  .adventure-description { font-size:14px; margin-bottom:22px; }
  .adventure-actions { align-items:stretch; gap:8px; }
  .adventure-primary { width:100%; border-radius:14px; }
  .adventure-secondary { width:100%; text-align:center; }
  .mascot-stage { height:300px; }
  .mascot-greet { width:240px; height:263px; margin-top:14px; }
  .mascot-bubble { right:0; top:0; padding:8px 13px; font-size:12px; }
  .dot-yellow { width:185px; height:185px; top:24%; left:10%; }
  .dot-blue { width:38px; height:38px; top:28%; right:1%; }
  .mascot-ground { width:185px; bottom:22px; height:24px; }
  .preview-student .passport-identity { min-height:0; padding:22px; display:grid; grid-template-columns:100px 1fr; gap:4px 14px; align-items:center; text-align:left; }
  .preview-student .passport-emblem { grid-row:1/4; width:100px; height:116px; margin:0; }
  .preview-student .passport-identity h2 { margin:0; font-size:23px; }
  .preview-student .passport-identity p { margin:0; }
  .preview-student .passport-identity::after { display:none; }
  .library-companion { padding:5px 6px 8px; gap:10px; }
  .library-companion img { width:76px; height:94px; }
  .library-companion h1 { font-size:23px; line-height:1.35; }
  .library-companion p { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) {
  .mascot-image { transform:none !important; transition:none; }
  .mascot-greet.is-greeting .mascot-image { animation:none; }
}

/* Match the class goal fill across the student and teacher dashboards. */
.class-goal .class-goal-track span,
.class-goal.goal-completed .class-goal-track span {
  background-color: var(--brand);
}
.compact-goal progress { accent-color: var(--brand); }
.compact-goal progress::-webkit-progress-value { background-color: var(--brand); }
.compact-goal progress::-moz-progress-bar { background-color: var(--brand); }

.passport-emblem .mascot-greet {
  width:100%;
  height:100%;
  min-height:0;
  margin:0;
}

.reading-progress,
.class-goal .class-goal-track,
.compact-goal progress {
  background-color:#e4dccd;
}
.reading-progress span { background-color:var(--brand); }
.compact-goal progress::-webkit-progress-bar { background-color:#e4dccd; }

.seriesgrid:not(.pickgrid) {
  grid-template-columns:repeat(auto-fill,minmax(min(100%,218px),1fr));
}
.seriesfolder {
  min-width:0;
  grid-template-columns:52px minmax(0,1fr);
}
.seriesfolder > strong,
.seriesfolder > small {
  min-width:0;
  overflow-wrap:anywhere;
}
.seriesfolder .foldercover { object-fit:contain; }
