:root{
  --paper:#f1eadd;--ink:#211d17;--muted:#60574b;--rule:#2f261f46;--accent:#a73c26;
  --side:clamp(24px,4.6vw,96px);--head:clamp(46px,9.5dvh,86px);--foot:clamp(47px,10.1dvh,90px);
  --sans:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  --serif:"Songti SC","Noto Serif CJK SC","STSong",SimSun,serif;
  color-scheme:light;font-family:var(--sans);color:var(--ink);background:#0a101b
}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{position:relative;isolation:isolate;background:var(--paper)}
body[data-theme=theatre],body[data-theme=midnight]{--ink:#f4e5c8;--paper:#101828;--muted:#c8bda7;--rule:#dfceab52;--accent:#f1be78;color-scheme:dark}
body[data-theme=vermilion]{--ink:#fff1d8;--paper:#a43725;--muted:#f1d6bd;--rule:#f7dec969;--accent:#ffe0aa}
body[data-theme=warm]{--paper:#eed8b8}body[data-theme=cream]{--paper:#f3dfbf}body[data-theme=ivory],body[data-theme=qr]{--paper:#f7f3e8}
button,a{font:inherit;color:inherit}button{border:0;background:transparent;padding:0;cursor:pointer}a{text-decoration:none}button:disabled{opacity:.29;cursor:default}button:hover:not(:disabled),a:hover{text-decoration:none}button:focus-visible,a:focus-visible,dialog:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
[hidden]{display:none!important}.sr{position:absolute;clip-path:inset(100%);width:1px;height:1px;overflow:hidden}
.mast,.transport{position:absolute;left:var(--side);right:var(--side);display:flex;align-items:center;color:var(--ink);z-index:3}
.mast{top:0;height:var(--head);gap:24px;pointer-events:none}.mast a,.mast button{pointer-events:auto}.mast a,.mast button,.buttons button{font-size:clamp(12px,1.06vw,19px);min-height:36px}
.mast a,.mast button{display:inline-flex;align-items:center;gap:.6em}.mast a span{font:1.45em/.8 Georgia,serif}
.brand{margin-left:auto;display:flex;align-items:baseline;gap:.55em;font:italic 600 clamp(19px,1.65vw,31px)/1 Georgia,'Times New Roman',serif;letter-spacing:-.065em}
.brand span{font:600 .52em/1 var(--serif);letter-spacing:.02em}
#menu{margin-left:clamp(4px,1vw,20px)}.menu-icon{display:inline-block;width:1.06em;height:.63em;border-block:1.5px solid}
body[data-scene=intro] .brand,body[data-scene=finale] .brand{visibility:hidden}
#exhibition{touch-action:pan-y;height:100%;height:100dvh;position:relative;isolation:isolate;overflow:hidden}
.sheet{position:absolute;inset:0;overflow:hidden;isolation:isolate;background:var(--stock,#f1eadd);color:var(--print,#211d17);contain:layout paint style}
.sheet[data-theme=ivory],.sheet[data-theme=qr]{--stock:#f7f3e8}.sheet[data-theme=cream]{--stock:#f3dfbf}.sheet[data-theme=warm]{--stock:#eed8b8}
.sheet[data-theme=midnight],.sheet[data-theme=theatre]{--stock:#101828;--print:#f4e5c8;--spot:#e6bb80}
.sheet[data-theme=vermilion]{--stock:#a43725;--print:#fff1d8;--spot:#f6d697}
.sheet::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.10;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 185 185' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.53' d='M0 0h185v185H0z'/%3E%3C/svg%3E");background-size:160px}
.sheet.is-leaving{pointer-events:none}
.cover-art,.cover-art img{position:absolute;inset:0;width:100%;height:100%;display:block}.cover-art{z-index:-1}.cover-art img{object-fit:cover;object-position:68% 52%}
.cover-fade{position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(90deg,#070e19cc,rgba(8,16,29,.28) 30%,transparent 53%),linear-gradient(0deg,#07101a96,transparent 14%)}
.hero-type{position:absolute;left:calc(var(--side) + .1vw);top:50%;transform:translateY(-50%);color:#f3e0b6}
.hero-type h1{margin:0;font:500 clamp(74px,min(10.9vw,22dvh),224px)/.78 Georgia,'Times New Roman',serif;letter-spacing:-.085em}
.hero-type h1 i{display:block;margin:0 0 .23em .09em;font:italic 400 .46em/.86 Georgia,'Times New Roman',serif;letter-spacing:-.068em;color:#e4ad71}
.hero-type p{font:550 clamp(18px,min(2.5vw,4.7dvh),46px)/1.1 var(--serif);letter-spacing:.19em;margin:clamp(18px,3.6dvh,35px) 0 0 .15em}
.hero-type .text-link{margin:clamp(18px,5.2dvh,48px) 0 0 .28em;color:#f2dab0}
.text-link{display:inline-flex;align-items:center;gap:.8em;width:max-content;font-size:clamp(12px,min(1.2vw,2.9dvh),21px);padding:.34em 0 .32em;border-bottom:1px solid currentColor;font-weight:560}
.text-link span{display:inline-block;transition:transform .2s}.text-link:hover span{transform:translate(.17em,-.13em)}
.spread{position:absolute;left:var(--side);right:var(--side);top:var(--head);bottom:var(--foot);display:grid;grid-template-columns:minmax(0,.51fr) minmax(0,1fr);gap:clamp(18px,3.9vw,90px);align-items:center}
.copy{padding-left:1.2vw;position:relative;z-index:1;align-self:center}
.slot-label{display:flex;align-items:center;gap:.7em;margin:0 0 clamp(14px,3.3dvh,40px);font-size:clamp(12px,min(1.3vw,3.0dvh),23px);font-weight:600;letter-spacing:.12em;color:var(--spot,#943b27)}
.slot-label::before{content:"";width:clamp(20px,2.5vw,48px);height:2px;background:currentColor;transform:rotate(-5deg);transform-origin:left}
.copy h1{font:600 clamp(44px,min(5.7vw,12.4dvh),120px)/1.14 var(--serif);letter-spacing:-.07em;margin:0 0 .34em -.035em}.copy h1 span{display:block;white-space:nowrap}
.copy .caption{font:400 clamp(13px,min(1.33vw,3.15dvh),24px)/1.65 var(--sans);max-width:18em;margin:.65em 0 1.35em;opacity:.84;letter-spacing:.022em}
.gallery{position:relative;min-width:0;width:100%;height:92%;max-height:1040px;display:grid;align-content:center;justify-items:center}
.plate{position:relative;isolation:isolate;display:grid;place-items:center;width:100%;height:100%;max-height:calc((100vw - var(--side)*2) * .416);background:#f7f5f0;border:1px solid #3d2c1824;padding:clamp(6px,1.25dvh,13px);box-shadow:0 3px 3px #2117071a,0 17px 28px -18px #2a1b1080;color:#221e16}
.plate::before{content:"";z-index:-1;pointer-events:none;position:absolute;inset:1px 3px -4px -1px;border:1px solid #94836d;background:#d9ccb4;transform:rotate(-.55deg)}
.plate-crop{display:block;position:relative;overflow:hidden;width:100%;height:100%;background:#f4f2e9}
.plate-crop img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--focus-x,50%) var(--focus-y,38%);transform:scale(var(--zoom,1));transform-origin:var(--focus-x,50%) var(--focus-y,38%);transition:transform .85s cubic-bezier(.18,.64,.28,1)}
.plate:hover .plate-crop img{transform:scale(calc(var(--zoom,1) + .015))}
.zoom-mark{position:absolute;right:clamp(9px,1.5dvh,18px);bottom:clamp(9px,1.5dvh,18px);width:32px;height:32px;display:grid;place-items:center;border:1px solid #635a4ca0;border-radius:50%;background:#fffaf0ed;opacity:.78}
.zoom-mark::before{content:"";width:10px;height:10px;border:1.6px solid;border-radius:50%;transform:translate(-1px,-1px)}.zoom-mark::after{content:"";position:absolute;width:6px;height:1.6px;background:currentColor;transform:translate(5px,5px) rotate(45deg)}
.sheet[data-scene=grading] .plate::before,.sheet[data-scene=teacher] .plate::before{transform:rotate(.7deg)}
.qr-plate{height:100%;display:grid;place-items:center}.qr-plate a{display:block;padding:clamp(15px,3.1dvh,36px);background:white;box-shadow:2px 5px 0 #d4cbb9}.qr-plate img{display:block;width:min(37vw,47dvh,460px);height:auto}
.transport{bottom:0;height:var(--foot);gap:clamp(16px,2.1vw,38px)}.chapter-number{display:flex;align-items:baseline;gap:.55em;font:500 clamp(12px,1.04vw,18px)/1 ui-monospace,monospace;font-variant-numeric:tabular-nums}.chapter-number #position{font-size:1.4em;font-weight:650}.chapter-number .separator{opacity:.4}.chapter-number :last-child{opacity:.72}
.progress{height:1px;background:var(--rule);flex:1;position:relative}.progress i{display:block;height:2px;position:absolute;top:-.5px;left:0;width:var(--progress, 7.692%);background:var(--accent);transition:width .55s ease}
.buttons{display:flex;align-items:center;gap:clamp(8px,1.2vw,28px)}.buttons #prev,.buttons #next{font:400 clamp(19px,1.75vw,32px)/1 Georgia,serif;border:1px solid var(--rule);border-radius:50%;width:clamp(32px,6.0dvh,53px);min-height:0;height:clamp(32px,6.0dvh,53px);display:grid;place-items:center}
.buttons #next{border-color:var(--ink);background:var(--ink);color:var(--paper)}
#voice{display:inline-flex;align-items:center;gap:.6em;white-space:nowrap}
.sound-mark{width:15px;height:13px;background:linear-gradient(currentColor,currentColor) 0 50%/2px 48% no-repeat,linear-gradient(currentColor,currentColor) 4px 50%/2px 98% no-repeat,linear-gradient(currentColor,currentColor) 8px 50%/2px 74% no-repeat,linear-gradient(currentColor,currentColor) 12px 50%/2px 38% no-repeat}
#voice[aria-pressed=true] .sound-mark{color:var(--accent)}#full{display:grid;place-items:center;width:30px}
.full-mark{display:block;width:14px;height:14px;border:2px solid;mask:conic-gradient(at 5px 5px,transparent 90deg,#000 0) 0 0/9px 9px}
#chapters{position:fixed;top:calc(var(--head) - 4px);right:var(--side);z-index:5;display:grid;grid-template-columns:1fr 1fr;gap:2px;background:#182031;color:#f4ead4;border:1px solid #e0cc9e52;padding:9px;box-shadow:0 18px 60px #0a101b55;max-height:calc(100dvh - var(--head) - 14px);overflow:auto;min-width:min(380px,90vw)}
#chapters button{text-align:left;padding:10px 13px;color:#e5d9c4;font-size:clamp(13px,1vw,18px)}#chapters button[aria-current=true]{background:#efddba;color:#251d15}
body[data-final=true] .transport,body[data-final=true] .mast{transition:opacity .25s}body[data-final=true]:not(.show-controls) .transport:not(:focus-within),body[data-final=true]:not(.show-controls) .mast:not(:focus-within){opacity:0;pointer-events:none}
#viewer{color-scheme:light;color:#231f1a;background:#f4efe5;padding:0;border:1px solid #817761;border-radius:2px;width:min(91vw,1600px);max-width:96vw;max-height:90dvh}
#viewer::backdrop{background:#0a101ce8}#viewer[open]{display:flex;flex-direction:column;overflow:hidden;box-shadow:0 25px 100px #0004}
.view-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 19px;border-bottom:1px solid #cbc1b0;flex:none}
.view-toolbar strong{font:650 clamp(16px,1.55vw,24px) var(--serif)}.view-toolbar span{margin-left:1.2em;color:#62594c;font-size:clamp(11px,.9vw,15px)}
#closeDialog{font:400 27px/1 sans-serif;width:34px;height:32px}#fullImage{min-height:0;display:grid;place-items:center;padding:8px;background:#e6dfd3}#fullImage img{display:block;max-width:100%;max-height:calc(90dvh - 82px);object-fit:contain}
#workbench{position:relative;min-height:0;display:flex;flex-direction:column}#panel{position:relative;overscroll-behavior:contain;overflow:auto;padding:clamp(18px,3.2vw,40px);max-height:71dvh;min-height:44dvh;background:#fbf8f2}
#variants{display:flex;flex-wrap:wrap;gap:4px;padding:5px 20px;border-bottom:1px solid #d2c8b8}#variants:empty{display:none}#variants button{padding:7px 12px;border:1px solid transparent;font-size:14px}#variants button[aria-pressed=true]{border-color:#9f4d36;color:#903423}
#notice{position:fixed;left:50%;bottom:7%;transform:translateX(-50%);max-width:90vw;background:#1c211eeb;color:white;padding:8px 18px;margin:0;z-index:7;border-radius:3px;font-size:14px;text-align:center}#notice:empty{display:none}
@media(max-aspect-ratio:11/10){
 :root{--side:clamp(20px,5vw,48px);--head:clamp(49px,7.4dvh,74px);--foot:clamp(52px,8.1dvh,77px)}
 .spread{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:2.2dvh;align-content:center;align-items:start;inset:calc(var(--head) + 1dvh) var(--side) calc(var(--foot) + 2dvh)}
 .copy{padding-left:1px;display:grid;grid-template-columns:1fr auto;align-items:end;column-gap:12px}.slot-label{grid-column:1/-1;margin:0 0 .85em;font-size:12px}.copy h1{font-size:clamp(31px,min(6.7vw,6.2dvh),57px);margin:0}.copy h1 span{display:inline}.copy .caption{grid-column:1/-1;grid-row:3;font-size:clamp(12px,2.1vw,17px);max-width:none;margin:.42em 0 0}.copy .text-link{grid-column:2;grid-row:2;align-self:center;font-size:12px}
 .gallery{height:100%;align-self:center}.plate{height:100%;max-height:calc(90vw * 1.12);padding:6px}.plate-crop img{object-fit:contain;transform:none!important}
 .cover-art img{object-fit:cover;object-position:50% 59%}.cover-fade{background:linear-gradient(180deg,#080e1980,transparent 42%,transparent 72%,#080d18cf)}
 .hero-type{top:13%;left:var(--side);transform:none}.hero-type h1{font-size:clamp(70px,15vw,135px)}.hero-type h1 i{display:inline;font-size:.62em;margin:0 .22em 0 0}.hero-type p{font-size:clamp(16px,3.3vw,28px);margin-top:18px}.hero-type .text-link{margin-top:14px;font-size:12px}.brand span{display:none}
 .progress{margin-left:-6px}.buttons{gap:9px}#full{width:23px}.mast{gap:10px}.qr-plate img{width:min(64vw,43dvh)}
}
@media(max-width:440px){.view-toolbar{padding:7px 9px}.view-toolbar span{display:block;margin:2px 0 0;font-size:10px}#viewer{width:96vw}.copy h1{font-size:clamp(26px,6.7vw,32px)}.buttons #full{display:none}}
@media(max-height:460px) and (min-aspect-ratio:11/10){:root{--head:41px;--foot:43px}.spread{top:45px;bottom:47px}.slot-label{margin-bottom:8px}.copy h1{font-size:clamp(30px,10.4dvh,45px)}.copy .caption{font-size:11px;margin:5px 0 9px}.text-link{font-size:11px}.hero-type .text-link{margin-top:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* The photographic plate is fitted to the selected native screen region on both axes. */
.spread{grid-template-rows:minmax(0,1fr)}
.gallery{height:100%;min-height:0;display:flex;align-items:center;justify-content:center;container-type:size}
.plate{display:block;min-height:0;width:min(99cqw,calc(93cqh * var(--frame-ratio)));height:auto;max-height:none;aspect-ratio:var(--frame-ratio)}
.plate-crop img{position:absolute;max-width:none;height:auto!important;object-fit:fill;transform:none!important}
.sheet[data-scene=activity] .spread,.sheet[data-scene=notebook] .spread,.sheet[data-scene=rewards] .spread{grid-template-columns:minmax(0,1.12fr) minmax(0,.50fr)}
.sheet:is([data-scene=activity],[data-scene=notebook],[data-scene=rewards]) .gallery{grid-column:1;grid-row:1}
.sheet:is([data-scene=activity],[data-scene=notebook],[data-scene=rewards]) .copy{grid-column:2;grid-row:1;padding-left:.3vw}
.sheet[data-scene=activity] .plate::before{transform:rotate(1.1deg)}
#viewer #notice{position:absolute;bottom:4%}
@media(max-aspect-ratio:11/10){
 .spread,.sheet:is([data-scene=activity],[data-scene=notebook],[data-scene=rewards]) .spread{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
 .sheet:is([data-scene=activity],[data-scene=notebook],[data-scene=rewards]) .gallery,.sheet:is([data-scene=activity],[data-scene=notebook],[data-scene=rewards]) .copy{grid-column:auto;grid-row:auto}
 .gallery{align-items:start;align-self:stretch}.plate{width:min(100cqw,calc(99cqh * var(--frame-ratio)))}
}
.takes{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:clamp(8px,2.8dvh,23px)}
.takes button{border:1px solid transparent;min-height:30px;padding:.38em .62em;font:500 clamp(11px,min(1.02vw,2.4dvh),17px)/1.15 var(--sans);border-radius:2px;color:var(--print,#211d17)}
.takes button[aria-pressed=true]{border-color:currentColor;color:var(--spot,#943b27)}.takes button:hover{background:#8e786022}
.source-line{position:absolute;bottom:.1%;right:1%;font:500 clamp(10px,min(.90vw,1.8dvh),15px)/1.15 var(--sans);color:var(--print,#211d17);opacity:.77}
.gallery .plate{width:min(99cqw,calc(89cqh * var(--frame-ratio)))}
@media(max-aspect-ratio:11/10){
 .takes{grid-column:1/-1;margin:7px 0 0}.takes button{min-height:28px}.source-line{bottom:auto;top:calc(min(100cqw / var(--shot-ratio,1.6),88cqh) + 8px);position:static;margin-top:6px;text-align:right}
 .gallery{flex-direction:column;align-items:center;justify-content:flex-start;gap:0}
}

/* Select the question once, then compare its captured states in-place or at full size. */
.question-select {
 display:block; width:100%; max-width:23em; min-width:0; margin:.7em 0 .6em;
 font:550 clamp(12px,min(1.1vw,2.8dvh),19px)/1.45 var(--sans);
 padding:.55em .45em; border:1px solid #856f515c; border-radius:3px;
 color:var(--print,#211d17); background-color:#fff8eb; cursor:pointer;
}
.question-select:focus-visible { outline:2px solid var(--accent); outline-offset:2px }
.question-media { display:flex; align-items:baseline; gap:1.1em; flex-wrap:wrap }
.sheet:is([data-scene=practice],[data-scene=grading]) .copy h1 {
 font-size:clamp(24px,min(3.4vw,8dvh),70px); line-height:1.18; letter-spacing:-.045em
}
.sheet:is([data-scene=practice],[data-scene=grading]) .copy h1 span { white-space:normal; text-wrap:balance }
.original-steps { display:flex; gap:.35em; padding:5px 16px; flex:none; border-bottom:1px solid #d4cbbd }
.original-steps button { min-width:3.2em; min-height:32px; border-radius:2px; padding:.25em .65em; color:#393027; font-size:14px }
.original-steps button[aria-pressed=true] { color:#743724; background:#ead6b5 }
.original-steps:not([hidden]) ~ #fullImage img { max-height:calc(90dvh - 128px) }
@media(max-aspect-ratio:11/10) {
 .question-select {grid-column:1/-1;grid-row:4;margin:.5em 0 0;max-width:none}
 .question-media { grid-column:2; grid-row:2; flex-direction:column; align-items:flex-start; gap:.2em; align-self:center }
 .sheet:is([data-scene=practice],[data-scene=grading]) .copy .takes { grid-column:1/-1;grid-row:5 }
}

#fullImage>.quiz-chat-sample{width:min(100%,1190px,calc((90dvh - 140px)*2.32));height:auto;aspect-ratio:2.32}
