#activity-back {
  position:absolute;z-index:30;left:0;top:0;display:block;
  width:clamp(112px,22.4%,179px);height:auto;aspect-ratio:230/112;
  padding:0;margin:0;border:0;background:transparent;color:#141110;appearance:none;
  cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  clip-path:polygon(0 0,100% 0,100% 5%,80% 39%,65% 39%,65% 49%,51% 49%,51% 59%,38% 59%,38% 85%,24% 85%,24% 94%,0 100%);
}
#activity-back[data-back-style="fold"] {
  width:clamp(116px,24.5%,196px);
  clip-path:polygon(0 0,100% 0,100% 10%,69% 52%,53% 55%,40% 70%,30% 82%,20% 98%,0 100%);
}
#activity-back .back-print,
#activity-back .back-print [data-sc-station="nw"] {
  position:absolute;inset:0;width:100%;height:100%;pointer-events:none;
}
#activity-back .sc-exit-accent,#activity-back .back-embroidery {display:none}
#activity-back .sc-mark {display:block;overflow:hidden}
#activity-back[data-back-style="fold"] .sc-mark [data-sc-part] {transform-origin:9% 45%}
#activity-back:is(:hover,:active) .back-arrow {filter:drop-shadow(0 1px 0 #ffe539)}
#activity-back:focus-visible {outline:0;filter:drop-shadow(0 2px 0 #151015)}
#activity-back:focus-visible .back-arrow path:first-child {stroke:#ffe539;stroke-width:7;paint-order:stroke fill}
#activity-back:focus-visible .back-arrow {filter:drop-shadow(0 2px 0 #141110)}
#activity-view:has([data-menu-open]) #activity-back {visibility:hidden}
#activity-view:has(#panel[hidden]) #activity-back {
  width:var(--swag-width,26%);height:var(--swag-height,46px);aspect-ratio:auto;
  clip-path:polygon(0 0,100% 0,100% 68%,82% 91%,65% 100%,20% 100%,0 78%);
}
#activity-view:has(#panel[hidden]) #activity-back .back-print {display:none}
#activity-view:has(#panel[hidden]) #activity-back .back-embroidery {
  display:block;position:absolute;left:49%;top:var(--stitch-y,23px);
  width:var(--stitch-width,34px);height:auto;transform:translate(-50%,-50%);pointer-events:none;
}
.embroidered-arrow {fill:#ffe289;stroke:#571934;stroke-width:3;stroke-linejoin:round}
#activity-back:focus-visible .embroidered-arrow {fill:white;stroke:#241322;stroke-width:5}
@media(forced-colors:active){
  #activity-back:focus-visible {outline:3px solid ButtonText;outline-offset:-3px}
  #activity-back .back-arrow path:first-child,.embroidered-arrow {fill:ButtonText;stroke:ButtonFace}
}

html[data-showcase] #panel .sc-environment [data-sc-station="nw"] {
  top:0;left:0;--sc-width:clamp(112px,22.4cqi,179px);
}
html[data-showcase] #panel[data-style="fold"] .sc-environment [data-sc-station="nw"] {
  --sc-width:clamp(116px,24.5cqi,196px);
}
#activity-view:has(#activity-back:focus-visible) .sc-environment .back-arrow path:first-child {
  stroke:#ffe539;stroke-width:7;paint-order:stroke fill;
}

/* Each option is inked into its original plate. Reveal the two top marks on
   one beat, then answer left and right at the foot of the page. */
