/* The stage stays still while the question sheet enters. */
body[data-view=watch]{overflow:hidden;overscroll-behavior:none}
body[data-view=watch]>.site-bar{display:none}
#view-watch{
  --pearl:#fff9e9;--seafoam:#b6f6dd;--edge:#c0f3e135;
  position:fixed;inset:0;z-index:40;
  display:grid;grid-template: auto minmax(0,1fr) / minmax(0,1fr);isolation:isolate;
  width:100%;height:100vh;height:100dvh;overflow:hidden;color:var(--pearl);
  background:linear-gradient(115deg,#04191cec,#062828da 54%,#092c2eda),url('/art/deep-water.webp') center/cover;
  font:500 1rem/1.5 Inter,system-ui,sans-serif
}
#view-watch::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 5% 90%,#197e7136,transparent 46%),radial-gradient(ellipse at 94% 0%,#caac6324,transparent 42%)}
#view-watch:fullscreen{width:100%;height:100vh;height:100dvh}
.watch-bar,.watch-layout{box-sizing:border-box;width:100%;min-width:0;margin-inline:auto}
.watch-bar{
  display:flex;align-items:center;gap:clamp(8px,1.5vw,20px);max-width:1400px;
  padding:calc(7px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 7px max(12px,env(safe-area-inset-left));
  border-bottom:1px solid var(--edge)
}
.watch-wordmark{font:600 clamp(16px,1.45vw,23px)/1 Georgia,serif;letter-spacing:.14em}
.watch-divider{flex:none;height:18px;width:1px;background:var(--edge)}
.watch-navtitle{min-width:0;flex:1;color:#d3e1da;font-size:.9rem;line-height:1.25;overflow-wrap:anywhere}
.watch-icon{width:42px;height:42px;flex:none;display:grid;place-items:center;border:1px solid var(--edge);border-radius:50%;background:#082a2c;color:#e5f4e7}
.watch-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.watch-icon:hover{background:#1c4242;border-color:#b2d9bc}
#watch-sound[aria-pressed=false] .sound-off,#watch-sound[aria-pressed=true] .sound-on{display:none}
.watch-layout{
  display:flex;flex-direction:column;align-items:stretch;gap:clamp(8px,1.2vh,14px);
  min-height:0;max-width:58rem;max-width:min(58rem,100dvh);
  padding:clamp(8px,1.3vh,16px) max(12px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))
}
.watch-film{flex:none;min-width:0;width:100%}
.watch-stage{position:relative;width:100%;aspect-ratio:16/9;min-height:200px;background:#020a0c}
#watch-embed,#watch-embed iframe,#watch-embed video{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}
#watch-panel{width:100%;min-width:0;min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:4px 2px 10px}
#watch-embed video{object-fit:contain;pointer-events:none;background:#020a0c}
.watch-panel-body{width:100%;min-width:0}
.watch-progress{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin:0 0 12px}
#watch-count{color:#b6e4cf;font-size:.82rem;font-weight:650;letter-spacing:.075em}
#watch-track{display:flex;gap:4px;width:clamp(65px,13vw,150px);height:3px}
#watch-track i{flex:1;min-width:0;border-radius:5px;background:#809e943c}
#watch-track .complete{background:#a0dbbb}#watch-track .current{background:#eed7a5}
#watch-prompt{margin:0;color:var(--pearl);font:500 italic clamp(2.2rem,3.2vw,3.8rem)/1.05 var(--serif);letter-spacing:-.044em;overflow-wrap:anywhere;text-wrap:balance}
#view-watch:is([data-phase=question],[data-phase=feedback]) #watch-prompt{font-size:clamp(1.65rem,3.6vw,2.65rem);line-height:1.03}
#watch-prompt:focus{outline:none}
#watch-hint,#watch-status{margin:16px 0 0;font-size:1rem;color:#c2d6cd;line-height:1.5}
#watch-status{color:#e4f6d9;font-weight:600}
#watch-status:empty,#watch-hint:empty,#watch-options:empty,#watch-actions:empty{display:none}
#watch-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:14px}
#watch-actions button,.watch-review-launch{min-height:46px;padding:10px 20px;border-radius:99px;font:620 .96rem/1.35 Inter,system-ui,sans-serif}
.watch-primary{color:#103a32;background:linear-gradient(125deg,#e4f6d5,#a2e5cd);border:1px solid #d8f9d0;box-shadow:0 7px 24px #14231f44}
.watch-primary:hover{background:#e1ffe7}
.watch-secondary{color:#dfefdf;border:1px solid #c1e7cc4d;background:#0c3636}
.watch-secondary:hover{border-color:#b9dfc5;background:#174240}
#watch-options{display:grid;gap:9px;margin-top:17px}
.watch-choice{
  display:grid;grid-template-columns:auto minmax(0,1fr);overflow-wrap:anywhere;align-items:center;gap:13px;
  width:100%;min-height:53px;padding:10px 15px;
  text-align:left;font:550 1rem/1.36 Inter,system-ui,sans-serif;color:#ecf6e9;
  border:1px solid #bce5c844;border-radius:15px;background:linear-gradient(108deg,#183f3ded,#103333e8);
  transition:background .18s,border-color .18s
}
.watch-choice::before{content:attr(data-key);width:25px;height:25px;display:grid;place-items:center;border:1px solid #b5d9bd61;border-radius:50%;color:#cae6cf;font:600 .75rem/1 Inter,system-ui,sans-serif}
.watch-choice:enabled:hover,.watch-choice:focus-visible{border-color:#c6e9c7;background:#204c46}
.watch-choice:disabled{opacity:1;cursor:default}
.watch-choice.is-correct{border-color:#a3e4b5;color:#efffea;background:#24533b}.watch-choice.is-correct::before{content:'✓';background:#b5edbf;color:#16472f}
.watch-choice.is-wrong{border-style:dashed;border-color:#f0b1a0;background:#533c34}.watch-choice.is-wrong::before{content:'×';color:#ffcec0}
.watch-review-launch{width:100%;display:block;margin-bottom:10px}

/* Movement belongs to the answer panel, outside the picture. */
#watch-signal{display:grid;place-items:center;width:100%;height:clamp(120px,23vh,215px);background:radial-gradient(ellipse at center,#8de0c91c,transparent 68%)}
.watch-bars{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);place-items:center;width:min(82%,25rem);height:clamp(78px,13vh,128px);max-height:100%}
.watch-bars::before{content:"";position:absolute;width:100%;height:1px;background:linear-gradient(90deg,transparent,#9cd3bb66,transparent)}
.watch-bars i{height:var(--height);width:65%;max-width:15px;border-radius:99px;background:linear-gradient(#eef6d8,#8ee4c8 55%,#59bbaa);box-shadow:0 0 12px #8ee4c833;transform-origin:center}
#view-watch:is([data-phase=loading],[data-phase=starting],[data-phase=buffering]) .watch-bars i{opacity:.7}
#view-watch[data-phase=paused] #watch-prompt{font-size:clamp(1.8rem,3vw,3.3rem)}
@media(prefers-reduced-motion:no-preference){
  .watch-bars i{animation:wave-bar 1.12s ease-in-out var(--delay) infinite alternate}
  #view-watch:is([data-phase=loading],[data-phase=starting],[data-phase=buffering]) .watch-bars i{animation-duration:1.8s}
  @keyframes wave-bar{from{transform:scaleY(.45)}to{transform:scaleY(1)}}
  #view-watch[data-phase=question] #watch-panel{animation:watch-rise .18s ease-out both}
  @keyframes watch-rise{from{opacity:.45;transform:translateY(3px)}to{opacity:1;transform:none}}
}
@media(min-width:760px) and (orientation:landscape){
  .watch-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);grid-template-rows:minmax(0,1fr);align-items:center;gap:clamp(16px,3vw,54px);max-width:1480px;padding:clamp(8px,2vh,24px) max(clamp(16px,3vw,46px),env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(clamp(16px,3vw,46px),env(safe-area-inset-left))}
  .watch-film{max-width:100%;align-self:center}
  .watch-stage{max-height:calc(100dvh - 96px)}
  #watch-panel{height:100%;max-height:100%;display:flex;flex-direction:column;min-height:0;overflow-y:auto;padding:6px 4px;scrollbar-gutter:stable}
  .watch-panel-body{flex:none;margin-block:auto}
  .watch-film[hidden]+#watch-panel{grid-column:1/-1;width:min(100%,42rem);justify-self:center}
  #view-watch.watch-long #watch-prompt{font-size:clamp(1.55rem,2.35vw,2.45rem)}
}
@media(max-width:759px),(orientation:portrait){
  .watch-layout{max-width:min(100%,52rem)}
  .watch-progress{margin-bottom:8px}
  #watch-hint,#watch-status{margin-top:6px}
  #watch-options{margin-top:9px;gap:6px}
  .watch-choice{min-height:44px;padding:8px 11px;font-size:.96rem}
  #watch-actions{gap:7px;margin-top:9px}
  #watch-actions button{padding:8px 13px}
  #view-watch.watch-long #watch-prompt{font-size:clamp(1.35rem,4.8vw,2.1rem)}
}
@media(max-height:740px){
  #watch-options{gap:5px;margin-top:8px}
  .watch-choice{min-height:42px;padding:6px 10px;font-size:.93rem;line-height:1.27}
  #watch-hint,#watch-status{margin-top:5px;font-size:.92rem}
  #watch-actions{margin-top:7px}
  #watch-actions button{min-height:40px;padding:6px 12px}
}
@media(max-width:480px){.watch-bar{gap:8px}.watch-wordmark,.watch-divider{display:none}.watch-navtitle{font-weight:600;font-size:.96rem}}
@media(max-width:759px) and (max-height:520px) and (orientation:landscape){
  .watch-layout{display:block;overflow:auto}.watch-stage{max-width:min(100%,380px);margin-inline:auto}#watch-panel{overflow:visible;margin-top:8px}
}
@media(min-width:760px) and (max-height:440px){
  .watch-layout{padding-block:4px}
  #watch-signal{height:80px}
  #view-watch:is([data-phase=question],[data-phase=feedback]) #watch-prompt{font-size:1.5rem}
  .watch-progress{margin-bottom:5px}
}
