:root{color-scheme:dark;--bg:#19162b;--panel:#25203b;--panel-soft:#2d2646;--line:#4c4266;--text:#fbf8ff;--muted:#c3b8d5;--accent:#bba0ff;--mint:#86efc6;--gold:#ffc978;--error:#ffb1ae;--radius:22px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 10% 0,#362747 0,transparent 46%),var(--bg);color:var(--text);line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--mint);outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.2;letter-spacing:-.025em}h1{font-size:clamp(2.2rem,4vw,3.6rem);font-weight:730;margin-bottom:1rem}h2{font-size:1.6rem;margin-bottom:1rem}h3{font-size:1.15rem;margin-bottom:.8rem}p{margin-bottom:1rem}.muted{color:var(--muted)}small,.small-note{font-size:.875rem}.accent{color:var(--accent)}.hidden,[hidden]{display:none!important}.full{width:100%}.stack{display:grid;gap:1.1rem}.loading{padding:3rem;color:var(--muted);text-align:center}.eyebrow,.step-label{display:block;font-size:.75rem;font-weight:750;letter-spacing:.13em;color:var(--accent);margin-bottom:.85rem}.step-label{color:var(--mint)}.lede{font-size:1.0625rem;color:var(--muted);max-width:640px}.topbar{max-width:1380px;margin:auto;min-height:106px;padding:1.3rem 3rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid #ffffff12}.brand{display:flex;gap:.7rem;align-items:center;line-height:1;color:var(--text);font-size:1.3rem;font-weight:800;letter-spacing:-.04em}.brand:hover{text-decoration:none}.brand-symbol{color:var(--accent);font-size:2.8rem;font-weight:400}.brand-light{font-weight:400;color:var(--accent)}.brand small{display:block;font-size:.5625rem;font-weight:600;letter-spacing:.15em;margin-top:.55rem;color:var(--muted)}.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:1rem;flex-wrap:wrap}.teacher-name{color:var(--muted);font-size:.9rem}.pill{font-size:.8125rem;border:1px solid var(--line);border-radius:99px;padding:.4rem .9rem;background:#ffffff05;white-space:nowrap}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.7rem 1.2rem;gap:.5rem;border:1px solid #695a88;border-radius:12px;color:var(--text);background:var(--panel-soft);font-size:.9375rem;font-weight:650;text-align:center;text-decoration:none;line-height:1.35;transition:background .15s,transform .15s}.btn:hover{background:#3a3156;text-decoration:none}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--accent);border-color:var(--accent);color:#211634;box-shadow:0 5px 20px #09041722}.btn.primary:hover{background:#cbb7ff}.btn.subtle{background:transparent;border-color:transparent;color:var(--muted)}.btn.subtle:hover{color:var(--text);background:#ffffff08}.btn.small{min-height:42px;font-size:.875rem;padding:.5rem .85rem}.actions{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.centered{justify-content:center}.panel{padding:2rem;background:linear-gradient(145deg,#2d2644 0,var(--panel) 60%);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 16px 48px #09061718}.field{display:flex;flex-direction:column;gap:.45rem;min-width:0;margin-bottom:1.2rem}.field-label{font-size:.875rem;font-weight:650;color:#e5ddec}.field small{line-height:1.5}input:not([type=checkbox],[type=radio],[type=file]),textarea,select{width:100%;min-width:0;background:#1b172b;border:1px solid #625574;border-radius:10px;color:var(--text);padding:.8rem 1rem;min-height:48px}input::placeholder,textarea::placeholder{color:#9f92b1}textarea{resize:vertical}input[type=file]{max-width:100%;font-size:.875rem}input[type=checkbox],input[type=radio]{width:19px;height:19px;accent-color:var(--accent);flex-shrink:0}select{padding-right:2.3rem}details{border-top:1px solid var(--line);padding-top:1rem;margin-top:1rem}summary{cursor:pointer;font-size:.9375rem;font-weight:600;color:#e1d6ef;padding:.2rem 0;margin-bottom:.8rem}details:not([open]) summary{margin-bottom:0}.alert{padding:1rem 1.2rem;background:#bba0ff0d;border:1px solid #8f75bd;border-radius:12px;font-size:.9375rem}.alert p{margin:.4rem 0 .8rem}.alert small{display:block;margin-top:.8rem;color:var(--muted)}.alert.error{background:#e2757510;border-color:#c76d75;color:var(--error)}.alert.compact{font-size:.875rem;padding:.8rem 1rem}.nakdan{margin:1rem 0 1.4rem;border-color:#bda27070;background:#ffc97808}.nakdan strong{color:var(--gold)}#app{max-width:1380px;margin:0 auto;padding:0 3rem 3rem;min-height:calc(100dvh - 200px)}#app:focus{outline:none}#footer{max-width:1380px;margin:auto;padding:1.5rem 3rem 2rem;color:#a99abd;font-size:.75rem;text-align:center}#footer span{padding:0 .6rem}.auth-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:7%;align-items:center;padding:5rem 0 3rem;max-width:1140px;margin:auto}.auth-story h1{font-size:clamp(3.1rem,5.5vw,5.8rem);line-height:1.08;letter-spacing:-.055em;margin:1.4rem 0 1.8rem}.auth-story .lede{max-width:430px;line-height:1.9}.feature-row{display:flex;flex-direction:column;gap:.8rem;color:var(--muted);font-size:.9rem;margin-top:2rem}.feature-row span:first-letter{color:var(--mint)}.auth-card{padding:2.5rem}.auth-card h2{font-size:1.8rem}.quiet-link{display:inline-block;font-size:.875rem;margin-top:1rem}.studio-heading{padding:3.5rem 0 1.6rem;display:flex;gap:2rem;align-items:flex-start;justify-content:space-between}.studio-heading h1{font-size:clamp(2rem,3.25vw,3rem)}.studio-heading .lede{margin-bottom:0}.tehillim-link{border:1px solid var(--line);color:var(--muted);font-size:.8125rem;padding:.65rem 1rem;border-radius:10px;white-space:nowrap;margin-top:.2rem}.tabs{display:flex;gap:1.8rem;border-bottom:1px solid var(--line);margin-bottom:2rem}.tab{background:transparent;border:0;border-bottom:3px solid transparent;padding:.8rem .2rem 1rem;color:var(--muted);font-size:.9375rem;font-weight:650;white-space:nowrap}.tab.active{border-color:var(--accent);color:var(--text)}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:1.75rem;align-items:start}.editor-form{display:flex;flex-direction:column;gap:1.5rem;min-width:0}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.section-heading h2{max-width:28rem}.section-heading .btn{flex-shrink:0}.editor-form textarea{font-family:"SBL Hebrew","Ezra SIL","Times New Roman",serif;font-size:1.5rem;line-height:1.9;min-height:260px;padding:1.1rem}.under-text{display:flex;justify-content:space-between;gap:.75rem;font-size:.75rem;margin-top:-.5rem;flex-wrap:wrap}.under-text .muted{font-size:.75rem}.source-details .field{margin-top:1rem}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.activity-toggles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem .9rem;border-top:1px solid var(--line);padding:1.2rem 0}.check-label{display:flex;align-items:center;gap:.6rem;font-size:.875rem;color:var(--muted);line-height:1.4;cursor:pointer}.focus-panel{margin-top:1rem}.word-chips{display:flex;flex-wrap:wrap;gap:.55rem;justify-content:flex-end}.word-chip{padding:.15rem .7rem;border:1px solid #8a72b8;border-radius:9px;background:#bba0ff13;color:#e3d4ff;font-size:1.5rem;font-family:"SBL Hebrew","Ezra SIL","Times New Roman",serif}.word-picker{font-family:"SBL Hebrew","Ezra SIL","Times New Roman",serif;font-size:1.4rem;line-height:2.2;background:#1b172b;border:1px solid var(--line);border-radius:10px;padding:1rem}.pick-word,.read-word{display:inline;font:inherit;line-height:inherit;background:transparent;border:1px solid transparent;border-radius:7px;padding:0 .15rem;color:inherit;vertical-align:baseline}.pick-word:hover,.read-word:hover{border-color:var(--accent);background:#bba0ff15}.pick-word.selected{border-color:#9d83d3;background:#bba0ff20;color:#e1d0ff}.piece-row{display:grid;grid-template-columns:1fr 1.5fr;gap:.5rem 1rem;padding:1rem 0;border-bottom:1px solid #ffffff0d;align-items:center}.piece-row .muted,.piece-row .check-label{grid-column:1/-1}.piece-row input.pieces-input{font-family:"SBL Hebrew","Ezra SIL","Times New Roman",serif;font-size:1.4rem}.hebrew{font-family:"SBL Hebrew","Ezra SIL","Times New Roman",serif;font-weight:400}.small-hebrew{font-size:1.6rem}.phrase-preview{font-size:1.7rem;background:#171323;border-radius:10px;padding:1rem;line-height:1.8}.empty-note{color:var(--muted);padding:1.2rem;background:#ffffff04;border-radius:10px;font-size:.9rem}.share-section .field{max-width:380px}.share-section>.actions{margin-bottom:1rem}.plan-panel{position:sticky;top:1.5rem;padding:1.6rem;overflow:hidden}.plan-panel h2{font-size:1.35rem;overflow-wrap:anywhere}.plan-star{font-size:4rem;color:var(--accent);padding:1rem 0}.plan-panel .muted{font-size:.875rem;line-height:1.7}.plan-stats{display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0 1.4rem}.plan-stats span{font-size:.75rem;border:1px solid var(--line);padding:.15rem .5rem;border-radius:5px;color:var(--mint)}.journey-list{list-style:none;padding:0;margin:0 0 1.5rem}.journey-list li{display:flex;position:relative;gap:.8rem;padding:0 0 1.2rem}.journey-list li:not(:last-child):before{content:"";position:absolute;left:13px;top:28px;bottom:0;border-left:1px solid #65547e}.journey-dot{display:flex;align-items:center;justify-content:center;border:1px solid #7c669d;border-radius:50%;height:28px;width:28px;flex-shrink:0;font-size:.75rem;color:var(--accent);background:#2f2643}.journey-list strong{font-size:.875rem;font-weight:600}.journey-list small{display:block;font-size:.75rem;color:#ad9bc4}.plan-ghosts{display:grid;gap:1.1rem}.plan-ghosts span{height:32px;border-radius:9px;background:#ffffff06}.plan-ghosts span:nth-child(2){width:80%}.plan-ghosts span:nth-child(3){width:60%}.lesson-library{display:grid;gap:1.5rem}.assignment-list{margin:1rem 0 1.5rem;border-top:1px solid var(--line)}.assignment-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 0;border-bottom:1px solid var(--line)}.assignment-row small{display:block}.empty-library{text-align:center;padding:4rem}.link-dialog,.copy-dialog{max-width:620px;width:calc(100% - 2rem)}dialog{border:1px solid #7a6598;background:var(--panel);color:var(--text);border-radius:22px;padding:2rem;box-shadow:0 20px 100px #0007}dialog::backdrop{background:#0d0918c9;backdrop-filter:blur(5px)}dialog h2{font-size:1.7rem}.link-input{font-size:.875rem;margin:.6rem 0 1.5rem}.copy-dialog textarea{width:100%;margin-bottom:1rem}.toast{position:fixed;z-index:100;bottom:1.4rem;left:50%;transform:translateX(-50%);max-width:calc(100% - 2rem);width:max-content;padding:.9rem 1.3rem;border:1px solid #a88ecc;background:#382c4d;border-radius:12px;box-shadow:0 8px 32px #0006;font-size:.9375rem;text-align:center}.save-indicator{font-size:.75rem;color:var(--mint);max-width:300px;line-height:1.6;text-align:right}.save-warning{color:var(--gold)}.text-button{border:0;padding:0;color:var(--gold);font-size:inherit;background:transparent;text-decoration:underline}.player-layout{max-width:1000px;margin:2.5rem auto}.player-heading{text-align:center}.player-heading h1{font-size:clamp(1.5rem,3vw,2.4rem);overflow-wrap:anywhere}.native-progress{display:block;width:100%;height:8px;border:0;border-radius:99px;overflow:hidden;background:#3a2e51;margin:1.5rem 0}.native-progress::-webkit-progress-bar{background:#3a2e51}.native-progress::-webkit-progress-value{background:var(--mint);border-radius:99px}.native-progress::-moz-progress-bar{background:var(--mint)}.game-trail{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center;margin:1rem 0 1.5rem}.trail-button{border:1px solid #645275;color:var(--muted);border-radius:99px;background:transparent;padding:.3rem .65rem;font-size:.75rem;min-height:32px}.trail-button:hover{border-color:var(--mint);color:var(--mint)}.game-card{text-align:center;padding:2.5rem 2.5rem 2rem;min-height:460px}.game-icon{display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:18px;background:#bba0ff15;border:1px solid #8c71b35c;color:var(--gold);font-size:1.9rem;margin:0 auto 1rem}.game-card .eyebrow{margin-bottom:.65rem}.game-card h2{font-size:clamp(1.7rem,3.7vw,2.5rem);margin-bottom:.8rem}.game-description{color:var(--muted);max-width:640px;margin:0 auto 1.5rem;font-size:1rem}.game-next{display:flex;margin:1.5rem auto .5rem;min-width:220px;min-height:52px}.game-bottom{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;margin-top:1rem}.game-bottom>:first-child{justify-self:start}.game-bottom>:last-child{justify-self:end}.welcome-card{max-width:680px;margin:3rem auto;padding:2.5rem;text-align:center}.welcome-star{font-size:5rem;color:var(--gold);line-height:1.3;margin:.6rem 0 1rem}.welcome-card h1{font-size:2.5rem;overflow-wrap:anywhere}.welcome-facts{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap;font-size:.875rem;color:var(--mint);margin:1.7rem 0}.welcome-form{max-width:500px;margin:auto;text-align:left}.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin:1.5rem 0}.mode-card{display:grid;grid-template-columns:auto 1fr;gap:.3rem .65rem;border:1px solid var(--line);border-radius:12px;padding:1rem;cursor:pointer}.mode-card:has(input:checked){background:#bba0ff10;border-color:var(--accent)}.mode-card strong{font-size:.9rem;align-self:center}.mode-card small{grid-column:1/-1;font-size:.8125rem}.reading-text{font-family:"SBL Hebrew","Ezra SIL","Times New Roman",serif;font-size:clamp(1.8rem,3vw,2.2rem);line-height:2.1;text-align:right;background:#1b172b;border:1px solid #655477;border-radius:16px;padding:1.4rem 1.6rem;white-space:pre-wrap;overflow-wrap:anywhere}.read-word.flagged{background:#86efc623;border-color:#86efc6;color:#c6ffe9}.marker-hint{font-size:.8125rem;color:var(--mint)}.reading-clock{font-variant-numeric:tabular-nums;font-size:.875rem;color:var(--muted);margin:1.4rem 0}.partner-check{justify-content:center;margin-top:1.2rem}.hero-word{font-size:clamp(3rem,8vw,5.5rem);line-height:1.7;padding:1.2rem 1rem;margin:.5rem auto 1.2rem;overflow-wrap:anywhere;min-height:140px}.phrase-word{font-size:clamp(2.2rem,4vw,3.2rem);line-height:1.8}.remember-placeholder{font-size:2.5rem;color:#8a719e;padding:2rem 1rem;min-height:140px;letter-spacing:.25em}.choice-grid{display:flex;justify-content:center;flex-wrap:wrap;gap:1rem;margin:1rem 0 1.5rem}.choice{font-size:clamp(2rem,5vw,3rem);min-width:140px;min-height:94px;background:#382d50;border:2px solid #7e649a;border-radius:16px;color:var(--text);padding:.4rem 1.3rem;line-height:1.6}.choice:hover{background:#45365f;border-color:var(--accent)}.choice.correct{background:#86efc61a;border-color:var(--mint);color:var(--mint);opacity:1}.choice.wrong,.word-tile.wrong{border-color:var(--error);background:#ffb1ae0d}.feedback{font-size:.9375rem;color:var(--gold);margin:1.2rem 0}.feedback.good{color:var(--mint)}.hint-word{font-size:2.4rem;margin:1rem 0;color:var(--gold)}.assembled{display:flex;justify-content:center;flex-wrap:wrap;gap:.35rem;min-height:100px;margin:1.5rem auto;line-height:1.6}.piece-slot{font-size:2.4rem;min-width:55px;min-height:72px;display:flex;align-items:center;justify-content:center;border:1px dashed #9980b1;border-radius:10px;color:#b09ac2;padding:.1rem .5rem}.piece-slot.filled{border:1px solid #86efc66e;background:#86efc60a;color:var(--mint)}.tile-bank{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center;margin:1rem 0 2rem}.word-tile{font-size:2.2rem;line-height:1.8;padding:.15rem 1rem;color:var(--text);border:2px solid #82669c;border-radius:12px;background:#3a2d51;min-height:64px;min-width:65px}.word-tile:disabled{opacity:.2}.rung-count{font-size:.875rem;color:var(--mint)}.ladder-line{display:flex;flex-wrap:wrap;justify-content:center;gap:.3em;font-size:clamp(2.2rem,4.5vw,3.7rem);line-height:1.9;margin:2rem 0;min-height:160px;align-content:center}.new-word{color:var(--mint)}.review-pieces{display:flex;justify-content:center;gap:.6rem;flex-wrap:wrap;font-size:2.1rem}.review-pieces span{padding:.2rem .6rem;border:1px solid var(--line);border-radius:10px}.review-pieces .current-piece{color:var(--mint);border-color:var(--mint)}.source-image{display:block;width:100%;max-height:650px;object-fit:contain;background:white;border-radius:12px;margin:1rem 0}.source-caption{font-size:.875rem;color:var(--muted);margin:1rem 0}.source-dialog{max-width:95vw;width:1000px}.source-dialog img{display:block;max-width:100%;max-height:80dvh;object-fit:contain;margin:0 auto 1rem}.treasure-chest{font-size:6rem;line-height:1.7;margin:.5rem auto}.treasure-chest.opened{animation:treasure-pop .45s ease-out}.completion-seal{font-size:5rem;line-height:1.4;color:var(--gold)}.certificate-title{font-size:1.3rem;color:var(--mint);font-weight:650;margin:1rem 0}.completion-facts{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;color:var(--muted);font-size:.875rem}.results-details{max-width:640px;margin:2rem auto}.certificate-dialog{max-width:700px;width:calc(100% - 1.5rem);max-height:95dvh;overflow:auto;text-align:center}.certificate-image{display:block;max-height:68dvh;max-width:100%;margin:1rem auto;object-fit:contain}.error-page{max-width:700px;margin:4rem auto;text-align:center}.error-page .btn{margin:.4rem}.save-indicator .text-button{display:inline}.link-dialog p{color:var(--muted)}
@keyframes treasure-pop{from{transform:scale(.7)}to{transform:scale(1)}}
@media(min-width:1600px){.topbar,#app,#footer{max-width:1480px}.editor-layout{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:1100px){.topbar{padding:1.3rem 2rem}#app{padding:0 2rem 2rem}.editor-layout{grid-template-columns:minmax(0,1fr) 280px;gap:1rem}.panel{padding:1.5rem}.plan-panel{padding:1.3rem}.studio-heading{padding-top:2.5rem}.studio-heading .tehillim-link{display:none}.two-fields{grid-template-columns:1fr;gap:0}.auth-layout{gap:4%}.auth-card{padding:1.7rem}.activity-toggles{grid-template-columns:1fr 1fr}.section-heading{flex-wrap:wrap}.game-card{padding:2rem}}
@media(max-width:800px){.editor-layout{grid-template-columns:1fr}.plan-panel{position:static;grid-row:1}.plan-panel .journey-list{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin-bottom:1rem}.journey-list li{padding:0;gap:.5rem}.journey-list li:before{display:none}.journey-dot{height:24px;width:24px}.journey-list strong{font-size:.8125rem}.journey-list small{font-size:.6875rem}.plan-panel .small-note{margin-bottom:0}.plan-panel .eyebrow{margin-bottom:.4rem}.plan-panel h2{margin-bottom:.5rem}.plan-stats{margin:.5rem 0 1rem}.plan-star{padding:0;font-size:2.5rem}.plan-ghosts{display:none}.auth-layout{grid-template-columns:1fr;max-width:520px;padding-top:2.5rem;gap:2rem}.auth-story h1{font-size:3.5rem}.auth-story .feature-row{display:none}.auth-story .lede{max-width:none}.two-fields{grid-template-columns:1fr 1fr;gap:1rem}.game-card{min-height:400px}.player-layout{margin-top:1.5rem}.auth-card{padding:2rem}}
@media(max-width:540px){.topbar{min-height:87px;padding:1rem;align-items:center}.brand{font-size:1.1rem;gap:.45rem}.brand-symbol{font-size:2.3rem}.brand small{font-size:.5rem}.topbar-actions{gap:.4rem;max-width:50%}.topbar .pill{font-size:.6875rem;padding:.3rem .6rem}.topbar .teacher-name{display:none}.topbar .btn{font-size:.75rem;min-height:36px;padding:.4rem .6rem}#app{padding:0 1rem 2rem}#footer{padding:1rem;font-size:.6875rem}#footer span{padding:0 .2rem}.studio-heading{padding-top:2rem}.studio-heading h1{font-size:2.25rem;line-height:1.14}.studio-heading .lede{font-size:.9375rem}.tabs{margin-bottom:1.2rem;gap:1.5rem}.tab{padding-bottom:.8rem}.panel{padding:1.25rem;border-radius:17px}.editor-form{gap:1rem}.section-heading{gap:.3rem}.section-heading h2{font-size:1.4rem}.section-heading>.btn{margin-bottom:1rem}.editor-form textarea{font-size:1.4rem;min-height:230px}.field{margin-bottom:1rem}.two-fields{grid-template-columns:1fr;gap:0}.activity-toggles{gap:.75rem}.activity-toggles .check-label{font-size:.8125rem}.word-chip{font-size:1.4rem}.word-picker{font-size:1.3rem;padding:.6rem}.piece-row{grid-template-columns:1fr}.piece-row .muted,.piece-row .check-label{grid-column:auto}.piece-row strong{text-align:right}.plan-panel .journey-list{grid-template-columns:1fr 1fr;gap:.7rem .5rem}.journey-list strong{font-size:.75rem}.journey-list small{font-size:.6875rem}.plan-panel h2{font-size:1.2rem}.plan-panel .alert{margin-bottom:.6rem}.share-section .actions>.btn{width:100%}.auth-layout{padding-top:2rem}.auth-story h1{font-size:3.3rem;margin:1rem 0}.auth-story .lede{font-size:1rem}.auth-card{padding:1.5rem}.auth-card h2{font-size:1.6rem}.auth-story .eyebrow{font-size:.6875rem}.welcome-card{margin:1.5rem auto;padding:1.5rem 1.2rem}.welcome-card h1{font-size:2rem}.welcome-star{font-size:4rem}.welcome-facts{font-size:.8125rem;gap:.5rem}.mode-options{grid-template-columns:1fr}.mode-card{grid-template-columns:auto 1fr;padding:.9rem}.mode-card small{grid-column:2}.player-heading h1{font-size:1.5rem}.player-heading .eyebrow{font-size:.625rem}.game-card{padding:1.5rem 1rem;min-height:390px}.game-card h2{font-size:1.7rem}.game-description{font-size:.9375rem}.game-icon{width:48px;height:48px;font-size:1.5rem}.game-card .eyebrow{font-size:.6875rem}.reading-text{font-size:1.7rem;line-height:2.05;padding:.8rem .65rem;border-radius:11px}.marker-hint{font-size:.75rem}.hero-word{font-size:3.2rem;min-height:120px;padding:1rem .2rem}.phrase-word{font-size:2.2rem}.choice-grid{gap:.6rem}.choice{font-size:1.9rem;min-width:0;flex:1;min-height:80px;padding:.4rem .5rem;overflow-wrap:anywhere}.game-next{width:100%;min-width:0}.game-bottom{grid-template-columns:1fr 1fr;gap:.4rem}.game-bottom>.small-note{display:none}.game-bottom>:last-child{grid-column:2}.game-bottom .btn{font-size:.75rem;padding:.45rem .65rem;min-height:40px}.save-indicator{font-size:.625rem;max-width:160px}.game-trail{gap:.3rem}.trail-button{font-size:.625rem;padding:.2rem .5rem;min-height:30px}.tile-bank{gap:.5rem}.word-tile{font-size:1.8rem;min-width:50px;padding:.1rem .65rem}.piece-slot{font-size:1.9rem;min-width:42px;min-height:60px}.ladder-line{font-size:2rem;min-height:140px;margin:1rem 0}.rung-count{font-size:.8125rem}.assignment-row{align-items:flex-start;flex-wrap:wrap}.library-card h2{font-size:1.4rem}.assignment-row .actions{gap:.2rem}.link-dialog,.copy-dialog{padding:1.3rem}.link-dialog h2{font-size:1.5rem}.link-dialog .actions>.btn{flex:1}.completion-facts{font-size:.8125rem;gap:.4rem}.certificate-dialog{padding:1rem}.certificate-dialog h2{font-size:1.3rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body{background:white;color:black}.topbar,#footer,.game-trail,.game-bottom,.btn{display:none}.panel{background:white;border:0;box-shadow:none;color:black}}
/* Put authoring first on small screens; the journey remains beside it on desktop. */
@media(max-width:800px){.plan-panel{grid-row:auto}.journey-list strong,.plan-panel .journey-list strong{font-size:.875rem}.journey-list small,.plan-panel .journey-list small{font-size:.8125rem}}
@media(max-width:540px){.trail-button{font-size:.875rem;min-height:36px}.game-bottom .btn{font-size:.875rem}.marker-hint{font-size:.875rem}.activity-toggles .check-label{font-size:.875rem}}
@media(max-width:360px){.topbar-actions{min-width:0}.topbar .learner-pill{white-space:normal;text-align:center;max-width:100%;line-height:1.35}}