#activity-view:has(#panel:is([data-controls="hidden"],[data-watch-frame="building"],[data-pure="true"])) .back-arrow,
#panel:is([data-controls="hidden"],[data-watch-frame="building"],[data-pure="true"],[data-kind="opening"]) .corner-word {visibility:hidden}
#panel .corner-word {
  fill:#141015;paint-order:stroke fill;stroke:#fff;stroke-width:4.5;stroke-linejoin:round;
  pointer-events:none;
}
#panel #corner-idle-signal {display:none!important}
html[data-showcase] #panel .lower-option {
  position:absolute;z-index:7;padding:0;margin:0;bottom:0;top:auto;
  min-width:0;min-height:0;height:auto;aspect-ratio:230/112;
  border:0;border-radius:0;box-shadow:none;background:transparent;
  opacity:1;appearance:none;transform:none;overflow:visible;line-height:1;
  animation:none;touch-action:manipulation;cursor:pointer;
}
html[data-showcase] #panel .lower-option:disabled{opacity:1;cursor:default;pointer-events:none}
html[data-showcase] #panel .lower-option::before,html[data-showcase] #panel .lower-option::after {content:none}
html[data-showcase] #panel .lower-option .sc-mark{display:block;width:100%;height:100%}
html[data-showcase] #panel .lower-option [data-sc-station]{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
html[data-showcase] #panel .lower-option .sc-exit-accent {display:none}
html[data-showcase] #panel #hear-again {
  left:0;right:auto;width:clamp(117px,23cqi,182px);
  clip-path:polygon(0 4%,16% 4%,16% 17%,29% 17%,29% 26%,41% 26%,41% 38%,55% 38%,88% 100%,0 100%);
}
html[data-showcase] #panel #proof-hint {
  right:0;left:auto;--help-width:clamp(116px,23.5cqi,185px);width:var(--help-width);
  clip-path:polygon(100% 1%,85% 1%,85% 12%,72% 12%,72% 21%,56% 21%,56% 36%,45% 36%,15% 100%,100% 100%);
  transform-origin:100% 100%;
}
html[data-showcase] #panel[data-style="fold"] #hear-again{
  width:clamp(118px,22.7cqi,182px);
  clip-path:polygon(0 42%,21% 22%,54% 63%,81% 100%,0 100%);
}
html[data-showcase] #panel[data-style="fold"] #proof-hint{
  --help-width:clamp(119px,27cqi,206px);
  clip-path:polygon(93% 0,75% 14%,65% 41%,42% 49%,6% 100%,100% 100%,100% 0);
}
html[data-showcase] #panel .lower-option:focus-visible {outline:0}
html[data-showcase] #panel .lower-option:focus-visible .corner-word{stroke-width:8;stroke:#fff;filter:drop-shadow(0 2px 0 #141110)}
html[data-showcase] #panel #proof-hint[data-attention]:enabled {width:calc(var(--help-width)*1.095)}
html[data-showcase] #panel #proof-hint[data-attention]:enabled [data-sc-station] {
  transform-origin:100% 100%;animation:corner-call 1.65s ease-in-out infinite;
}
@keyframes corner-call {
  0%,100%{transform:scale(.91324);filter:brightness(1)}
  49%{transform:scale(1);filter:brightness(1.17)}
}
html[data-showcase] #panel #proof-hint[data-attention] .corner-word{
  stroke:#fff3a4;stroke-width:6;
}
@media(prefers-reduced-motion:reduce){
  html[data-showcase] #panel #proof-hint[data-attention]:enabled {width:var(--help-width)}
  html[data-showcase] #panel #proof-hint[data-attention]:enabled [data-sc-station] {
    animation:none;transform:none;filter:brightness(1.17);
  }
}
@media(forced-colors:active){#panel .corner-word{fill:ButtonText;stroke:ButtonFace}}
/* Earned celebrations retain the Back print that the learner has already seen. */
#activity-view:has(#panel[data-pure="true"][data-watch-frame="seated"]) .back-arrow {visibility:visible}
#activity-back[inert] {pointer-events:none}
#panel .corner-help-halo {display:none;position:absolute;right:0;bottom:0;z-index:1;pointer-events:none;
  width:clamp(116px,23.5cqi,185px);aspect-ratio:230/112;transform-origin:100% 100%;filter:blur(5px)}
#panel[data-style="fold"] .corner-help-halo {width:clamp(119px,27cqi,206px)}
#panel .corner-help-halo::before {content:"";position:absolute;inset:-4% 0 0 -2%;background:#ffc33c;
  clip-path:polygon(100% 0,83% 0,83% 13%,73% 13%,73% 22%,55% 22%,55% 37%,45% 37%,15% 100%,100% 100%)}
#panel[data-style="fold"] .corner-help-halo::before {clip-path:polygon(100% 0,76% 16%,65% 43%,41% 50%,6% 100%,100% 100%)}
#panel #proof-hint[data-attention]:enabled + .corner-help-halo {display:block;animation:corner-shine 1.65s ease-in-out infinite}
@keyframes corner-shine{0%,100%{opacity:.25;transform:scale(1.03)}49%{opacity:1;transform:scale(1.17)}}
@media(prefers-reduced-motion:reduce){
  #panel #proof-hint[data-attention]:enabled + .corner-help-halo{animation:none;opacity:.9;transform:scale(1.1)}
}
