@font-face { font-family: 'Shrikhand'; src: url(fonts/shrikhand.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'DM Mono'; font-weight: 400; src: url(fonts/dmmono-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'DM Mono'; font-weight: 500; src: url(fonts/dmmono-500.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; src: url(fonts/instrument.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; src: url(fonts/instrument-italic.woff2) format('woff2'); font-display: swap; }

:root {
  --paper: #fffaf0;
  --ink: #1b1b1b;
  --pink: #ff5d8f;
  --mint: #b8fff3;
  --gold: #ffd166;
  --neon: #e2ff3d;
  --night: #120c1f;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --runway: 72px;
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .9, .25, 1.15);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--night); color: var(--ink); overscroll-behavior: none; }
body { font-family: 'Instrument Serif', Georgia, serif; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
button { font: inherit; color: inherit; cursor: pointer; }

#c { position: fixed; top: 0; left: 0; display: block; touch-action: none; cursor: default; }
#c:active { cursor: grabbing; }
/* the golden afterglow once the giant wakes (App.syncGoldGlow): warm light over the whole picture, fading. By night
   warmer and softer, like the night's own lights */
#goldglow { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; display: none; mix-blend-mode: soft-light; background: radial-gradient(ellipse at 50% 45%, rgba(255, 190, 60, 1), rgba(255, 170, 40, .85) 60%, rgba(240, 150, 30, .7)); }
#goldglow.night { mix-blend-mode: screen; background: radial-gradient(ellipse at 50% 45%, rgba(255, 150, 70, .42), rgba(255, 120, 50, .2) 60%, rgba(255, 105, 40, .08)); }

#grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.2 -0.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* under the title screen the grain can't be seen, but its blend still makes Safari recomposite the whole screen on every move: off until the title goes */
body:has(#title:not(.gone)) #grain { display: none; }
#grain::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(10, 5, 20, .55) 100%); mix-blend-mode: multiply; opacity: 1.6; }

/* --- HUD ---------------------------------------------------------------- */
#hud { transition: transform .45s var(--ease); position: fixed; top: calc(var(--safe-t) + 12px); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 5; pointer-events: none; }
#place { display: flex; flex-direction: row; align-items: center; gap: 10px; max-width: calc(100vw - 140px); padding: 9px 14px 10px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--pink); pointer-events: auto; opacity: 0; transform: translateY(calc(-100% - 40px)) rotate(-1deg); transition: opacity .3s, transform .75s cubic-bezier(.34, 1.7, .5, 1); }
#place.show { opacity: 1; transform: translateY(0) rotate(-1deg); }
/* leaving through an eye: it dips, then flies up off the top */
#place.leaving { transition: opacity .35s .2s, transform .5s cubic-bezier(.6, -.6, .75, .45); }
#place-name { font-family: 'Shrikhand', serif; font-size: 20.5px; line-height: 1.05; letter-spacing: .2px; }
#place-depth { font-family: 'DM Mono', monospace; font-size: 14px; text-transform: lowercase; opacity: .7; }
#buttons { position: relative; display: flex; gap: 8px; pointer-events: auto; }
/* the sound button's popover: same card as the name plate, a switch per row */
#settings-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 8; width: 222px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; padding: 5px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--pink); opacity: 0; pointer-events: none; transform: translateY(-6px) scale(.92); transform-origin: top right; transition: opacity .18s, transform .3s cubic-bezier(.34, 1.6, .5, 1); }
#settings-pop.show { opacity: 1; pointer-events: auto; transform: none; }
.set-row { background: none; border: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 9px 9px 10px; font: 500 15px/1 'DM Mono', monospace; color: var(--ink); border-radius: 9px; white-space: nowrap; transition: background .15s; }
.set-row:hover { background: rgba(27, 27, 27, .06); }
.set-row .sw, .law-sw .sw { display: block; position: relative; flex: none; width: 36px; height: 21px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; opacity: .8; transition: background .2s, opacity .2s; } /* (off: a little faded) */
.set-row .sw::after, .law-sw .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: transform .25s cubic-bezier(.34, 1.6, .5, 1), background .2s; }
.set-row.on .sw, .law-sw.on .sw { background: var(--ink); }
.set-row.on .sw::after, .law-sw.on .sw::after { transform: translateX(15px); background: var(--paper); }
/* above the camera buttons and the tips line while it's open */
#hud:has(#settings-pop.show) { z-index: 8; }
/* the player: wide enough for the longest song name, with the buttons centered underneath */
.set-row.track { flex-direction: column; gap: 9px; padding-top: 10px; padding-bottom: 6px; }
.set-row.track:hover { background: none; }
.set-row.track .track-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; } /* (room under the letters: g and y were cut off) */
.track-nav { display: flex; gap: 10px; align-items: center; }
.track-nav .play .i-play { display: none; }
.track-nav .play.paused .i-play { display: block; }
.track-nav .play.paused .i-pause { display: none; }
.track-nav .tip-nav { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font: 16px/1 'DM Mono', monospace; display: grid; place-items: center; transition: transform .12s var(--ease); }
.track-nav .tip-nav:active { transform: scale(.9); }
.round { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); display: grid; place-items: center; box-shadow: 2px 2px 0 var(--ink); transition: transform .15s var(--ease), box-shadow .15s; }
.round:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.badge { position: absolute; top: -3px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--pink); color: #fff; font: 500 9.5px/14px 'DM Mono', monospace; line-height: 13px; border: 1.5px solid var(--ink); transition: transform .3s var(--ease); }
/* the look's switches one by one (tune.js), folded under it: "customize" and the field guide's fold arrow */
#settings-pop .tune-head { opacity: .7; font-size: 13px; padding-top: 6px; padding-bottom: 6px; }
#settings-pop .tune-head .fold-caret { width: 16px; height: 16px; margin-right: 10px; }
#settings-pop .tune-head.open .fold-caret { transform: rotate(90deg); }
#settings-pop .tune .set-row { padding-top: 6px; padding-bottom: 6px; padding-left: 18px; font-size: 13px; }
#settings-pop .set-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; margin: -2px 0; } /* (a long label never pushes its switch out of line; room under g and y, without making the row taller) */
#settings-pop .tune-fps { font: 12px/1.3 'DM Mono', monospace; padding: 6px 10px 4px; white-space: normal; }
#settings-pop { max-height: calc(100vh - 90px); overflow-y: auto; }
.set-row.look { border-top: 1.5px solid rgba(27, 27, 27, .15); border-radius: 0 0 9px 9px; margin-top: 4px; padding-top: 11px; }
#btn-gallery { position: fixed; right: 12px; top: calc(var(--safe-t) + 70px); z-index: 5; }
#btn-snap { position: fixed; right: 66px; top: calc(var(--safe-t) + 70px); z-index: 5; }
/* the hand: it swells when it's over something touchable, and squeezes while you hold */
/* the cursor everywhere (mice only): a little white dot; over anything you can click it becomes a
   pointing finger, and while you drag something the hand closes around it */
/* the browser's own cursor only hides once ours has appeared (after the mouse first moves) */
@media (pointer: fine) { html.cc, html.cc body, html.cc body * { cursor: none !important; } }
/* the system's cursor (while frames are slow, see noteCursor in main.js) takes the same shapes as ours */
html.sc-finger, html.sc-finger body * { cursor: pointer !important; }
html.sc-open, html.sc-open body * { cursor: grab !important; }
html.sc-grabbing, html.sc-grabbing body * { cursor: grabbing !important; }
html.sc-text, html.sc-text body * { cursor: text !important; }
#hand { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .15s; filter: drop-shadow(1px 2px 0 rgba(27, 27, 27, .35)); }
#hand.show { opacity: 1; }
#hand .dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fffaf0; border: 1.6px solid #1b1b1b; box-sizing: border-box; transition: scale .18s var(--ease), opacity .12s; }
#hand svg { position: absolute; display: block; opacity: 0; scale: .5; transition: opacity .12s, scale .22s cubic-bezier(.2, 1.6, .4, 1); }
#hand svg.point { left: -9px; top: -2px; transform-origin: 30% 8%; }
#hand svg.grab { left: -12px; top: -9px; transform-origin: 40% 30%; }
#hand svg.open { left: -13px; top: -8px; transform-origin: 40% 30%; }
/* over something you can only drag (the field guide's creature page): an open hand */
#hand.open .dot { opacity: 0; scale: .4; }
#hand.open svg.open { opacity: 1; scale: 1; }
/* over a text box: an I-beam in the same style */
#hand svg.ibeam { left: -7px; top: -13px; transform-origin: 50% 50%; }
#hand.text .dot { opacity: 0; scale: .4; }
#hand.text svg.ibeam { opacity: 1; scale: 1; }
#hand.grabbing .dot, #hand.finger .dot { opacity: 0; scale: .4; }
#hand.finger svg.point { opacity: 1; scale: 1.05; }
#hand.finger.hold svg.point { scale: .92; }
/* dragging something: the fingers close around it */
#hand.grabbing svg.grab { opacity: 1; scale: 1; }
/* full-screen layers are painted with gradients, not plain colors: iPhone Safari colors its bottom bar
   from plain-colored layers touching the screen's edge, even invisible ones (the blink made it a black band) */
#flash { position: fixed; inset: 0; z-index: 30; background: linear-gradient(#fff, #fff); opacity: 0; pointer-events: none; }
#flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
/* tips: the lightbulb (bottom right) switches them on and off; a tip is a card that points at its thing */
#btn-tips { position: fixed; right: 12px; bottom: calc(var(--safe-b, 0px) + 14px); z-index: 6; width: auto; padding: 0 16px 0 12px; border-radius: 999px; display: flex; align-items: center; gap: 7px; font: 700 13px/1 'DM Mono', monospace; letter-spacing: .3px; background: var(--neon); transition: background .2s, transform .15s var(--ease), box-shadow .15s; }
#btn-tips svg { transition: opacity .2s, transform .18s var(--ease); }
#btn-tips.off { background: var(--paper); }
#btn-tips.done { background: var(--paper); }
.tips-check { position: absolute; left: 22px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: #2fbf71; border: 1.5px solid var(--paper); display: grid; place-items: center; opacity: 0; scale: .3; transition: opacity .2s, scale .35s var(--ease); }
#btn-tips.done .tips-check { opacity: 1; scale: 1; }
/* phones: once every tip is done, the pill shrinks to a round button, just the bulb and its check */
.tips-label { display: inline-block; max-width: 160px; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--ease), opacity .2s; }
#btn-tips { transition: background .2s, transform .15s var(--ease), box-shadow .15s, padding .35s var(--ease), gap .35s var(--ease), width .35s var(--ease), translate .45s var(--ease); }
#btn-snap, #btn-gallery { transition: transform .15s var(--ease), box-shadow .15s, translate .45s var(--ease); }
@media (max-width: 640px) {
  #btn-tips.done { width: 46px; padding: 0; gap: 0; }
  #btn-tips.done .tips-label { max-width: 0; opacity: 0; }
}
/* the reset popover: the sound popover's look, opening from the tips button */
#tips-pop { position: fixed; left: 0; top: 0; z-index: 9; width: max-content; max-width: calc(100vw - 24px); display: flex; flex-direction: column; padding: 5px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--pink); opacity: 0; pointer-events: none; transform: translateY(6px) scale(.92); transition: opacity .2s, transform .3s var(--ease); }
#tips-pop.show { opacity: 1; pointer-events: auto; transform: none; }
#tips-pop .tp-text { padding: 9px 10px 6px; font: 500 14px/1.35 'DM Mono', monospace; color: var(--ink); }
#tips-pop .tp-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 6px; }
#tips-pop .tp-acts .chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 7px 12px 7px 10px; }
#tips-pop .tp-acts .chip[data-act="reset"] { background: var(--neon); }
#btn-tips.off svg { opacity: .35; }
#btn-tips.off .tips-label { opacity: .6; }
:is(#tipcard, #tipcard2) { position: fixed; left: 0; top: 0; z-index: 7; width: max-content; max-width: min(250px, calc(100vw - 24px)); padding: 8px 28px 9px 10px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--pink); font: 12.5px/1.35 'DM Mono', monospace; color: var(--ink); opacity: 0; pointer-events: none; transform: translateY(6px) scale(.94); transition: opacity .25s, transform .35s cubic-bezier(.34, 1.6, .5, 1); }
:is(#tipcard, #tipcard2).show { opacity: 1; pointer-events: auto; transform: none; }
:is(#tipcard, #tipcard2) b { font-weight: 700; }
:is(#tipcard, #tipcard2) .tip-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--ink); opacity: .6; transition: opacity .15s, transform .15s var(--ease); }
:is(#tipcard, #tipcard2) .tip-x:hover { opacity: 1; transform: scale(1.12); }
/* the little pointer: on the bottom edge when the card sits above its thing, on top when below */
:is(#tipcard, #tipcard2) .tail { position: absolute; left: var(--tx, 50%); bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: var(--paper); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
:is(#tipcard, #tipcard2).below .tail { bottom: auto; top: -7px; transform: rotate(225deg); }
/* the name of a wordless button, while a mouse rests on it */
#hover-label { position: fixed; left: 0; top: 0; z-index: 100; width: max-content; max-width: min(220px, calc(100vw - 16px)); padding: 4px 9px 5px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--pink); font: 11.5px/1.3 'DM Mono', monospace; color: var(--ink); pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity .1s, transform .3s cubic-bezier(.34, 1.8, .5, 1); }
#hover-label.show { opacity: 1; transform: none; }
:is(#tipring, #tipring2) { position: fixed; left: 0; top: 0; z-index: 6; border-radius: 50%; border: 2.5px solid var(--neon); box-shadow: 0 0 12px var(--neon); pointer-events: none; opacity: 0; transition: opacity .3s; }
:is(#tipring, #tipring2).show { opacity: 1; animation: tipring 1.6s ease-in-out infinite; }
@keyframes tipring { 0%, 100% { scale: .9; } 50% { scale: 1.12; } }
/* narrow screens: the chat fills the bottom, so the switch sits under the top buttons */
@media (max-width: 860px) {
  #btn-tips { bottom: auto; top: calc(var(--safe-t) + 126px); width: 100px; padding: 0; justify-content: center; } /* (as wide as the two buttons above it) */
  .tips-word { display: none; } /* (just ON / OFF: "TIPS:" doesn't fit) */
}

/* --- narration: a text adventure that scrolls over the world --------------- */
#chat { position: fixed; left: 12px; bottom: calc(var(--safe-b) + 14px + var(--kb, 0px)); width: min(540px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px; z-index: 6; pointer-events: none; }
#narration { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; pointer-events: none; }
/* each message's x: like a tip's */
.line:not(.big) { position: relative; padding-right: 30px; }
.line-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--ink); opacity: .6; pointer-events: auto; transition: opacity .15s, transform .15s var(--ease); }
.line-x:hover { opacity: 1; transform: scale(1.12); }
.line { max-width: 100%; font-family: 'DM Mono', monospace; font-size: 18.5px; letter-spacing: .2px; line-height: 1.35; color: var(--ink); padding: 8px 14px 9px; border-radius: 18px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--gold); opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s var(--ease), filter .7s; text-wrap: pretty; }
.line.in { opacity: 1; transform: none; animation: linein .8s both; }
/* a message slides up from below and lands with a bounce */
@keyframes linein { 0% { opacity: 0; transform: translateY(60px) scale(.94); animation-timing-function: cubic-bezier(.2,.7,.3,1); } 45% { opacity: 1; transform: translateY(-12px) scale(1.03); animation-timing-function: ease-in-out; } 68% { transform: translateY(5px) scale(.99); } 86% { transform: translateY(-2px); } 100% { opacity: 1; transform: none; } }
.line.out { opacity: 0; transform: translateY(-6px); filter: blur(4px); }
.line.big { font-family: 'Shrikhand', serif; font-size: 38px; line-height: 1.1; background: none; border: none; box-shadow: none; color: var(--paper); text-shadow: 2px 2px 0 var(--pink), 0 0 30px rgba(0,0,0,.4); padding: 0 2px; }
.line.tentacle { font-style: italic; }
.line.you { align-self: flex-end; }
.line.quiet { font-style: italic; }
/* the tentacle itself talking: in the world-name font, in quotes */
.line.speaks { font-family: 'Shrikhand', serif; font-style: normal; font-size: 23px; line-height: 1.3; letter-spacing: .2px; }
.line.speaks::before { content: '“'; }
.line.speaks::after { content: '”'; }
/* a line with a box to answer in (the tentacle asking your name) */
.line .ask-line { display: flex; gap: 6px; margin-top: 8px; pointer-events: auto; font-style: normal; }
.ask-line input { flex: 1; min-width: 0; font: 16px 'DM Mono', monospace; color: var(--ink); padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; }
.ask-line .chip { flex: none; }

/* --- whisper bar ------------------------------------------------------ */
#whisper { position: relative; width: 100%; pointer-events: auto; display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; background: rgba(4, 30, 26, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1.5px solid rgba(184, 255, 243, .45); border-radius: 26px; z-index: 6; transition: border-color .3s, box-shadow .3s, background .3s, opacity .4s; }
/* the tentacle is working on a wish: no typing until it's done (only the send button fades; the line saying so stays clear) */
#whisper.pondering .send { pointer-events: none; opacity: .4; }
/* (in place of the box while it works: the line, faint, with a band of full strength sweeping through it, like it's loading) */
#whisper-ponder { display: none; flex: 1; min-width: 0; font: italic 25px/1.2 'Instrument Serif', serif; padding: 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(100deg, rgba(184, 255, 243, .35) 0%, rgba(184, 255, 243, .35) 36%, rgb(184, 255, 243) 50%, rgba(184, 255, 243, .35) 64%, rgba(184, 255, 243, .35) 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: rise-in .4s var(--ease), ponderglow 2.2s linear infinite; }
@keyframes ponderglow { from { background-position: 100% 0; } to { background-position: -150% 0; } }
#whisper.pondering #whisper-input { display: none; }
#whisper.pondering #whisper-ponder { display: block; }
/* a soft spark of light that slowly travels round the chat box's edge, trailing a glow behind it */
@property --spark { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
#whisper::before, #whisper::after { content: ''; position: absolute; inset: -1.5px; border-radius: inherit; padding: 2px; pointer-events: none; background: conic-gradient(from var(--spark), transparent 0deg 250deg, rgba(184, 255, 243, .25) 300deg, rgba(184, 255, 243, .9) 350deg, #fff 357deg, transparent 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
#whisper::after { inset: -4px; padding: 5px; filter: blur(6px); opacity: .8; }
#whisper::before, #whisper::after { transition: opacity .4s; }
#whisper:focus-within::before, #whisper:focus-within::after { opacity: 0; } /* typing: it has its own glow */
@media (pointer: coarse) and (max-width: 640px) { #whisper::before, #whisper::after { display: none; } } /* phones: no spark (iPhone Safari sometimes drew it as a big wedge across the box) */
#whisper:focus-within { border-color: var(--mint); background: rgba(10, 52, 45, .86); box-shadow: 0 0 0 3px rgba(184, 255, 243, .3), 0 0 22px rgba(184, 255, 243, .55), 0 0 70px rgba(184, 255, 243, .3); }
#whisper.to-creature { background: rgba(60, 10, 35, .8); border-color: rgba(255, 93, 143, .7); }
/* the box grows a line at a time as a prayer wraps: the tentacle stays by the top line, the send button by the bottom one */
.whisper-glyphs { position: relative; flex: none; display: grid; place-items: center; align-self: flex-start; font-size: 25px; margin-top: calc(8px + .6em - 15.5px); }
.whisper-glyphs > svg { grid-area: 1 / 1; color: var(--mint); opacity: .85; transition: opacity .25s, scale .35s var(--ease); }
.whisper-talk { opacity: 0 !important; scale: .4; }
#whisper.to-creature .whisper-glyph { opacity: 0; scale: .4; }
#whisper.to-creature .whisper-talk { opacity: .85 !important; scale: 1; }
#whisper-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--paper); font: italic 25px/1.2 'Instrument Serif', serif; padding: 8px 0; user-select: text; -webkit-user-select: text; display: block; box-sizing: border-box; height: calc(1.2em + 16px); max-height: calc(5 * 1.2em + 16px); resize: none; overflow-y: hidden; scrollbar-width: none; transition: height .18s var(--ease); }
#whisper-input::-webkit-scrollbar { display: none; }
#whisper-input::placeholder { color: rgba(184, 255, 243, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* past the limit: a small no-no wiggle */
#whisper.too-long { animation: tooLong .42s ease-out; }
@keyframes tooLong { 0%, 100% { translate: 0; } 20% { translate: -5px; } 40% { translate: 4px; } 60% { translate: -3px; } 80% { translate: 2px; } }
/* fills the field's height, with corners that follow the field's (26px outside, 6px in) */
/* the prompt shrinks on narrow screens so it fits on one line */
#whisper .send { width: 50px; height: calc(25px * 1.2 + 16px); border-radius: 20px; border: 0; background: var(--mint); color: #04201b; display: grid; place-items: center; flex: none; transition: opacity .4s; }
#whisper.to-creature .send { background: var(--pink); color: #fff; }
/* the mic: tap to speak, tap again to stop; it folds away once you type */
#whisper .mic { width: 44px; height: calc(25px * 1.2 + 16px); margin-right: 0; border-radius: 20px; border: 0; padding: 0; background: transparent; color: var(--mint); display: grid; place-items: center; flex: none; overflow: hidden; transition: width .25s var(--ease), margin .25s var(--ease), opacity .25s, visibility .25s, background .25s, color .25s; }
#whisper .mic[hidden] { display: none; }
#whisper.hand-typed .mic, #whisper.pondering .mic { width: 0; margin-right: -8px; opacity: 0; visibility: hidden; pointer-events: none; } /* (hidden: the keyboard can't reach it either) */
#whisper.listening .mic { background: var(--pink); color: #fff; animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 93, 143, .6); } 50% { box-shadow: 0 0 0 7px rgba(255, 93, 143, 0); } }

/* --- tapping a thing: round buttons in a little arc around it, and its name card -------- */
#nameplate { position: fixed; left: 0; top: 0; z-index: 7; max-width: min(320px, calc(100vw - 20px)); padding: 10px 12px 11px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--pink); opacity: 0; scale: .94; pointer-events: none; transition: opacity .25s, scale .35s var(--ease); }
#nameplate.show { opacity: 1; scale: 1; pointer-events: auto; }
.np-name { font-family: 'Shrikhand', serif; font-size: 20.5px; line-height: 1.1; }
.np-sub { font: 14px/1.35 'DM Mono', monospace; margin-top: 3px; opacity: .75; }
.np-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font: 500 15px/1 'DM Mono', monospace; padding: 8px 10px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; transition: transform .12s var(--ease); }
.chip:active { transform: scale(.94); }
#circles { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 7; pointer-events: none; }
.circ-group { position: absolute; left: 0; top: 0; }
.circ-slot { position: absolute; left: -21px; top: -21px; }
.circ-title { position: absolute; left: 0; top: 0; width: max-content; max-width: min(320px, calc(100vw - 20px)); text-align: center; font: 26px/1.05 'Shrikhand', serif; color: #fff; text-shadow: 3px 3px 0 var(--pink); pointer-events: none; opacity: 0; scale: .6; transition: opacity .2s, scale .35s var(--ease); }
.circ-group.show .circ-title { opacity: 1; scale: 1; }
/* the world card's round button (ink ring, white), a little bigger to hit; they pop in one after another, and shrink away */
.circ { flex: none; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; color: var(--ink); pointer-events: none; opacity: 0; scale: .3; transition: transform .2s var(--ease), background .2s, scale .3s var(--ease) calc(var(--o, 0) * 30ms), opacity .2s calc(var(--o, 0) * 30ms); }
.circ-group.show .circ, #nameplate.show .circ { pointer-events: auto; opacity: 1; scale: 1; transition-delay: 0s, 0s, calc(var(--i, 0) * 45ms), calc(var(--i, 0) * 45ms); }
.circ:hover { background: #fff; }
@media (hover: hover) { .circ:hover { transform: scale(1.12); } }
.circ:active, .circ:hover:active { transform: scale(.88); }
.circ.pop { animation: favpop .5s var(--ease); }
/* the Kaleidorite's name and its button, floating over it wherever it goes (js/ui.js syncMeteorTag) */
#meteor-tag .mt-in { position: absolute; left: 0; top: 0; translate: -50% -100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
#meteor-tag .circ-title { position: static; }
#meteor-tag:not(.titled) .circ-title { opacity: 0; scale: .6; }
#meteor-tag:not(.up) .mt-seg [data-n="0"], #meteor-tag:not(.up) .mt-thumb { display: none; } /* (on the ground: nothing to stop, nothing picked yet) */
/* the toggle while it's folding the world: 2, 4, 6, off; the one it's on is filled in */
#meteor-tag .mt-seg { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: 22px; border: 1.5px solid var(--ink); background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none; opacity: 0; scale: .3; transition: scale .3s var(--ease), opacity .2s; }
#meteor-tag.show .mt-seg { pointer-events: auto; opacity: 1; scale: 1; }
#meteor-tag .mt-seg button { width: 40px; height: 34px; padding: 0; border: 0; border-radius: 17px; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
#meteor-tag .mt-seg button { position: relative; z-index: 1; }
#meteor-tag .mt-seg button.on { color: #fff; }
/* the dark pill behind the one it's on, sliding over to the next */
#meteor-tag .mt-thumb { position: absolute; left: 3px; top: 3px; width: 40px; height: 34px; border-radius: 17px; background: var(--ink); transform: translateX(calc(var(--k, 0) * 42px)); transition: transform .35s var(--ease); }
#meteor-tag .mt-seg button:active { transform: scale(.88); }
/* {modify}: one tap on the floating creature's eye puts this over it (see UI.showDiveChip) */
.dive-chip { position: fixed; left: 0; top: 0; z-index: 11; display: flex; align-items: center; gap: 6px; transform-origin: 50% 100%; opacity: 0; scale: .6; pointer-events: none; transition: opacity .2s, scale .3s var(--ease); }
.dive-chip.show { opacity: 1; scale: 1; pointer-events: auto; }

/* --- toast ---------------------------------------------------------------- */
#toast { position: fixed; top: calc(var(--safe-t) + 70px); left: 50%; z-index: 8; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--gold); transform: translate(-50%, -30px) scale(.9); opacity: 0; pointer-events: none; transition: opacity .4s, transform .5s var(--ease); max-width: calc(100vw - 24px); }
#toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
#toast, #moment { touch-action: none; }
#toast { transition: opacity .4s, transform .5s var(--ease), translate .4s var(--ease); }
.toast-portrait { flex: none; background: radial-gradient(circle at 50% 60%, #ffeef3, #fff6dc); border-radius: 12px; }
.toast-kicker { font: 500 13px/1 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .8px; color: var(--pink); }
.toast-name { font-family: 'Shrikhand', serif; font-size: 23px; line-height: 1.1; margin-top: 3px; }
.toast-latin { font: 13px/1.3 'DM Mono', monospace; opacity: .7; }

/* --- panels: modify + guide --------------------------------------------------- */
#scrim { position: fixed; inset: 0; z-index: 9; pointer-events: none; } /* (no dimming: just catches a tap outside a panel, to close it) */
#scrim.show { pointer-events: auto; touch-action: none; } /* (a drag on it spins what's floating in {modify}; the browser mustn't take it for a scroll) */
/* phones: the guide ducks out of the way while you carry something from it */
.panel.open.away { transform: translateY(calc(105% + 200px)); }
.panel { position: fixed; z-index: 10; background: linear-gradient(var(--paper), var(--paper)); border: 1.5px solid var(--ink); display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.panel.shut { display: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; border-bottom: 1.5px dashed rgba(27, 27, 27, .3); }
.chip.close-x { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.panel-title { font-family: 'Shrikhand', serif; font-size: 25.5px; }
@media (min-width: 760px) {
  .panel { top: 12px; right: 12px; bottom: 12px; width: 420px; border-radius: 18px; box-shadow: 5px 5px 0 var(--pink); transform: translateX(calc(100% + 30px)); }
  .panel.open { transform: none; }
}
@media (max-width: 759px) {
  .panel { left: 0; right: 0; bottom: 0; top: calc(var(--safe-t) + 8px); border-radius: 20px 20px 0 0; border-bottom: 0; box-shadow: 0 -4px 0 var(--pink); transform: translateY(calc(105% + 200px)); padding-bottom: var(--safe-b); } /* the extra 200px: on iPhone the page shows behind Safari's bar, so 105% left its top peeking */
  .panel.open { transform: none; }
  #modify.floating { top: calc(var(--safe-t) + 34vh); }
  .panel-head, #guide .panel-head { padding: 7px 12px 5px 14px; } /* (shorter headers on phones: more room for what's under them) */
  .panel-title { font-size: 21px; }
  .panel-head .chip.close-x { width: 30px; height: 30px; } /* (a creature or plant floats in the space above it: ClayScene.poseFocus) */
  html.focusing #hud { transform: translateY(calc(-100% - var(--safe-t) - 30px)); } /* (the top bar slides up out of the floating creature's way) */
  html.focusing #btn-snap, html.focusing #btn-gallery, html.focusing #btn-tips { translate: 0 calc(-200px - var(--safe-t)); } /* (and the buttons under it) */
}
#guide-body { position: relative; overflow-x: hidden; }
/* the guide's page turn (Guide.turn): the old page lies over the new one while it slides away */
.gpage-old { position: absolute; left: 16px; right: 16px; pointer-events: none; }
.code-body, #guide-body, #gallery-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 16px 24px; }
.code-body { font: 17px/1.75 'DM Mono', monospace; }
.code-body .ln { white-space: pre-wrap; word-break: break-word; }
.code-body .cm { color: #8a7f74; }
.code-body .cm i { font-style: italic; }
.code-body .mod-desc { font-size: 14px; line-height: 1.5; margin-bottom: 6px; overflow: hidden; } /* (its height is set: room for 2 lines per line, so rewriting a creature, which renames it, never moves the buttons below) */
.code-body .mod-desc .ln { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; } /* (each line at most 2: a longer one ends in …) */
.code-body .ln.head { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* (the 'creature name {' line never wraps either) */
#modify-body .cm { font-size: 14px; } /* (every // line in {modify}, like the description at the top) */
.code-body .kw { color: #c2185b; font-weight: 500; }
.code-body .id { color: #1e5bea; }
.code-body .key { color: #2a7a5c; }
.code-body .str { color: #b4590a; }
.code-body .val { font: 500 17px/1.2 'DM Mono', monospace; border: 1.5px solid var(--ink); background: #fff; border-radius: 8px; padding: 3px 8px; margin: 2px 0; box-shadow: 2px 2px 0 var(--gold); transition: transform .12s var(--ease), box-shadow .12s; }
.code-body .val:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--gold); }
.code-body .val:disabled { opacity: .45; box-shadow: none; cursor: default; transform: none; } /* (set by its body) */
.code-body .swatch i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--ink); margin-right: 6px; vertical-align: -1px; }
.code-body .peek { font: 15px 'DM Mono', monospace; border: 0; background: none; text-decoration: underline; color: #1e5bea; }
.code-body .mutation { margin-top: 8px; }
.code-body .kept-head { margin-top: 14px; }
.code-body .ln.mutation { margin-top: 10px; } /* (each mutation two lines: its name, then its controls, a little indented) */
.code-body .mut-name { font-weight: 700; }
.code-body .ln.mutation { line-height: 1.3; }
.code-body .mut-ctl { display: block; padding-left: 1.5em; margin-top: 8px; line-height: 1.75; }
.code-body .mut-note { display: block; overflow-wrap: anywhere; font-size: 14px; line-height: 1.4; } /* (who made it, how often it pollinates: small, on its own line) */
.code-body .fresh, #guide .fresh { animation: rise-in .3s var(--ease); } /* (a row that just joined a section) */
.code-body .unmade .str { opacity: .6; }
.code-body pre.code { display: none; margin: 6px 0 10px; padding: 10px; background: #1b1530; color: #d9f7ee; border-radius: 10px; font: 14.5px/1.5 'DM Mono', monospace; white-space: pre-wrap; word-break: break-word; max-height: 280px; overflow: auto; user-select: text; -webkit-user-select: text; }
.code-body pre.code.open { display: block; }

.guide-stats { font: 15.5px/1.5 'DM Mono', monospace; margin-bottom: 12px; }
.guide-stats b { font-weight: 500; color: var(--pink); }
.guide-empty { font: 15px/1.4 'DM Mono', monospace; opacity: .7; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
/* hovering a card lifts it off the page, with a shadow under it */
@media (hover: hover) { .card:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--pink); } } /* (the shadow sits exactly where the card was) */
.card:active { transform: scale(.95); }
.card-name { font-size: 20px; line-height: 1.1; text-align: center; box-sizing: border-box; max-width: 100%; padding: 0 6px; overflow-wrap: anywhere; hyphens: auto; } /* (a long name breaks onto two lines instead of running into the edges) */
.card-meta { display: block; font: 13px 'DM Mono', monospace; opacity: .6; margin-top: 3px; }
.fav-title.detail-variants { margin-top: 22px; }
.back { margin-bottom: 10px; }
.detail { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; }
.detail-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.detail-top .chip.keep { display: inline-flex; align-items: center; gap: 5px; }
.detail-pic { align-self: center; display: flex; flex-direction: column; align-items: center; }
.detail-hint { font: 13px 'DM Mono', monospace; opacity: 0; margin-top: 6px; transition: opacity .2s; pointer-events: none; }
.detail-pic:hover .detail-hint { opacity: .65; }
@media (hover: none) { .detail-hint { opacity: .65; } } /* (no hover on phones: the hint just stays) */
.detail-portrait:active { cursor: grabbing; }
.detail-portrait { cursor: grab; touch-action: pan-y; align-self: center; background: radial-gradient(circle at 50% 60%, #ffeef3, #fff6dc); border-radius: 20px; border: 1.5px solid var(--ink); }
.detail-name { font-family: 'Shrikhand', serif; font-size: 28px; line-height: 1.1; margin-top: 8px; }
.detail-latin { font: 14.5px/1.4 'DM Mono', monospace; opacity: .7; }
.detail p { font: 15px/1.45 'DM Mono', monospace; margin: 10px 0 0; text-wrap: pretty; }
.detail-temp { opacity: .8; }
.detail-meta { font: 14.5px/1.6 'DM Mono', monospace; opacity: .65; margin-top: 12px; }

/* --- title + waking up --------------------------------------------------------- */
#title { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #2a1748 0%, var(--night) 70%); color: var(--paper); text-align: center; cursor: pointer; transition: opacity .5s; }
#title.gone { opacity: 0; pointer-events: none; }
#title .title-inner { opacity: 0; transition: opacity .6s ease; }
#title.ready .title-inner { opacity: 1; }
.title-inner { padding: 24px; }
.wordmark { font-family: 'Shrikhand', serif; font-weight: 400; font-size: clamp(48px, 13.5vw, 150px); line-height: .9; margin: 0; padding: 0 .14em .06em; letter-spacing: -1px; background: linear-gradient(100deg, #ff9ec4, #ffd166 45%, #7cf2d0 80%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(4px 5px 0 #ff5d8f); animation: wobble 6s ease-in-out infinite; }
.wordmark .i { position: relative; display: inline-block; background: linear-gradient(100deg, #a6eab2, #7cf2d0); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.wordmark .eye { position: absolute; left: 50%; top: -.06em; width: .34em; height: .34em; margin-left: -.17em; border-radius: 50%; background: #fffaf0; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 .025em #1b1b1b; }
/* its eyelids (a flat take on the world's clay lids): two pink lids with darker rims, hidden above and below the
   eye, that slide in to meet in the middle for a blink */
.wordmark .eye::before, .wordmark .eye::after { content: ''; position: absolute; z-index: 1; left: 0; width: 100%; height: 52%; background: #ff9ec4; }
.wordmark .eye::after { top: 0; box-shadow: inset 0 -.03em 0 #ff5d8f; animation: lidtop 5s infinite; }
.wordmark .eye::before { bottom: 0; box-shadow: inset 0 .03em 0 #ff5d8f; animation: lidbottom 5s infinite; }
.wordmark .pupil { width: .17em; height: .17em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 12%, #1b1b1b 14% 46%, #2a9d8f 48% 100%); transition: transform .15s ease-out; }
.tag { font-family: 'DM Mono', monospace; font-size: clamp(15px, 3.8vw, 19px); margin: 18px 0 0; opacity: .9; }
/* the look picker: a pill with two options and a knob that slides under the chosen one; while the
   machine is being tried (no pick yet) the knob is away and the words breathe */
.look-pick { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: fit-content; margin: 30px auto 0; padding: 3px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--mint); font: 500 14px/1 'DM Mono', monospace; } /* (quieter than the way in: mint, no pink shadow, smaller) */
.look-knob { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); box-sizing: border-box; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 1px 1px 0 var(--pink); /* (like the way in: a raised paper pill) */ transition: transform .35s cubic-bezier(.34, 1.6, .5, 1), opacity .25s; }
.look-pick.detailed .look-knob { transform: translateX(100%); }
.look-pick.thinking .look-knob { opacity: 0; }
.look-opt { position: relative; background: none; border: 0; padding: 8px 18px 9px; font: inherit; color: var(--ink); border-radius: 999px; transition: color .25s, opacity .25s; }

.look-pick { transition: opacity .35s; }
.look-pick.thinking { opacity: .45; pointer-events: none; } /* (faded while the machine is tried) */
.look-pick.thinking .look-opt { animation: lookwait 1.4s ease-in-out infinite; }
@keyframes lookwait { 0%, 100% { opacity: .5; } 50% { opacity: .2; } }
.fine.look-help { min-height: 1.2em; margin-top: 9px; } /* (what the pick is for, in the same fine print as "sound on"; "detecting..." while the machine is tried) */
.look-pick.thinking + .look-help { animation: lookwait 1.4s ease-in-out infinite; }
/* the way in: one big button (nothing else on the title screen starts the game) */
.enter { margin-top: 22px; padding: 16px 34px 18px; font: 26px/1 'Shrikhand', serif; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 5px 6px 0 var(--pink); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.enter:hover { transform: translate(-2px, -2px) scale(1.04); box-shadow: 8px 9px 0 var(--pink); }
.enter:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--pink); }
.no3d { margin: 42px auto 0; max-width: 30ch; padding: 16px 26px 18px; font: 16px/1.45 'DM Mono', monospace; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 5px 6px 0 var(--pink); }
#moment.no3d-lost .m-sub { white-space: normal; }
#moment.no3d-lost { z-index: 2147483000; } /* (in front of everything: panels, cards, the hand) */
.enter { transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .4s ease, filter .4s ease; }
/* while the machine is tried (look.js), the way in and the fine print below it aren't there; once the look
   is picked they pop up: fading in while sliding up, a little past, then settling */
#title.detecting #btn-enter, #title.detecting .look-help ~ .fine { opacity: 0; visibility: hidden; }
#title.revealed #btn-enter { animation: popup .55s cubic-bezier(.34, 1.6, .5, 1) both; }
#title.revealed .look-help ~ .fine { animation: popupfine .55s .08s cubic-bezier(.34, 1.6, .5, 1) both; }
#title.revealed .look-help ~ .fine ~ .fine { animation-delay: .16s; }
@keyframes popup { 0% { opacity: 0; transform: translateY(18px); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes popupfine { 0% { opacity: 0; transform: translateY(18px); } 60% { opacity: .85; } 100% { opacity: .85; transform: none; } }
.enter.loading { opacity: .55; filter: grayscale(1); transform: none; box-shadow: 5px 6px 0 var(--pink); pointer-events: none; white-space: nowrap; transition: opacity .5s .2s, filter .5s .2s, width .35s var(--ease); }
/* the dots hop one after another, so it's clearly working, not stuck */
.enter .dots i { display: inline-block; font-style: normal; line-height: 0; animation: dothop 1.2s ease-in-out infinite; }
.enter .dots i:nth-child(2) { animation-delay: .15s; }
.enter .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dothop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-.28em); } }
.enter.swap { animation: enterswap .6s var(--ease); }
@keyframes enterswap { 0% { transform: scale(1); } 25% { transform: scale(1.06, .78); } 55% { transform: scale(.96, 1.1); } 78% { transform: scale(1.02, .97); } 100% { transform: scale(1); } }
#title .fine, #title .byline { color: #7cf2d0; } /* (the title's small print: the teal from the wordmark) */
#title .fine { opacity: .85; }
.fine { font-family: 'DM Mono', monospace; font-size: 14px; opacity: .55; margin-top: 26px; display: flex; justify-content: center; align-items: center; gap: 7px; }
/* the credit at the very bottom of the title screen (fades in with the rest of it) */
.fine.phone-note[hidden] { display: none; }
.fine.phone-note:not([hidden]) + .fine { margin-top: 8px; } /* (the sound line sits close under it) */
.byline { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 18px); margin: 0; text-align: center; font: 14px 'DM Mono', monospace; opacity: 0; transition: opacity .6s ease; }
#title.ready .byline { opacity: .85; }
.byline a { color: inherit; text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.03); } }
@keyframes lidtop { 0%, 92%, 98%, 100% { transform: translateY(-101%); } 95% { transform: translateY(0); } }
@keyframes lidbottom { 0%, 92%, 98%, 100% { transform: translateY(101%); } 95% { transform: translateY(0); } }

#lids { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.lid { position: absolute; left: -10%; right: -10%; height: 52%; background: #07040d; }
.lid.top { top: 0; border-radius: 0 0 50% 50% / 0 0 22% 22%; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.lid.bottom { bottom: 0; border-radius: 50% 50% 0 0 / 22% 22% 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.6); }
/* each lid runs on well past its outer edge, so its bounce while opening never shows the world behind it at the window's edge */
.lid::before { content: ''; position: absolute; left: 0; right: 0; height: 60%; background: inherit; }
.lid.top::before { bottom: 100%; }
.lid.bottom::before { top: 100%; }
#lids.opening .lid.top { animation: lidTop 1.4s cubic-bezier(.5, 0, .2, 1) forwards; }
#lids.opening .lid.bottom { animation: lidBottom 1.4s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes lidTop { 0% { transform: translateY(0); } 30% { transform: translateY(-45%); } 45% { transform: translateY(-10%); } 100% { transform: translateY(-115%); } }
@keyframes lidBottom { 0% { transform: translateY(0); } 30% { transform: translateY(45%); } 45% { transform: translateY(10%); } 100% { transform: translateY(115%); } }

@media (max-width: 640px) {
  .line { font-size: 14px; padding: 6px 10px 7px; }
  #whisper-input, #whisper-ponder, .whisper-glyphs { font-size: 22px; }
  #whisper .send, #whisper .mic { height: calc(22px * 1.2 + 16px); }
  #whisper:focus-within { -webkit-backdrop-filter: none; backdrop-filter: none; } /* the blur behind it puts the iPhone's cursor in the wrong place */
  .chip.suggestion { font-size: 10px; line-height: 1.25; text-align: left; padding: 6px 10px 6px 9px; gap: 4px; }
  .chip.suggestion svg { width: 12px; height: 12px; }
  .line.big { font-size: 26px; }
  .line.speaks { font-size: 18px; }
  /* phones: the world's name across the top (cut off with … if long), its buttons in a row below */
  #place { flex-wrap: wrap; row-gap: 7px; }
  .place-text { flex: 1 0 100%; }
  #place-name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #place-depth { display: none; }
  .np-name { font-size: 17px; }
  .np-sub { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark { animation: none; }
}


#suggest { display: none; flex-wrap: wrap; gap: 6px; justify-content: flex-start; pointer-events: auto; animation: rise-in .3s var(--ease); }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }
#suggest.show { display: flex; }
/* talking to a creature: a note above the box saying who you're talking to */
#talk-to { align-self: flex-start; max-width: 100%; padding: 7px 14px 8px; font: 15px/1.3 'DM Mono', monospace; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--mint); opacity: 0; transform: translateY(8px); max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; overflow: hidden; transition: opacity .25s, transform .3s var(--ease), max-height .3s var(--ease), padding .3s var(--ease); }
#talk-to.show { opacity: 1; transform: none; max-height: 60px; padding-top: 7px; padding-bottom: 8px; border-width: 1.5px; }
/* small versions of the message cards, each with a lightbulb */
.chip.suggestion { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); color: var(--ink); border-color: var(--ink); font-size: 15.5px; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
@media (hover: hover) { .chip.suggestion:hover { transform: translate(-1px, -1px); box-shadow: 1px 1px 0 var(--gold); } }
.sug-ico { display: grid; flex: none; }
.sug-ico > svg { grid-area: 1 / 1; transition: opacity .2s, scale .3s var(--ease), translate .3s var(--ease); }
.sug-ico .down { opacity: 0; scale: .4; translate: 0 -4px; }
@media (hover: hover) { .chip.suggestion:hover .bulb { opacity: 0; scale: .4; } .chip.suggestion:hover .down { opacity: 1; scale: 1; translate: 0; } } /* (like the field guide's cards: it rises, its shadow left where it was) */
.chip.suggestion svg { flex: none; }
@media (min-width: 641px) {
  #toast { top: calc(var(--safe-t) + 70px); left: auto; right: 12px; transform: translateY(-20px) scale(.9); }
  #toast.show { transform: none; }
}
#btn-modify { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; display: grid; place-items: center; color: var(--ink); margin-left: -4px; transition: transform .2s var(--ease); }
#btn-modify:active { transform: scale(.88); }
#btn-rise { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; display: grid; place-items: center; color: var(--ink); margin-left: -4px; transition: transform .2s var(--ease); }
#btn-rise:active { transform: scale(.88); }
/* the world renders on a WebGL canvas (#c3d) under the 2D canvas, which only carries overlays */
#c { z-index: 1; }
#c3d { position: fixed; top: 0; left: 0; z-index: 0; }
/* iPhone/iPad Safari only shows the page behind its bottom bar when the page scrolls (otherwise the bar
   gets a solid band of the page color): there the page is a little taller than the screen and sits scrolled
   down by --runway, with the world's canvases laid in the page so they reach down behind the bar */
html.bleed, html.bleed body { height: auto; overflow: visible; }
html.bleed body { min-height: calc(100lvh + var(--runway)); }
html.bleed #c, html.bleed #c3d { position: absolute; top: var(--runway); }
/* the world's top and bottom edges, mirrored out past it: behind the clock and battery, and below the world */
/* the floating URL bar already leaves room at the bottom: the chat box sits closer to it */
html.bleed #chat { bottom: calc(6px + var(--kb, 0px)); }
#top-bleed { position: absolute; top: 0; left: 0; width: 100%; height: var(--runway); z-index: 0; pointer-events: none; }
#bottom-bleed { position: absolute; left: 0; width: 100%; height: 320px; z-index: 0; pointer-events: none; }
/* cards and the dimming behind them are laid in the page here too, not pinned to the screen: Safari turns
   its bar solid over anything pinned at the bottom, and the card's list should scroll on behind the bar */
@media (max-width: 759px) {
  html.bleed .panel { position: absolute; top: calc(var(--runway) + var(--safe-t) + 8px); bottom: auto; height: calc(var(--world-h, 100lvh) - var(--safe-t) - 8px + 200px); } /* (+200px: runs on past the bottom of the screen, so it always fills the space behind Safari's bar) */
  html.bleed #modify.floating { top: calc(var(--runway) + var(--safe-t) + var(--world-h, 100lvh) * 0.34); height: calc(var(--world-h, 100lvh) * 0.66 - var(--safe-t) + 200px); }
  html.bleed .code-body, html.bleed #guide-body, html.bleed #gallery-body { padding-bottom: 310px; } /* room to scroll the last rows up out from behind the bar */
}
html.bleed #scrim { position: absolute; inset: auto; top: 0; left: 0; right: 0; height: calc(var(--runway) + var(--world-h, 100lvh) + 320px); }


.place-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#btn-fav { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font-size: 20px; line-height: 1; display: grid; place-items: center; color: var(--ink); transition: transform .2s var(--ease), background .2s; }
#btn-fav:active { transform: scale(.88); }
#btn-fav.pop { animation: favpop .5s var(--ease); }
@keyframes favpop { 40% { transform: scale(1.35) rotate(-12deg); } }
#blink { position: fixed; inset: 0; z-index: 25; pointer-events: none; background: linear-gradient(#07040d, #07040d); opacity: 0; transition: opacity .45s ease; }
#blink.shut { opacity: 1; }
.fav-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.fav-list .chip { font-size: 14px; background: #fff3c4; }
.fav-title { font: 500 15px 'DM Mono', monospace; margin: 0 0 8px; }

.law-name .star-ico { vertical-align: -2px; }
.laws-list { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
/* the name gets the whole top line; its buttons sit in a row underneath, all the same height */
.law-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; }
.law-row { position: relative; }
.law-row.off > :not(.law-sw) { opacity: .72; } /* (switched off here: a little faded, its switch still clear) */
.law-sw { margin-left: auto; background: none; border: 0; padding: 0; cursor: pointer; }
.law-row .chip.del + .law-sw { margin-left: 4px; } /* (delete takes the space; the switch sits just after it, at the far right) */
.law-row .law-name { flex: 1 1 100%; min-width: 0; font-size: 23px; line-height: 1.2; }
.law-row .law-meta { display: block; overflow-wrap: anywhere; font: 13px 'DM Mono', monospace; opacity: .6; margin-top: 3px; }
.law-row .chip { height: 30px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; font-size: 11.5px; }
.law-row .chip.del { margin-left: auto; } /* (plain until it asks "sure?", then red) */
.law-row.mut .chip.del { margin-left: 0; } /* (a mutation's buttons all sit on the left; its switch stands alone at the right) */
.law-row.mut .law-sw, .law-row.mut .chip.del + .law-sw { margin-left: auto; } /* (beats the world cards' "switch right after delete" rule) */
/* a mutation that's on here stands out: a thicker ink outline and a teal shadow (the wordmark pupil's teal); off ones keep a faint outline */
.law-row.mut { border-width: 2px; box-shadow: 3px 3px 0 #2a9d8f; transition: border-color .25s, box-shadow .25s; }
.law-row.mut.off { border-color: rgba(27, 27, 27, .18); box-shadow: 0 0 0 transparent; }
.law-sw.on .sw, .set-row.on .sw { background: var(--neon); opacity: 1; } /* (on: neon, knob in ink; the field guide's mutations and the settings) */
.law-sw.on .sw::after, .set-row.on .sw::after { background: var(--ink); }
.law-row .law-cur { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; } /* (the curator's boost and unpollinate, on their own line) */
/* a delete button asking "sure?": tinted red until it times out */
.del { transition: background .2s, color .2s, border-color .2s; }
.del[data-armed="1"] { background: #ff6b6b !important; color: #fff; border-color: #c4282d; }

.guide-stats .book-ico { vertical-align: -3px; }
.guide-how { margin-bottom: 4px; }
.guide-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
/* the field guide: its tabs under the title, then the dotted line where the scrolling starts */
#guide .panel-head { border-bottom: 0; padding-bottom: 6px; }
#guide-tabs { padding: 0 16px 12px; border-bottom: 1.5px dashed rgba(27, 27, 27, .3); flex: none; }
.guide-tabs .tab { font: 500 13px 'DM Mono', monospace; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; transition: background .2s, color .2s, transform .12s var(--ease); }
.guide-tabs .tab.on { background: var(--ink); color: var(--paper); }
.guide-about { font: 15px/1.6 'DM Mono', monospace; text-align: left; margin: 28px 0; padding-left: 8px; }
.guide-about a { color: inherit; text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* the wavy underline is a little faint until you hover */
.byline a, .guide-about a { text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); transition: text-decoration-color .15s; }
.byline a:hover, .guide-about a:hover { text-decoration-color: currentColor; }
.guide-tabs .tab .n { font-size: 10px; opacity: .55; margin-left: 3px; vertical-align: 1px; }
.snap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.snap-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--pink); cursor: zoom-in; transition: transform .15s var(--ease); }
.snap-grid img:hover { transform: rotate(-1deg) scale(1.02); }
/* a snap, big: dims the world and fills most of the screen */
#snap-modal { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: linear-gradient(rgba(20, 5, 31, .82), rgba(20, 5, 31, .82)); opacity: 0; pointer-events: none; transition: opacity .3s; }
#snap-modal.open { opacity: 1; pointer-events: auto; }
#snap-modal img { max-width: min(1400px, 100%); max-height: calc(100% - 70px); border-radius: 18px; border: 2px solid var(--ink); box-shadow: 5px 6px 0 var(--pink); transform: scale(.94); transition: transform .35s var(--ease); }
#snap-modal.open img { transform: scale(1); }
#snap-modal .snap-acts { display: flex; gap: 8px; align-items: center; background: var(--paper); padding: 6px 8px 6px 14px; border-radius: 999px; border: 1.5px solid var(--ink); }
#snap-modal a.chip { text-decoration: none; color: inherit; }
#snap-modal .snap-meta { font: 13px 'DM Mono', monospace; opacity: .65; margin-right: 6px; }
.guide-tabs .tab:active { transform: scale(.94); }
.guide-tab-body { animation: rise-in .25s var(--ease); }

#moment { position: fixed; top: calc(var(--safe-t) + 92px); left: 50%; z-index: 12; width: min(560px, calc(100vw - 28px)); padding: 16px 22px 18px; text-align: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 5px 6px 0 var(--pink); transform: translate(-50%, -140%) rotate(-1.5deg); opacity: 0; transition: transform .7s var(--ease), opacity .4s, translate .4s var(--ease); pointer-events: none; }
#moment.show { transform: translate(-50%, 0) rotate(-1.5deg); opacity: 1; pointer-events: auto; }
#moment .m-kicker { font: 500 16px 'DM Mono', monospace; letter-spacing: 1.5px; text-transform: uppercase; color: color-mix(in srgb, var(--pink) 82%, #000); } /* (the pink, a tad darker) */
#moment .m-title { font-family: 'Shrikhand', serif; font-size: 34px; line-height: 1.05; margin: 4px 0 6px; }
#moment .m-sub { font: 15px/1.4 'DM Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a question pinned in the chat until it's answered: keep / change / unmake */
.line.pinned { pointer-events: auto; }
.line .pin-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-style: normal; }
.line .pin-acts .chip { display: inline-flex; align-items: center; gap: 7px; font: 500 16px/1 'DM Mono', monospace; padding: 11px 16px 11px 13px; color: var(--ink); }
@media (max-width: 639px) { .line .pin-acts { gap: 6px; } .line .pin-acts .chip { font-size: 14px; gap: 5px; padding: 9px 12px 9px 10px; } } /* (phones: all three on one line) */
.line .pin-acts .chip.unmake { background: #ffe3ec; border-color: #c4282d; color: #8e1c2a; }
#moment .m-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
#moment .m-acts .chip { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; padding: 11px 16px 11px 13px; }
#moment .m-acts .chip.fav { color: var(--ink); font-family: 'DM Mono', monospace; font-size: 16px; line-height: 1; } /* (a keep star, but the label stays like its neighbors) */
#moment .m-acts .chip.unmake { background: #ffe3ec; border-color: #c4282d; color: #8e1c2a; }
#moment:has(.m-acts) .m-sub { white-space: normal; } /* (a question card: its line can wrap) */
#moment .m-sub:empty { display: none; } /* (a card with just a title) */
@media (max-width: 640px) { #moment { top: calc(var(--safe-t) + 8px); } #moment .m-title { font-size: 26px; } #moment .m-sub { font-size: 12.5px; } }
/* phones: a more compact new-species card, its red line kept to one line */
@media (max-width: 640px) {
  #toast { gap: 9px; padding: 6px 12px 6px 6px; border-radius: 16px; transform: translateY(-20px) scale(.9); } /* (placed under the world's card: ui.js toast) */
  #toast.show { transform: none; }
  .toast-portrait { width: 52px; height: 52px; }
  .toast-kicker { font-size: 10.5px; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .toast-name { font-size: 19px; margin-top: 2px; }
  .toast-latin { font-size: 11.5px; }
  #toast > div { min-width: 0; }
}

.card { position: relative; }
.card-star { position: absolute; top: 3px; right: 6px; font-size: 26px; line-height: 1; color: var(--neon); text-shadow: 0 0 0 var(--ink); cursor: pointer; transition: transform .15s var(--ease); }
.card-star:hover { transform: scale(1.25); }
.card.keeper { cursor: grab; touch-action: pan-y; }
.chip.fav { color: #b8860b; font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', system-ui, sans-serif; font-size: 24px; line-height: 1; padding: 2px 10px 4px; }
.card-star { font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', system-ui, sans-serif; }
.detail .chip.fav { font-size: 17px; padding: 6px 12px; }
.law-row .chip.fav { padding: 0 8px; }
.drag-ghost { position: fixed; left: 0; top: 0; width: 96px; height: 96px; z-index: 30; pointer-events: none; filter: drop-shadow(4px 6px 0 rgba(0,0,0,.25)); transition: none; }
#guide.dragging { opacity: .35; transition: opacity .2s; }
.law-group-note { font: 13.5px/1.4 'DM Mono', monospace; opacity: .7; margin: -2px 0 8px; }
.laws-list + .fav-title, .fold + .fav-title { margin-top: 18px; }
/* a section that folds away: tap its heading */
.fav-title.fold-head { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 6px; }
.fold-caret { flex: none; transition: transform .25s var(--ease); } /* (a chevron, like Lucide's chevron-right) */
.fav-title.open .fold-caret { transform: rotate(90deg); }
.fold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s ease, opacity .25s; }
.fold.open { grid-template-rows: 1fr; opacity: 1; }
.fold > div { overflow: hidden; min-height: 0; }
.card.species { cursor: grab; touch-action: pan-y; }
.circ .star-ico:not(.on) path { fill-opacity: 0; } /* the button's own frosted white shows through */
#guide .star-ico:not(.on) path { stroke-opacity: .37; } /* (in the field guide, an empty star's outline is lighter) */
.star-ico { display: inline-block; vertical-align: -0.18em; transition: transform .18s var(--ease); }
.chip.fav { display: inline-flex; align-items: center; gap: 4px; }
.chip.dice { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.dice-ico { display: inline-block; transition: transform .18s var(--ease); }
.chip.dice:hover .dice-ico { transform: rotate(-14deg) scale(1.1); }
.chip.dice:active .dice-ico { transform: rotate(90deg) scale(.9); }
.chip.fav:hover .star-ico, .card-star:hover .star-ico, #btn-fav:hover .star-ico, .circ:hover .star-ico { transform: scale(1.15) rotate(-8deg); }
.chip.fav:active .star-ico, #btn-fav:active .star-ico, .circ:active .star-ico { transform: scale(.9); }
.card-star { line-height: 0; }

/* every icon button gets the same little hover lift the star has */
.round svg, #btn-rise svg, #btn-modify svg, .circ svg, #whisper .send svg, .chip.close-x svg { transition: transform .18s var(--ease); }
@media (hover: hover) {
  .round:hover svg, #btn-rise:hover svg, #btn-modify:hover svg, .circ:hover svg:not(.star-ico), #whisper .send:hover svg, .chip.close-x:hover svg { transform: scale(1.15) rotate(-8deg); }
}

/* a star flying into the field guide (see UI.flyStar), the guide button gobbling it, and its sparkle */
.fly-star { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; color: var(--neon); filter: drop-shadow(1px 2px 0 rgba(27, 27, 27, .35)); }
#btn-guide.gobble { animation: gobble .45s var(--ease); }
@keyframes gobble { 0% { transform: scale(1); } 35% { transform: scale(1.32); } 65% { transform: scale(.94); } 100% { transform: scale(1); } }
.fly-spark { position: fixed; z-index: 60; width: 28px; height: 28px; margin: -14px 0 0 -14px; display: grid; place-items: center; font: 26px/1 system-ui, sans-serif; color: var(--neon); text-shadow: 0 0 1px #1b1b1b, 1px 1px 0 #1b1b1b, 0 0 8px var(--neon); pointer-events: none; animation: flyspark .75s ease-out forwards; }
@keyframes flyspark { 0% { transform: scale(.4); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(90deg); opacity: 0; } }
/* the field guide's species filters (all / creatures / plants / other): small pills like the tabs above */
.guide-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.guide-filters .pill { font: 500 12px 'DM Mono', monospace; padding: 6px 11px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); transition: background .2s, color .2s, transform .12s var(--ease); }
.guide-filters .pill.on { background: var(--ink); color: var(--paper); }
.guide-filters .pill:active { transform: scale(.94); }
