:root{
  --ink:#454039; --ink-soft:#7b736a; --ink-faint:#b5aca1;
  --cinnabar:#b73a2b;
  --line:rgba(69,64,57,.16);
  --paper:#f3f2ee;        /* canvas — light, only faintly warm */
  --card:#fbfaf7;         /* the dashboard card, a shade brighter */
  --mono:'Space Mono',ui-monospace,"SF Mono",Menlo,monospace;

  /* ── spacing scale: every gap is one of these, never ad-hoc ──
     s1 within a control · s2 between siblings · s3 label→content
     s4 between groups   · s5 between sections                     */
  --s1:6px; --s2:11px; --s3:14px; --s4:20px; --s5:40px;
  --pad:34px;          /* the card's inset, used on all four sides */
  --hair:.8px;         /* every structural line in the panel */

  /* ── the page's margin: two squares of the 23px dot grid ──
     Measured to the CARD's own edges. The tape is stuck on over the top
     of the card and hangs past it; letting the tape set the top margin
     made that side read 48px while the other read 30, so the corner never
     looked square. The tape can overhang into the margin — that is what a
     piece of tape does. */
  --gap:46px;
  --panel-w:424px;

  /* ── timing scale: t1 state feedback · t2 transitions · t3 reveals ──
     UI motion stays under 300ms; the canvas animation is the one
     explanatory exception and owns its own duration. */
  --t1:.13s; --t2:.2s; --t3:.28s;

  /* ── easing: built-in curves are too weak, these are the strong ones ── */
  --ease-out:cubic-bezier(0.23, 1, 0.32, 1);       /* entering, leaving */
  /* the single 'this one is chosen' treatment: two hairlines — a cinnabar
     edge, a breath of paper, then a pale echo. Everything selectable wears
     it, and the card itself echoes it in ink tones. */
  --line-red:rgba(183,58,43,.68);
  --halo:0 0 0 4px var(--card), 0 0 0 4.8px rgba(183,58,43,.26);
  --chosen:0 0 0 var(--hair) var(--line-red), var(--halo);
  --ease-in-out:cubic-bezier(0.77, 0, 0.175, 1);   /* morphing on screen */
}
*{margin:0; padding:0; box-sizing:border-box}
html,body{height:100%}
body{
  overflow:hidden; color:var(--ink); font-family:var(--mono);
  /* 手账 dot grid */
  background-color:var(--paper);
  background-image:
    radial-gradient(circle, rgba(69,64,57,.16) 1.1px, transparent 1.2px),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27300%27%20height%3D%27300%27%3E%3Cfilter%20id%3D%27c%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.025%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20values%3D%270%200%200%200%201%200%200%200%200%20.995%200%200%200%200%20.975%200%200%200%20.30%200%27%2F%3E%3C%2Ffilter%3E%3Cfilter%20id%3D%27f%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.85%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20values%3D%270%200%200%200%201%200%200%200%200%20.993%200%200%200%200%20.972%200%200%200%20.55%200%27%2F%3E%3C%2Ffilter%3E%3Cfilter%20id%3D%27s%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.62%27%20numOctaves%3D%272%27%20seed%3D%274%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20values%3D%270%200%200%200%20.84%200%200%200%200%20.82%200%200%200%200%20.77%200%200%200%20.085%200%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23c%29%27%2F%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23s%29%27%2F%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23f%29%27%2F%3E%3C%2Fsvg%3E");
  background-size:23px 23px, 300px 300px;
  background-position:11px 11px, 0 0;
}
/* The title answers the card: its INK top sits level with the card's top
   hairline, and its left gutter equals the card's right gutter — one --gap
   all round. Text boxes carry leading above the ink, so the box is pulled
   up by the measured ink offset (12px Space Mono: ascender ink starts
   measured 6.3px below the line-height:1 box top at this size). */
#hd{position:fixed; top:calc(var(--gap) - 6.3px); left:var(--gap); z-index:3}
#hd .t{display:block; line-height:1; font-size:12px; letter-spacing:.2em; color:var(--ink)}

/* The mark lives in whatever the card leaves free, and is centred in THAT.
   Centring it in the whole window is what let a long word slide underneath
   the card: the budget said "all the space beside the panel", but a centred
   thing can only ever use half of it. */
#loupe{
  position:fixed; inset:0;
  /* one gap, not two: the strip is everything left of the card, so its
     right edge IS the card's left edge — subtracting a second gap shifted
     the mark half a gap off the strip's true centre */
  right:calc(var(--panel-w) + var(--gap));
  display:flex; align-items:center; justify-content:center;
  pointer-events:none;
}
#loupe .line{pointer-events:auto; font-size:0}

