:root{color-scheme:light;--bg:#f1efea;--paper:#fbfaf6;--ink:#252721;--muted:#535850;--line:#d7d8cb;--olive:#414b34;--soft:#e9ede0;--warm:#eaddbf;--dark:#222723;--xs:clamp(.75rem,.71rem + .16vw,.83rem);--sm:clamp(.86rem,.81rem + .2vw,.95rem);--base:clamp(.95rem,.91rem + .2vw,1.04rem);--lg:clamp(1.15rem,1.07rem + .3vw,1.32rem);--xl:clamp(1.95rem,1.72rem + 1.06vw,2.6rem)}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--ink);font:var(--base)/1.5 system-ui,sans-serif}
.frame{width:min(1200px,calc(100% - 2.5rem));margin:auto}
.top{background:var(--dark);color:#f5f1e4;border-bottom:3px solid #a99c73}
.mast,.intro,.section-head,.actions,.track-head,.asset-line{display:flex;align-items:center;justify-content:space-between;gap:.7rem}
.mast{min-height:60px;font-size:var(--sm);letter-spacing:.12em}
.mast strong span{color:#d2caaa;font-weight:500}
.mode,.chip{font-size:var(--xs);border:1px solid #aeb29d;border-radius:.3rem;padding:.12rem .43rem;letter-spacing:.04em;font-weight:700;white-space:nowrap}
.chip{background:var(--soft);color:#38472e}
.intro{padding:1.15rem 0 .6rem;align-items:end}
h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.16}h1{font-size:var(--xl);letter-spacing:-.05em;margin:.15rem 0}h2{font-size:var(--lg)}h3{font-size:var(--base)}
.eyebrow{font-size:var(--xs);font-weight:800;text-transform:uppercase;letter-spacing:.11em;color:var(--olive);margin-bottom:.25rem}
.muted,.helper{color:var(--muted)}.helper{font-size:var(--xs);overflow-wrap:anywhere}.notice{color:var(--muted);font-size:var(--sm);min-height:1.45em;margin:0 0 .6rem}.notice.error{color:#882f24;font-weight:700}
.work-grid{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(0,1fr);gap:1rem;align-items:start}
.panel{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:.55rem;padding:1rem}
.section-head{border-bottom:1px solid var(--line);padding-bottom:.65rem;margin-bottom:.7rem}
.stage{display:grid;place-items:center;height:384px;background:var(--dark);border-radius:.35rem;padding:.55rem;overflow:hidden}
.canvas{position:relative;max-width:100%;max-height:100%;background:#161a16;overflow:hidden;border:1px solid #777e6d}
.canvas video{width:100%;height:100%;display:block}
.placeholder{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.35rem;text-align:center;padding:.6rem;color:#e6e6d7;font-size:var(--sm)}
.placeholder span:first-child{font-size:var(--lg);color:#e3d5a6;font-weight:750;letter-spacing:.13em}
.preview-caption{position:absolute;left:9%;right:9%;bottom:16%;text-align:center;white-space:pre-line;color:white;background:#151813e8;padding:.25em .3em;border-radius:.2rem;font-size:clamp(.6rem,.75rem + .35vw,1.08rem);line-height:1.2;pointer-events:none;overflow-wrap:anywhere}
.preview-caption[data-position=upper]{bottom:auto;top:16%}.preview-caption[data-position=middle]{bottom:auto;top:50%;transform:translateY(-50%)}
.transition-overlay{position:absolute;inset:0;pointer-events:none}
.canvas.drawing{cursor:crosshair;touch-action:none}
.draw-tools{display:flex;flex-direction:column;gap:.5rem}.draw-tools .easy-note{margin:0}
.pens{gap:.45rem}.pens .pen{width:46px;height:46px;border-radius:50%;border:3px solid #c9c3a8;padding:0;cursor:pointer}
.pens .pen[aria-pressed=true]{border-color:#1d2433;box-shadow:0 0 0 3px #ffd740}
.canvas .photo{position:absolute;inset:0;width:100%;height:100%;display:block;transform-origin:50% 50%}
.canvas img.mix-video{width:100%;height:100%;display:block}
.canvas .mix-video{position:absolute;inset:0;pointer-events:none;transform-origin:50% 50%}
.fx-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.start-hint{margin:0 0 .35rem;font-size:var(--sm)}
.effects,.viewing .captions{margin-top:.9rem;border-top:1px solid var(--line);padding-top:.6rem}.effects-head,.captions-head{margin-bottom:.2rem}
.effect-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.5rem;align-items:end}
.add-cell button{width:100%}
.effect-editor{margin-top:.5rem;padding:.5rem;background:#f4f2e8;border-radius:.35rem}
.effect-place{display:flex;align-items:center;gap:.6rem;margin-top:.5rem;flex-wrap:wrap}
.place-grid{display:grid;grid-template-columns:repeat(3,34px);gap:3px}
.place-grid button{min-height:30px;height:30px;padding:0;background:white;color:var(--olive);border-color:#a3a78f;font-size:.95rem}
.place-grid button[aria-pressed=true]{background:#ffe08a;border-color:#855636}
.canvas.placing{cursor:crosshair}
/* Keep the preview in view while scrolling through effects, stickers and captions. */
.preview-dock{position:sticky;top:0;z-index:5;background:var(--paper);padding-bottom:.1rem}
@media(max-height:760px){.stage{height:300px}}
.effect-track{position:relative;height:30px;margin:.1rem .1rem .2rem;background:#efeee4;border:1px dashed #c9cab8;border-radius:.3rem}
.effect-track:empty::after{content:"No effects yet";position:absolute;left:.5rem;top:.3rem;font-size:var(--xs);color:var(--muted)}
.effect-track button{position:absolute;top:2px;min-height:24px;height:24px;padding:0 .25rem;font-size:.9rem;line-height:1;background:#fff8dc;border:1px solid #c8a94a;color:var(--ink);border-radius:.25rem}
.effect-track button[aria-pressed=true]{background:#ffe08a;box-shadow:0 0 0 2px #855636}
.transport{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:.75rem;margin:.65rem 0}
.transport input{width:100%;accent-color:var(--olive)}.transport output,.track-head span{font-size:var(--xs);font-variant-numeric:tabular-nums}
.track{display:flex;gap:.25rem;overflow:auto;margin:.4rem 0 .1rem;padding:.17rem .1rem .3rem}
.track button{min-width:58px;flex-direction:column;align-items:flex-start;text-align:left;background:#e9e9dc;color:#373b2b;border-color:var(--line);font-size:var(--xs);line-height:1.3}
.track button span{display:block;color:#4e5446;font-weight:500}
.track button[aria-pressed=true]{background:#dfdfc6;border-color:#747d5c;box-shadow:inset 0 0 0 1px #747d5c}
label,summary{font-size:var(--sm);font-weight:700}label:not(.check,.button){display:block;margin:.45rem 0 .2rem}
summary{cursor:pointer;min-height:32px}.asset-line{margin-top:.2rem}.asset-line .helper{min-width:0}
.actions{justify-content:flex-start;flex-wrap:wrap}
button,.button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--olive);border-radius:.3rem;background:var(--olive);color:white;font:700 var(--sm)/1.2 system-ui,sans-serif;padding:.48rem .7rem;cursor:pointer}
.secondary{background:transparent;color:var(--olive);border-color:#a3a78f}
button:hover:not(:disabled),.button:hover{filter:brightness(.9);background-color:#e9edde;color:#313d29}
button:disabled{opacity:.53;cursor:not-allowed}
.compact{min-height:34px;padding:.25rem .38rem;white-space:nowrap;font-size:var(--xs)}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.button:has(+ input:focus-visible){outline:2px solid #855636;outline-offset:2px}
input,select{font:inherit;color:inherit}input[type=checkbox]{accent-color:var(--olive)}
select,input[type=number],input[type=file]{display:block;width:100%;min-width:0;min-height:37px;border:1px solid #a2a48f;border-radius:.25rem;background:white;padding:.3rem .42rem;font-size:var(--sm)}
input[type=file]{font-size:var(--xs)}input::file-selector-button{border:0;background:var(--soft);padding:.28rem;border-radius:.22rem;margin-right:.35rem;color:var(--ink);cursor:pointer}
.check{display:flex;align-items:center;gap:.35rem;font-size:var(--xs);font-weight:500;margin:.25rem 0}
.inputs-row,.cue-controls{display:grid;gap:.65rem}.inputs-row{grid-template-columns:repeat(2,minmax(0,1fr));margin:.3rem 0}.cue-controls{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) auto;align-items:end}.cue-controls button{min-height:37px}
.divider{border-top:1px solid var(--line);margin:.75rem 0}
#apply-shot{margin:.5rem 0 .25rem}.captions,.preflight{margin-top:1rem}.cue-text,.dry-actions{margin-top:.6rem}.cue-text{white-space:pre-line;font-size:var(--sm);background:var(--soft);padding:.45rem .55rem;border-radius:.2rem}
audio{width:min(100%,420px);display:block;margin-top:.55rem}
ol{margin:.3rem 0 0;padding-left:1.25rem;font-size:var(--sm)}
#findings li{padding:.22rem 0;overflow-wrap:anywhere}#findings li strong{color:#343e2e}#findings li.block strong{color:#882f24}
#report-placeholder{margin-top:.65rem}
.sr-only,input.file-hidden{position:absolute!important;width:1px;height:1px;min-height:0;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
footer{text-align:center;color:var(--muted);font-size:var(--xs);padding:1.3rem .1rem}
.render-panel{margin-top:1rem}#render-status{margin-top:.55rem}#render-status.error{color:#882f24;font-weight:700}
#render-player{display:block;max-width:100%;max-height:370px;margin-top:.9rem;background:var(--dark);border-radius:.3rem}
#download-mp4{text-decoration:none}#download-mp4:focus-visible{outline:2px solid #855636;outline-offset:2px}
#render-progress{width:5rem;accent-color:var(--olive)}
.style-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.5rem;margin-bottom:.55rem}
#caption-color{height:37px;width:100%;border:1px solid #a2a48f;background:white;border-radius:.25rem}
#edit-title,#edit-cue{display:block;width:100%;min-width:0;min-height:37px;border:1px solid #a2a48f;border-radius:.25rem;background:white;padding:.3rem .42rem;font:inherit;color:inherit}
@media(max-width:790px){.work-grid{grid-template-columns:1fr}.stage{height:320px}}
@media(max-width:520px){.frame{width:calc(100% - 1.25rem)}.mast{font-size:var(--xs);letter-spacing:.06em}.intro{align-items:start;flex-direction:column;padding-top:.85rem}.panel{padding:.7rem}.stage{height:280px}.cue-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.cue-controls>div:first-child{grid-column:1/-1}.cue-controls button{grid-column:1/-1;justify-self:start}}
.rights-hint{margin:.2rem 0 .4rem;padding:.35rem .5rem;border-radius:.3rem;background:#fff3c4;border:1px solid #d9b44a;font-size:var(--sm);font-weight:700;color:#5a4300}
@media(max-width:520px){.mast .mode{white-space:normal;text-align:right;max-width:55%}}
.fx-videos{position:absolute;inset:0;pointer-events:none;overflow:hidden}.canvas .fx-video{position:absolute;display:block;max-width:none;height:auto}
/* ---- Kids mode (Easy mode) ---- */
.mast-right{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}
.mode-switch{min-height:30px;padding:.2rem .6rem;font-size:var(--xs);background:transparent;border-color:#a99c73;color:#f5f1e4}
body.easy-mode .inspector,body.easy-mode #shot-tools,body.easy-mode .effects,body.easy-mode .viewing .captions,
body.easy-mode .preflight,body.easy-mode .render-panel,body.easy-mode .start-hint,body.easy-mode .viewing .section-head{display:none!important}
body.easy-mode .work-grid{grid-template-columns:1fr}
body.easy-mode #play{min-height:52px;min-width:120px;font-size:1.15rem;background:#2f8f4e;color:white;border-color:#2f8f4e}
.easy{margin-top:.8rem}
.easy-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}
.easy-steps .step{flex-direction:column;gap:.15rem;min-height:84px;border-radius:16px;font-size:1rem;border:3px solid transparent;color:#1d2433}
.easy-steps .step b{font-size:2rem;line-height:1}
.easy-steps .step[data-step="1"]{background:#ffd6a5}.easy-steps .step[data-step="2"]{background:#caffbf}
.easy-steps .step[data-step="3"]{background:#bde0fe}.easy-steps .step[data-step="4"]{background:#ffc6ff}
.easy-steps .step[aria-pressed=true]{border-color:#1d2433;box-shadow:0 3px 0 #1d2433}
.easy-panel{margin-top:.7rem;padding:.9rem;border-radius:16px;background:#fffdf5;border:2px dashed #e2d6b0}
.easy-help{font-size:1.15rem;font-weight:700;margin:0 0 .7rem;color:#1d2433}
.easy-buttons{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.easy .big{min-height:58px;padding:.5rem 1.1rem;font-size:1.1rem;border-radius:14px}
.easy .big.go{background:#ff7a00;border-color:#ff7a00;color:white}
.easy .big.soft{background:white;color:#1d2433;border:2px solid #c9c3a8}
.easy .big.warn{color:#8a2b1d}
.big-check{display:flex;align-items:center;gap:.5rem;min-height:58px;padding:.4rem .9rem;border-radius:14px;background:white;border:2px solid #c9c3a8;font-size:1.1rem;font-weight:700;cursor:pointer}
.big-check input{width:28px;height:28px}
.big-check.need{border-color:#e0a400;background:#fff3c4;animation:nudge 1.4s ease-in-out 2}
@keyframes nudge{50%{transform:scale(1.04)}}
@media(max-width:620px){.easy-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
.easy-note{font-size:1rem;color:#4a4f45;margin:.5rem 0 0}
.fun-tiles{display:flex;flex-direction:column;gap:.6rem}
.tile-group h4{margin:.2rem 0 .35rem;font-size:1.05rem}
.tile-group{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-start}.tile-group h4{flex-basis:100%}
.tile{flex-direction:column;width:104px;min-height:96px;padding:.35rem;border-radius:14px;background:white;color:#1d2433;border:2px solid #c9c3a8;font-size:.85rem;gap:.15rem}
.tile b{font-size:2rem;line-height:1.1}.tile img{width:56px;height:56px;object-fit:contain}
.tile:hover:not(:disabled){background:#fff6d6}
.fun-picked{margin-top:.7rem;padding:.6rem;border-radius:14px;background:#eefbe9;border:2px solid #9fd88f}
.choice{display:flex;gap:.35rem;flex-wrap:wrap}.choice button[aria-pressed=true]{background:#1d2433;color:white;border-color:#1d2433}
.big-input{flex:1 1 260px;min-height:58px;font-size:1.2rem;padding:.4rem .7rem;border:2px solid #c9c3a8;border-radius:14px}
.words-where{margin-top:.6rem}
.words-list{display:flex;flex-direction:column;gap:.35rem;margin-top:.6rem}
.word-chip{display:flex;gap:.35rem}.word-chip button{min-height:44px;font-size:1rem;border-radius:10px;background:white;color:#1d2433;border:2px solid #c9c3a8}
.word-chip button:first-child{flex:1;justify-content:flex-start;text-align:left}
.easy .huge{min-height:76px;min-width:min(100%,360px);font-size:1.5rem;border-radius:20px}
.make-problems{font-size:1.05rem;font-weight:700;color:#8a2b1d}
.make-player{display:block;max-width:100%;max-height:360px;margin:.5rem 0;border-radius:12px;background:#222}
/* Kids mode layout: preview on the left, the 4 steps on the right (one column on small screens). */
body.easy-mode .intro .eyebrow,body.easy-mode .intro .muted{display:none}
body.easy-mode .intro{padding:.5rem 0 .3rem}body.easy-mode h1{font-size:1.6rem}
body.easy-mode .viewing{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:1rem;align-items:start}
body.easy-mode .viewing>*{grid-column:1}
body.easy-mode .viewing>#easy{grid-column:2;grid-row:1/span 8;margin-top:0}
body.easy-mode .stage{height:min(48vh,420px)}
@media(max-width:900px){body.easy-mode .viewing{display:block}body.easy-mode .viewing>#easy{margin-top:.8rem}}
body.easy-mode .easy button:hover:not(:disabled){filter:brightness(.95)}
.easy .go,.easy .go:hover:not(:disabled){background:#ff7a00;border-color:#ff7a00;color:white}
.easy .soft:hover:not(:disabled){background:#fff6d6;color:#1d2433}
.easy-steps .step:hover:not(:disabled){color:#1d2433}
.easy-steps .step[data-step="1"]:hover{background:#ffd6a5}.easy-steps .step[data-step="2"]:hover{background:#caffbf}.easy-steps .step[data-step="3"]:hover{background:#bde0fe}.easy-steps .step[data-step="4"]:hover{background:#ffc6ff}
/* Parent PIN dialog for Grown-up mode */
.pin-dialog{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:rgba(20,24,20,.72)}
.pin-box{width:min(92vw,360px);background:#fffdf5;border-radius:20px;padding:1.2rem;text-align:center;box-shadow:0 10px 40px rgba(0,0,0,.4)}
.pin-help{font-size:1.05rem;font-weight:700;margin:.4rem 0 .6rem}
.pin-dots{font-size:2rem;letter-spacing:.4em;min-height:2.6rem;color:#1d2433}
.pin-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin:.6rem 0}
.pin-pad button{min-height:62px;font-size:1.6rem;border-radius:14px;background:white;color:#1d2433;border:2px solid #c9c3a8}
.pin-pad button.ok{background:#2f8f4e;color:white;border-color:#2f8f4e}
.pin-pad button:hover:not(:disabled){filter:brightness(.95);background-color:#fff6d6;color:#1d2433}
.pin-pad button.ok:hover:not(:disabled){background:#2f8f4e;color:white}
.pin-msg{min-height:1.4em;font-weight:700;color:#8a2b1d}
/* Kids mode: selected item bar under the timeline; tiles in tabs that scroll in their own box. */
.fun-picked{margin-top:.5rem;padding:.5rem .6rem;border-radius:14px;background:#eefbe9;border:2px solid #9fd88f}
body:not(.easy-mode) .fun-picked{display:none!important}
.picked-name{display:flex;align-items:center;gap:.5rem;margin-bottom:.35rem}.picked-name p{margin:0;font-size:1.05rem;font-weight:800}
.picked-icon{display:grid;place-items:center;width:44px;height:44px;font-size:1.8rem;border-radius:10px;background:white;border:2px solid #c9c3a8}
.picked-icon img{width:38px;height:38px;object-fit:contain}
.fun-picked .big{min-height:46px;font-size:1rem;padding:.3rem .8rem}
.fun-tabs{display:flex;gap:.35rem;flex-wrap:wrap;margin-bottom:.45rem}
.fun-tabs button{min-height:44px;border-radius:12px;font-size:1rem;background:white;color:#1d2433;border:2px solid #c9c3a8}
.fun-tabs button[aria-selected=true]{background:#1d2433;color:white;border-color:#1d2433}
.fun-tiles{max-height:calc(100vh - 330px);min-height:150px;overflow-y:auto;padding:.2rem;border-radius:12px;background:#fffaf0}
body.easy-mode .easy-panel{padding:.7rem}
body.easy-mode .easy-steps .step{min-height:70px}.easy-steps .step b{font-size:1.7rem}
body.easy-mode .stage{height:min(40vh,360px)}
body.easy-mode .track button{min-height:40px;padding:.2rem .4rem}
body.easy-mode .track-head{margin-top:.2rem}
body.easy-mode .intro{padding:.3rem 0 .1rem}body.easy-mode .notice{margin-bottom:.3rem}
/* Kids mode fits one laptop screen (1366x768) without page scrolling. */
body.easy-mode footer,body.easy-mode h1{display:none}
body.easy-mode .intro{min-height:0;padding:.25rem 0 .1rem}body.easy-mode .intro .actions button,body.easy-mode .intro .actions .button{min-height:34px;padding:.2rem .6rem}
body.easy-mode .panel.viewing{padding:.6rem}
body.easy-mode .stage{height:clamp(200px,calc(100vh - 430px),420px)}
body.easy-mode .fun-picked{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.35rem .5rem}
body.easy-mode .fun-picked .picked-name{margin:0;flex:1 1 180px}body.easy-mode .fun-picked .easy-buttons{gap:.35rem}
body.easy-mode .fun-picked .big{min-height:40px}
body.easy-mode .transport{margin:.35rem 0}body.easy-mode #play{min-height:44px}
body.easy-mode .fun-tiles{max-height:calc(100vh - 300px)}
body.easy-mode .fun-picked .picked-name p{font-size:.95rem}body.easy-mode .picked-icon{width:38px;height:38px;font-size:1.5rem}
body.easy-mode .words-list{max-height:calc(100vh - 420px);overflow-y:auto}
body.easy-mode .fun-picked.easy{margin-top:.5rem}
body.easy-mode .fun-tiles{max-height:calc(100vh - 385px)}
.easy .choice button[aria-pressed=true],.easy .choice button[aria-pressed=true]:hover{background:#1d2433;color:white;border-color:#1d2433}
body.easy-mode .viewing:has(#fun-picked:not([hidden])) .stage{height:clamp(190px,calc(100vh - 470px),400px)}
/* Kids mode backgrounds: CSS only, chosen with the 🎨 Background button. The drifting ones move with transform only,
   so the GPU does it and the older laptop stays cool. */
:root{
  --bg-mist:radial-gradient(30% 22% at 25% 30%,#dff7ef 0%,transparent 72%),radial-gradient(34% 24% at 68% 28%,#ffe3d3 0%,transparent 72%),
    radial-gradient(36% 26% at 40% 75%,#ece3ff 0%,transparent 72%),radial-gradient(26% 20% at 85% 70%,#dcecff 0%,transparent 72%),#fbfdff;
  --bg-sky:radial-gradient(34% 26% at 22% 28%,#cfe6ff 0%,transparent 72%),radial-gradient(32% 24% at 72% 22%,#d9f1ff 0%,transparent 72%),
    radial-gradient(38% 28% at 45% 72%,#c7ddff 0%,transparent 72%),radial-gradient(26% 20% at 86% 74%,#e3f7ff 0%,transparent 72%),
    radial-gradient(24% 18% at 12% 82%,#ffffff 0%,transparent 70%),#eef6ff;
  --bg-petal:radial-gradient(38% 30% at 18% 22%,#ffd6e8 0%,transparent 70%),radial-gradient(34% 28% at 72% 18%,#d9e8ff 0%,transparent 70%),
    radial-gradient(40% 32% at 55% 70%,#e8dcff 0%,transparent 70%),radial-gradient(30% 26% at 12% 80%,#d8f5ec 0%,transparent 70%),
    radial-gradient(28% 24% at 90% 78%,#ffe6d6 0%,transparent 70%),#fdfcff;
  --bg-watercolour:radial-gradient(32% 28% at 20% 25%,#ffc9e0 0%,transparent 68%),radial-gradient(30% 26% at 78% 22%,#c9e0ff 0%,transparent 68%),
    radial-gradient(36% 30% at 50% 60%,#dccbff 0%,transparent 68%),radial-gradient(28% 24% at 15% 85%,#c6f0e1 0%,transparent 68%),
    radial-gradient(30% 26% at 88% 82%,#ffdcc4 0%,transparent 68%),#fdfbff}
body.easy-mode{background:#fbfdff}
body.easy-mode::before{content:"";position:fixed;inset:-20%;z-index:-1;pointer-events:none;will-change:transform;
  background:var(--bg-mist);animation:mist-drift 40s ease-in-out infinite alternate}
body.easy-mode[data-bg=sky]{background:#eef6ff}
body.easy-mode[data-bg=sky]::before{background:var(--bg-sky)}
body.easy-mode[data-bg=petal]{background:#fdfcff}
body.easy-mode[data-bg=petal]::before{background:var(--bg-petal);animation:none}
body.easy-mode[data-bg=watercolour]{background:#fdfbff}
body.easy-mode[data-bg=watercolour]::before{background:var(--bg-watercolour);animation-duration:30s}
@keyframes mist-drift{from{transform:translate(0,0)}to{transform:translate(6%,3%)}}
@media(prefers-reduced-motion:reduce){body.easy-mode::before{animation:none!important}}
/* The 🎨 Background button sits top left in Kids mode; the swatches float over the page, so nothing moves or scrolls. */
.bg-choose{position:relative;display:none}
body.easy-mode .bg-choose{display:block}
body.easy-mode .bg-button{min-height:34px;padding:.2rem .7rem;border-radius:999px;background:white;color:#1d2433;border:2px solid #c9c3a8;font-size:.95rem}
body.easy-mode .bg-button:hover:not(:disabled){background:#fff6d6;color:#1d2433}
.bg-picker{position:absolute;top:calc(100% + .4rem);left:0;z-index:30;padding:.7rem .8rem;border-radius:18px;background:#fffdfb;
  border:2px solid #d8d2e6;box-shadow:0 10px 30px rgba(60,50,110,.22)}
.bg-picker[hidden]{display:none}
.bg-picker p{margin:0 0 .5rem;font-weight:700;font-size:1.05rem;color:#1d2433}
.bg-swatches{display:flex;gap:.7rem}
.bg-swatches button{flex-direction:column;gap:.35rem;width:118px;min-height:0;padding:.4rem .2rem;border-radius:16px;background:transparent;
  border:2px solid transparent;color:#1d2433;font-size:.9rem;font-weight:700}
.bg-swatches button:hover:not(:disabled){background:#f4f0ff;color:#1d2433;filter:none}
.bg-swatches button[aria-pressed=true]{border-color:#1d2433;background:#f4f0ff}
.swatch{display:block;width:84px;height:84px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #cfc8e0}
.swatch.bg-mist{background:var(--bg-mist)}.swatch.bg-sky{background:var(--bg-sky)}.swatch.bg-petal{background:var(--bg-petal)}.swatch.bg-watercolour{background:var(--bg-watercolour)}
body.easy-mode .panel{background:rgba(255,255,255,.8);border-color:rgba(200,205,220,.7)}
body.easy-mode .easy-panel{background:rgba(255,255,255,.72);border-color:#d8d2e6}
body.easy-mode .fun-tiles{background:rgba(255,255,255,.55)}
body.easy-mode .effect-track{background:rgba(255,255,255,.7)}
/* The PIN pad over Kids mode: a light mist veil instead of the dark one, the box stays solid. */
body.easy-mode .pin-dialog{background:rgba(236,227,255,.55)}
body.easy-mode .pin-box{background:#fffdfb;box-shadow:0 10px 40px rgba(60,50,110,.28)}
/* Kids mode step 3: size, colour and writing style of the words. */
.preview-caption.sample{opacity:.6}
.words-look{margin-top:.5rem;align-items:center}
.size-a{min-width:52px;padding:0 .4rem;font-weight:800}
.colour-dots{gap:.4rem}
.colour-dots button{width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;border:3px solid #1d2433;box-shadow:inset 0 0 0 2px white}
.colour-dots button:hover:not(:disabled){filter:brightness(.95)}
.colour-dots button[aria-pressed=true]{outline:3px solid #ff7a00;outline-offset:2px}
body.easy-mode .words-look .big{min-height:44px}
/* Kids mode writing styles: bundled OFL fonts (fonts/), never loaded from the internet. */
@font-face{font-family:"SE round";src:url(fonts/FredokaOne-Regular.ttf) format("truetype");font-display:block}
.font-round{font-family:"SE round",sans-serif}
@font-face{font-family:"SE comic";src:url(fonts/ComicNeue-Bold.ttf) format("truetype");font-display:block}
.font-comic{font-family:"SE comic",sans-serif}
@font-face{font-family:"SE bold";src:url(fonts/Bangers-Regular.ttf) format("truetype");font-display:block}
.font-bold{font-family:"SE bold",sans-serif}
@font-face{font-family:"SE handwriting";src:url(fonts/PatrickHand-Regular.ttf) format("truetype");font-display:block}
.font-handwriting{font-family:"SE handwriting",sans-serif}
@font-face{font-family:"SE game";src:url(fonts/PressStart2P-Regular.ttf) format("truetype");font-display:block}
.font-game{font-family:"SE game",sans-serif}
@font-face{font-family:"SE classic";src:url(fonts/Andika-Bold.ttf) format("truetype");font-display:block}
.font-classic{font-family:"SE classic",sans-serif}
.font-tiles{gap:.35rem;flex-wrap:nowrap}
.font-tile{flex:1 1 0;min-width:0;flex-direction:column;gap:0;min-height:54px;padding:.2rem .1rem;border-radius:12px;background:white;color:#1d2433;border:2px solid #c9c3a8}
.font-tile b{font-size:1.25rem;font-weight:400;line-height:1.15}.font-tile .font-game{font-size:.85rem;line-height:1.6}
.font-tile span{font-size:.72rem;font-weight:700}
.easy .font-tile:hover:not(:disabled){background:#fff6d6;color:#1d2433}
.font-tile[aria-pressed=true],.easy .font-tile[aria-pressed=true]:hover{background:#1d2433;color:white;border-color:#1d2433}
.words-look .font-tiles{flex:1 1 100%;margin-top:.2rem}
body.easy-mode [data-panel="3"] .words-where{margin-top:.4rem}
body.easy-mode [data-panel="3"] .words-where .big{min-height:44px}
body.easy-mode [data-panel="3"] .words-look{margin-top:.35rem}
body.easy-mode [data-panel="3"] .big-input,body.easy-mode #words-add{min-height:50px}
body.easy-mode [data-panel="3"] .easy-help{margin:0 0 .4rem}
body.easy-mode .words-list{max-height:max(48px,calc(100vh - 640px))}
/* Timing of the selected item (Kids mode) and coloured blocks on the timeline. */
.fun-timing{display:flex;flex-direction:column;gap:.3rem;flex:1 1 100%}
.timing-row{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.timing-row[hidden]{display:none}
.timing-row .easy-note{min-width:6.6rem;font-weight:700;font-size:.9rem;margin:0}
.timing-row .choice{gap:.3rem}
body.easy-mode .fun-picked .timing-row .big{min-height:36px;padding:.15rem .6rem;font-size:.95rem}
.timing-row .big[aria-pressed=true],.easy .timing-row .big[aria-pressed=true]:hover{background:#1d2433;color:white;border-color:#1d2433}
.effect-track .fx-block{top:3px;min-width:22px;height:22px;min-height:22px;padding:0 .2rem;justify-content:flex-start;overflow:hidden;
  white-space:nowrap;font-size:.8rem;border-radius:6px;opacity:.9;border:1px solid rgba(0,0,0,.25)}
.effect-track button.fx-effect{background:#ffe9a3}.effect-track button.fx-real{background:#e3d4ff}.effect-track button.fx-sticker{background:#c9f2c4}
.effect-track button.fx-sound{background:#cfe8ff}.effect-track button.fx-words{background:#ffd3ea}
.effect-track .fx-block[aria-pressed=true]{opacity:1;box-shadow:0 0 0 2px #1d2433;z-index:2}
/* Kids mode: a slimmer timeline, so the selected item's timing buttons fit the laptop screen. */
body.easy-mode .track-head{display:none}
body.easy-mode .track button{min-height:30px;flex-direction:row;align-items:center;gap:.5rem;padding:.1rem .45rem}
body.easy-mode .fun-picked{row-gap:.3rem}
body.easy-mode .fun-picked .easy-buttons .big{min-height:38px}
body.easy-mode .viewing:has(#fun-picked:not([hidden])) .stage{height:clamp(180px,calc(100vh - 500px),400px)}
.undo-bar{display:flex;gap:.35rem}.undo-bar button{min-height:36px;padding:.2rem .6rem;font-size:var(--sm)}
body.easy-mode .undo-bar button{min-height:52px;font-size:1.05rem;border-radius:14px;background:white;color:#1d2433;border:2px solid #c9c3a8}
body.easy-mode .undo-bar button:disabled{opacity:.45}
/* Step 1 holds more buttons (cut, speed, backwards), so its buttons are a little shorter to fit the kids' laptop. */
body.easy-mode [data-panel="1"] .easy-help{margin:0 0 .5rem}
body.easy-mode [data-panel="1"] .easy-buttons{gap:.45rem}
body.easy-mode [data-panel="1"] .big,body.easy-mode [data-panel="1"] .big-check{min-height:48px;padding-top:.3rem;padding-bottom:.3rem}
body.easy-mode #easy-speed{gap:.35rem}
body.easy-mode #easy-speed .big{min-height:44px;padding:.25rem .8rem}
