@font-face{font-family:Shire;src:url('/tools/english/full-stop-gem-quest/fonts/EduQLDBeginner.ttf') format('truetype');font-display:swap}
:root{--ink:#203a32;--forest:#27523f;--sage:#e6eee5;--cream:#fbf8f0;--wood:#674b35;--gold:#c79b49;--edge:#d7ddd5;font-family:Shire,'Comic Sans MS',system-ui,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;padding:8px 14px;border:1px solid var(--edge);border-radius:9px;background:white;color:var(--ink);font-size:18px;line-height:1.15;font-weight:600}button:hover:not(:disabled){background:#eef3ec}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #d28a1e;outline-offset:3px}button.primary{background:var(--forest);border-color:var(--forest);color:white;box-shadow:0 3px 0 #17382a}button.primary:hover{background:#34654f}.quiet{background:transparent;border-color:transparent}.text-button{min-height:32px;background:transparent;border:0;padding:2px;color:#37664c;text-decoration:underline;text-underline-offset:4px;font-size:inherit}.topbar{height:96px;padding:18px 32px;display:flex;align-items:center;gap:35px;border-bottom:1px solid var(--edge);background:#fffdf8}.brand{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:12px;font-size:22px;font-weight:700;white-space:nowrap}.brand small{display:block;font-family:system-ui,sans-serif;font-weight:600;font-size:9px;letter-spacing:2.5px;margin-top:5px;color:#708272}.brand-mark{background:var(--forest);color:#e4c780;width:46px;height:46px;display:grid;place-items:center;border-radius:50%;font-size:32px}.heading{border-left:1px solid var(--edge);padding-left:30px;min-width:0}.heading h1{font-size:26px;margin:0}.heading span{display:block;max-width:440px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:16px;color:#6b7a6f}.top-actions{display:flex;gap:8px;margin-left:auto;white-space:nowrap}.welcome{min-height:calc(100dvh - 96px);max-width:1450px;margin:auto;display:grid;grid-template-columns:1fr 1.05fr;align-items:center;gap:70px;padding:65px 65px 85px}.eyebrow{font-family:system-ui,sans-serif;letter-spacing:2px;font-size:11px;font-weight:700;color:#687b67}.welcome h2{font-size:64px;line-height:1.04;letter-spacing:-1px;margin:24px 0}.intro{font-size:23px;line-height:1.5;color:#586959}.big{font-size:23px;min-height:62px;padding:14px 24px;margin-top:20px}.big span{padding-left:24px}.formats{font-size:17px;color:#6f796d;margin:18px 0 7px}.formats span{font-size:15px}.ppt-tip{font-size:17px;margin:6px 0}.local-note{display:flex;gap:12px;margin:27px 0 12px;align-items:center;font-size:17px;line-height:1.5}.local-note>span{background:#e3eddd;color:#387043;border-radius:50%;padding:4px 10px}.local-note p{margin:0}.welcome-art{background:#eaf5ff;aspect-ratio:1.3;max-height:460px;padding:38px 30px;border:10px solid #86674a;border-top-color:#a0805d;border-bottom-color:#5c422d;border-radius:14px;box-shadow:0 24px 55px #3828101b;transform:rotate(-2deg);position:relative}.sample-label{font-family:system-ui;font-size:10px;letter-spacing:2px;color:#3479b8;font-weight:bold}.sample-title{font-family:'Comic Sans MS',Shire,sans-serif;font-size:32px;margin-top:30px;font-weight:bold}.sample-line{display:flex;justify-content:space-between;margin:60px 0 20px;border-top:3px solid #24364b}.sample-line span{position:relative;padding-top:22px;font-size:32px}.sample-line span:before{content:'';position:absolute;top:-11px;left:50%;width:3px;height:20px;background:#24364b}.sample-answer{color:#cf3c49;transform:rotate(4deg)}.sample-answer svg{position:absolute;left:-22px;top:3px;width:100px;height:75px;fill:none;stroke:#cf3c49;stroke-width:3}.sample-bubble{border-radius:16px;background:white;padding:15px;font-size:25px;text-align:center;margin-top:35px}.sample-pencil{position:absolute;right:-22px;bottom:20px;width:62px;height:62px;display:grid;place-items:center;background:#f6c86b;border:5px solid #fff9ec;border-radius:50%;font-size:40px;transform:rotate(12deg)}
[hidden]{display:none!important}#viewer{height:calc(100dvh - 96px);display:flex;flex-direction:column;overflow:hidden}.lesson-bar{display:flex;align-items:center;gap:12px;padding:5px 20px;border-bottom:1px solid var(--edge);min-height:51px;background:#f2f3eb}#lesson-title{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:35vw}#save-state{margin-left:auto;font-size:14px;color:#62735e}#workspace{display:flex;flex:1;min-height:0;background:#e2e7df}#stage-area{flex:1;min-width:0;display:flex;justify-content:center;align-items:center;padding:18px;overflow:hidden;position:relative}#paper{position:relative;flex:none;background:white;box-shadow:0 4px 22px #1f382327;overflow:hidden}#slide-canvas,#ink-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}#ink-canvas{touch-action:none;cursor:crosshair;user-select:none}#ink-canvas[data-tool=pointer]{cursor:default}#ink-canvas[data-tool=eraser]{cursor:cell}#page-busy{position:absolute;inset:0;background:#ffffffb8;display:grid;place-items:center;font-size:23px;pointer-events:none}#slide-list{width:220px;overflow:auto;border-right:1px solid var(--edge);padding:12px;background:#f8faf5}#slide-list button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;font-size:16px;margin-bottom:7px}#slide-list button[aria-current=true]{border:2px solid var(--forest);background:#dceada}#slide-list .slide-dot{width:7px;height:7px;border-radius:50%;background:#c17836;margin-left:auto}.toolbar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;padding:9px 14px;background:#fffdf8;border-top:1px solid var(--edge)}.tools,.palette,.edit-tools{display:flex;align-items:center;gap:5px}.tools button{font-size:17px}.tools button span{font-size:22px;margin-right:3px}.tools button[aria-pressed=true]{color:white;background:var(--forest);border-color:var(--forest)}.palette{padding:0 10px;border-left:1px solid var(--edge);border-right:1px solid var(--edge);gap:8px}.swatch{width:28px;height:28px;min-height:28px;padding:0;background:var(--swatch)!important;border:3px solid #fff;border-radius:50%;outline:1px solid #bfc6bc}.swatch[aria-pressed=true]{outline:3px solid #243e34;outline-offset:2px}.size-control{font-size:16px;display:flex;gap:7px;align-items:center}#pen-size{width:70px;accent-color:var(--forest)}#size-value{min-width:18px}.edit-tools button{font-size:16px}.player-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 20px 10px;background:#f7f6ef;border-top:1px solid var(--edge);min-height:56px}#tool-hint{font-size:14px;color:#60735f;max-width:30%}.page-controls{display:flex;align-items:center;gap:9px;white-space:nowrap}.page-controls button{font-family:system-ui;font-size:24px;width:48px;padding:4px}.page-controls input{width:49px;text-align:center;border:1px solid var(--edge);border-radius:6px;height:38px;font-size:18px;appearance:textfield}.page-controls input::-webkit-inner-spin-button{appearance:none}.footer-actions{display:flex;gap:3px}.footer-actions button{font-size:15px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:fullscreen .topbar,.focus-mode .topbar{display:none}:fullscreen #viewer,.focus-mode #viewer{height:100dvh}:fullscreen .lesson-bar,.focus-mode .lesson-bar{padding-block:1px}dialog{border:1px solid var(--edge);border-radius:18px;padding:34px;max-width:670px;width:calc(100% - 32px);color:var(--ink);background:#fffdf8;max-height:90dvh;box-shadow:0 24px 80px #10241c50;font-size:19px;line-height:1.5}dialog::backdrop{background:#182f26aa}dialog h2{font-size:34px;line-height:1.15;margin:0 30px 20px 0}dialog h3{font-size:23px;margin:18px 0 5px}dialog p{margin:12px 0}dialog li{margin:14px 0}dialog ol{padding-left:24px}.dialog-close{position:absolute;right:16px;top:12px;background:transparent;border:0;font-size:28px}.help-note{background:#ecf2e7;padding:4px 20px 10px;border-radius:12px}.shortcuts,.small{font-size:16px;color:#68776c}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.toast{position:fixed;bottom:130px;left:50%;transform:translateX(-50%);padding:14px 22px;max-width:min(90vw,660px);background:#213f32;color:white;border-radius:12px;z-index:40;font-size:19px;box-shadow:0 8px 20px #0002}.loading{position:fixed;inset:0;background:#fcfaf2e8;z-index:50;display:grid;place-items:center}.loading>div{display:flex;align-items:center;flex-direction:column;gap:18px;font-size:25px}.loading small{font-size:17px;color:#68776c}.spinner{width:38px;height:38px;border:3px solid #d8dfd2;border-top-color:var(--forest);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#drop-cover{position:fixed;inset:12px;border:4px dashed #6b8d68;background:#edf5e7f5;z-index:55;display:grid;place-items:center;font-size:36px;padding:30px;text-align:center;border-radius:20px}@media(max-width:1100px){.topbar{padding-inline:18px;gap:18px}.brand{font-size:18px}.heading{padding-left:18px}.toolbar{gap:8px}.tools button{font-size:16px;padding:7px 9px}.welcome{padding:45px 35px;gap:30px}.welcome h2{font-size:52px}.sample-title{font-size:27px}.sample-line{margin-top:45px}.sample-line span{font-size:26px}.welcome-art{padding:25px 20px}.player-footer{padding-inline:12px}.edit-tools button{padding:7px 9px}#tool-hint{display:none}}@media(max-width:760px){.topbar{height:80px}.brand>span:last-child{display:none}.heading{border:0;padding:0}.heading h1{font-size:24px}.heading span{display:none}.top-actions{gap:0}.top-actions button{font-size:16px;padding:8px}.welcome{grid-template-columns:1fr;padding:32px 25px;min-height:calc(100dvh - 80px)}.welcome h2{font-size:48px}.intro{font-size:21px}.welcome-art{max-width:500px;width:100%;justify-self:center;min-height:310px}.sample-line{margin-top:45px}.sample-bubble{margin-top:25px}.big{font-size:21px}.local-note{font-size:16px}#viewer{height:calc(100dvh - 80px)}#save-state{display:none}#fullscreen-button{margin-left:auto}#lesson-title{max-width:40vw}.lesson-bar{padding-inline:8px}#stage-area{padding:6px}#slide-list{width:145px}.toolbar{padding:7px 5px;gap:10px}.palette{padding:3px 7px}.swatch{width:25px;height:25px;min-height:25px}.size-control{font-size:14px}#pen-size{width:48px}.tools button{font-size:14px;min-height:40px}.tools button span{font-size:20px;margin:0}.edit-tools button{font-size:14px;min-height:38px}.player-footer{flex-wrap:wrap;justify-content:center;padding:5px;gap:4px}.footer-actions button{font-size:14px}.page-controls{gap:6px}.page-controls button{min-height:38px;height:38px;width:40px}.page-controls input{height:32px}.footer-actions{margin-left:auto}.toast{bottom:170px;font-size:17px}dialog{font-size:17px;padding:26px}.shortcuts{display:none}}@media(max-height:560px) and (min-width:700px){.topbar{height:65px}.brand small{display:none}#viewer{height:calc(100dvh - 65px)}.lesson-bar{min-height:42px}.toolbar{padding:4px}.player-footer{padding:3px;min-height:44px}.toolbar button{min-height:36px}.lesson-bar button{min-height:34px}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

/* Fullscreen is a full-viewport canvas; controls overlay it, never shrink it. */
.presentation-only,#show-tools{display:none}
html.presentation-mode,html.presentation-mode body{overflow:hidden}
.presentation-mode .topbar,.presentation-mode .lesson-bar,.presentation-mode .player-footer,.presentation-mode #slide-list{display:none!important}
.presentation-mode #viewer{position:fixed;inset:0;width:100%;height:100dvh;background:#101712}
.presentation-mode #workspace{width:100%;height:100%;flex:1;background:#101712}
.presentation-mode #stage-area{padding:0;width:100%;height:100%}
.presentation-mode #paper{box-shadow:none}
.presentation-mode .toolbar{position:fixed;z-index:20;left:50%;bottom:max(8px,env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100vw - 16px);padding:6px 8px;gap:8px;border:1px solid #d7ddd5;border-radius:14px;background:#fffdf8f5;box-shadow:0 3px 22px #0004;justify-content:center}
.presentation-mode .toolbar button{min-height:42px;padding:6px 10px}
.presentation-mode .tools button{font-size:0;width:42px;padding:6px}
.presentation-mode .tools button span{font-size:25px;margin:0}
.presentation-mode .palette{padding:0 8px;gap:7px}
.presentation-mode .toolbar .swatch{width:27px;height:27px;min-height:27px;padding:0}
.presentation-mode .size-control{font-size:14px;gap:4px}
.presentation-mode #pen-size{width:55px}
.presentation-mode .edit-tools button{font-size:15px;padding:6px 8px}
.presentation-mode .page-controls{gap:5px;border-left:1px solid var(--edge);padding-left:8px}
.presentation-mode .page-controls button{width:42px;padding:3px;font-size:24px}
.presentation-mode .page-controls input{width:43px;height:35px}
.presentation-mode .presentation-only{display:block;width:42px;font-family:system-ui;font-size:23px;padding:5px}
.presentation-mode.tools-hidden .toolbar{display:none}
.presentation-mode.tools-hidden #show-tools{display:block;position:fixed;z-index:21;right:max(10px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));background:#fffdf8e8;box-shadow:0 2px 14px #0003;font-size:16px}
.presentation-mode .toast{bottom:85px}
@media(max-width:700px){.presentation-mode .toolbar{gap:6px;padding:5px}.presentation-mode .size-control{display:none}.presentation-mode .edit-tools button{font-size:13px;padding:5px}.presentation-mode .tools{gap:3px}.presentation-mode .tools button{width:38px}.presentation-mode .palette{gap:5px;padding:0 5px}.presentation-mode .toolbar .swatch{width:23px;height:23px;min-height:23px}}

/* Keep white ink visible against the light drawing toolbar. */
.swatch-white{box-shadow:inset 0 0 0 1px #7b8580}