/* ── the taped-on dashboard ── */
#panel{
  position:fixed; top:var(--gap); right:var(--gap); z-index:4;
  width:min(var(--panel-w), calc(100vw - var(--gap)*2));
  /* On a phone a double-tap is double-tap-to-ZOOM, which swallows the
     gesture that summons the egg — the page just jumps in. `manipulation`
     turns that one behaviour off for the card alone (panning and pinch
     zoom are untouched, and it drops the 300ms click delay with it). */
  touch-action:manipulation;
  background:var(--card);
  border:var(--hair) solid #fff; border-radius:12px;
  /* a ramp of six, each roughly doubling in blur and easing in alpha —
     one big blur reads as a smudge, this reads as a sheet lying on paper */
  box-shadow:
    0 1px 1px rgba(43,38,32,.035),
    0 2px 3px rgba(43,38,32,.035),
    0 5px 8px rgba(43,38,32,.042),
    0 10px 18px rgba(43,38,32,.048),
    0 22px 40px rgba(43,38,32,.058),
    0 44px 80px rgba(43,38,32,.07);
  transform:rotate(-.45deg);
  font-size:10.5px; letter-spacing:.12em; color:var(--ink-soft); user-select:none;
}
#panel::before{   /* a whisper of paper tooth */
  content:''; position:absolute; inset:0; pointer-events:none; border-radius:inherit;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27260%27%20height%3D%27260%27%3E%3Cfilter%20id%3D%27c%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.025%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20values%3D%270%200%200%200%201%200%200%200%200%20.995%200%200%200%200%20.975%200%200%200%20.30%200%27%2F%3E%3C%2Ffilter%3E%3Cfilter%20id%3D%27f%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.85%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20values%3D%270%200%200%200%201%200%200%200%200%20.993%200%200%200%200%20.972%200%200%200%20.62%200%27%2F%3E%3C%2Ffilter%3E%3Cfilter%20id%3D%27s%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.62%27%20numOctaves%3D%272%27%20seed%3D%274%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20values%3D%270%200%200%200%20.84%200%200%200%200%20.82%200%200%200%200%20.77%200%200%200%20.07%200%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23c%29%27%2F%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23s%29%27%2F%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23f%29%27%2F%3E%3C%2Fsvg%3E");
  background-size:260px;
}
/* washi tape: a translucent strip printed with a run of little hearts,
   laid over the paper's own long fibres */
/* One roll of tape in this whole page. The dashboard's strip and the one
   sealing the heart-shaped box share every look property below; only their
   size and placement differ, so they read as two pieces torn off the same
   roll. An egg tape with its own hearts, a dashed border and a drop shadow
   was the reason the two never matched. */
#tape, #egg .egg-tape{
  background-color:rgba(183,58,43,.09);
  /* hearts on top; under them the fibre, which is what actually says
     "washi" — turbulence stretched flat (low frequency across the roll,
     high along it) comes out as long threads running with the tape */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='32'%3E%3Cpath d='M11 25 C5.5 19.5 3 16 3 12.6 C3 9.5 5.2 7.6 7.8 7.6 C9.4 7.6 10.5 8.4 11 9.6 C11.5 8.4 12.6 7.6 14.2 7.6 C16.8 7.6 19 9.5 19 12.6 C19 16 16.5 19.5 11 25 Z' fill='none' stroke='%23b73a2b' stroke-opacity='.42' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='32'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.016 .8' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 .995 0 0 0 .62 0'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.028 1.15' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .58 0 0 0 0 .46 0 0 0 0 .42 0 0 0 .30 0'/%3E%3C/filter%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .99 0 0 0 0 .97 0 0 0 .34 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size:22px 32px, 140px 32px;
  /* The ends are torn out of the strip itself, so every tooth still carries
     the tint, the fibre and the hearts — a dashed border only faked it.
     A tape tears in many small uneven bites, not a few deep ones: pitch
     ~3px, depth 4–5px, and no two teeth the same. */
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='32'%3E%3Cpath d='M3.4 0 L128.6 0 L132 3.2 L127.6 6.4 L131.2 9.6 L127.1 12.8 L131.8 16 L128.2 19.2 L131.4 22.4 L127.4 25.6 L131.1 28.8 L128.4 32 L3.6 32 L0.4 28.8 L4.6 25.6 L1.1 22.4 L4.1 19.2 L0 16 L4.4 12.8 L0.9 9.6 L4.2 6.4 L0.6 3.2 Z' fill='%23fff'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='32'%3E%3Cpath d='M3.4 0 L128.6 0 L132 3.2 L127.6 6.4 L131.2 9.6 L127.1 12.8 L131.8 16 L128.2 19.2 L131.4 22.4 L127.4 25.6 L131.1 28.8 L128.4 32 L3.6 32 L0.4 28.8 L4.6 25.6 L1.1 22.4 L4.1 19.2 L0 16 L4.4 12.8 L0.9 9.6 L4.2 6.4 L0.6 3.2 Z' fill='%23fff'/%3E%3C/svg%3E");
  -webkit-mask-size:100% 100%; mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  cursor:grab;
  /* a drag handle must claim the gesture, or a finger dragging it pans the
     page instead — the same reason #lbox already declares it */
  touch-action:none;
}
#tape{
  position:absolute; top:-16px; left:50%; width:132px; height:32px;
  transform:translateX(-50%) rotate(-3deg);
}
#tape:active{cursor:grabbing}
/* the card never outgrows the window — it scrolls inside instead of being cut */
#panelBody{
  position:relative; z-index:1; padding:var(--pad);
  max-height:calc(100vh - var(--gap)*2); overflow-y:auto; scrollbar-width:none;
}
/* same reason as --sheet below: vh lies about the height on a phone.
   Declared here, before the breakpoint, so the narrow layout still wins. */
