.crt{position:absolute;left:34.5%;top:22.45%;width:24.7%;height:24.8%;
  transform:skewY(20.5deg);transform-origin:0 0;
  z-index:2;padding:3.2% 0 3.2% .35cqw;overflow:hidden;color:#0F2109;
  display:flex;flex-direction:column;justify-content:center;
  font-size:.95cqw;line-height:1.66;font-weight:600;letter-spacing:-.03em}
.crt .cl{display:block;white-space:nowrap}
.crt .dim{opacity:.55}
.crt .done{display:inline-block;background:var(--ink);color:var(--lime);padding:0 .34em}
.crt .done--wait{background:var(--pink);color:var(--ink)}
@keyframes blink{0%,49%{opacity:1}50%,100%{opacity:0}}

/* ── notification cards ─────────────────────────────────────
   Upright, pinned to the edges of the stage the way the old
   hero placed them. Each card carries the pet that delivered
   it, peeking up from behind its bar beside the close box. */
.note{position:absolute;z-index:5;width:31%;
  background:var(--paper);border:var(--bw) solid var(--ink);
  box-shadow:var(--ext) var(--ext) 0 var(--ink);
  transition:opacity .3s ease,transform .5s cubic-bezier(.2,1.25,.3,1)}
.note--a{left:0;top:11%}
.note--b{right:0;top:37%}
.note--c{right:9%;bottom:5%}
.note__bar{display:flex;align-items:center;gap:.55em;
  padding:.45em .6em;border-bottom:var(--bw) solid var(--ink);
  background:var(--purple);color:var(--paper);
  font-size:1.15cqw;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.note--b .note__bar{background:var(--pink);color:var(--ink)}
.note--c .note__bar{background:var(--lime);color:var(--ink)}
.note__bar i{width:.8cqw;height:.8cqw;flex:none;border:var(--bw) solid var(--ink);
  border-radius:50%;background:var(--lime)}
.note__bar i:nth-child(2){background:var(--pink)}
.note--b .note__bar i:nth-child(2),
.note--c .note__bar i:nth-child(2){background:var(--purple)}
.note__bar em{font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* z-index:-1 keeps the pet behind the card's own bar, so it reads
   as climbing out from behind the notification. `top` lifts it clear of
   the bar without touching the bar's own layout — the margins still own
   the height, so nudging this never reflows the card. */
.note__pet{position:relative;z-index:-1;flex:none;width:7.2cqw;height:7.2cqw;
  top:-1.35cqw;margin:-5.7cqw 0 -.9cqw auto;object-fit:contain;
  filter:drop-shadow(2px 2px 0 rgba(0,0,0,.2));
  transition:opacity .22s ease .1s,transform .42s cubic-bezier(.18,1.35,.32,1) .1s}
.note__x{flex:none;display:grid;place-items:center;width:2cqw;height:2cqw;
  border:var(--bw) solid var(--ink);background:var(--paper);color:var(--ink);
  font-size:1.5cqw;line-height:1}
.note__body{padding:1.2cqw 1.3cqw 1.25cqw}
.note__prompt{display:flex;align-items:flex-start;gap:.55em;min-height:3.1em;
  font-family:var(--f-mono);font-size:1.4cqw;font-weight:700;
  line-height:1.32;text-align:left;letter-spacing:-.025em}
.note__promptMark{flex:none;color:var(--purple);font-weight:700}
.note--b .note__promptMark{color:#C73A5E}.note--c .note__promptMark{color:#557D00}
.note__promptText{display:inline}
.note__caret{display:none;width:.55em;height:1em;margin-left:.08em;
  background:var(--ink);vertical-align:-.12em}
.note.typing .note__caret{display:inline-block;animation:blink .75s steps(1,end) infinite}
.note__status{display:flex;align-items:center;gap:.55em;margin-top:.75cqw;
  border-top:var(--bw) solid var(--ink);padding-top:.75cqw;
  font-size:1.05cqw;line-height:1;text-align:left}
.note__statusIcon{position:relative;display:grid;place-items:center;width:1.65cqw;height:1.65cqw;
  flex:none;border:.28cqw solid rgba(0,0,0,.2);border-top-color:var(--ink);border-radius:50%}
.note__status b{font-size:1.1cqw;text-transform:uppercase}
.note__status small{margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-size:.95cqw;font-weight:600;opacity:.62}
.note.done-state .note__statusIcon,.note.wait-state .note__statusIcon{
  border:var(--bw) solid var(--ink);background:var(--lime);border-radius:0}
.note.done-state .note__statusIcon::after{content:"✓";font-size:1.15cqw;font-weight:700}
.note.wait-state .note__statusIcon{background:var(--pink)}
.note.wait-state .note__statusIcon::after{content:"!";font-size:1.15cqw;font-weight:700}

.statusline{position:absolute;z-index:7;left:0;bottom:1.5%;
  background:var(--ink);color:var(--lime);padding:.5em .7em;
  font-size:1.15cqw;font-weight:700;letter-spacing:.1em}

/* ── pause / play ─────────────────────────────────────────────
   Pinned to the art cell, not the stage, so it holds its size
   whatever the drawing scales to. */
.democtl{position:absolute;z-index:8;
  right:clamp(10px,1.5vw,22px);top:clamp(10px,1.5vw,22px);
  display:inline-flex;align-items:center;gap:8px;cursor:pointer;
  background:var(--paper);color:var(--ink);border:2.5px solid var(--ink);
  box-shadow:3px 3px 0 var(--ink);padding:8px 12px;
  font:700 9.5px/1 var(--f-mono);letter-spacing:.11em;text-transform:uppercase;
  transition:transform .1s ease,box-shadow .1s ease,background .15s ease}
.democtl:hover{background:var(--lime);transform:translate(1.5px,1.5px);box-shadow:1.5px 1.5px 0 var(--ink)}
.democtl:active{transform:translate(3px,3px);box-shadow:0 0 0 var(--ink)}
/* ▍▍ while it runs, ▶ once paused — drawn in CSS, no icon font */
.democtl__ico{flex:none;width:9px;height:11px;
  border-left:3px solid var(--ink);border-right:3px solid var(--ink)}
.democtl.paused .democtl__ico{width:0;height:0;border:0;
  border-left:10px solid var(--ink);
  border-top:6px solid transparent;border-bottom:6px solid transparent}

/* Resting frame = the run is finished and all three cards have
   landed, so a screenshot or a no-JS visit still shows the whole
   story. .demo is added only once JS is ready to drive the loop. */
.stage.demo .note{opacity:0;transform:translateY(14%) scale(.9)}
.stage.demo .note.in{opacity:1;transform:none}
.stage.demo .note__pet{opacity:0;transform:translateY(115%) scale(.5)}
.stage.demo .note.in:not(.done-state):not(.wait-state) .note__statusIcon{animation:miniSpin .7s linear infinite}
.stage.demo .note.pet-state .note__pet{opacity:1;transform:none}
@media (prefers-reduced-motion:no-preference){
  .stage.demo .rig{animation:none}
}
@media (prefers-reduced-motion:reduce){
  .stage.demo .note,.stage.demo .note__pet{transition:none}
  .stage.demo .note__statusIcon{animation:none!important}
  .note.typing .note__caret{animation:none;opacity:1}
}
@keyframes machineFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.1%)}}
@keyframes miniSpin{to{transform:rotate(360deg)}}
@media (max-width:980px){.stage{max-width:560px}}

