/* Opt-in learner sheet. The proof places all utility controls outside the math field. */
html[data-learner-proof] .comic-page {
  margin:0; padding:clamp(10px,3.6vw,42px); background:#fff; color:#000;
}
html[data-learner-proof] .comic-main {max-width:810px}
html[data-learner-proof] :is(.comic-bar,.journey-hooks,.frame-control-quiet) {display:none!important}
html[data-learner-proof] .comic-panel {
  --proof-jaw:clamp(62px,21.1cqi,174px);
  --menu-top:max(35px,calc(var(--proof-jaw) * .49 + 5px));
  --menu-right:clamp(11px,5.9cqi,47px);
  position:relative;isolation:isolate;overflow:clip;background:#fff;
  grid-template-rows:minmax(0,33.5fr) minmax(0,40.5fr) minmax(0,26fr);
  width:100%;min-width:0;padding:0 clamp(5px,2.4vw,20px);aspect-ratio:1.37;min-height:clamp(378px,67vw,572px);
  border:2px solid #000;box-shadow:6px 7px #000;
}
html[data-learner-proof] .comic-panel::before,html[data-learner-proof] .comic-panel::after {content:none}
html[data-learner-proof] .comic-panel :is(.frame-ink,.press-trim,.registration-proof) {display:none!important}
html[data-learner-proof] .proof-jaws {position:absolute;inset:0;z-index:0;pointer-events:none}
html[data-learner-proof] .proof-jaw {position:absolute;display:block;width:var(--proof-jaw);height:auto;overflow:hidden;color:#000;fill:#000;pointer-events:none}
html[data-learner-proof] .proof-jaw-nw {top:-.3px;left:-.3px;--face:#02d1d9;--shadow:#fc01ca;--chip:#ffe539}
html[data-learner-proof] .proof-jaw-ne {top:-.3px;right:-.3px;transform:scaleX(-1);--face:#fc01ca;--shadow:#ffe539;--chip:#02d1d9}
html[data-learner-proof] .proof-jaw-sw {bottom:-.3px;left:-.3px;transform:scaleY(-1);--face:#ffe539;--shadow:#fc01ca;--chip:#02d1d9}
html[data-learner-proof] .proof-jaw-se {bottom:-.3px;right:-.3px;transform:scale(-1);--face:#02d1d9;--shadow:#ffe539;--chip:#fc01ca}
html[data-learner-proof] .jaw-face {fill:var(--face)}
html[data-learner-proof] .jaw-shadow {fill:var(--shadow)}
html[data-learner-proof] .jaw-chip {fill:var(--chip)}
html[data-learner-proof] .comic-panel>header {grid-row:1;position:relative;z-index:1;align-self:center}
html[data-learner-proof] .comic-prompt {
  color:#000;letter-spacing:-.035em;line-height:1.05;min-block-size:1.12em;
  font-size:clamp(35px,6.8cqi,56px);text-shadow:none;
}
html[data-learner-proof] .target-number {
  display:inline-grid;place-items:center;inline-size:1.29em;block-size:1.29em;margin:0 0 0 .025em;
  vertical-align:-.02em;transform:none!important;border:clamp(2px,.3cqi,3px) solid #000;
  border-radius:50%;background:#ffe539;color:#000;box-shadow:.045em .055em #000;line-height:1;
}
html[data-learner-proof] .target-number::before,html[data-learner-proof] .target-number::after {content:none!important;animation:none!important}
html[data-learner-proof] .comic-stage {grid-row:2;align-content:center;align-items:center;padding:0;z-index:1}
html[data-learner-proof] .comic-tools {grid-row:3;min-height:0;padding:0;align-self:center}
html[data-learner-proof] :is(#help,#replay,#to-production) {display:none!important}
html[data-learner-proof] #panel:is([data-phase="ready"],[data-phase="feedback"],[data-phase="count"]) #feedback {visibility:hidden}
html[data-learner-proof] #proof-menu-toggle,html[data-learner-proof] #proof-hint {
  appearance:none;position:absolute;display:grid;place-items:center;min-width:46px;min-height:46px;
  margin:0;border:0;border-radius:3px;background:#fff;color:#000;box-shadow:none;cursor:pointer;padding:6px;
}
html[data-learner-proof] #proof-menu-toggle {z-index:15;right:var(--menu-right);top:var(--menu-top);border:1.5px solid #000;border-radius:0;box-shadow:2px 2px #000}
/* Beyond the outer step, the right side of the button sits under the shallower ledge. */
@container (min-width:555px) {
  html[data-learner-proof] :is(#proof-menu-toggle,#proof-menu) {--menu-top:calc(var(--proof-jaw) * .43 + 5px)}
}
html[data-learner-proof] #proof-menu-toggle svg {display:block;width:clamp(23px,3.6cqi,30px);height:auto;stroke-linecap:round}
html[data-learner-proof] #proof-hint {z-index:3;left:50%;bottom:6.8%;transform:translateX(-50%);isolation:isolate;
  width:clamp(49px,10.3cqi,83px);height:clamp(44px,8.4cqi,66px);background:transparent;
}
html[data-learner-proof] #proof-hint::before {content:"";position:absolute;z-index:-1;inset:0;background:url("art/learner-proof-question.svg") center / contain no-repeat}

html[data-learner-proof] #proof-hint svg {display:block;width:clamp(23px,3.9cqi,30px);height:auto}
html[data-learner-proof] #proof-menu-toggle:hover {background:#ffe539}
html[data-learner-proof] #proof-menu-toggle[aria-expanded="true"] {background:#fff}
html[data-learner-proof] #proof-hint:hover::before {filter:drop-shadow(1px 1px #000)}
html[data-learner-proof] #proof-menu-backdrop {
  position:absolute;inset:0;z-index:12;display:block;appearance:none;
  width:100%;height:100%;border:0;padding:0;margin:0;background:transparent;
}
html[data-learner-proof] #proof-menu {
  position:absolute;z-index:16;top:calc(var(--menu-top) + 52px);right:var(--menu-right);
  display:grid;width:clamp(148px,29.8cqi,232px);padding:3px;border:2px solid #000;color:#000;background:#fff;box-shadow:4px 4px #000;
}
html[data-learner-proof] #proof-menu button {
  display:flex;align-items:center;width:100%;min-height:clamp(47px,8.4cqi,67px);text-align:left;border:0;
  border-radius:0;padding:6px 16px;background:#fff;color:#000;font:700 clamp(18px,3.2cqi,22px)/1.15 "Source Sans",system-ui,sans-serif;
}
html[data-learner-proof] #proof-menu button+button {border-top:1px solid #000}
html[data-learner-proof] #proof-menu button::before {
  content:"";display:block;flex:0 0 clamp(16px,2.3cqi,21px);aspect-ratio:1;
  margin-right:clamp(9px,1.8cqi,15px);background:url("art/learner-proof-menu.svg") left center / 300% 100% no-repeat;
}
html[data-learner-proof] #proof-menu #proof-menu-restart::before {background-position:center}
html[data-learner-proof] #proof-menu #proof-menu-exit::before {background-position:right center}
html[data-learner-proof] #proof-menu button:is(:hover,:focus) {background:#fff;box-shadow:inset 4px 0 #ffe539}
html[data-learner-proof] #proof-menu button:focus-visible {outline:2px solid #000;outline-offset:-2px}
html[data-learner-proof] :is(#proof-menu-toggle,#proof-hint):focus-visible {outline:3px solid #000;outline-offset:3px}
html[data-learner-proof] .start-button {background:transparent}
html[data-learner-proof] .start-button::before {
  content:"";position:relative;grid-area:1/1;inset:auto;display:block;
  width:clamp(85px,20cqi,137px);aspect-ratio:1;mask-image:none!important;
  background:#ffe539;border:3px solid #000;border-radius:50%;box-shadow:4px 4px #000;
}
html[data-learner-proof] .start-button::after {
  content:"";width:clamp(26px,6.5cqi,45px);aspect-ratio:.82;transform:translateX(9%);
  background:#000;clip-path:polygon(0 0,100% 50%,0 100%);animation:none;
}
html[data-learner-proof] #panel:is([data-phase="start"],[data-phase="finished"],[data-phase="exhausted"]) .comic-prompt {
  position:absolute;overflow:hidden;width:1px;height:1px;clip-path:inset(50%);white-space:nowrap;
}
html[data-learner-proof] #panel[data-phase="finished"] .edition-seal {display:grid;width:clamp(79px,19cqi,126px);aspect-ratio:1}
html[data-learner-proof] #panel[data-phase="finished"] .seal-plate {display:none}
html[data-learner-proof] #panel[data-phase="finished"] .seal-face {border:3px solid #000;border-radius:50%;background:#02d1d9;clip-path:none;box-shadow:3px 4px #000}
html[data-learner-proof] #panel[data-phase="finished"] .seal-face::before,html[data-learner-proof] #panel[data-phase="finished"] .seal-face::after {content:none}
html[data-learner-proof] #panel[data-phase="finished"] .seal-tick {filter:none}
html[data-learner-proof] #again {
  display:grid;place-items:center;width:54px;min-height:50px;padding:5px;
  background:#fff;color:#000;border:2px solid #000;box-shadow:2px 2px #000;font-size:0;
}
html[data-learner-proof] #again::before {content:"";width:27px;height:27px;background:url('art/replay-arrow.png') center / contain no-repeat}
html[data-learner-proof] #again svg {display:none}
html[data-learner-proof] #panel #recover {justify-self:center;display:grid;place-items:center;gap:0;width:58px;height:54px;padding:7px;background:#ffe539;font-size:0}
html[data-learner-proof] #panel #recover::before {width:29px;height:29px}
html[data-learner-proof] .comic-page [hidden] {display:none!important}
@media (prefers-reduced-motion: no-preference) {
  html[data-learner-proof] #proof-hint:not([hidden]) {animation:proof-hint-appear 175ms ease-out both}
}
@keyframes proof-hint-appear {from {opacity:0} to {opacity:1}}