@supports (height:1dvh){
  #panelBody{ max-height:calc(100dvh - var(--gap)*2) }
}
#panelBody::-webkit-scrollbar{display:none}

/* primary action — centred at the top, the one thing you can't miss */
#panel button#replay{
  display:flex; align-items:center; justify-content:center;
  width:100%; margin:0 0 var(--s5); height:52px; padding:0 var(--s4);
  font:inherit; font-size:13px; letter-spacing:.28em; cursor:pointer;
  color:var(--cinnabar); background:rgba(183,58,43,.04);
  border:var(--hair) solid rgba(183,58,43,.32); border-radius:8px;
  transition:box-shadow var(--t2) var(--ease-out), border-color var(--t2) var(--ease-out), background var(--t2) var(--ease-out);
}
#panel button#replay:hover{border-color:var(--line-red); box-shadow:var(--halo)}
#panel button#replay:active{background:rgba(183,58,43,.10)}

#panel .sec{margin-bottom:var(--s5); position:relative; z-index:1}
#panel .sec:last-child{margin-bottom:0}
#panel .k{display:block; color:var(--ink-faint); margin-bottom:var(--s3); letter-spacing:.2em}
/* a sub-label opens a group inside a section, on the same rhythm as .k */
#panel .sub{display:block; color:var(--ink-faint); margin:var(--s5) 0 var(--s3); letter-spacing:.2em}
#panel button{
  font:inherit; letter-spacing:inherit; background:none; border:none; cursor:pointer;
  color:var(--ink-soft); padding:0; display:block; line-height:2.1; text-align:left;
  transition:color var(--t1) var(--ease-out);
}
#panel button:hover{color:var(--ink)}
#panel button.on{color:var(--cinnabar)}
#panel .row{display:flex; gap:var(--s4)}
#panel .row button{display:inline-block}
#panel .sw{display:flex; flex-wrap:wrap; gap:var(--s2); padding-top:2px}
#panel .sw button{
  width:17px; height:17px; border-radius:2px; padding:0; line-height:0;
  transition:box-shadow var(--t1) var(--ease-out);
}
#panel .sw button.on{box-shadow:var(--chosen)}
/* the picker is wider than the swatches and wears a spectrum, so it is
   obviously "any colour" rather than one more preset */
/* the same 17px square as every other swatch — it just carries a spectrum
   edge to say it is the customisable one, and wears the same chosen ring */
/* the whole square is a spectrum, so it reads as the palette rather than
   as one more preset; it wears the same chosen ring as its siblings */
#cWrap{
  position:relative; width:17px; height:17px; border-radius:2px; cursor:pointer;
  background:conic-gradient(from .25turn,#e0403a,#dd8a2c,#cfc133,#4c9a4c,#2f8f9a,#3f57cf,#8a4bc4,#c8438f,#e0403a);
  transition:box-shadow var(--t1) var(--ease-out);
}
#cWrap.on{box-shadow:var(--chosen)}
#cPick{position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; border:none; padding:0}

