@font-face{font-family:Bricolage;src:url("/bricolage-bold.woff2") format("woff2");font-weight:750;font-display:swap}@font-face{font-family:DM;src:url("/dm-regular.woff2") format("woff2");font-weight:400;font-display:swap}@font-face{font-family:DM;src:url("/dm-bold.woff2") format("woff2");font-weight:700;font-display:swap}

:root{--ink:#242449;--green:#29294f;--muted:#53566d;--paper:#faf7f0;--rule:#dad8e2;--orange:#ffca87;--display:Bricolage,Georgia,serif;font:16px/1.55 DM,Arial,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0}button,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default}
button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #b34b21;outline-offset:4px}
button{min-height:46px;border:0;background:none;font-weight:650}
h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:var(--display);line-height:1.08}
h1{font-size:clamp(2.35rem,4.4vw,3.8rem);letter-spacing:-.055em;font-weight:800}
h2{font-size:clamp(1.7rem,3vw,2.3rem);letter-spacing:-.045em}
h3{font-size:1.45rem;letter-spacing:-.035em}.ico{width:21px;height:21px;display:block;flex:none}
.skip{position:absolute;left:-100vw}.skip:focus{left:12px;z-index:5;background:white;padding:9px}
header{border-bottom:1px solid var(--rule);background:#fcfbf5}
.bar,main,footer{width:min(1170px,calc(100% - 96px));margin-inline:auto}
.bar{min-height:78px;display:flex;align-items:center;gap:35px}
.brand{font-size:1.92rem;letter-spacing:-.065em;display:flex;align-items:center;gap:10px;padding:0;font-weight:800}
.brandmark{width:40px;height:43px;color:#fff5ce;background:var(--green);display:grid;place-items:center;border-radius:10px 10px 17px 17px;transform:rotate(-5deg)}.brandmark .ico{width:30px;height:31px}
nav{display:flex;gap:7px;margin:auto}nav button,.profile{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 14px;border-radius:30px;font-size:.94rem}nav button[aria-current=page]{background:#e6e3f1}
.profile{border:1px solid var(--rule);gap:9px;padding:4px 12px 4px 5px;background:#fffdf7}.profile .ico{width:15px}.avatar{display:grid;place-items:center;background:#f0c595;border:1px solid #d7ac7c;width:33px;height:33px;border-radius:50%;font:800 1.12rem var(--display)}
main{min-height:65vh;padding:41px 0 28px}main:focus{outline:0}.eyebrow{display:flex;align-items:center;gap:8px;font-size:.73rem;line-height:1.4;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.eyebrow .ico{width:18px;height:18px}
.intro{margin-bottom:26px}.intro .eyebrow{color:#5d597b;margin-bottom:10px}.intro p{margin-top:9px;color:var(--muted);font-size:1.1rem}
.feature{display:grid;grid-template-columns:46% 54%;overflow:hidden;border-radius:23px;background:var(--green);color:#fff8e6;min-height:310px}
.feature-copy{padding:32px 38px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.feature .eyebrow{color:#ffda92}.feature h2{font-size:clamp(2.6rem,4.1vw,3.85rem);max-width:14ch;margin:15px 0 10px}
.feature p{max-width:34ch;color:#ece9fd;font-size:1.06rem}.feature-art{margin:0;position:relative;min-width:0}.feature-art img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:center 52%}
.primary,.secondary,.choice,.linkbtn{display:inline-flex;align-items:center;justify-content:center;gap:10px}
.primary,.secondary{border-radius:12px;padding:11px 21px}.primary{background:var(--green);color:white}.feature .primary{background:var(--orange);color:#253c2b;margin-top:22px}.primary:hover,.secondary:hover,.tile:hover{filter:brightness(.96)}.secondary{background:#e8ecdf;border:1px solid var(--rule)}.linkbtn{padding:6px 0;text-decoration:underline;text-underline-offset:4px}
.trailhead{display:flex;align-items:center;justify-content:space-between;margin:29px 0 15px}.trailhead small{color:var(--muted);display:flex;align-items:center;gap:6px;font-weight:600}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.tile{padding:18px;display:flex;align-items:center;gap:14px;border:1px solid var(--rule);border-radius:15px;background:#fffcf5;text-align:left}.tile strong,.tile small{display:block}.tile strong{font:750 1.22rem var(--display);letter-spacing:-.035em}.tile small{color:var(--muted);font-size:.88rem;font-weight:450;margin-top:3px}
.patch{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;flex:none}.patch .ico{width:29px;height:29px}.fern{background:#deddf4;color:#494474}.gold{background:#f7e3af;color:#83521d}.lav{background:#e4dfec;color:#62537a}.tile>.ico{margin-left:auto;width:16px}
footer{font-weight:600;color:#565571;font-size:.8rem;padding:18px 0 24px;border-top:1px solid var(--rule);display:flex;align-items:center;gap:6px}footer .ico{width:17px}
.narrow{max-width:780px;margin:auto}.sheet{background:#fffdf7;border:1px solid var(--rule);border-radius:20px;padding:clamp(20px,4vw,42px);margin:17px 0}.sheet>*+*{margin-top:17px}.sheet h2{font-size:2rem}.sheet p,.note{color:var(--muted)}.lesson-label{color:#576f55}.steps{display:flex;gap:6px;margin:15px 0 21px}.steps span{height:6px;flex:1;border-radius:8px;background:#d9dfd0}.steps .on{background:#537551}
.choices,.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.choice{border:2px solid #c9d3c1;background:#fffdf7;border-radius:12px;padding:12px 20px}.choice.word{font:700 2rem var(--display);min-width:125px}.choice:hover{background:#edf1e4}.feedback{font-weight:650;color:#30563d;min-height:1.55em}.feedback:empty{display:none}
.passage{font:500 clamp(1.45rem,3.1vw,2rem)/1.65 DM,Arial,sans-serif;color:var(--ink)!important;letter-spacing:.01em}
.record{padding:14px 0;border-top:1px solid var(--rule);display:flex;justify-content:space-between;gap:18px;align-items:center}.record strong{display:block}.record small{color:var(--muted)}.stamp{font-size:2rem}.profile-card{display:grid;place-items:center;gap:10px;padding:20px 35px;border:2px solid #c8d4bf;border-radius:18px;background:#f1f1df}.profile-card .avatar{width:66px;height:66px;font-size:2.1rem}
dialog{color:var(--ink);max-width:min(440px,88vw);background:var(--paper);border:1px solid var(--rule);border-radius:19px;padding:28px}dialog::backdrop{background:#203b3088}dialog p{margin:15px 0}.note{font-size:.92rem}select{min-height:46px;border:1px solid #a8b4a4;border-radius:9px;background:#fffdf7;padding:7px 12px}
@media(min-width:1500px){main{padding-top:55px}.feature{min-height:350px}}
@media(max-width:920px){.bar,main,footer{width:calc(100% - 48px)}.bar{gap:10px}nav{gap:1px}nav button{padding:7px 9px}.feature-copy{padding:26px}.feature{grid-template-columns:47% 53%}.tile{gap:10px;padding:13px}.tile>.ico{display:none}.patch{width:42px;height:44px}.tile strong{font-size:1.07rem}}
@media(max-width:690px){.bar,main,footer{width:calc(100% - 32px)}.bar{flex-wrap:wrap;justify-content:space-between;padding:12px 0 6px;gap:4px}.brand{font-size:1.6rem}nav{order:3;width:100%;justify-content:space-between;margin-top:5px}nav button{font-size:.85rem}.profile{margin-left:auto}.feature{display:flex;flex-direction:column-reverse}.feature-art{height:185px}.feature-copy{padding:23px}.feature h2{margin:9px 0}.tiles{grid-template-columns:1fr}.tile>.ico{display:block}.tile strong{font-size:1.2rem}.trailhead small{font-size:.76rem}main{padding-top:25px}.intro{margin-bottom:20px}.sheet h2{font-size:1.65rem}}
header a { color: var(--ink); }
.bar .brand { margin-right: auto; text-decoration: none; }
#game { max-width: 900px; min-height: 70vh; }
.scene { background: #28284d; color: #fff7e4; border-radius: 22px; overflow: hidden; }
.scene img { display: block; width: 100%; height: clamp(140px,22vw,245px); object-fit: cover; }
.desk { padding: clamp(20px,4vw,42px); }
.scene.mail-in-flight > img { height: clamp(65px,9vw,98px); object-position: center 45%; }
.mail-in-flight .desk { padding: clamp(18px,3.4vw,34px); }
.desk h1:focus { outline: none; scroll-margin-block: 2.5rem; }
.desk h1 { font-size: clamp(2rem,5vw,3.4rem); }
.desk p { margin: 14px 0; font-size: 1.15rem; }
.desk .secondary { color: #242449; }
.desk .primary { background: #ffcb87; color: #222144; }
.desk button:focus-visible { outline: 3px solid #ffd56b; }
.parcels { display: flex; gap: 14px; margin: 20px 0; }
.parcels .parcel {
  flex: 1; min-width: 0; min-height: clamp(92px,12vw,118px); padding: 12px;
  color: #28233a; border: 2px solid #cb9c6a; border-radius: 7px;
  background: linear-gradient(90deg, transparent 10%, #ad8053 10% 12%, #f3dcb9 12% 18%, #b78659 18% 20%, transparent 20%),
    linear-gradient(#e2c199 51%, #b78c61 51% 53%, #dab58d 53%);
}
.parcel-label {
  display: inline-block; padding: .05em .48em .12em; background: #fffae9;
  border: 1px solid #c4a37b; border-radius: 3px; box-shadow: 0 2px 0 #966e494d;
  font: 700 clamp(2rem,5vw,3.4rem)/1.15 DM,Arial,sans-serif;
}
.parcels .parcel:focus-visible { outline-offset: 4px; }
.cargo-item { display: flex; align-items: center; gap: 12px; background: #fff8ee; color: #242449; padding: 10px; border-radius: 12px; margin: 14px 0; }
.scene .cargo-item img { width: 52px; height: 52px; object-fit: contain; }
.mail-tools { display: flex; gap: .65rem; flex-wrap: wrap; }
.desk .mail-step { color: #ffda9d; font-size: .95rem; font-weight: 700; margin: 0 0 .4rem; }
.desk .mail-clue { font-size: clamp(1.2rem,2.3vw,1.45rem); }
.mail-letter {
  background: repeating-linear-gradient(125deg,#a34937 0 10px,#fff8e8 10px 20px,#445479 20px 30px,#fff8e8 30px 40px) top / 100% 5px no-repeat, #fff9ea;
  border-radius: 5px 12px 12px 5px; color: #262746;
  padding: clamp(14px,2.2vw,24px); margin: .9rem 0 1.3rem;
}
.desk .mail-story { margin: 0; max-width: 46ch; font: 500 clamp(1.35rem,2.4vw,1.75rem)/1.65 DM,Arial,sans-serif; }
.desk .mail-help-tip { color: #5d5957; font-size: .93rem; margin: .55rem 0 0; }
#game .desk button.word-help {
  display: inline; margin: 0; padding: 0 .04em; min-height: 44px; color: #343f68; font: inherit;
  text-decoration: underline dotted; text-underline-offset: .16em;
}
.desk .word-help:focus-visible { outline-color: #75401c; }
.mail-word-model:not(:empty) {
  display: grid; gap: .2rem; padding: .65rem 1rem; margin-top: .7rem; border-left: 4px solid #d19a62;
  border-radius: 4px; background: #fff3cf; color: #302b37;
}
.mail-word-model strong { font-size: 1.4rem; }
.desk .mail-retry { color: #ffe0a7; font-weight: 650; }
.mail-retry:empty,.mail-audio-status:empty { display: none; }
@media (prefers-reduced-motion: no-preference) { .cargo-item img { animation: unpack .25s ease-out; } }
@keyframes unpack { from { transform: translateY(8px); opacity: .3; } }

.lunar-practice {width:min(calc(100% - 2rem),900px);margin:1rem auto 2rem}
.desk details {margin-top:1.25rem}
.desk details label {display:grid;gap:.5rem}
.desk details select {width:fit-content;max-width:100%;min-height:44px;font:inherit}

.report-invite{margin-top:1.6rem;border-top:1px solid #777798;padding-top:.25rem}
.report-invite .secondary,.report-actions .secondary{text-decoration:none;min-height:46px}
.report-panel{overflow:hidden;border:1px solid #c9c9bc;border-radius:20px;background:#fffbf1;color:#25362e}
.report-banner{position:relative;height:clamp(82px,12vw,118px);display:flex;align-items:flex-end;background:#243334}
.report-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 42%}
.report-banner span{position:relative;margin:0 0 12px clamp(16px,4vw,42px);padding:3px 10px;border-radius:4px;background:#203136;color:#fff6dd;font-weight:710}
.report-content{padding:clamp(18px,4vw,42px)}
.report-content h1{font-size:clamp(1.85rem,4vw,3rem);max-width:24ch}
.report-content h1:focus{outline:none}
.report-content p{margin:.8rem 0;max-width:64ch}
.report-content .report-step{color:#4c6759;font-weight:700;margin:0 0 .4rem}
.report-paper{background:#f7efdb;border:1px solid #d9c9a8;border-radius:5px 14px 14px 5px;border-left:5px solid #a5784d;margin:1rem 0;padding:clamp(14px,2.2vw,23px)}
.report-paper h2{font-size:clamp(1.2rem,2vw,1.6rem);margin:0}
.report-paper p,.report-paper blockquote{font-size:clamp(1.05rem,1.8vw,1.26rem);line-height:1.6;max-width:64ch;margin:.4rem 0}
.report-content blockquote{padding-left:.9rem;border-left:3px solid #a67649}
.report-lookback{margin:.3rem 0 .7rem}
.report-lookback summary{cursor:pointer;min-height:44px;width:fit-content;max-width:100%;padding:.6rem 0;color:#315e53;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.report-lookback .report-paper{margin:0 0 .8rem}
.report-choices{display:grid;gap:9px;max-width:68ch}
.report-choice{border:1px solid #afbba9;border-radius:11px;padding:.65rem 1rem;min-height:48px;text-align:left;color:#214c41;background:#edf2e5;line-height:1.4}
.report-choice.tried{border-style:dashed}
.report-choice.chosen{border-color:#377359;background:#cfe7ca;color:#163c2d}
.report-choice:disabled{cursor:default}
.report-feedback:empty{display:none}
.report-feedback,.report-hint{color:#405e50}
.report-support {display:flex;align-items:baseline;flex-wrap:wrap;gap:0 1.15rem;margin:.6rem 0 1rem}
.report-support .report-lookback {margin:0;max-width:100%}
.report-support .report-lookback[open] {width:100%}
.report-support .report-hint:not([hidden]) {flex-basis:100%;margin:.55rem 0 0;padding:.6rem .85rem;border-left:4px solid #ad7b46;background:#fff0d3;color:#423429}
.report-support button[hidden] {display:none}
.report-actions:empty {display:none}
.report-actions{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin-top:1rem}
.report-panel :is(button,a,summary):focus-visible{outline:3px solid #895131;outline-offset:3px}
@media(max-width:520px){.report-banner{height:74px}.report-content{padding:16px}.report-actions{gap:.55rem}}
.studio-editor {
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 1.2rem;
  background: white;
}
.studio-editor legend {
  font: 700 1.5rem var(--display);
  padding: 0 0.45rem;
}
.studio-editor label,
.family-page label {
  display: block;
  font-weight: 650;
  margin: 0.7rem 0;
}
.studio-editor input,
.studio-editor select,
.family-page input,
.family-page select {
  font: inherit;
  width: 100%;
  display: block;
  padding: 0.65rem;
  border: 1px solid #a5a3af;
  border-radius: 0.5rem;
  background: white;
}
.family-page {
  max-width: 810px;
  width: calc(100% - 28px);
  margin: 2rem auto;
}
.family-page > * + * {
  margin-top: 1rem;
}
.family-page button,
.flightboard ~ .sheet button {
  margin: 0.3rem;
}
.hangar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  padding: clamp(1.4rem, 5vw, 3.5rem);
  background-color: #28284d;
  background-image:
    linear-gradient(90deg, rgba(21, 21, 54, 0.97), rgba(21, 21, 54, 0.67) 62%, rgba(21, 21, 54, 0.2)),
    var(--hangar-art);
  background-size: cover;
  background-position: center;
  color: white;
  min-height: 220px;
}
.hangar p,
.hangar h2 {
  max-width: 24em;
}
.hangar > * + * {
  margin-top: 0.9rem;
}
.hangar .primary {
  background: #ffca87;
  color: #242449;
}
.flightboard {
  border-radius: 16px;
  padding: 1rem;
  margin: 1rem 0;
  color: #fff;
  background: #25254d;
}
.flightboard strong,
.mission-activity small,
.flightboard progress {
  display: block;
}
.mission-activity {display:flex;align-items:center;flex-wrap:wrap;gap:.5rem .85rem;color:var(--muted)}
.mission-activity small {font-weight:650}
.mission-activity progress {width:min(8rem,100%);height:.55rem;accent-color:#60518b}
.sheet .actions button.mission-answer:disabled {opacity:1;background:#e1f0e8;color:#183c30;box-shadow:inset 0 0 0 2px #47715d}
.sheet .observation-options button:disabled {background:transparent;color:#646472;border:1px dashed #9897a2;cursor:default}
.mission-answer::after {content:" ✓" / ""}
.question-audio {display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .75rem}
.question-audio button {min-height:44px}
.question-audio [role=status]:empty {display:none}
.flightboard progress {
  accent-color: #ffc77f;
  width: 100%;
  height: 8px;
  margin-top: 0.55rem;
}
.flightboard p {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}
.flight-scene {
  display: flex;
  align-items: end;
  justify-content: space-around;
  min-height: 90px;
  gap: 0.25rem;
  padding: 0.7rem 0.5rem;
  margin: 0.45rem 0;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 65% 120%, #907eae 0 26%, transparent 27%),
    linear-gradient(140deg, #262741, #4c537b);
  overflow: hidden;
}
.flight-scene span {
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  text-align: center;
  min-width: 1.5em;
  border-bottom: 3px solid #8589ad;
}
.flight-scene span[data-active="true"] {
  border-color: #ffd097;
  transform: translateY(-4px);
}
.flightboard ~ .sheet .move {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem;
  min-width: 6em;
}
.move b {
  font-size: 1.7rem;
}
.family-page .sheet > * + * {
  margin-top: 0.6rem;
}
.family-page summary {
  cursor: pointer;
}
.family-page label:focus-within {
  color: #343468;
}

.idea-choices {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.idea-choices button {
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  font-size: 0.92rem;
  border-radius: 20px;
}

.handoff {display:grid;gap:1rem;justify-items:start}.handoff h1,.handoff h2{color:inherit}.handoff .primary{min-height:56px}.grown-up-tools{margin:1rem 0}.grown-up-tools summary{width:fit-content;cursor:pointer;padding:.5rem 0}.grown-up-tools button{margin:.25rem}.actions:has(.grown-up-tools){display:block}.handoff:focus-within .primary:focus-visible{outline-offset:4px}

.family-page .voice-permission {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.voice-permission input[type="checkbox"] {
  order: -1;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}
.passage mark {
  color: #231f49;
  background: #fff0a8;
  border-radius: .2em;
}

.flight-patches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .65rem;
  margin: .75rem 0 1rem;
  padding: 0;
  list-style: none;
}
.flight-patches li {
  display: grid;
  align-content: start;
  gap: .3rem;
  padding: 1rem;
  border: 1px solid #c4bcdf;
  border-radius: 1rem;
  color: #302547;
  background: #faf7ff;
}
.flight-patches li[data-earned="true"] {
  border-color: #d5ad58;
  background: #fff6d9;
}
.flight-patches li > span { font-size: 1.85rem; line-height: 1.1; }
.flight-patches small { color: inherit; }
.log-totals { font-size: 1.2rem; font-weight: 650; }

.family-page .crew-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;max-width:32rem;margin:1.25rem 0}
.family-page .crew-grid button {min-height:3.75rem;font-size:1.55rem;margin:0}
.family-page input[readonly] {font-family:monospace}
.parent-key-form {max-width:36rem}
.parent-key-field {display:flex;align-items:stretch;gap:.5rem;flex-wrap:wrap}
.parent-key-field input {flex:1 1 15rem;min-width:0}
.family-page .parent-key-field button {margin:0}
.parent-key-form p[role="status"] {margin:.5rem 0;color:var(--ink);font-weight:600}
.parent-key-field input[aria-invalid="true"] {border:2px solid #953e34}
.parent-key-form:has(input[aria-invalid="true"]) p[role="status"] {color:#852d24}
.parent-key-form > button {margin:.65rem .4rem 0 0}
.account-notice {width:min(92%,48rem);margin:.75rem auto;color:var(--ink);font-weight:600}
.account-notice button {margin-left:.75rem}
.account-controls button {min-height:44px}

.picture-entry { max-width: 32rem; }
.picture-slots { display: flex; gap: .5rem; }
.picture-slots span {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 2px dashed #9385a6;
  border-radius: .7rem;
  font-size: 1.5rem;
}
.picture-slots span[data-filled="true"] { border: 2px solid #63508c; background: #f2edff; color: #514074; }
.family-page .picture-keys button { font-size: 2rem; min-height: 4.25rem; }
.picture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.picture-feedback:empty { display: none; }
.picture-feedback { color: #783823; font-weight: 650; }

.family-page .parent-crew {grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));max-width:46rem}
.parent-crew small {display:block;font-size:.92rem;font-weight:500;line-height:1.35;margin:.4rem}

.grownup-help-link {display:flex;align-items:center;width:fit-content;min-height:44px;color:var(--ink);font-weight:650;text-underline-offset:.18em}
.family-welcome {max-width:1080px;padding-top:0}
header:has(+ .family-page) .bar {width:min(1080px,calc(100% - 28px));justify-content:space-between;gap:1rem}
.welcome-hero {display:grid;align-content:center;justify-items:start;min-height:22rem;padding:clamp(1.5rem,5vw,4rem);background-position:center 44%}
.welcome-hero h1 {max-width:12ch;line-height:1;letter-spacing:-.045em}
.welcome-hero p {max-width:40ch}
.welcome-actions {display:flex;flex-wrap:wrap;gap:.6rem}
.family-page .welcome-actions button {margin:0}

.sample-missions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  list-style: none;
  padding: 0;
}
.sample-missions li { display: flex; }
.family-page .sample-missions button {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: .3rem .7rem;
  padding: 1.1rem 1.2rem;
  text-align: left;
  background: #fffdf8;
  border: 1px solid var(--rule);
  border-radius: 1rem;
}
.sample-missions small { color: #655073; font-weight: 700; }
.sample-missions strong { grid-column: 1; font: 750 1.35rem/1.15 var(--display); }
.sample-missions span { grid-column: 1; color: var(--muted); font-weight: 450; line-height: 1.4; }
.sample-missions .sample-arrow { grid-area: 1 / 2 / span 3 / 3; align-self: center; color: var(--ink); font-size: 1.25rem; }
.sample-missions button:hover { border-color: #786594; }
@media (max-width: 36rem) {
  .sample-missions { grid-template-columns: 1fr; }
}
.hangar .secondary {background:#fff7eb;color:#262044}
.quick-play {margin:2.3rem 0}
.quick-play > p {color:var(--muted);margin:.6rem 0 1.2rem}
.game-library {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.game-card {display:grid;align-content:start;gap:.2rem;text-decoration:none;color:var(--ink);background:#fffdf8;border:1px solid var(--rule);border-radius:1rem;overflow:hidden;padding-bottom:1rem}
.game-card:hover {border-color:#786594;box-shadow:0 4px 14px #29294f18}
.game-card strong,.game-card > span:last-child {margin-inline:1rem}
.game-card strong {font:750 1.4rem var(--display);margin-top:.7rem}
.game-card > span:last-child {color:var(--muted);line-height:1.4}
.game-art {position:relative;height:clamp(5.8rem,10vw,8rem);background-size:cover;background-position:center;overflow:hidden}
.game-art.balloon {background-image:url("/family/media/cards/balloon-wide.webp")}
.game-art.balloon:before {content:"sun";position:absolute;left:39%;top:8%;border-radius:50% 50% 47% 47%;background:radial-gradient(at 35% 25%,#fff2c4,#ffbd64 50%,#de8140);padding:1rem .7rem;color:#503018;font:bold 1.7rem var(--display);transform:rotate(-8deg)}
.game-art.balloon:after {content:"";position:absolute;left:50%;top:76%;height:30%;border-left:2px solid #65494a;transform:rotate(8deg)}
.game-art.fish {background-image:url("/clownfish.webp"),url("/family/media/cards/fish-wide.webp");background-size:auto 75%,cover;background-repeat:no-repeat;background-position:42% center,center}
.game-art.baby {background-color:#ffedc9;background-blend-mode:multiply;background-image:url("/words/teddy.webp");background-size:auto 97%;background-repeat:no-repeat}
.quick-play > button {margin:1rem 0}
@media(max-width:620px){
  .welcome-hero {min-height:18rem;background-position:62% center;--hangar-art:url("/family/media/welcome-compact.webp");grid-template-columns:minmax(0,1fr);overflow-wrap:anywhere}
  .game-library {grid-template-columns:1fr;gap:.65rem}
  .game-card {grid-template-columns:min(5.4rem,28vw) minmax(0,1fr);overflow-wrap:anywhere;grid-template-rows:auto auto;padding:0;align-items:center}
  .game-art {grid-row:1/3;height:100%;min-height:5.5rem}
  .game-card strong {align-self:end;margin-top:.6rem}
  .game-card > span:last-child {align-self:start;margin-bottom:.6rem}
  .game-art.balloon:before {left:10%;font-size:1.2rem}
}

.family-page .reader-tile {display:grid;grid-template-columns:auto 1fr;align-items:center;text-align:left;gap:.35rem .8rem;background:#fffdf8;padding:1rem}
.reader-tile > span {grid-row:1/3;display:grid;place-items:center;min-width:2.8rem;min-height:2.8rem;background:#f4eade;border-radius:.8rem}
.reader-tile strong {font:750 1.25rem var(--display)}
.parent-crew .reader-tile small {margin:0;color:var(--muted)}
.family-page .crew-grid:has(.reader-tile) {grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr))}
.crew-setup {padding:1.3rem;border-radius:1rem;border:1px solid var(--rule);background:#fffdf8}
.crew-setup h2 {font-size:1.4rem}
.badge-options {display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.6rem}

@media(max-width:620px){
  header:has(+ .family-page) .bar {display:flex;flex-flow:row wrap;min-height:60px;gap:.3rem}
  header:has(+ .family-page) .brand {font-size:clamp(1.05rem,4.4vw,1.6rem);gap:.35rem}
  header:has(+ .family-page) .brandmark {width:1.8rem;height:2rem}
  .account-controls button {padding:.4rem .65rem;font-size:.88rem}
  header:has(+ .family-welcome) .brand {white-space:nowrap}
  header:has(+ .family-welcome) .account-controls button {white-space:nowrap;padding-inline:.5rem}
  .family-welcome {margin-top:1rem}
  .welcome-hero > *, .welcome-actions button {min-width:0;max-width:100%}
}

.family-page h1,.reader-tile strong {overflow-wrap:anywhere}
.reader-tile small span {display:block;margin-top:.4rem;color:var(--ink)}
.family-devices {display:grid;gap:.8rem}
.family-devices h3,.family-devices button {max-width:100%;overflow-wrap:anywhere}

.game-art.rail{background-image:url("/moonrail/engine.webp"),url("/family/media/cards/rail-wide.webp");background-size:auto 77%,cover;background-position:center,center;background-repeat:no-repeat}
.game-art.lunar{background-image:url("/family/media/lunar-post.webp")}
.game-art.orbit{background-image:url("/family/media/cards/orbit-wide.webp")}
.game-art.lab{background-image:url("/family/media/cards/lab-wide.webp")}
@media(max-width:620px){
  .game-art.lunar {background-image:url("/family/media/cards/lunar-compact.webp")}
  .game-art.balloon {background-image:url("/family/media/cards/balloon-compact.webp")}
  .game-art.fish {background-image:url("/clownfish.webp"),url("/family/media/cards/fish-compact.webp")}
  .game-art.rail {background-image:url("/moonrail/engine.webp"),url("/family/media/cards/rail-compact.webp")}
  .game-art.orbit {background-image:url("/family/media/cards/orbit-compact.webp")}
  .game-art.lab {background-image:url("/family/media/cards/lab-compact.webp")}
}

.reading-summary .report-controls {display:flex;align-items:end;flex-wrap:wrap;gap:.75rem}
.reading-summary .report-controls label {display:grid;gap:.3rem}
.reading-summary li {margin-block:.35rem}
@media print {
  html:has(.reading-summary),body:has(.reading-summary) {background:white;color:black}
  body:has(.reading-summary) > header,
  body:has(.reading-summary) .account-notice,
  .reading-summary .report-controls {display:none !important}
  main:has(.reading-summary) {display:block;max-width:none;margin:0;padding:0;box-shadow:none}
  .reading-summary .sheet {break-inside:avoid;box-shadow:none;background:white;color:black}
}

.passage.word-prompts {display:flex;flex-wrap:wrap;gap:.5em;list-style:none;padding:0}
.word-prompts li {padding:.12em .55em;background:#f1efe6;border-radius:.35em}

.mission-library .shelf-count {color:var(--muted);font-size:.9rem}
.saved-missions {list-style:none;padding:0;display:grid;gap:.6rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr))}
.saved-missions .saved-game {display:grid;width:100%;height:100%;gap:.3rem;margin:0;text-align:left;align-content:start;padding:1rem;color:var(--ink);background:#fffdf8;border:1px solid var(--rule);border-radius:.85rem}
.saved-game strong {font-size:1.2rem}
.saved-game span,.saved-game small {font-weight:400}
.saved-game small {color:var(--muted)}
.waiting-mission {border-inline-start:4px solid #b76427}

.reading-summary .report-controls .include-games {display:flex;align-items:center;gap:.45rem;min-height:44px}
.reading-summary .report-controls .include-games[hidden] {display:none}
.report-controls .include-games input {width:1.15em;height:1.15em;accent-color:var(--ink)}
.report-games .sheet {margin-block:.75rem}
@media print {.reading-summary .screen-only {display:none}}
.reading-summary .finish-observations + .finish-observations {border-top:1px solid var(--rule);margin-top:.75rem;padding-top:.75rem}
@media print {
  .reading-summary .report-mission {break-inside:auto}
  .reading-summary .finish-observations {break-inside:avoid}
  .reading-summary h2,.reading-summary h3 {break-after:avoid}
}
.mission-practice {border-block-start:1px solid var(--rule);margin-block-start:1rem;padding-block-start:1rem}
.sheet > .mission-practice:only-child {border:0;margin:0;padding:0}
.mission-practice h3 {font-size:1.25rem}
.mission-practice p {margin:.4rem 0}
.mission-practice [role="status"]:empty {display:none}

.current-reader {display:flex;align-items:center;gap:.45rem;margin-bottom:.4rem;font-weight:650;color:var(--ink)}
.current-reader span {font-size:1.3em}

.report-imprint {display:none}
@page rocket-summary {
  margin:14mm 15mm;
  @bottom-left {font:8pt Arial,sans-serif;color:#46516a}
  @bottom-right {content:counter(page) " / " counter(pages);font:8pt Arial,sans-serif;color:#46516a}
}
@media print {
  .reading-summary {page:rocket-summary;width:100%;max-width:none;font:10pt/1.4 DM,Arial,sans-serif;color:#22233e}
  .reading-summary .report-imprint {display:flex;justify-content:space-between;align-items:baseline;gap:1rem;border-bottom:1.5pt solid #363652;padding-bottom:4pt;margin-bottom:12pt;font-size:8.5pt}
  .reading-summary .report-imprint strong {font-size:11pt}
  .reading-summary h1 {font-size:21pt;line-height:1.15;margin:0 0 5pt}
  .reading-summary h2 {font-size:14pt;line-height:1.2;margin:8pt 0 3pt}
  .reading-summary h3 {font-size:11pt;line-height:1.25;margin:5pt 0 2pt}
  .reading-summary p,.reading-summary ul {margin:3pt 0}
  .reading-summary li {margin:2pt 0}
  .reading-summary .sheet {margin:6pt 0;padding:4pt 0 5pt 9pt;border:0;border-left:1.5pt solid #8d9d9c;border-radius:0}
  .reading-summary .sheet :first-child {margin-top:0}
  .reading-summary small {font-size:9pt}
}
.sample-family-next {border-block-start:1px solid var(--rule);padding-block-start:1rem;margin-block-start:1rem}
.sample-family-next h3 {font-size:1.25rem}
.sample-family-next p {margin:.35rem 0 .55rem}

/* Keep authored lines of poetry, captions, and field notes distinct. */
p.passage, p.review-passage { white-space: pre-line; }
.grade-course-link { display:inline-flex; align-items:center; min-height:44px; padding:.3rem 0; text-decoration:underline; text-underline-offset:.2em; font-weight:700; color:#265566; }
.grade-course-intro { padding:clamp(1rem, 3vw, 2rem); margin:1rem 0; border-radius:1rem; overflow:hidden; background:#f0f1e6; background-image:linear-gradient(90deg,#eff2e9 40%,#eff2e9f0 53%,#eff2e900 85%),var(--hangar-art); background-size:cover; background-position:center; }
.grade-course-intro h1, .grade-course-intro p { max-width:58%; margin:.4rem 0; color:#183d3f; }
@media(max-width:36rem) {
  .grade-course-intro { background-image:linear-gradient(90deg,#eff2e9fc 54%,#eff2e9d9 83%,#eff2e980),var(--hangar-art); }
  .grade-course-intro h1, .grade-course-intro p { max-width:94%; }
}
.grade-course { display:grid; gap:.85rem; }
.grade-course-areas { display:flex; flex-wrap:wrap; gap:.45rem; }
.family-page .grade-course-areas button { min-height:44px; margin:0; }
.grade-course-areas button[aria-pressed="true"] { color:white; background:#245556; border-color:#245556; }
.grade-course ol { list-style:none; display:grid; gap:.5rem; padding:0; margin:0; }
.family-page .grade-course li button { width:100%; min-height:44px; margin:0; display:grid; justify-content:stretch; justify-items:start; gap:.2rem; padding:.75rem 1rem; background:#fffdf8; border:1px solid var(--rule); border-radius:.7rem; text-align:left; color:var(--ink); }
.grade-course li button:hover { border-color:#746088; }
.grade-course li button strong { font:750 1.13rem/1.25 var(--display); }
.grade-course li button span { color:var(--muted); font-weight:450; line-height:1.4; }

.grade-course-parent li { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:.45rem; align-items:center; }
.family-page .grade-course-parent li button[data-assign] { width:auto; background:#e6efec; font-weight:650; color:#245452; }
@media (max-width: 32rem) {
  .grade-course-parent li { grid-template-columns:1fr; gap:.2rem; }
  .family-page .grade-course-parent li button[data-assign] { justify-self:start; }
}

.grade-course .course-progress { color:#245452; font-weight:700; }
.word-guide {
  margin-block: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid #547666;
  border-radius: 1rem;
  background: #f1f7f2;
  color: #203e31;
}
.word-guide[hidden] { display: none; }
.word-guide:focus-visible { outline: 3px solid #3463a1; outline-offset: 2px; }
.word-guide p { margin: 0; }
.word-guide .guide-letters {
  font: 600 clamp(2.1rem, 7vw, 3.4rem)/1.4 DM, Arial, sans-serif;
  color: #203e31;
  margin-block: .3rem .65rem;
}
.word-guide mark {
  color: inherit;
  background: #ffe3a3;
  text-decoration: underline;
  text-underline-offset: .12em;
}
.word-guide button { min-height: 44px; }
.pip-portrait {
  position: relative;
  display: inline-block;
  width: 6.5rem;
  max-width: 100%;
  aspect-ratio: 1;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
  background:
    radial-gradient(circle at 13% 30%, #ffe7af 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 16%, #fff4cc 0 1px, transparent 1.5px),
    radial-gradient(circle at 90% 64%, #ffd998 0 1.2px, transparent 1.7px),
    linear-gradient(150deg, #191c45, #393461 68%, #665477);
  box-shadow: inset 0 0 0 1px #ffffff36;
}

/* Both layers share a 480px-square window in the original 2172×724 painting.
   The suit stays still while the helmet can pivot at the collar. */
.pip-portrait::before,
.pip-portrait__head {
  position: absolute;
  inset: 0;
  display: block;
  background-image: var(--pip-painting, var(--hangar-art, url("../assets/lunar-post.webp")));
  background-repeat: no-repeat;
  background-size: 452.5% 150.8333%;
  background-position: 38.416% 22.131%;
}

.pip-portrait::before {
  content: "";
  clip-path: polygon(27% 67%,78% 61%,85% 57%,92% 56%,100% 61%,100% 100%,16% 100%,21% 83%,23% 74%);
}

.pip-portrait__head {
  transform-origin: 53% 67%;
  clip-path: polygon(10.6% 36%,12% 29%,15% 22%,20% 16%,26% 11%,33% 8%,42% 6%,51% 5.8%,60% 7%,68% 9.8%,75% 14%,81% 20%,86% 27%,89% 34%,89.5% 43%,88% 51%,84% 58%,79% 63%,75% 65%,51% 69%,30% 71%,24% 68%,19% 63%,15% 57%,12% 50%,10.6% 43%);
}

@media (prefers-reduced-motion: no-preference) {
  [data-teaching] .pip-portrait__head {
    animation: pip-teaching-nod 2.6s ease-in-out 1;
  }
  @keyframes pip-teaching-nod {
    0%, 100% {transform: rotate(0deg)}
    23% {transform: rotate(4deg)}
    50% {transform: rotate(-3deg)}
    72% {transform: rotate(2deg)}
  }
}
.reading-diagram { margin: 1rem 0; padding: 1rem; border: 2px solid #4d7476; border-radius: 1rem; color: #183d45; background: #f2f8f6; }
.reading-diagram figcaption { font-weight: 750; font-size: 1.12em; }
.reading-diagram small { display: block; margin-top: .65rem; }
.diagram-route { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: .25rem; padding: 1em 0 .5em; text-align: center; }
.diagram-route span { font-weight: 700; background: #fff; border: 2px solid #225b63; padding: .4rem .1rem; border-radius: .55rem; overflow-wrap:anywhere; }
.diagram-route b { font-size: 1.2em; }
.diagram-pictograph { display: grid; margin: .65rem 0; }
.diagram-pictograph > span { display: grid; grid-template-columns: minmax(7em, 1fr) 2fr; gap: .5em; border-bottom: 1px solid #b1c9c7; align-items: center; padding: .25em 0; }
.diagram-pictograph span span { font-size: 1.25em; color: #265d65; }
.pip-lesson {
  box-sizing: border-box;
  width: min(35rem, calc(100% - 2rem));
  max-height: 88dvh;
  overflow: auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 2px solid #236663;
  border-radius: 1.4rem;
  background: #fffaf0;
  color: #153d40;
  box-shadow: 0 1rem 4rem #0d353c33;
}
.pip-lesson::backdrop { background: #102c39b8; }
.pip-lesson h2 { margin: 0 0 .75rem; font-size: clamp(1.45rem, 4vw, 2rem); }
.pip-scene { display: flex; gap: 1rem; align-items: center; }
.pip-scene p { flex: 1; font-size: 1.15rem; line-height: 1.55; }
.pip-lesson .actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 0; }
.pip-lesson [role=status]:empty { display: none; }
@media (max-width: 30rem) {
  .pip-scene { flex-direction: column; align-items: flex-start; gap: 0; }
}
.pip-scene strong { display: block; margin-bottom: .5rem; color: #184749; }
main:has(> .mission-running-title) {
  margin-block-start: 1rem;
  padding-block-start: .75rem;
}

main > h1.mission-running-title {
  margin: 0;
  color: #53506e;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  letter-spacing: -.025em;
}

.sheet.mission-turn { margin-block-start: .65rem; }
.mission-turn h2 { max-width: 36ch; line-height: 1.17; }
.mission-turn .passage { white-space: pre-line; }
.mission-turn .mission-options {
  display: grid;
  gap: .5rem;
  margin-block-start: 1rem;
}
.mission-turn .short-options {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5em), 1fr));
  max-width: 30rem;
}
.mission-turn .mission-options > button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: .65rem 1rem;
  border: 1.5px solid #aaa8bc;
  border-radius: .8rem;
  background: #fff;
  color: #292845;
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}
.mission-turn .short-options > button {
  font-size: 1.32rem;
  text-align: center;
}
.mission-turn .mission-options > button:hover:enabled { background: #f0edf6; border-color: #615b80; }
.mission-turn .mission-options > button.mission-answer:disabled {
  background: #e1f0e8;
  color: #183c30;
  border-color: #47715d;
  opacity: 1;
}
.mission-turn .mission-options > button.mission-answer::after { content: " ✓" / ""; }
.mission-turn button.mission-cue {
  margin: .35rem 0 0;
  min-height: 44px;
  padding: .35rem .45rem;
  background: transparent;
  border: 0;
  color: #524668;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.mission-turn .mission-feedback {
  margin: .35rem 0 .6rem;
  border-inline-start: 4px solid #b18a34;
  border-radius: .3rem;
  padding: .7rem 1rem;
  color: #493d27;
  background: #faf1db;
  line-height: 1.5;
  scroll-margin-block: 1rem;
}
.mission-turn .mission-confirmation {
  border-color: #47715d;
  color: #244939;
  background: #e9f3ed;
}
.mission-turn .mission-feedback:empty { display: none; }
.mission-turn button[hidden] { display: none; }
.reading-checkin {
  max-width: 52rem;
  margin-inline: auto;
  overflow-wrap: anywhere;
}
.reading-checkin > * + * { margin-top: 1rem; }
.reading-checkin > h1 { margin-block: 0 .45rem; font: 750 clamp(1.9rem,5vw,3.1rem)/1.08 var(--display); }
.reading-checkin > p { max-width: 65ch; }
.reading-checkin .checkin-reader { margin-block: 1.5rem .4rem; color: var(--muted); font-weight: 650; }
.checkin-levels, .checkin-history { display: grid; gap: .75rem; }
.checkin-levels { grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); }
.family-page .checkin-level, .checkin-history button {
  display: grid; align-content: start; gap: .4rem; text-align: start; margin: 0;
  border: 1px solid var(--rule); border-radius: 1rem; background: #fffdf8; padding: 1.1rem; color: var(--ink);
}
.family-page .checkin-level { border-top: .28rem solid #65708b; }
.family-page .checkin-level:nth-child(2) { border-top-color: #477e77; }
.family-page .checkin-level:nth-child(3) { border-top-color: #b66a39; }
.checkin-level strong, .checkin-history strong { font-size: 1.15em; }
.checkin-level span, .checkin-level small, .checkin-history span { font-weight: 450; }
.checkin-history { margin-top: 2rem; }
.reading-checkin .checkin-task, .reading-checkin .checkin-stimulus {
  border: 1px solid var(--rule); border-radius: 1rem; background: #fffdf8;
  padding: clamp(.85rem,3vw,1.6rem);
}
.checkin-task > :first-child { margin-top: 0; }
.checkin-task blockquote { margin: 1rem 0; border-inline-start: .2rem solid #b66a39; padding-inline-start: .85rem; font-size: 1.2em; font-weight: 650; }
.checkin-task details { margin-top: .8rem; }
.reading-checkin summary { padding: .35rem 0; cursor: pointer; }
.reading-checkin .checkin-stimulus { font: 500 clamp(1.5rem,4vw,2.5rem)/1.55 DM,Arial,sans-serif; }
.reading-checkin .checkin-single { padding-block: 1em; font-size: clamp(3rem,12vw,6rem); text-align: center; }
.reading-checkin .checkin-options { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; border: 0; padding: 0; }
.checkin-options legend { margin-bottom: .45rem; font-weight: 700; }
.family-page .checkin-options label { display: inline-flex; gap: .6rem; align-items: center; margin: 0; padding: .5rem .8rem; min-height: 44px; box-sizing: border-box; border: 1px solid var(--rule); border-radius: .7rem; background: white; cursor: pointer; }
.family-page .checkin-options label:has(input:checked) { background: #e9f4ee; border-color: #37705c; }
.family-page .checkin-options label:has(input:disabled) { color: var(--muted); background: #eeedf0; cursor: default; }
.family-page .checkin-options input[type=radio] { width: 1.12em; height: 1.12em; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: #316659; }
.checkin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.checkin-results { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checkin-results > li { display: grid; gap: .3rem; padding: .85rem 1rem; border-inline-start: .23rem solid #8ea79a; background: #fffdf8; }
.checkin-results button { justify-self: start; }
@media(max-width:35rem) {
  .reading-checkin .checkin-options label { width: 100%; }
}
.checkin-timeline {padding: .75rem 1rem;border: 1px solid var(--rule);border-radius: .75rem}
.checkin-timeline summary {min-height: 44px;align-content: center;font-weight: 700;cursor: pointer}
.checkin-timeline .history-filters {display: flex;flex-wrap: wrap;gap: .75rem}
.history-filters > div {display: grid;gap: .25rem;min-width: 0;max-width: 100%}
.history-filters select {min-height: 44px;max-width: 100%}
.checkin-timeline ol {list-style: none;padding: 0;margin-bottom: 0}
.checkin-timeline li {display: grid;gap: .1rem;padding: .6rem 0;border-top: 1px solid var(--rule)}
.checkin-timeline li time,.checkin-timeline li span {font-size: .95em;color: var(--muted)}
.reading-skills { max-width: 52rem; margin-inline: auto; overflow-wrap: anywhere; }
.reading-skills h1 { margin: 0; font: 750 clamp(1.9rem,5vw,3.1rem)/1.08 var(--display); }
.reading-skills h2 { margin-block: 1.6rem .6rem; }
.reading-skills .skill-reader { margin-block: 1.5rem .4rem; font-weight: 650; color: var(--muted); }
.skill-observations { display: grid; gap: .35rem; margin-block: .7rem; padding: 1rem 1.25rem; background: #fffdf8; border: 1px solid var(--rule); border-inline-start: .25rem solid #618b82; border-radius: .75rem; }
.skill-observations :is(h3,p,h4) { margin: 0; }
.skill-observations.skill-followup { border-inline-start-color: #a47c46; background: #fffbf2; }
.skill-observations .skill-sources { font-weight: 650; }
.skill-observations details { margin-top: .15rem; }
.skill-observations summary { padding-block: .55rem; cursor: pointer; color: var(--ink); }
.skill-observations details[open] summary { border-bottom: 1px solid var(--rule); margin-bottom: .7rem; }
.skill-observations ul, .skills-unseen ul { list-style: none; padding: 0; margin: 0; }
.skill-observations li { display: grid; gap: .12rem; margin-block: .65rem .9rem; }
.skill-observations li :is(time,span:last-child) { color: var(--muted); font-size: .9em; }
.skills-unseen { margin-block: 1.4rem; }
.skills-unseen ul { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.skills-unseen li { padding-inline-start: .65rem; border-inline-start: .15rem solid var(--rule); }
.welcome-resources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.welcome-resources a {
  color: #265566;
  font-size: .95rem;
  text-underline-offset: .22em;
}
.family-welcome > .quick-play { margin-top: 1.35rem; }

.family-page:has(> .sample-missions) {
  max-width: 1080px;
  padding-top: 0;
}
.family-page:has(> .sample-missions) h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.sample-missions {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.family-page .sample-missions button {
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: .55rem .4rem;
  padding: 1.1rem;
}
.sample-missions small {
  justify-self: start;
  padding: .2rem .6rem;
  border-radius: .45rem;
  background: #ede8f5;
  color: #4b3968;
  font-size: .95rem;
  line-height: 1.25;
}
.sample-missions .sample-arrow { grid-area: 1 / 2; color: #655073; }
.sample-missions strong, .sample-missions button > span:not(.sample-arrow) {
  grid-column: 1 / -1;
}
.family-page .sample-missions button:focus-visible {
  outline: 3px solid #493574;
  outline-offset: 2px;
}

@media (max-width: 38.75rem) {
  .welcome-hero {
    min-height: 0;
    background-image: linear-gradient(90deg, #151536f5, #151536b0 65%, #15153652), var(--hangar-art);
  }
  .welcome-actions { gap: .25rem .5rem; }
  .family-page .welcome-actions .primary { padding-inline: .5rem; }
  .family-page .welcome-actions .secondary {
    color: white;
    background: transparent;
    padding-inline: 0;
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: .2em;
  }
  .welcome-resources {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 0 1rem;
    padding-bottom: .4rem;
  }
  .family-page:has(> .sample-missions) { margin-top: 1.25rem; }
  .sample-missions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: .65rem; }
  .family-page .sample-missions button { padding: .8rem; gap: .45rem .25rem; }
  .sample-missions strong { font-size: 1.13rem; }
  .sample-missions small { padding: .17rem .4rem; }
  .sample-missions button > span:not(.sample-arrow) { font-size: .94rem; }
}
.grade-course .course-finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .35rem .5rem;
}
.grade-course .course-finder label {
  grid-column: 1 / -1;
  margin: 0;
}
.grade-course .course-finder input {
  min-width: 0;
  min-height: 44px;
  margin: 0;
  font-weight: 400;
}
.grade-course .course-finder input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.grade-course .course-finder button {
  min-height: 44px;
  margin: 0;
}
.grade-course [hidden] {
  display: none;
}
.grade-course .course-result-count {
  margin: 0;
  color: var(--muted);
}
.grade-course .course-result-area {
  font-weight: 650;
  color: #245452;
}
.family-page:has(> .reader-world) {max-width: 1100px; padding-top: .25rem}
.reader-world {color: #242545}
.world-hero {color: #fff; background: linear-gradient(90deg,#101c3ae6,#14203f80 48%,transparent 78%),url("/reader-world.webp") 65% center / cover,#162441; border-radius: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.3rem,4vw,3rem); min-height: clamp(11rem,23vw,17rem); box-shadow: inset 0 0 0 1px #455779}
.world-hero h1 {color: inherit; font-size: clamp(2.2rem,5vw,4rem); line-height: 1.02; margin: .25rem 0}
.world-hero p {color: inherit; margin: .3rem 0; max-width: 34ch; line-height: 1.4}
.world-reader {font-weight: 700}
.family-page .world-hero button {color:#17284c;background:#ffe4a0;border-color:#ffe4a0;margin:.65rem 0 0}
.world-map {padding: clamp(.9rem,2.25vw,1.8rem) 0 0}
.world-map-bar,.world-tools {display:flex; gap:.75rem; align-items:center; flex-wrap:wrap}
.world-map-bar {justify-content:space-between; margin-bottom:.8rem}
.world-level {display:inline-flex;gap:.5rem;align-items:center}
.world-map-bar h2 {margin:0; font-size:clamp(1.55rem,3vw,2.2rem)}
.family-page .world-map label {margin:0;display:inline-flex;align-items:center;gap:.5rem;color:#4a5268;font-size:.88rem}
.family-page .world-map select {width:auto;min-height:44px;font:inherit;background:#fff;color:#293951;border:1px solid #aebdca;border-radius:.65rem;padding:0 .65rem}
.family-page .world-back {margin:0 0 .45rem;min-height:44px;background:transparent;border:0;padding:0;color:#335569;text-decoration:underline;text-underline-offset:.24em;font-size:.95rem}
.world-stops,.world-lessons {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:.8rem}
@media(min-width:55rem) {.world-stops {grid-template-columns:repeat(3,minmax(0,1fr))}}
.family-page .world-stop,.family-page .world-lesson {margin:0;min-width:0;text-align:left;color:#27324c;background:#fffdf8;border:1px solid #d6d9d6;border-radius:1rem;box-shadow:0 2px 0 #d5dcd9}
.family-page .world-stop {display:grid;grid-template-columns:3.2rem 1fr auto;align-items:center;gap:.75rem;padding:1rem;background:linear-gradient(110deg,hsl(var(--planet-hue) 57% 93%),#fffef9 65%)}
.world-stop strong,.world-lesson strong {display:block;font-family:var(--display);font-size:1.2rem;line-height:1.2}
.world-stop small,.world-lesson span {display:block;color:#42516a;font-size:.93rem;font-weight:400;line-height:1.35;margin-top:.3rem}
.world-stop > span:last-child {font-size:1.45rem;color:#465574}
.world-planet {position:relative; width:2.8rem;aspect-ratio:1;border-radius:50%;background:radial-gradient(at 32% 24%,hsl(var(--planet-hue) 80% 85%),hsl(var(--planet-hue) 63% 61%) 45%,hsl(var(--planet-hue) 35% 38%) 90%);box-shadow:inset -3px -3px 0 #17192a20}
.world-planet::after {content:"";position:absolute;left:-19%;top:34%;width:138%;height:34%;border:3px solid hsl(var(--planet-hue) 49% 54%);border-top-color:transparent;border-radius:50%;transform:rotate(-25deg)}
.world-planet b {position:absolute;inset:0;display:grid;place-items:center;font:700 1.35rem var(--display);color:#5a2146;z-index:1}
.family-page .world-lesson {padding:1rem;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}
.world-lesson small {margin-bottom:.5rem;color:#42536b}
.world-tools {margin-top:1.35rem;border-top:1px solid var(--rule);padding-top:.85rem}
.family-page .world-tools button {margin:0}
.chapter-hero {min-height:10rem;align-items:flex-start;background-image:linear-gradient(90deg,#101c3af2 2%,#132449d9 42%,#182c4773 74%,#182c4712),url("/reader-world.webp")}
.chapter-hero h1 {max-width:17ch}
.chapter-hero progress {display:block;width:min(18rem,90%);height:.6rem;accent-color:#ffda91;margin:.4rem 0}
.chapter-levels {max-width:50rem;list-style:none;padding:0;margin:1.35rem auto}
.chapter-levels li {position:relative;padding-bottom:.7rem}
.chapter-levels li:not(:last-child)::after {position:absolute;content:"";top:calc(100% - .7rem);bottom:0;left:2.15rem;border-left:3px dotted #929bab}
.family-page .chapter-levels button {margin:0;width:100%;display:grid;grid-template-columns:2.4rem 1fr auto;gap:.75rem;align-items:center;text-align:left;padding:.65rem 1rem;min-height:4.75rem;border:1px solid #c8d2d6;border-radius:.9rem;background:#fffcf8;color:#28374d}
.chapter-levels button[data-kind="teach"] {background:#f3f0fa}
.chapter-levels button[data-kind="game"] {background:#fbf2d8}
.chapter-levels button[aria-disabled="true"] {border-style:dashed;cursor:default}
.chapter-levels .chapter-next button {border:2px solid #4d6581}
.level-number {width:2.25rem;height:2.25rem;display:grid;place-items:center;border-radius:50%;background:#e3e9ed;font:700 1.15rem var(--display)}
.chapter-next .level-number {background:#374868;color:white}
.chapter-done .level-number {background:#cee6d9;color:#16482f}
.chapter-levels strong,.chapter-levels small,.level-state {display:block}
.chapter-levels strong {font-family:var(--display);font-size:1.1rem;line-height:1.2}
.chapter-levels small,.level-state {font-size:.86rem;color:#4e5e6b}
.chapter-levels button > span:last-child {font-size:1.3rem}
.chapter-teaching {max-width:46rem;margin:auto}
.chapter-teaching > p {font-weight:700;color:#526077}
.chapter-teaching > h1 {margin:.4rem 0 1rem}
.chapter-model {display:grid;grid-template-columns:auto minmax(0,1fr);gap:1rem;align-items:start}
.chapter-model h2 {font-size:1.4rem}
.chapter-model blockquote {margin:.8rem 0;padding:.65rem .85rem;border-left:4px solid #c79243;background:#fff4d9;border-radius:.25rem;font-weight:700}
.chapter-model .pip-portrait {width:clamp(3rem,9vw,5.25rem)}
body:has(.reader-world) .reader-world-return-header,body:has(.reader-world) .reader-games-header,body:has(.reader-games-page) .reader-games-header,body:has(.reader-games-page) .reader-world-return-header {display:none}
@media(max-width:38rem) {
  .world-hero {background-position:60% center}
  .world-map-bar {align-items:flex-start}
  .world-stops,.world-lessons {gap:.65rem}
  .family-page .world-stop {padding:.75rem;grid-template-columns:2.8rem 1fr auto}
}
:root{--hangar-art:url("/family/media/lunar-post.webp")}