:root{--paper:#fcfcf8;--mist:#efefeb;--line:#e5e5e1;--stone:#c9c9c4;--ash:#9b9b98;--slate:#696966;--coal:#363632;--night:#262624;--ink:#181818;--accent:#34ef5a;
--sans:'Inter Tight',system-ui,sans-serif;--mono:'JetBrains Mono',ui-monospace,monospace}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 var(--sans)}
a{color:var(--ink)}a:hover{color:var(--slate)}
button,input,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.dock :focus-visible{outline-color:var(--accent)}
[hidden]{display:none!important}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.top{border-bottom:1px solid var(--line);padding:0 32px}
.top-in{max-width:1376px;margin:0 auto;min-height:72px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;padding:8px 0}
.logo{display:flex;align-items:center;text-decoration:none}
.logo img{display:block;height:34px;width:auto}
.logo .on-dark,body.dark .logo .on-light{display:none}
body.dark .logo .on-dark{display:block}
nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
nav a{font-weight:600;text-decoration:none;padding:12px 0}
.pill,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:9999px;border:2px solid var(--ink);background:var(--ink);color:var(--paper);font-weight:700;text-decoration:none;cursor:pointer}
nav a.pill{padding:0 20px;color:var(--paper)}
.pill:hover,.btn:hover{color:var(--paper);background:var(--coal)}
.btn.big{min-height:60px;padding:0 32px;font-size:18px}
.btn.ghost{background:transparent;color:var(--ink)}.btn.ghost:hover{background:var(--mist);color:var(--ink)}
.btn.go{background:var(--accent);color:var(--ink);border-color:var(--accent)}.btn.go:hover{background:#5cf47b;color:var(--ink)}
.link{background:none;border:0;padding:0;min-height:44px;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer}

#app{outline:0}
.wrap{max-width:920px;margin:0 auto;padding:40px 16px 96px;display:flex;flex-direction:column;gap:28px}
.wrap.wide{max-width:1100px}
h1{margin:0;font-weight:800;font-size:clamp(34px,5vw,56px);line-height:1;letter-spacing:-.03em}
h1.hero{font-size:clamp(48px,7.4vw,108px);line-height:.92;letter-spacing:-.035em}
h1.hero em{font-style:normal;background:var(--accent);border-radius:12px;padding:0 .12em}
h2{margin:0;font-weight:800;font-size:clamp(24px,3vw,32px);line-height:1.1;letter-spacing:-.02em}
p{margin:0}
.eyebrow{font-weight:700;font-size:14px;letter-spacing:.06em;text-transform:uppercase;color:var(--coal)}
.lead{font-size:clamp(18px,2vw,21px);max-width:62ch}
.small{font-size:14px;color:var(--coal)}
.tags{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.tags li{border:1px solid var(--ink);border-radius:9999px;padding:6px 14px;font-weight:600;font-size:14px}

.paste{background:var(--mist);border-radius:16px;padding:clamp(20px,3vw,32px);display:flex;flex-direction:column;gap:14px}
.paste label{font-weight:700;font-size:clamp(20px,2.4vw,26px);line-height:1.2}
.paste textarea{width:100%;min-height:240px;resize:vertical;border:1px solid var(--slate);border-radius:8px;background:var(--paper);padding:16px;font-size:17px;line-height:1.5}
.paste .row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.err{color:#8a1f00;font-weight:600}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;list-style:none;margin:0;padding:0}
.steps li{border:2px solid var(--ink);border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:8px}
.steps b{font-size:20px;line-height:1.2}
.steps .n{font-family:var(--mono);font-weight:700;width:36px;height:36px;border-radius:9999px;background:var(--accent);display:inline-flex;align-items:center;justify-content:center}

.cards{display:flex;flex-direction:column;gap:16px;list-style:none;margin:0;padding:0}
.card{border:2px solid var(--ink);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:14px}
.card .meta{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;font-size:14px;color:var(--coal)}
.badge{border-radius:9999px;padding:2px 12px;font-weight:700;font-size:13px;background:var(--mist);color:var(--ink)}
.badge.done{background:var(--accent)}
.card h3{margin:0;font-family:var(--mono);font-weight:700;font-size:clamp(18px,2.2vw,22px);line-height:1.35;overflow-wrap:anywhere}
.card .acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.card .acts .link{margin-left:auto}
.note{background:var(--mist);border-radius:12px;padding:16px 20px;font-size:15px}

/* leave words out */
.pick{font-family:var(--mono);font-weight:500;font-size:clamp(17px,1.9vw,22px);line-height:2.3;overflow-wrap:anywhere;display:flex;flex-direction:column;gap:18px}
.pick button{font:inherit;background:var(--paper);border:1px solid var(--stone);border-radius:8px;padding:2px 8px;min-height:36px;cursor:pointer;line-height:1.5}
.pick button:hover{border-color:var(--ink)}
.pick button[aria-pressed=true]{background:var(--mist);color:var(--slate);border:1px dashed var(--slate);text-decoration:underline dotted;text-underline-offset:5px}
.bar2{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--stone);padding-top:20px}

/* game */
.game{max-width:920px;margin:0 auto;padding:24px 16px 120px;display:flex;flex-direction:column;gap:28px}
.dock{position:sticky;top:12px;z-index:5;display:flex;flex-direction:column;gap:12px}
.panel{background:var(--ink);color:var(--paper);border-radius:16px;padding:16px;box-shadow:0 12px 32px rgba(24,24,24,.22);display:flex;flex-direction:column;gap:12px}
.guess{display:flex;flex-wrap:wrap;gap:10px}
.guess input{flex:1 1 260px;min-width:0;min-height:56px;background:var(--night);border:1px solid var(--slate);border-radius:12px;color:var(--paper);font-family:var(--mono);font-size:17px;padding:0 16px}
.guess input::placeholder{color:var(--ash)}
.guess input.fix{border:2px solid var(--accent);background:#20301f}
.guess .btn{min-height:56px;padding:0 28px;font-size:17px}
.prog{display:flex;flex-direction:column;gap:8px}
.prog .nums{display:flex;justify-content:space-between;font-size:14px;font-weight:600;color:var(--line)}
.track{height:10px;border-radius:9999px;background:var(--coal);overflow:hidden}.track i{display:block;height:100%;border-radius:9999px;background:var(--accent);transition:width .25s}
.msg{font-size:15px;color:var(--line);min-height:1.5em}
.panel.light{background:var(--paper);color:var(--ink);border:2px solid var(--ink)}
.wp-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wp-head b{font-size:15px}
.x{background:transparent;border:0;width:44px;height:44px;border-radius:9999px;cursor:pointer;font-size:24px;line-height:1}
.x:hover{background:var(--mist)}
.tiles{display:flex;flex-wrap:wrap;gap:8px}
.tile{font-family:var(--mono);font-weight:700;font-size:26px;width:52px;height:60px;border-radius:10px;border:2px solid var(--ink);background:var(--mist);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.tile:hover{background:var(--accent)}
.tile.on{background:var(--paper);border-color:var(--stone);cursor:default}
.tile.fixed{border-style:dashed;background:var(--paper);cursor:default}
.passage{font-family:var(--mono);font-weight:500;font-size:clamp(17px,1.9vw,24px);line-height:2;display:flex;flex-direction:column;gap:22px;padding:8px 8px 0;overflow-wrap:anywhere}
/* a hidden word: asterisks on a grey block. It had a black line under it until chunks got outlines, which that line hid. */
.passage .hid{font:inherit;letter-spacing:.08em;color:var(--ink);background:var(--mist);border:0;border-radius:6px;padding:0 6px;line-height:1.5;cursor:pointer}
.passage .hid:hover{background:var(--line)}
.passage .hid[aria-expanded=true]{background:var(--accent)}
@keyframes stroke{from{background-size:0% 100%}to{background-size:100% 100%}}
@keyframes fade{to{background:transparent}}
/* a word the learner chose to leave out: grey, nothing more. The dotted line now means "fills a gap in a chunk". */
.passage .out{color:var(--slate)}
.under{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;justify-content:space-between;font-size:14px;color:var(--coal)}
.done-acts{display:flex;flex-wrap:wrap;gap:10px}
.done-title{font-weight:800;font-size:clamp(26px,3.4vw,38px);line-height:1.05;letter-spacing:-.02em}
#confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:20}

@media (max-width:700px){
  .top{padding:0 16px}.top-in{min-height:56px}.logo img{height:28px}
  nav{flex-wrap:nowrap;gap:12px}nav a:not(.pill){font-size:14px;white-space:nowrap}.pill{min-height:44px}nav a.pill{padding:0 14px;font-size:14px;white-space:nowrap}
  .game{padding:16px 12px 260px}
  .dock{position:fixed;left:0;right:0;top:auto;bottom:var(--kb,0px);padding:8px;gap:8px;background:linear-gradient(transparent,var(--paper) 24px)}
  .panel{padding:12px;border-radius:14px;gap:8px}
  .panel.main{flex-direction:column-reverse}
  .guess{flex-wrap:nowrap}.guess input{flex:1 1 0;min-height:52px}.guess .btn{min-height:52px;padding:0 18px}
  .prog{flex-direction:row;align-items:center;gap:10px}.prog .nums{order:2;white-space:nowrap;gap:6px}.prog .track{flex:1;height:8px}
  .msg{font-size:14px;min-height:0}.msg:empty{display:none}
  .tile{width:44px;height:52px;font-size:22px}
  .card .acts .link{margin-left:0}
}
@media (prefers-reduced-motion:reduce){.passage .new.in{animation:none}.track i{transition:none}}

/* access code */
.gate{background:var(--mist);border-radius:16px;padding:clamp(20px,3vw,32px);display:flex;flex-direction:column;gap:12px}
.gate label{font-weight:700;font-size:18px}
.gate .row{display:flex;flex-wrap:wrap;gap:12px}
.gate input{flex:1 1 240px;min-width:0;min-height:60px;border:2px solid var(--ink);border-radius:12px;background:var(--paper);padding:0 18px;font-family:var(--mono);font-size:19px}
.or{font-weight:700;color:var(--slate)}

/* study notes */
.tool{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;border-radius:9999px;font-weight:700;font-size:15px;border:2px solid var(--stone);background:var(--mist);color:var(--coal)}
button.tool{cursor:pointer}
.tool.ready{background:var(--accent);border-color:var(--ink);color:var(--ink)}
.tool .count{background:var(--ink);color:var(--paper);border-radius:9999px;padding:1px 9px;font-size:13px}
.tool-link{font-weight:600}
.narrow-only{display:none}
.notes{max-height:min(70vh,640px);overflow:auto}
.facts{display:flex;flex-wrap:wrap;gap:8px 28px;margin:0}
.facts dt{font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--coal)}
.facts dd{margin:0;font-weight:700;font-size:18px}
.btn.wide{width:100%}
.chunks{margin:0;padding:0 0 0 2em;display:flex;flex-direction:column;gap:12px}
.chunks li{padding-left:4px}
.chunks li::marker{font-family:var(--mono);font-weight:700;color:var(--slate)}
.chunks .chunk{font-family:var(--mono);font-weight:500;font-size:17px;background:color-mix(in srgb,var(--accent) 32%,var(--paper));border-radius:6px;padding:3px 8px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.chunks .chunk b{font-weight:700;background:var(--accent);border-radius:4px;padding:0 2px}
.chunks .small{display:block;margin-top:4px;font-family:var(--mono)}
@media (max-width:700px){
  .wide-only{display:none}.narrow-only{display:inline}
  .tool{min-height:44px;padding:0 12px}
  .tool.busy{font-size:13px}
  .notes{max-height:55vh}
}

.glue{white-space:nowrap}

/* practice (dark screens) */
.wp-practise{border-top:1px solid var(--stone);padding-top:12px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.wp-practise .small{flex:1 1 220px}
.btn[disabled]{opacity:.5;cursor:default}
body.dark{background:var(--ink)}
body.dark .top{background:var(--ink);border-color:var(--coal)}
body.dark nav a:not(.pill){color:var(--paper)}
body.dark nav a.pill{background:var(--paper);color:var(--ink);border-color:var(--paper)}
.onink{color:var(--stone)}.btn.onink{color:var(--paper);border-color:var(--paper)}.btn.onink:hover{background:var(--coal);color:var(--paper)}
.pwrap{max-width:820px;margin:0 auto;padding:32px 16px 96px;display:flex;flex-direction:column;gap:24px}
.stages{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.stages li{border:1px solid var(--ash);color:var(--line);border-radius:9999px;padding:8px 16px;font-weight:600;font-size:14px}
.stages li.now{background:var(--paper);color:var(--ink);border-color:var(--paper);font-weight:700}
.pcard{background:var(--paper);border-radius:16px;padding:clamp(24px,4vw,40px);display:flex;flex-direction:column;gap:22px}
.pcard h1{font-size:clamp(30px,4.4vw,44px)}
.practising{font-size:15px;color:var(--coal);display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.gp{font-family:var(--mono);font-weight:700;color:var(--ink);background:color-mix(in srgb,var(--accent) 32%,var(--paper));border-radius:6px;padding:2px 8px;white-space:pre-wrap}
.gp b{background:var(--accent);border-radius:4px;padding:0 4px;letter-spacing:.08em}
.gp .helper{opacity:.5}
.psent{background:var(--mist);border-radius:12px;padding:24px;font-family:var(--mono);font-weight:500;font-size:clamp(18px,2.2vw,24px);line-height:1.9}
.blank{display:inline-block;width:5.5ch;border-bottom:3px solid var(--ink);vertical-align:baseline;height:1em}
.fill{background:var(--accent);border-radius:6px;padding:0 6px}
.opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.opt{min-height:60px;border:2px solid var(--ink);border-radius:12px;background:var(--paper);font-family:var(--mono);font-weight:700;font-size:19px;padding:8px 16px;cursor:pointer;text-align:left}
.opt:hover:not([disabled]){background:var(--mist)}
.opt.wrong{border:2px dashed var(--slate);color:var(--slate);cursor:default}
.opt.right{background:var(--accent)}
.opt[disabled]:not(.wrong):not(.right){opacity:.5;cursor:default}
.pnote{display:flex;flex-direction:column;gap:10px}
.pnote:empty{display:none}
.pnote .yes{font-weight:800;font-size:22px}
.pnote .no{font-weight:700}
.tried{font-family:var(--mono);border:2px dashed var(--slate);border-radius:6px;padding:0 6px}

/* stage 2 */
.stages li.ticked{background:var(--accent);border-color:var(--accent);padding:0}
.stages li.ticked a{display:block;padding:8px 16px;color:var(--ink);font-weight:700;text-decoration:none}
.gapstars{background:var(--accent);border-radius:6px;padding:0 6px;letter-spacing:.08em;font-weight:700}
.recall{display:flex;flex-direction:column;gap:10px}
.recall label{font-weight:700}
.recall .row{display:flex;flex-wrap:wrap;gap:12px}
.recall input{flex:1 1 280px;min-width:0;min-height:60px;border:2px solid var(--ink);border-radius:12px;background:var(--paper);padding:0 18px;font-family:var(--mono);font-size:20px}
.marks{display:flex;flex-wrap:wrap;gap:8px}
.mark{font-weight:700;font-size:15px;border-radius:9999px;padding:4px 14px;border:2px solid var(--ink)}
.mark span{font-family:var(--mono)}
.mark.ok{background:var(--accent)}
.mark.again{border-style:dashed;border-color:var(--slate);color:var(--coal)}
.prev{border-top:1px solid var(--stone);padding-top:12px}
.prev a{font-weight:700;text-underline-offset:4px;display:inline-flex;min-height:44px;align-items:center}

.gp .gpblank{display:inline-block;width:5.5ch;height:1.1em;vertical-align:text-bottom;padding:0;letter-spacing:0;box-shadow:inset 0 -3px 0 var(--ink)}

/* stage 3 and the Final Boss */
.situation{background:var(--mist);border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:10px}
.situation p:last-child{font-size:19px}
.usewhat{display:flex;flex-direction:column;gap:10px}
.ulabel{font-weight:700}
.upattern{font-size:clamp(17px,2vw,22px);display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.slot{font-family:var(--mono);border-bottom:2px dashed var(--ink);padding:0 4px}
.recall textarea{width:100%;min-height:150px;resize:vertical;border:2px solid var(--ink);border-radius:12px;background:var(--paper);padding:16px 18px;font-size:19px;line-height:1.5}
.recall .row.end{align-items:center;justify-content:space-between}
.recall .row.end .small{flex:1 1 260px}
.mine{background:var(--mist);border-radius:12px;padding:16px 18px;font-size:18px;white-space:pre-wrap;overflow-wrap:anywhere}
.mine mark{background:transparent;color:inherit;border:2px dashed var(--ink);border-radius:6px;padding:0 4px}
.passage .hid.boss{background:var(--accent);outline:3px solid var(--ink);outline-offset:3px;border-radius:6px;border-bottom:0}
.passage .hid.boss.mate{background:color-mix(in srgb,var(--accent) 32%,var(--paper))}

/* Study notes: the title and close button stay in view while the list scrolls */
.notes{padding-top:0}
.notes .wp-head{position:sticky;top:0;z-index:1;background:var(--paper);margin:0 -16px;padding:10px 16px 6px;border-bottom:1px solid var(--line)}
@media (max-width:700px){.notes .wp-head{margin:0 -12px;padding:8px 12px 4px}}

/* "Notes in" */
.notesin{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;min-width:0}
.notesin legend{font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--coal);padding:0;margin-bottom:6px}
.segs{display:flex;flex-wrap:wrap;gap:8px}
.seg{min-height:44px;border:2px solid var(--stone);border-radius:9999px;background:var(--paper);padding:0 16px;font-weight:700;font-size:15px;cursor:pointer;display:inline-flex;align-items:center}
button.seg[aria-pressed=true],.seg.other[data-on=true]{border-color:var(--ink);background:var(--accent)}
.seg.other{padding:0 6px;cursor:text}
.seg.other input{border:0;background:transparent;min-height:36px;width:150px;padding:0 10px;font-weight:700;font-size:15px;outline:0}
.seg.other input::placeholder{color:var(--slate);font-weight:600}
.seg.other:focus-within{outline:3px solid var(--ink);outline-offset:2px}
.gate + .notesin,.wrap > .notesin{background:var(--mist);border-radius:16px;padding:clamp(16px,2.5vw,24px)}
.chunks .meaning{display:block;margin-top:6px;font-weight:700}
.chunks .cnote{display:block;font-size:14px;color:var(--coal)}
.mbox{align-self:flex-start;border:2px solid var(--ink);border-radius:12px;background:var(--mist);padding:10px 14px;font-family:var(--mono);font-size:clamp(15px,1.8vw,19px)}

/* uncovered words can be opened for practice */
.passage .seen{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;border-radius:4px}
.passage .seen:hover{background:var(--mist)}
.passage .seen[aria-expanded=true]{background:color-mix(in srgb,var(--accent) 32%,var(--paper))}
.seenword{font-family:var(--mono);font-weight:700;font-size:26px}
.stages li.skipped{opacity:.45;text-decoration:line-through}

/* translation */
.tool.plain{background:var(--paper);border-color:var(--ink);color:var(--ink)}
.tool.plain[aria-expanded=true]{background:var(--ink);color:var(--paper)}
#tools{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center}
.tform{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tform label{font-size:14px;font-weight:700}
.tform input{flex:1 1 160px;min-width:0;min-height:44px;border:1px solid var(--slate);border-radius:8px;background:var(--paper);padding:0 12px;font-size:16px}
.tform input::placeholder{color:var(--ash)}
.tform .btn{min-height:44px}
.tout{display:flex;flex-direction:column;gap:10px}
.ttext{display:flex;flex-direction:column;gap:12px;font-size:17px;line-height:1.55}
.tfoot{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tfoot .link{min-height:32px;font-size:14px}

@media (max-width:700px){body.ingame nav > a{display:none}#tools{flex-wrap:nowrap}.tool-link{font-size:14px}}

/* study sheet */
body.sheet{background:var(--mist)}
.sheet-wrap{max-width:860px;margin:0 auto;padding:24px 16px 80px;display:flex;flex-direction:column;gap:20px}
.sheet-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.sheet-controls .notesin{flex:1 1 100%}
.sheet-controls .small{flex:1 1 100%}
.paper{background:#fff;border-radius:8px;box-shadow:0 8px 28px rgba(24,24,24,.12);padding:clamp(24px,6vw,64px)}
.sheet-body{display:flex;flex-direction:column;gap:22px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:2px solid var(--ink);padding-bottom:14px}
.sheet-head img{height:34px;width:auto}
.sheet-kind{font-weight:700;font-size:14px;letter-spacing:.08em;text-transform:uppercase}
.sheet-facts{font-size:14px;color:var(--coal)}
.sheet-text{font-family:var(--mono);font-size:17px;line-height:2.15;display:flex;flex-direction:column;gap:14px;overflow-wrap:anywhere}
.ck{background:color-mix(in srgb,var(--accent) 32%,#fff);border-radius:6px;padding:3px 5px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.ck b{background:var(--accent);border-radius:4px;padding:1px 3px;font-weight:700}
.ckn{font-family:var(--sans);font-weight:700;font-size:11px;margin-left:2px;color:var(--coal)}
.sheet-body h2{font-size:22px;border-top:1px solid var(--stone);padding-top:20px}
.sheet-chunks{margin:0;padding:0 0 0 1.8em;display:flex;flex-direction:column;gap:14px}
.sheet-chunks li{break-inside:avoid;padding-left:4px}
.sheet-chunks li::marker{font-weight:700;color:var(--coal)}
.sheet-chunks .ck{font-family:var(--mono);font-size:16px}
.sc-pattern,.sc-meaning,.sc-note{display:block}
.sc-pattern{font-family:var(--mono);font-size:13px;color:var(--coal);margin-top:5px}
.sc-meaning{font-weight:700;margin-top:4px}
.sc-note{font-size:14px;color:var(--coal)}
.sheet-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;border-top:1px solid var(--stone);padding-top:12px;font-size:12px;color:var(--slate)}
@media print{
  @page{size:A4;margin:16mm}
  body,body.sheet{background:#fff}
  .top,.noprint,#confetti{display:none!important}
  .sheet-wrap{max-width:none;padding:0}
  .paper{box-shadow:none;border-radius:0;padding:0}
  .sheet-text{font-size:12.5pt}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
/* the chunk list runs in two columns where there is room, and always on paper */
@media (min-width:700px),print{.sheet-chunks{display:block;column-count:2;column-gap:36px}.sheet-chunks li{margin-bottom:14px}}

/* text writer */
.gen-link{font-size:15px}
.gform{background:var(--mist);border-radius:16px;padding:clamp(20px,3vw,32px);display:flex;flex-direction:column;gap:20px}
.gfield{display:flex;flex-direction:column;gap:8px;min-width:0}
.gfield label,.glabel{font-weight:700;font-size:17px}
.gfield input[type=text],.gfield textarea{width:100%;min-height:52px;border:1px solid var(--slate);border-radius:8px;background:var(--paper);padding:12px 14px;font-size:17px}
.gfield textarea{resize:vertical;line-height:1.5}
.gfield input::placeholder,.gfield textarea::placeholder{color:var(--ash)}
.gform .row.end{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.gwarn:empty{display:none}
.sheet-controls .btn.go{border-color:var(--ink)}

/* ideas in the learner's own language */
.gexplang{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.gexplang label{font-size:15px;font-weight:700}
.gfield .gexplang input[type=text]{width:auto;flex:0 1 220px;min-height:44px;padding:8px 12px;font-size:16px}
.sheet-asked ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.sheet-asked .asked{font-weight:700}
.sheet-asked .ck{font-family:var(--mono)}

.sheet-asked .struck{font-weight:600;text-decoration:line-through;text-decoration-color:var(--slate);color:var(--coal)}
.sheet-asked .why{font-size:14px;color:var(--coal)}

/* sharing by link */
.share{flex:1 1 100%;width:100%;margin-top:12px;padding:14px 16px;border:1.5px solid var(--ink);border-radius:12px;background:#fff}
.share[hidden]{display:none}
.share-title{font-weight:700;margin:0 0 8px}
.share-toggle,.share-lock{display:flex;align-items:center;gap:10px;font-weight:600;cursor:pointer}
.share-toggle input,.share-lock input{width:20px;height:20px;accent-color:var(--ink);flex:none}
.share .small{margin:8px 0 12px}
.share-acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.share-link{display:flex;gap:10px}
.share-link input{flex:1 1 auto;min-width:0;font:inherit;font-family:'JetBrains Mono',monospace;font-size:14px;padding:10px 12px;border:1.5px solid var(--ink);border-radius:10px;background:var(--paper,#fcfcf8)}
@media (max-width:560px){.share-link{flex-direction:column}}
.under-acts{display:flex;gap:20px;align-items:center}
.under .link{font-size:inherit}
.game>.share{margin-top:16px}

/* the words uncovered by the latest guess: a hand-drawn dashed box round them, kept until the next guess (it was a
   green marker stroke until chunks began to light up in green: green on green could not be seen).
   The stroke belongs to a wrapper (.swipe) around each run of neighbouring words; the words inside stay see-through,
   so hovering or opening one never removes it. Kept last in the file. */
.passage .swipe{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23141414' stroke-width='2.4' stroke-dasharray='7 5' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke' d='M5 2.5C30 1.5 68 3 95 2Q98.8 2 98.5 8C99 18 98 27 98.8 33Q98.8 38 94 37.8C68 38.8 32 37 6 38.5Q1.2 38.5 1.5 32C1 24 2 14 1.2 8Q1.2 3 5 2.5Z'/%3E%3C/svg%3E") left center/100% 100% no-repeat;padding:8px 9px;margin:0 -9px;position:relative;z-index:2;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.passage .swipe.s1{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23141414' stroke-width='2.4' stroke-dasharray='7 5' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke' d='M6 2C32 3 66 1.5 94 2.8Q98.5 3 98.8 9.5C98 17 99 26 98.5 32Q98.6 37.6 95 38C70 37 34 38.8 5 37.6Q1.2 37.6 1.4 31.5C2 23 1 15 1.6 8.5Q1.4 2.4 6 2Z'/%3E%3C/svg%3E")}
.passage .swipe.s2{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23141414' stroke-width='2.4' stroke-dasharray='7 5' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke' d='M4.5 3C28 1.5 72 2.8 96 1.6Q98.8 2 98.6 8.5C99 16 98 25 98.8 32.5Q98.8 38 94.5 38.4C66 37.4 30 38.8 5.5 37.8Q1.4 37.8 1.6 32C1.2 25 2.2 15 1.3 9Q1 3.5 4.5 3Z'/%3E%3C/svg%3E")}
body.dark .passage .swipe{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23f4f4f0' stroke-width='2.4' stroke-dasharray='7 5' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke' d='M5 2.5C30 1.5 68 3 95 2Q98.8 2 98.5 8C99 18 98 27 98.8 33Q98.8 38 94 37.8C68 38.8 32 37 6 38.5Q1.2 38.5 1.5 32C1 24 2 14 1.2 8Q1.2 3 5 2.5Z'/%3E%3C/svg%3E")}
body.dark .passage .swipe.s1{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23f4f4f0' stroke-width='2.4' stroke-dasharray='7 5' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke' d='M6 2C32 3 66 1.5 94 2.8Q98.5 3 98.8 9.5C98 17 99 26 98.5 32Q98.6 37.6 95 38C70 37 34 38.8 5 37.6Q1.2 37.6 1.4 31.5C2 23 1 15 1.6 8.5Q1.4 2.4 6 2Z'/%3E%3C/svg%3E")}
body.dark .passage .swipe.s2{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23f4f4f0' stroke-width='2.4' stroke-dasharray='7 5' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke' d='M4.5 3C28 1.5 72 2.8 96 1.6Q98.8 2 98.6 8.5C99 16 98 25 98.8 32.5Q98.8 38 94.5 38.4C66 37.4 30 38.8 5.5 37.8Q1.4 37.8 1.6 32C1.2 25 2.2 15 1.3 9Q1 3.5 4.5 3Z'/%3E%3C/svg%3E")}
.passage .swipe .new:not(.hid),.passage .swipe .seen,.passage .swipe .seen:hover,.passage .swipe .seen[aria-expanded=true]{background:none}
.passage .swipe .seen[aria-expanded=true]{outline:2px solid var(--ink);outline-offset:2px;border-radius:4px}
.passage .swipe.in{animation:stroke .45s ease-out}
@media (prefers-reduced-motion:reduce){.passage .swipe.in{animation:none}}

/* My gaps */
.card.gap h3.ck{font-size:clamp(18px,2.2vw,22px);font-weight:500;margin:0;align-self:flex-start}
.card.gap h3.ck b{font-weight:700}
.card.gap.is-gap{background:#fff}
.gap-slips{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.gap-slips li{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;font-size:15px}
.gap-stage{font-weight:700;font-size:13px;white-space:nowrap}
.gap-wrote{font-family:var(--mono);border:1.5px dashed var(--slate);border-radius:6px;padding:1px 8px;overflow-wrap:anywhere}
.gap-why,.gap-where{color:var(--coal);font-size:14px}
.card.gap details summary{cursor:pointer;font-weight:700;font-size:14px;margin-bottom:8px}
#tools:empty{display:none}
@media (max-width:700px){.top-in{gap:8px 12px}nav{gap:10px}nav a.pill{padding:0 12px}}

/* Translation box: text size, and floating over the page on a wide screen */
.ttext{font-size:var(--tsize,17px)}
.wp-tools{display:flex;align-items:center;gap:6px}
.tsize,.tfloat{font:inherit;font-weight:700;font-size:14px;min-width:40px;min-height:40px;border:1.5px solid var(--ink);border-radius:9999px;background:var(--paper);color:var(--ink);cursor:pointer;padding:0 10px}
.tsize.big{font-size:17px}
.tsize:hover,.tfloat:hover{background:var(--mist)}
.tsize:disabled{opacity:.35;cursor:default;background:var(--paper)}
.tfloat{padding:0 14px}
.panel.floating{position:fixed;z-index:30;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);min-width:260px;min-height:160px;resize:both;overflow:auto;box-shadow:0 18px 48px rgba(24,24,24,.32)}
.panel.floating .wp-head{cursor:grab;touch-action:none;user-select:none}
.panel.floating.dragging .wp-head{cursor:grabbing}
.panel.floating.dragging{user-select:none}
.panel.floating .tform label{display:none}

/* a still-hidden word pointed at from My gaps: the stroke shows through its asterisks */


/* repeat rounds from My gaps */
.skip3{font-size:15px;color:var(--stone)}
.skip3 a{color:var(--accent);font-weight:700}
.credit{background:var(--accent);color:var(--ink);border-radius:10px;padding:8px 14px;font-weight:700;align-self:flex-start}
.gap-again{margin:0}

/* fixing the small slips after a Stage 3 pass */
.fixbox{display:flex;flex-direction:column;gap:10px}
.fixbox:empty{display:none}
.fix-link{font:inherit;font-size:14px;font-weight:700;background:none;border:0;padding:0;min-height:32px;color:var(--coal);text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.fix-link:hover{color:var(--ink)}
.fix-title{font-weight:700;margin:8px 0 0}
.fixform textarea{width:100%}

/* Stage 2, part A: build the sentence from movable pieces */
.own{background:var(--mist);border-radius:14px;padding:16px 20px}
.own .eyebrow{margin:0 0 6px}
.own-line{margin:0;font-size:clamp(19px,2.4vw,24px);line-height:1.4}
.pieces{display:flex;flex-wrap:wrap;align-items:center;gap:10px 8px;padding:14px 0;font-family:var(--mono);font-weight:500;font-size:clamp(17px,2vw,21px)}
.piece{display:inline-flex;align-items:center;gap:.45em;min-height:46px;padding:6px 12px;border-radius:10px;border:2px solid transparent;background:color-mix(in srgb,var(--accent) 22%,#fff);color:var(--ink);cursor:grab;user-select:none;-webkit-user-select:none;touch-action:manipulation;white-space:pre-wrap;transition:background .15s}
.piece.chunk,.piece.target.joined{background:var(--accent)}
.piece.target.whole{border-color:var(--ink)}
.piece.picked{outline:3px solid var(--ink);outline-offset:2px}
.piece.over{box-shadow:-4px 0 0 var(--ink)}
.piece.dragging{opacity:.45}
.piece:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.piece[draggable=true]:active{cursor:grabbing}
.pieces .piece:not([draggable]){cursor:default}
.tgap{font:inherit;width:10ch;min-height:34px;border:0;border-bottom:2px solid var(--ink);border-radius:4px 4px 0 0;background:#fff;color:var(--ink);padding:0 6px;text-align:center;user-select:text;-webkit-user-select:text}
.piece .fill{background:none;padding:0}
.tend{font-family:var(--mono);font-size:22px;font-weight:700}
.tile-acts{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap}
.small-yes{font-size:17px !important}
@media (max-width:700px){.piece{padding:6px 10px;min-height:44px}.pieces{gap:8px 6px}}

/* Stage 3: change it */
.chg-how{font-size:19px;font-weight:600}
.chg-form{display:flex;flex-direction:column;gap:18px}
.chg{border-left:4px solid var(--line);padding:4px 0 4px 16px;display:flex;flex-direction:column;gap:6px}
.chg.ok{border-color:var(--accent)}
.chg.again{border-color:var(--ink)}
.small-own{font-size:17px;color:var(--coal)}
.chg-sent{margin:0}
.tgap.wide{width:12ch;border:2px solid var(--ink);border-radius:8px;min-height:44px;margin:0 6px;font-family:var(--mono)}

/* the same marker stroke, for words inside the learner's own writing (the practised phrase, and slips put right) */
.stroke{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath fill='%2334ef5a' d='M1 11C8 7 20 8.5 33 7.5C50 6 68 8.5 99 6.5L98.5 12.5C80 14.5 62 12.5 45 13.5C30 14.5 12 13 1.5 15Z'/%3E%3C/svg%3E") left center/100% 100% no-repeat;padding:0 .08em;margin:0 -.08em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.stroke.s1{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath fill='%2334ef5a' d='M.5 9.5C14 7.5 26 9 40 8C58 6.5 80 7.5 99.5 8.5L99 14C82 12.5 66 14.5 50 13.5C34 12.5 16 15 1 13.5Z'/%3E%3C/svg%3E")}
.stroke.s2{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath fill='%2334ef5a' d='M1.5 8C18 9 30 6.5 48 7.5C64 8.5 84 6 98.5 7.5L99.5 13.5C84 15 70 12.5 54 14C38 15 18 13 .5 14.5Z'/%3E%3C/svg%3E")}

/* the chunk map: labels on chunks, and the explanation page */
a.kind{display:block;font-style:italic;font-size:13px;color:var(--slate) !important;text-decoration:none;font-family:var(--sans);font-weight:400;margin-top:2px}
a.kind:hover{color:var(--ink) !important;text-decoration:underline}
.map-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:8px 0 8px}
@media (max-width:1100px){.map-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.map-grid{grid-template-columns:1fr}}
.map-col{border:2px solid var(--ink);border-radius:16px;padding:18px 18px 8px;background:#fff}
.map-col header{display:flex;align-items:center;gap:10px}
.map-col h2{margin:0;font-size:24px}
.map-n{width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--paper);display:inline-flex;align-items:center;justify-content:center;font-weight:800}
.map-size{margin:8px 0 0}.map-size span{background:var(--accent);border-radius:9999px;padding:2px 10px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.map-defn{font-size:15px;margin:10px 0 6px}
.map-sub{border-top:1px solid var(--stone);padding:10px 8px 10px;margin:0 -8px;border-radius:8px;scroll-margin:120px}
.map-sub.focus{background:color-mix(in srgb,var(--accent) 22%,#fff);outline:2px solid var(--ink)}
.map-sub h3{margin:0;font-size:16px}.map-sub .small{margin:2px 0 8px}
.map-exs{margin:0;display:flex;flex-wrap:wrap;gap:6px}
.mapex{font-family:var(--mono);font-size:13px;overflow-wrap:anywhere}
.mapex i{font-family:var(--sans);font-style:normal;font-weight:600;font-size:11px;color:var(--coal);margin-right:6px}
.map-names{padding-left:20px;display:flex;flex-direction:column;gap:6px}
@media print{.kind{color:#696966}}

/* Stage 3: the learner's word beside the new one */
.compare{background:color-mix(in srgb,var(--accent) 16%,#fff);border-radius:12px;padding:14px 18px}
.compare .eyebrow{margin:0 0 6px}
.compare p:last-child{margin:0;font-size:17px;line-height:1.5}
.stages .skipped a{color:inherit;text-decoration:none}
.stages li.skipped.shown{text-decoration:none}

/* Stage 4: the situation is in the language being learned; a translation on request */
.sit-help{margin-top:10px;display:flex;flex-direction:column;gap:4px}
.sit-help:empty{display:none}
.sit-tr{margin:0;font-size:16px;color:var(--coal);border-top:1px solid var(--stone);padding-top:10px}
.sit-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.sit-lang{font:inherit;font-size:15px;min-height:38px;border:1.5px solid var(--ink);border-radius:8px;padding:0 10px;background:var(--paper);max-width:220px}
.sit-help .small{margin:0;font-size:14px;color:var(--slate, #555)}

/* My gaps: points bar on each gap */
.gap-prog{display:flex;flex-direction:column;gap:6px}
.gap-prog .track{background:var(--slate)}
.gap-pts{margin:0;font-size:15px;color:var(--coal)}
.gap-pts b{color:inherit}
.card.gap.is-closed{opacity:.85}

/* Build stage: a handle on pieces that are mostly a typing box, so they can be dragged or tapped */
.piece .grip{font-family:var(--sans,inherit);font-size:.85em;line-height:1;opacity:.5;margin-right:-.15em}

/* practice: "Something wrong with this exercise?" */
.xreport{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.xreport p{margin:0}

/* chunk map: the way back to where the learner came from. It floats at the foot of the screen. */
.map-back{position:fixed;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:20;white-space:nowrap;box-shadow:0 6px 24px rgba(0,0,0,.28)}
@media print{.map-back{display:none}}

/* language settings: the button in the top bar and its panel */
.langbtn{font:inherit;font-weight:600;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:2px solid var(--stone);border-radius:9999px;background:none;color:inherit;cursor:pointer;white-space:nowrap}
.langbtn-name{max-width:11ch;overflow:hidden;text-overflow:ellipsis}
body.dark .langbtn{color:var(--paper);border-color:var(--slate)}
@media (max-width:700px){nav{gap:8px}.langbtn{padding:0;border:0;font-size:20px;min-width:36px;justify-content:center}.langbtn-name{display:none}}      /* a phone's top bar has room for the globe only */
.langpanel{border:2px solid var(--ink);border-radius:16px;padding:24px;width:min(520px,calc(100vw - 32px));background:var(--paper);color:var(--ink)}
.langpanel[open]{display:flex;flex-direction:column;gap:20px}
.langpanel::backdrop{background:rgba(0,0,0,.45)}
.langpanel h2{margin:0}
.langpanel .row.end{justify-content:flex-end}
.lp-field{display:flex;flex-direction:column;gap:6px}
.lp-field[hidden]{display:none}
.lp-field label{font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--coal)}
.lp-field input{font:inherit;font-weight:700;min-height:44px;border:2px solid var(--ink);border-radius:10px;padding:0 12px;background:#fff;color:var(--ink)}
.lp-field p,.langpanel .notesin p{margin:0}
.langline{margin:0}

/* share by link: the sharer's choice of explanations language */
.share-exp{gap:10px;margin:16px 0 20px}
.share-exp .small{margin:0}
.share-exp .seg.other input{width:210px}        /* room for the whole placeholder */
.share-lock.off{opacity:.45;cursor:default}
button.seg:disabled{cursor:default}button.seg:disabled:not([aria-pressed=true]){opacity:.45}
.readas{margin:0}
.tin{margin:0}
.tile-acts .xreport.open{flex:1 1 100%}

/* practice phrase: other key words of the chunk, words of the learner's text kept hidden, and the open-slot label */
.gp b.kw{letter-spacing:0}
.gp .veil{opacity:.55;letter-spacing:.1em}
.slotline{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:-6px 0 0;font-size:clamp(17px,2vw,22px)}
.slotrule{display:inline-block;height:0;overflow:hidden;border-top:2px solid var(--ink);max-width:100%}
.slotrule .gp{white-space:nowrap}
.slotline .slot{border-bottom:0;padding:0}

/* mark-up lab: the five word roles */
.lab-line{font-family:var(--mono);font-size:clamp(17px,2vw,22px);line-height:2;margin:0}
.lw{border-radius:4px;padding:1px 5px;color:var(--coal)}
.lw-vivid{background:var(--accent);color:var(--ink);font-weight:700}
.lw-fixed{background:var(--accent);color:var(--ink);font-weight:700;text-decoration:underline dotted;text-decoration-thickness:2px;text-underline-offset:5px}
.lw-light{background:color-mix(in srgb,var(--accent) 28%,var(--paper));color:var(--ink)}
.lw-slot{text-decoration:underline dotted;text-decoration-thickness:2px;text-underline-offset:5px}
.lab-mono{font-family:var(--mono)}
.lab-chunks{display:flex;flex-direction:column;gap:20px;padding-left:1.4em;margin:0}
.lab-chunks li p,.lab-chunks ul,.lab-clicks{margin:6px 0 0}
.lab textarea,.lab input[type=text]{width:100%}
.lab-out{display:flex;flex-direction:column;gap:10px}.lab-out h2{margin:22px 0 0}.lab-out p{margin:0}

/* mark-up lab: one unbroken band per chunk, with the bright words inside it */
.lband{background:color-mix(in srgb,var(--accent) 28%,var(--paper));border-radius:6px;padding:3px 2px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.lband .lw-light{background:none}
.lrun{background:var(--accent);border-radius:4px;padding:1px 5px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.lrun .lw{background:none;padding-left:0;padding-right:0}        /* one space between every pair of words, whatever their roles */

/* mark-up lab: an open slot with its curly bracket and name */
.lslot{display:inline-flex;flex-direction:column;align-items:center;vertical-align:baseline;white-space:nowrap;margin-bottom:6px}
.lslot-in{display:inline-flex;flex-direction:column;align-items:stretch}
.lslot-text{line-height:1.6}
.lbrace{display:grid;grid-template-columns:1fr 6px 6px 1fr;grid-template-rows:6px 6px;margin-top:2px}
.lbrace i{display:block;border:0 solid var(--ink)}
.lbrace .a{grid-column:1 / 3;border-bottom-width:2px;border-left-width:2px;border-bottom-left-radius:7px}
.lbrace .b{grid-column:3 / 5;border-bottom-width:2px;border-right-width:2px;border-bottom-right-radius:7px}
.lbrace .c{grid-column:2;grid-row:2;border-top-width:2px;border-right-width:2px;border-top-right-radius:7px;margin-top:-2px}       /* the two halves of the point, which hangs down towards the name */
.lbrace .d{grid-column:3;grid-row:2;border-top-width:2px;border-left-width:2px;border-top-left-radius:7px;margin-top:-2px;margin-left:-2px}
.lslot-name{font-family:var(--sans,inherit);font-style:italic;font-size:14px;line-height:1.3;color:var(--coal);margin-top:1px}
.lab-unmarked{list-style:none;padding-left:0}
.lband .lslot .lw-slot{background:none}
.lab-took{margin:0 auto 0 0}

/* the build label at the foot of every page */
.buildline{max-width:1100px;margin:0 auto;padding:0 16px 20px;font-size:12px;color:var(--ash)}
body.dark .buildline{color:var(--slate)}
@media print{.buildline{display:none}}
/* in the chunk list a filler has its bracket, so it has no dotted underline: one or the other, never both */
.lslot .lw-slot{text-decoration:none}

/* the five word roles in Study notes and on the study sheet */
.ckline{display:inline-block;font-family:var(--mono);font-size:17px;line-height:2}
.sheet-chunks .ckline{font-size:16px}
.chunkbox{display:flex;flex-direction:column;gap:12px}
.chunkbox[hidden]{display:none}
.also-head{margin:8px 0 4px}
.also-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.also-from{display:block;font-family:var(--mono)}
.sheet-text .lw{padding-left:0;padding-right:0}
.sheet-text .lband{padding:3px 4px}
.sheet-text .lrun{padding:1px 3px}
.sheet-text .lw-slot,.sheet-text .lw-light{color:inherit}
@media print{.lband,.lrun,.lw{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* chunks lighting up on the game board as they are found (the same five roles as the study sheet) */
.passage .cband{background:color-mix(in srgb,var(--accent) 28%,var(--paper));padding:4px 0}
.passage .cband.cs{border-radius:6px 0 0 6px;padding-left:5px;margin-left:-5px}
.passage .cband.ce{border-radius:0 6px 6px 0;padding-right:5px;margin-right:-5px}
.passage .cband.cs.ce{border-radius:6px}
.passage .cbright{background:var(--accent);color:var(--ink);padding:1px 0;position:relative;z-index:1}   /* above the pale band of the next word, which would otherwise cover its rounded end */
.passage .cbright.cs{border-radius:4px 0 0 4px;padding-left:3px;margin-left:-3px}
.passage .cbright.ce{border-radius:0 4px 4px 0;padding-right:3px;margin-right:-3px}
.passage .cbright.cs.ce{border-radius:4px}
.passage .cvivid,.passage .cfixed{font-weight:700;color:var(--ink)}
.passage .cfixed,.passage .cslot{text-decoration:underline dotted;text-decoration-thickness:2px;text-underline-offset:5px}
.passage .cband .out{color:inherit}
.passage .cband .seen:hover,.passage .cband .seen[aria-expanded=true]{background:none}
.passage .cband .seen[aria-expanded=true]{outline:none}
/* a lit chunk is one button: the whole band answers to the pointer, and the open chunk is ruled above and below */
.passage .cband[data-b]{cursor:pointer}
.passage .cband.chover{background:color-mix(in srgb,var(--accent) 46%,var(--paper))}
.passage .cband.copen{box-shadow:0 2px 0 var(--ink),0 -2px 0 var(--ink)}
.passage .cband.copen.cs{box-shadow:0 2px 0 var(--ink),0 -2px 0 var(--ink),-2px 0 0 var(--ink)}
.passage .cband.copen.ce{box-shadow:0 2px 0 var(--ink),0 -2px 0 var(--ink),2px 0 0 var(--ink)}
.passage .cband.copen.cs.ce{box-shadow:0 0 0 2px var(--ink)}
.wp-chunk{display:flex;flex-direction:column;gap:4px}
.wp-chunk .wp-pattern{font-family:var(--mono)}
.wp-chunk .meaning{font-weight:700;margin-top:4px}
.wp-chunk .cnote{font-size:14px;color:var(--coal)}

/* Stage 3 for a whole chunk: one gap wide enough for several words (the same width whatever the answer, so it gives nothing away) */
.tgap.wide.chunkgap{width:min(26ch,100%);text-align:left;padding:0 10px}
.gp b.kfixed{text-decoration:underline dotted;text-decoration-thickness:2px;text-underline-offset:4px}
.frozen-note{margin-top:6px}
.gp .gslot{font-family:var(--sans,inherit);font-weight:400;font-size:.85em;color:var(--coal)}

/* a chunk in progress: a thin green outline round it, on a layer over the text. Overlapping outlines multiply. */
.passage{position:relative}
.coutlines{position:absolute;inset:0;pointer-events:none;mix-blend-mode:multiply}
.coutlines i{position:absolute;box-sizing:border-box;border:3px solid var(--accent);border-radius:10px;mix-blend-mode:multiply}

/* a filler in the middle of a finished chunk: a cut-out in the band, with no green of its own */
.passage .ccut{background:var(--paper);border-radius:5px;padding:2px 4px;margin:0 -4px;position:relative;z-index:1}
.coutlines i.open-l{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}
.coutlines i.open-r{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}
.coutlines i.open-r{-webkit-mask-image:linear-gradient(to left,transparent,#000 22px);mask-image:linear-gradient(to left,transparent,#000 22px)}
.coutlines i.open-l{-webkit-mask-image:linear-gradient(to right,transparent,#000 22px);mask-image:linear-gradient(to right,transparent,#000 22px)}
.coutlines i.open-l.open-r{-webkit-mask-image:linear-gradient(to right,transparent,#000 22px,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(to right,transparent,#000 22px,#000 calc(100% - 22px),transparent)}

/* slice 2: the practised chunk shown in full colours once a stage has revealed it; Stage 4's instruction for a chunk */
.practising .gp-full{vertical-align:top;margin-left:6px}
.usehow{margin-top:8px;max-width:60ch}

/* Build stage on a touch screen: every piece has a grip, and a finger on the grip drags the piece at once */
.piece .grip{touch-action:none;cursor:grab}
.piece .grip-touch{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:44px;margin:-6px 0 -6px -10px;font-size:1.05em;opacity:.6}
.piece.lifting{position:relative;z-index:5;box-shadow:0 10px 24px rgba(0,0,0,.28);transition:none;opacity:.96}
.piece.over-r{box-shadow:4px 0 0 var(--ink)}

/* slice 3: the chunk map's examples and My gaps in the five roles */
.mapex{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:0 2px;max-width:100%}      /* a label that does not fit beside its example goes above it, so the example is not broken */
.mapex .ckline{font-size:13px;line-height:1.9}
.mapex .lslot-name{font-size:11px}
.map-exs{align-items:flex-start;gap:6px 12px}
.rolekey{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px 24px;margin:8px 0 28px}
.rolekey p{margin:0;display:flex;flex-direction:column;gap:2px}
.rolekey-h{margin-top:28px}
.gap-chunk{margin:0;font-weight:500}
.gap-chunk .ckline{font-size:clamp(17px,2vw,20px);margin:0}
.gap-chunk .lslot-name,.gap-chunk .lw-slot{font-weight:400}

/* My gaps: tick up to four phrases and have one text written around them */
.gap-tick{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:15px;cursor:pointer;margin-right:6px}
.gap-tick input{width:20px;height:20px;accent-color:var(--ink)}
.gapwrite{position:sticky;bottom:12px;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;background:var(--ink);color:var(--paper);border-radius:14px;padding:12px 16px;margin-top:18px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.gapwrite[hidden]{display:none}
.gapwrite .gw-say{flex:1 1 220px;font-weight:600}
.gapwrite .gw-kind{font-size:14px;display:inline-flex;align-items:center;gap:8px}
.gapwrite select{font:inherit;padding:6px 8px;border-radius:8px;border:0}
.gapwrite .btn{background:var(--accent);color:var(--ink)}
.gapwrite .btn:disabled{opacity:.5}
.fromgaps{max-width:70ch}

/* check-ups of a closed gap */
.navdue{font-weight:700;color:var(--ink);background:var(--accent);border-radius:999px;padding:1px 8px 1px 2px;margin-left:4px;font-size:.85em;white-space:nowrap}
.navdue[hidden]{display:none}
.card.gap.is-due{border-color:var(--ink);box-shadow:0 0 0 3px var(--accent)}
.gap-check{margin:10px 0 0}
.gap-check.due{background:color-mix(in srgb,var(--accent) 22%,var(--paper))}
.checkwarn{margin:8px 0}

/* a text made from one in the learner's own language */
.oshift{display:flex;align-items:center;gap:14px;font-weight:600;font-size:15px}
.oshift input[type=range]{flex:1;min-width:0;height:44px;accent-color:var(--ink)}
.oshift-say{margin:0;font-weight:700}
.fromown{max-width:70ch}

/* My words: the keep control, and the page */
.keep{font:inherit;font-weight:600;font-size:15px;background:none;border:1.5px solid var(--ink);border-radius:999px;padding:6px 14px;cursor:pointer;color:var(--ink);white-space:nowrap}
.keep:hover{background:var(--mist)}
.keep.kept{border-color:transparent;padding-left:0;font-weight:600;cursor:default}
.keep.kept:hover{background:none}
.keeprow{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:10px 0}
.keeprow.in-practice{margin:6px 0 0}
.keeptyped{flex-basis:100%;font-size:15px}
.keeptyped summary{cursor:pointer;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.keeptyped-row{display:flex;gap:8px;margin:8px 0 4px}
.keeptyped-row input{flex:1;min-width:0;min-height:44px;border:1px solid var(--slate);border-radius:8px;background:var(--paper);padding:8px 12px;font:inherit}
.keepwrap{float:right;margin-left:10px}
.keepwrap .keep{font-size:13px;padding:3px 10px}
.card.word h3{margin:6px 0}
.word-text{font-family:var(--mono);font-size:clamp(20px,2.4vw,26px)}
.word-masked{color:var(--ash);letter-spacing:.06em;font-family:var(--mono)}
.word-meaning{font-weight:700;margin:4px 0 8px}
.word-seen,.word-chunks{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;gap:10px}
.word-sent{margin:2px 0 0;font-family:var(--mono);font-size:15px;line-height:1.7}
.word-sent b{background:var(--accent);border-radius:4px;padding:0 3px}
.card.word details{margin:8px 0}
.card.word summary{cursor:pointer;font-weight:700}

/* a fifth item in the top bar (My words): on a phone the links sit a little closer */
@media (max-width:700px){nav{gap:9px}nav a:not(.pill){font-size:13.5px}.top-in{gap:8px 8px}}
@media (max-width:380px){.top{padding:0 10px}.logo img{height:23px}nav{gap:6px}nav a:not(.pill){font-size:13px}nav a.pill{padding:0 10px;min-width:40px;justify-content:center}.langbtn{min-width:30px}}
.tiny-only{display:none}
@media (max-width:430px){.tiny-hide{display:none}.tiny-only{display:inline;font-size:22px;line-height:1}nav a.pill{padding:0 13px}}
/* continue on another device */
.under-hand{flex:1 1 100%}
.hand-code{font-family:var(--mono);font-size:30px;font-weight:700;letter-spacing:.08em;margin:4px 0 8px;user-select:all;-webkit-user-select:all}
.hand-row{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 8px}
.hand-row input{flex:1 1 220px;max-width:320px;min-height:48px;padding:0 14px;border:1.5px solid var(--ink);border-radius:12px;font:inherit;font-family:var(--mono);font-size:20px;letter-spacing:.06em;background:#fff;color:var(--ink)}
.hand-entry{margin-top:24px}
/* watching the end of the game: the last 30% of the bar is finely dotted (track and fill alike), and a hint line under the message */
.track.watched{-webkit-mask:linear-gradient(#000,#000) left/70% 100% no-repeat,radial-gradient(circle,#000 0 2.4px,transparent 2.9px) left center/7px 100% repeat-x;mask:linear-gradient(#000,#000) left/70% 100% no-repeat,radial-gradient(circle,#000 0 2.4px,transparent 2.9px) left center/7px 100% repeat-x;border-radius:9999px 0 0 9999px}
.watch-hint{margin:8px 0 0;padding:10px 12px;border:1.5px dashed var(--paper);border-radius:10px;color:var(--paper);font-size:15px;line-height:1.4}
.watch-hint[hidden]{display:none}
.watch-hint .link{color:var(--accent);min-height:0;font-size:inherit;white-space:nowrap}
/* the learner's own word that means the same, above its place, with a curly bracket over the words it stands for */
.passage .syn-room{display:inline-block;margin-top:36px}
.csyn{position:absolute;inset:0;pointer-events:none}
.csyn svg{position:absolute;overflow:visible}
.csyn path{fill:none;stroke:var(--slate);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.csyn path.d{stroke-dasharray:1.5 4}
.csyn span{position:absolute;white-space:nowrap;font-family:var(--sans,inherit);font-style:italic;font-weight:600;font-size:14px;line-height:18px;letter-spacing:0;color:var(--coal)}
body.dark .csyn path{stroke:var(--stone)}body.dark .csyn span{color:var(--paper)}
/* My gaps: seen in the game, not counted */
.noticed{list-style:none;padding:0;margin:8px 0 24px;border-top:1px solid var(--line)}
.noticed li{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--line)}
.noticed-word{font-family:var(--mono);font-weight:600}
.noticed .gap-where{margin-left:auto;color:var(--slate);font-size:14px}
/* small things, 4 Dec 2026 */
.sheet-chunks .ckline{vertical-align:top}                       /* the number sits beside the chunk's first line when the chunk runs on to a second */
.tend{width:0;margin-inline-start:-8px;white-space:nowrap;overflow:visible}     /* the closing full stop takes no room of its own, so it can never fall to a new line by itself */
@media (max-width:700px){.tend{margin-inline-start:-6px}}
.word-meaning{font-family:var(--mono);font-weight:400}
.card.gap .acts a.btn span,.card.word .acts a.btn span{font-weight:400}
.sheet-asked h2{margin-bottom:12px}
a.kind{color:color-mix(in srgb,var(--slate) 80%,var(--paper)) !important}
.ways{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:18px 0 14px}
.way{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1.5px solid var(--ink);border-radius:14px;text-decoration:none;color:var(--ink);background:var(--paper)}
.way:hover{background:var(--mist)}
.way b{font-size:17px}.way span{font-size:15px;color:var(--coal)}
.gen-link.quiet{font-size:14px;color:var(--slate)}
.hand-codeline{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin:4px 0 8px}
button.hand-code{margin:0;padding:2px 10px;border:1.5px dashed var(--stone);border-radius:10px;background:none;color:inherit;cursor:pointer}
button.hand-code:hover{border-color:var(--ink);background:var(--mist)}
.hand-copied{font-weight:700;font-size:14px}
.sheet-trans{margin:14px 0 6px}.sheet-trans .ttext{margin-top:10px;padding:12px 14px;background:var(--mist);border-radius:12px}.sheet-trans .ttext p{margin:0 0 8px}
/* my own writing: the report on the study sheet */
.sheet-writing h3{font-size:16px;margin:18px 0 6px}
.sheet-writing .used-well{flex-direction:row;flex-wrap:wrap;gap:8px 10px}
.sheet-writing .used-well li{padding:2px 10px;border-radius:8px;background:color-mix(in srgb,var(--accent) 28%,var(--paper))}
.sheet-writing .why{display:block;font-size:14px;color:var(--coal);margin-top:2px}
.sheet-writing details{margin-top:16px}.sheet-writing details .ttext{margin-top:8px;padding:12px 14px;background:var(--mist);border-radius:12px}.sheet-writing details .ttext p{margin:0 0 8px}
.ways{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.sheet-writing ul:not(.used-well){gap:12px}.sheet-writing>p.noprint{margin-top:16px}.sheet-writing h3+.small{margin:0 0 8px}
/* how this game went: under the rebuilt text */
.game-report:empty{display:none}
.game-report{margin-top:28px;padding-top:20px;border-top:1.5px solid var(--ink)}
.game-report h2{margin:0 0 6px}.game-report h3{font-size:17px;margin:22px 0 6px}
.report-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
.report-list>li{padding:12px 14px;border:1.5px solid var(--line);border-radius:12px}
.report-phrase{font-family:var(--mono);font-weight:700;font-size:17px}
.report-list .gap-slips{margin:6px 0}
.photo-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:10px 0 4px}.photo-row .small{flex:1 1 260px;margin:0}
.photo-say:empty{display:none}.photo-say{padding:10px 12px;border:1.5px dashed var(--ink);border-radius:10px}
.gfield select{width:100%;min-height:52px;border:1px solid var(--slate);border-radius:8px;background:var(--paper);color:var(--ink);padding:12px 14px;font:inherit;font-size:17px}
/* from the board (teachers) */
.ring-colours{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.ring-colour{width:48px;height:48px;border-radius:50%;border:3px solid var(--paper);outline:1.5px solid var(--stone);background:var(--dot,var(--paper));cursor:pointer;padding:0;font:inherit;font-size:13px;font-weight:700;color:var(--ink)}
.ring-colour.any{background:conic-gradient(#e03131,#2f9e44,#1c7ed6,#1a1a1a,#e03131);color:#fff;text-shadow:0 0 3px #000}
.ring-colour[aria-checked=true]{outline:3px solid var(--ink);outline-offset:2px}
.board-items{list-style:none;padding:0;margin:10px 0;display:flex;flex-direction:column;gap:8px}
.board-items li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.board-items input{flex:1 1 220px;min-height:48px;border:1px solid var(--slate);border-radius:8px;background:var(--paper);padding:8px 12px;font-family:var(--mono);font-size:17px}
.board-items li.unsure input{border:2px dashed var(--ink)}
/* the gap-fill: stage one of a text from the board */
.printonly{display:none}
.fill-paper{margin:0;padding:22px 24px;border:1.5px solid var(--ink);border-radius:16px;background:#fff}
.fill-bank{list-style:none;display:flex;flex-wrap:wrap;gap:8px 10px;margin:0 0 20px;padding:14px;border:1.5px dashed var(--ink);border-radius:12px}
.fill-bank li{font-family:var(--mono);font-size:17px;font-weight:600;padding:4px 10px;border-radius:8px;background:var(--mist)}
.fill-bank li.used{text-decoration:line-through;color:var(--ash);font-weight:400}
.fill-text{font-family:var(--mono);font-size:18px;line-height:2.25}
.fill-text p{margin:0 0 6px}.fill-text p:last-child{margin:0}
.fill-slot{white-space:nowrap}
.fill-slot sup{font-family:var(--sans,inherit);font-size:11px;color:var(--slate);margin-right:3px}
.fill-text{--gapw:10.5em}
.fill-gap{width:var(--gapw);max-width:100%;height:1.9em;padding:0 8px;border:1.5px solid var(--ink);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit;font-weight:600}
.fill-gap.is-right{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 22%,#fff)}
.fill-gap.is-near{border-style:dashed}
.fill-msg{margin:0}.fill-msg:empty{display:none}.fill-msg .btn{margin-top:10px;display:flex}
@media (max-width:700px){.fill-paper{padding:14px}.fill-text{font-size:16px;--gapw:9em}}
@media print{
  .printonly{display:block}
  .fill-paper{border:0;padding:0;margin:0}
  .fill-name{font-size:12pt;margin:0 0 14pt}.fill-name span{display:inline-block;width:70mm;border-bottom:1px solid #000}
  .fill-bank{border:1.5px solid #000}.fill-bank li{background:none;border:0;font-size:12pt}.fill-bank li.used{text-decoration:none;color:#000;font-weight:600}
  .fill-text{font-size:12.5pt;line-height:2.9}
  .fill-gap{width:42mm!important;outline:0!important;box-shadow:none!important;border:0!important;border-bottom:1.2px solid #000!important;border-radius:0;background:none!important;color:transparent}
  /* the study sheet without its text: only the list of chunks */
  body.print-chunks-only .sheet-text,body.print-chunks-only .sheet-trans,body.print-chunks-only .sheet-asked,body.print-chunks-only .sheet-writing{display:none!important}
}
/* work in progress: a gentle pulse, and the three dots one after another (see livenBusy in app.js) */
.working{animation:working 1.6s ease-in-out infinite}
@keyframes working{50%{opacity:.55}}
.dots{position:relative;display:inline-block;width:3ch;font-family:var(--mono);-webkit-text-fill-color:transparent;text-align:left}
.dots::after{content:'...';position:absolute;left:0;top:0;width:0;overflow:hidden;white-space:nowrap;-webkit-text-fill-color:currentColor;animation:dots 1.4s steps(4,jump-none) infinite}
@keyframes dots{to{width:3ch}}
@media (prefers-reduced-motion:reduce){.working{animation:none}.dots::after{animation:none;width:3ch}}
.sheet-controls .row-break{flex:1 1 100%;height:0}
/* QR codes: small beside a link, and across the whole screen for a class */
.qr-block{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin:12px 0}
.qr{width:132px;height:132px;border-radius:8px;border:1px solid var(--line);background:#fff;flex:none}
.qr-block .small{margin:0 0 8px}
.qr-full{position:fixed;inset:0;z-index:1000;background:#fff;color:#111;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2vh;padding:3vh 4vw}
.qr-full .qr{width:min(72vh,86vw);height:min(72vh,86vw);border:0}
.qr-cap{font-size:clamp(20px,4vh,40px);font-weight:800;margin:0;text-align:center}
.qr-link{font-family:var(--mono);font-size:clamp(14px,2.4vh,24px);margin:0;word-break:break-all;text-align:center}
.fill-gap.is-unsure{border-style:dotted;border-width:2px}
/* the gap-fill page: spacing (its blocks sit in wrappers, so the page's own gaps do not reach them) */
.fill-head{display:flex;flex-direction:column;gap:14px}
.fill-foot{display:flex;flex-direction:column;gap:14px}
.fill-acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.fill-acts.second .btn{min-height:44px;padding:0 18px;font-size:15px}
.fill-gap{margin:0 3px;vertical-align:baseline}
.fill-gap:focus{outline:3px solid var(--ink);outline-offset:1px}
.fillpage{gap:22px}
.fill-bank{margin:0 0 16px}
/* little things, 4 Dec 2026 (second list) */
.sheet section>h2{margin-bottom:12px}
.game-report .report-list+.small{margin-top:14px}
.slot.after{border-bottom:0;padding:0;color:var(--coal)}
.pick-fixed{font-family:var(--mono);color:var(--slate)}
.levelsteps{gap:0}.levelsteps .seg{border-radius:0;margin-left:-2px;position:relative}.levelsteps .seg:first-child{border-radius:9999px 0 0 9999px;margin-left:0}.levelsteps .seg:last-child{border-radius:0 9999px 9999px 0}.levelsteps .seg[aria-pressed=true]{z-index:1}
/* home page: writing first; the other ways in below it */
.other-ways{display:flex;flex-direction:column;gap:14px}
.other-ways>h2{margin:8px 0 0}
.other-ways .ways{margin:0}
.paste-more{border:1.5px solid var(--ink);border-radius:14px;background:var(--paper)}
.paste-more>summary{list-style:none;cursor:pointer;padding:14px 44px 14px 16px;display:flex;flex-direction:column;gap:4px;position:relative}
.paste-more>summary::-webkit-details-marker{display:none}
.paste-more>summary::after{content:'';position:absolute;right:18px;top:22px;width:10px;height:10px;border-right:2.5px solid var(--ink);border-bottom:2.5px solid var(--ink);transform:rotate(45deg);transition:transform .15s}
.paste-more[open]>summary::after{transform:rotate(-135deg);top:26px}
.paste-more>summary b{font-size:17px}.paste-more>summary span{font-size:15px;color:var(--coal)}
.paste-more>summary:hover{background:var(--mist);border-radius:12px}
.paste-more>.paste{padding:4px 16px 16px;border:0;background:none;box-shadow:none;margin:0}
/* "Turn your writing into a game." with the slogan under it in the same size, light and italic; then the loop in three small steps */
h1.pair{display:flex;flex-direction:column;gap:.12em;font-size:clamp(30px,4.6vw,50px);line-height:1.05}
h1.pair .slogan{font-weight:400;font-style:italic;letter-spacing:-.02em;color:var(--coal)}
.loop{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 22px;font-size:15px;line-height:1.35}
.loop li{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:baseline}
.loop .n{grid-row:1 / span 2;width:26px;height:26px;border-radius:50%;background:var(--accent);color:var(--ink);font-weight:800;font-size:14px;display:inline-flex;align-items:center;justify-content:center;align-self:start}
.loop b{font-size:16px}.loop li>span:last-child{color:var(--coal)}
@media (max-width:700px){.loop{grid-template-columns:1fr}}
/* "Are you a teacher?": a bold line like "An easier way to play", with its two links small and grey under it */
.teachers{display:flex;flex-direction:column;gap:6px}
.teachers .gen-link{margin:0}
.teachers ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
/* Three asterisks in a row are three asterisks: the code font joins "***" into one sign with the middle star raised
   (seen on phones). No joined letter-shapes anywhere; !important because the `font` shorthand would switch them back on. */
*,*::before,*::after{font-variant-ligatures:none!important;font-feature-settings:"liga" 0,"calt" 0!important}
/* My gaps: the order of the page (5 Dec 2026) */
.h2row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.h2row h2{margin:0}
.gapsort .seg{min-height:36px;padding:0 14px;font-size:14px}
.noticed.latest{border-top:1.5px solid var(--ink)}
.noticed.latest .badge{margin-left:auto}
.noticed-kind{font-size:16px;margin:14px 0 0}
.closed-fold>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px}
.closed-fold>summary::-webkit-details-marker{display:none}
.closed-fold>summary h2{margin:0}
.closed-fold>summary::after{content:'';width:10px;height:10px;border-right:2.5px solid var(--ink);border-bottom:2.5px solid var(--ink);transform:rotate(45deg);margin-top:-4px;transition:transform .15s}
.closed-fold[open]>summary::after{transform:rotate(-135deg);margin-top:6px}
.closed-fold[open]>summary{margin-bottom:10px}
.card.gap.flash{box-shadow:0 0 0 4px var(--accent)}

/* a safety copy (#/copy) */
#copy-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
#copy-file:focus-visible+*,.copy-pick:has(+#copy-file:focus-visible){outline:3px solid var(--green,#1a7f37);outline-offset:2px}
.copy-pick{cursor:pointer}
.copy-out{margin:14px 0}
.copy-plan ul{margin:8px 0 12px;padding-left:20px}.copy-plan li{margin:4px 0}
.copy-plan .acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center}

/* The top bar in Spanish (and any language whose names run longer than the English ones): short names sooner, and a tighter phone bar. */
@media (max-width:1000px){html:not([lang=en]) .wide-only{display:none}html:not([lang=en]) .narrow-only{display:inline}}
@media (max-width:700px){html:not([lang=en]) nav{gap:7px}html:not([lang=en]) nav a:not(.pill){font-size:13px}}
@media (max-width:430px){html:not([lang=en]) .top{padding:0 10px}html:not([lang=en]) .logo img{height:23px}html:not([lang=en]) nav{gap:6px}html:not([lang=en]) nav a:not(.pill){font-size:12.5px}html:not([lang=en]) .langbtn{min-width:28px}html:not([lang=en]) nav a.pill{padding:0 11px;min-width:40px}html:not([lang=en]) .top-in{gap:8px 6px}}
@media (max-width:375px){html:not([lang=en]) .logo img{height:20px}html:not([lang=en]) nav{gap:5px}html:not([lang=en]) nav a:not(.pill){font-size:12px}html:not([lang=en]) nav a.pill{padding:0 9px;min-width:36px}}

/* The three level buttons always stay on one line, however narrow the phone and whatever the language. */
.levelsteps{flex-wrap:nowrap;max-width:100%}.levelsteps .seg{flex:0 1 auto;min-width:0;white-space:nowrap;justify-content:center}
@media (max-width:520px){.levelsteps .seg{padding:0 10px;font-size:13.5px}}
@media (max-width:400px){.levelsteps .seg{padding:4px 8px;font-size:12.5px;letter-spacing:-.01em;white-space:normal;text-align:center;line-height:1.15}}
@media (max-width:350px){.levelsteps .seg{padding:4px 6px;font-size:11.5px;white-space:normal;text-align:center;line-height:1.15}}        /* the narrowest phones: a long name may take two lines inside its button */