/* sliders: a hairline and a dot, nothing else */
#panel .sl{display:flex; align-items:center; gap:var(--s3); margin-bottom:var(--s4)}
#panel .row+.sub, #panel .sw+.sub{margin-top:var(--s5)}
#panel .sl:last-child{margin-bottom:0}
#panel .sl .lb{width:56px; flex:none; color:var(--ink-soft)}
#panel .v{width:32px; flex:none; text-align:right; color:var(--ink-faint)}
#panel input[type=range]{
  flex:1; min-width:0; -webkit-appearance:none; appearance:none;
  background:transparent; height:14px; cursor:pointer; margin:0;
}
#panel input[type=range]::-webkit-slider-runnable-track{height:1px; background:rgba(69,64,57,.26); border:none}
#panel input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; width:8px; height:8px; border-radius:50%;
  background:var(--cinnabar); border:none; margin-top:-3.5px;
}
#panel input[type=range]::-moz-range-track{height:1px; background:rgba(69,64,57,.26); border:none}
#panel input[type=range]::-moz-range-progress{height:1px; background:rgba(69,64,57,.26)}
#panel input[type=range]::-moz-range-thumb{width:8px; height:8px; border:none; border-radius:50%; background:var(--cinnabar)}

/* ── the pool: glyphs float, get picked up ── */
#lbox{
  /* the mound peaks at 100–130px over repeated pours; this leaves it room
     to bounce and fall back into, and almost no dead space above */
  position:relative; width:100%; height:162px;
  border:var(--hair) solid rgba(69,64,57,.17); border-radius:7px;
  overflow:hidden;              /* the queue waits above the rim, out of sight */
  touch-action:none;
}
.tok{position:absolute; left:0; top:0; cursor:pointer; will-change:transform; z-index:1}
.tok::after{content:''; position:absolute; inset:-10px}   /* generous hit area */
.tok:active{cursor:grabbing; z-index:3}
.tok svg{display:block; overflow:visible}
.tok path{fill:none; stroke:var(--ink-faint); stroke-linecap:round; stroke-linejoin:round; transition:stroke var(--t2) var(--ease-out)}
.tok:hover path{stroke:var(--ink-soft)}
.tok.sel path{stroke:var(--cinnabar)}

/* ── the formula: [ from ] → [ to ], flush with the pool's edges ── */
#formula{
  display:flex; align-items:stretch; gap:var(--s3);
  margin:0 0 var(--s4);
}
.slot{
  position:relative; flex:1; min-width:0; height:96px; border-radius:6px; cursor:pointer;
  border:var(--hair) solid rgba(69,64,57,.20);
  display:flex; align-items:center; justify-content:center; text-align:center;
  transition:border-color var(--t2) var(--ease-out), background var(--t2) var(--ease-out);
}
.slot::before{                 /* which end of the formula this is */
  content:attr(data-slot); position:absolute; top:7px; left:9px;
  font-size:8px; letter-spacing:.2em; color:var(--ink-faint);
}
.slot.over{border-color:var(--cinnabar); background:rgba(183,58,43,.06)}
.slot.filled{border-style:solid; border-color:rgba(69,64,57,.20)}
/* exactly one slot is armed; a tap in the pool lands there */
.slot.armed{      /* its own hairline IS the red line — only the halo is added */
  border-color:var(--line-red); background:rgba(183,58,43,.035);
  box-shadow:var(--halo);
}
.slot.armed::before{color:var(--cinnabar)}
.slot svg{display:block; overflow:visible}
.slot svg path{fill:none; stroke:var(--ink); stroke-linecap:round; stroke-linejoin:round}
.slot .ph{font-size:9px; letter-spacing:.16em; color:var(--ink-faint)}
#formula .arrow{
  flex:none; align-self:center; font-size:13px; color:var(--ink-faint);
}

/* icons are drawn, not typeset — a font arrow next to this much
   handwriting looks borrowed */
/* Shapes from Lucide (ISC) rather than drawn by hand — my own circular
   arrow never sat right. They are passed through f-hand so they waver like
   everything else here instead of looking imported. */
.ico{width:1.25em; height:1.25em; vertical-align:-.28em; overflow:visible; filter:url(#f-hand)}
.ico path{
  fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round;
  /* non-scaling-stroke pins the line to SCREEN pixels, so the big replay
     icon and the small export ones come out the same weight instead of
     each inheriting its own viewBox scale. A hairline .8 read as too faint
     at this size, so icons sit one notch above the border weight. */
  stroke-width:1px; vector-effect:non-scaling-stroke;
}
#panel button#replay .ico{width:12px; height:12px; margin-left:.8em}
#panel .row button .ico{width:1.05em; height:1.05em; margin-left:.35em; vertical-align:-.2em}
#formula .arrow .ico{width:14px; height:14px; color:var(--ink-faint)}

/* the credit sits under the mark, so it shares the mark's canvas rather
   than the window's — otherwise the two centre on different axes */
#footer{
  position:fixed; left:0; bottom:16px; text-align:center; z-index:2;
  right:calc(var(--panel-w) + var(--gap));
  font-size:13px; letter-spacing:.14em; color:var(--ink-faint);
}
#footer .cap{margin-top:11px; font-size:9.5px; letter-spacing:.18em; opacity:.7}

/* ── the mark ── */
.spot{
  /* embedded in a text line: always dead-centre vertically, never high or low */
  display:inline-block; position:relative; vertical-align:middle; cursor:pointer; font-size:0;
  transform-origin:center;
}
.spot svg{display:block; overflow:visible}
.spot path{fill:none; stroke-linejoin:round}
/* ── narrow: the card lies ALONG THE BOTTOM instead of beside ──
   Below about 820px there is no strip left over next to a 424px card, so
   the two stop competing for the same axis: the card takes the foot of the
   page and the mark keeps everything above it. --sheet is how much of the
   height the card is allowed; the mark's own region is what remains, and
   it is measured off the live box rather than assumed. */
/* 980, not the 820 where the two merely stop overlapping: at 900 the card
   and the margins eat 516 and the mark is left 384px to live in, which is
   narrower than the word it has to draw. The strip has to be worth having
   before it is worth keeping. */
@media (max-width:980px){
  /* dvh, not vh: on a phone vh is measured against the LARGEST viewport, so
     the moment the address bar slides back in a vh-sized card hangs off the
     bottom of the screen — and every box here is position:fixed, so nothing
     scrolls to rescue it. */
  :root{ --gap:22px; --pad:24px; --sheet:52vh; }
  @supports (height:1dvh){ :root{ --sheet:52dvh } }
  #panel{
    top:auto; bottom:var(--gap); left:var(--gap); right:var(--gap);
    width:auto; transform:rotate(-.3deg);      /* less tilt: a wide card exaggerates it */
  }
  #panelBody{ max-height:calc(var(--sheet) - var(--pad)*2); }
  #loupe { right:0; bottom:calc(var(--sheet) + var(--gap)); }
  /* the card no longer takes a column of its own, so the credit gets the
     full width back — left on the wide value it was squeezed into 232px
     and broke across two lines */
  #footer{ right:0; bottom:calc(var(--sheet) + var(--gap) + 4px); }
}
/* short and wide — a laptop in landscape — the card would otherwise be
   taller than the window and only its scrollbar would say so */
@media (max-height:560px){
  :root{ --gap:22px; }
}

/* ── the easter egg: a heart-shaped box holding a hundred loves ── */
#egg{position:fixed; inset:0; z-index:3; pointer-events:none; overflow:hidden}
#egg .shell{position:absolute; left:0; top:0; overflow:visible; will-change:transform}
#egg .shell path{fill:none; stroke:var(--cinnabar); stroke-width:3; stroke-linecap:round; stroke-linejoin:round}
#egg .ew{position:absolute; left:0; top:0; will-change:transform}
#egg .ew path{fill:none; stroke:var(--ink-soft); stroke-linecap:round; stroke-linejoin:round; opacity:.8}
#egg .ew.red path{stroke:var(--cinnabar); opacity:.9}
#egg .shard{position:absolute; left:0; top:0; border-radius:2px;
  background:var(--cinnabar); will-change:transform}
/* everything it looks like comes from the shared rule up top; all this
   adds is where it sits and that you can grab it */
#egg .egg-tape{
  position:absolute; left:0; top:0; will-change:transform;
  pointer-events:none;
}
/* On a phone the strip is only ~73x19 — well under a fingertip. It cannot
   grow its own hit area with a ::after the way .tok does, because the
   torn-edge MASK clips hit-testing to the border box along with the paint,
   so the margin was simply never there. The grip is a separate transparent
   plate riding concentric with the strip: unmasked, so it hits. */
#egg .egg-grip{
  position:absolute; left:0; top:0; will-change:transform;
  pointer-events:auto; cursor:grab; touch-action:none;
}
#egg .egg-grip:active{cursor:grabbing}
#egg .egg-tape:active{cursor:grabbing}

/* touch fires a false hover on tap, so the wiggle is pointer-gated */
@media (hover:hover) and (pointer:fine){
  .spot.idle:hover{animation:wig .55s ease infinite}
}
@keyframes wig{0%,100%{transform:rotate(0)}25%{transform:rotate(-14deg)}75%{transform:rotate(14deg)}}
@media (prefers-reduced-motion:reduce){
  .spot.idle:hover{animation:none}
  .tok{transition:none}
}
