/* The checkbox, the challenge and the page behind it. Plain, generic, the way everyone has seen it. */
:root {
  --blue: #1a73e8; --spin: #4a90e2; --green: #009e55; --red: #d93025;
  --line: #d3d3d3; --ink: #282828; --muted: #555; --gap: 4px;
  --card: min(400px, calc(100vw - 16px));
  --void: #000; --ink: #c9cdd1; --dim: #6b7177; --wire: #1c1f22; --accent: #b3261e;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #fff; color: var(--ink); font: 14px/1.4 Roboto, Helvetica, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
body { overflow: hidden; overscroll-behavior: none; transition: background-color .6s ease; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.tile, .cb, .ic { touch-action: manipulation; }
[hidden] { display: none !important; }

/* ---------- the checkbox */
#gate { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; }
.gate-in { display: grid; justify-items: center; gap: 14px; transition: transform .7s cubic-bezier(.25, .6, .3, 1); }
.anchor { position: relative; width: 304px; height: 78px; background: #f9f9f9; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 0 4px 1px rgba(0, 0, 0, .08); }
.anchor-row { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding-left: 12px; }
.cb-wrap { position: relative; width: 28px; height: 28px; flex: none; }
.cb { all: unset; position: absolute; inset: 0; display: block; cursor: pointer; border-radius: 2px; }
.cb:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cb[disabled] { visibility: hidden; }
.cb-box { position: absolute; inset: 0; background: #fff; border: 2px solid #c1c1c1; border-radius: 2px; transition: transform .25s ease, opacity .25s ease, border-color .15s; }
.cb:hover .cb-box { border-color: #b2b2b2; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1); }
.cb-label { font-size: 14px; color: #000; user-select: none; -webkit-user-select: none; cursor: default; }
#cbNot { transition: color .3s; }
#cbNot.struck { text-decoration: line-through; text-decoration-thickness: 2px; color: #888; }
.cb-spin { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(74, 144, 226, .18); border-top-color: var(--spin); border-left-color: var(--spin); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s; }
.cb-spin.on, .cb.busy .cb-spin { opacity: 1; transform: scale(1); animation: spin .8s linear infinite; }
.cb.busy .cb-box { transform: scale(.4); opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.cb-check { position: absolute; left: -3px; top: -4px; width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: square; stroke-dasharray: 40; stroke-dashoffset: 40; opacity: 0; }
.cb.ok .cb-box, .cb.ok .cb-spin { opacity: 0; animation: none; }
.cb.ok .cb-check, .done .cb-check { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .45s ease-out; }
.anchor-load { position: absolute; inset: 0; }
.anchor-mark { position: absolute; right: 8px; top: 0; bottom: 0; width: 64px; display: grid; justify-items: center; align-content: center; gap: 3px; }
.mark { width: 30px; height: 30px; fill: none; stroke: #8a8f94; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.about-link { all: unset; font-size: 9px; line-height: 11px; color: #6b7177; cursor: pointer; letter-spacing: .02em; }
.about-link:hover { text-decoration: underline; color: #333; }
.about-link:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; }
.cb.pre .cb-check { opacity: 1; stroke-dashoffset: 0; transition: none; }
.cb.pre .cb-box { opacity: 0; }
.anchor.ready .anchor-load { display: none; }
.anchor-err { position: absolute; left: 12px; top: 3px; right: 8px; font-size: 10px; line-height: 12px; color: var(--red); }
.anchor.err { border-color: var(--red); }
.anchor.note .anchor-err { color: var(--green); }

/* ---------- the challenge */
#veil { position: fixed; inset: 0; background: rgba(255, 255, 255, .5); z-index: 5; }
#challenge { position: fixed; inset: 0; z-index: 6; display: grid; place-items: center; padding: 8px; overflow: auto; pointer-events: none; }
.ch-card { pointer-events: auto; width: var(--card); background: #fff; border: 1px solid #ccc; box-shadow: 0 0 5px rgba(0, 0, 0, .2), 2px 2px 3px rgba(0, 0, 0, .1); padding: 7px; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
#challenge.in .ch-card { opacity: 1; transform: none; }
.ch-head { background: var(--blue); color: #fff; padding: 22px 16px 22px; margin-bottom: 7px; min-height: 96px; transition: background-color .4s ease; }
.ch-lead, .ch-sub { font-size: 14px; line-height: 20px; }
.ch-noun { display: block; font-size: 24px; line-height: 30px; font-weight: 700; }
.ch-sub:empty, .ch-lead:empty { display: none; }
.ch-head.quote { padding: 16px 16px 18px; }
.ch-head.quote .ch-noun { font-size: 17px; line-height: 24px; font-weight: 500; font-style: italic; margin-top: 4px; }
.ch-plainhead { font-size: 14px; font-weight: 500; line-height: 20px; padding: 18px 10px 14px; color: #000; }
.ch-body { position: relative; }
.stage { transition: opacity .3s ease; }
.stage.leaving { opacity: 0; }

.grid { display: grid; gap: var(--gap); transition: gap .45s ease; }
.grid.n4 { grid-template-columns: repeat(4, 1fr); }
.grid.n3 { grid-template-columns: repeat(3, 1fr); }
.grid.n2 { grid-template-columns: repeat(2, 1fr); }
.grid.closed { --gap: 0px; }
.tile { all: unset; position: relative; display: block; aspect-ratio: 1; cursor: pointer; background: #fff; overflow: hidden; }
.tile:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; z-index: 1; }
.tile .im { position: absolute; inset: 0; background-repeat: no-repeat; transition: transform .2s ease, opacity .3s ease; }
.tile .im.cut { background-size: var(--bs); background-position: var(--bp); }
.tile .im.own { background-size: cover; background-position: center; }
.tile.blank { background: #eceff1; }
.tile.blank .im { background: center / 34% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b0b6ba' d='M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2zm-3 6.42 3 3.01V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6.58l3 2.99 4-4 4 4 4-4z'/%3E%3C/svg%3E"); }
.tile.sel .im { transform: scale(.8); }
.tile .tick { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); opacity: 0; transform: scale(.4); transition: opacity .15s, transform .2s; }
.tile .tick::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tile.sel .tick { opacity: 1; transform: none; }
.tile.out .im { opacity: 0; transition: opacity .3s ease; }
.tile.fresh .im { opacity: 0; }
.tile.fadein .im { opacity: 1; transition: opacity 1s ease; }
.grid.closed .tile.sel .im { transform: none; }
.grid.closed .tick { opacity: 0 !important; }
/* click in order: numbers instead of ticks */
.grid.order .tick { display: none; }
.grid.order .tile.sel .im { transform: scale(.88); }
.tile .num { position: absolute; left: 6px; top: 6px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: var(--blue); color: #fff; font: 700 15px/28px Roboto, Arial, sans-serif; text-align: center; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .2s; }
.tile .num:not(:empty) { opacity: 1; transform: none; }

.whole { position: relative; overflow: hidden; background: #fff; transition: height .7s cubic-bezier(.3, .7, .2, 1), opacity .3s ease; }
.whole.leaving { opacity: 0; }
.whole img { position: absolute; display: block; max-width: none; transition: width .7s cubic-bezier(.3, .7, .2, 1), height .7s cubic-bezier(.3, .7, .2, 1), left .7s cubic-bezier(.3, .7, .2, 1), top .7s cubic-bezier(.3, .7, .2, 1), opacity .5s ease; }


.ch-msg { min-height: 0; color: var(--red); font-size: 14px; line-height: 18px; padding: 0 8px; }
.ch-msg:not(:empty) { padding: 9px 8px 2px; }
.ch-msg.ok { color: var(--green); }
.ch-msg.ok::before { content: "✓ "; font-weight: 700; }
.ch-msg.info { color: #3c4043; }
.ch-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #dfdfdf; margin: 7px -7px -7px; padding: 8px 8px 8px 6px; min-height: 59px; }
.ch-icons { display: flex; gap: 2px; }
.ch-mark { width: 24px; height: 24px; margin: 0 12px 0 auto; stroke: #b6bbc0; }
.ic { all: unset; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; border-radius: 2px; }
.ic svg { width: 24px; height: 24px; fill: #555; transition: fill .15s; }
.ic:hover svg, .ic[aria-expanded="true"] svg { fill: #000; }
.ic:focus-visible { outline: 2px solid var(--blue); }
.verify { min-width: 100px; height: 42px; padding: 0 16px; border: 0; border-radius: 2px; background: var(--blue); color: #fff; font-weight: 500; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; cursor: pointer; }
.verify:hover { background: #1765cc; }
.verify:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.verify[disabled] { background: #9fc0f2; cursor: default; }

/* audio challenge */
.audio { display: grid; justify-items: center; gap: 14px; padding: 6px 10px 12px; }
.play { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 22px 0 16px; border: 0; border-radius: 2px; background: var(--blue); color: #fff; font-weight: 500; letter-spacing: .02em; cursor: pointer; }
.play svg { width: 22px; height: 22px; fill: #fff; }
.au-bar { width: 100%; height: 3px; background: #e6e6e6; }
.au-bar i { display: block; height: 100%; width: 0; background: var(--blue); }
.au-input { width: 100%; height: 40px; border: 1px solid #ccc; border-radius: 2px; padding: 0 10px; font: 16px Roboto, Arial, sans-serif; }
.au-input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }

/* type the characters */
.txt { display: grid; gap: 10px; }
.txt-cv { display: block; width: 100%; border: 1px solid #ddd; }

/* rotate */
.rot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 4px; }
.rot-disc { position: relative; width: min(250px, 62vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #000; box-shadow: 0 0 0 4px #e8eaed, 0 2px 8px rgba(0, 0, 0, .25); }
.rot-img { position: absolute; inset: 0; background-repeat: no-repeat; transition: transform .35s cubic-bezier(.3, .8, .3, 1); }
.rot-b { all: unset; flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #f1f3f4; cursor: pointer; }
.rot-b svg { width: 26px; height: 26px; fill: #3c4043; }
.rot-b:hover { background: #e3e6e8; }
.rot-b:focus-visible { outline: 2px solid var(--blue); }

/* press and hold */
.hold { display: grid; gap: 10px; }
.hold-pic { position: relative; aspect-ratio: 16 / 9; background: center / cover no-repeat #000; overflow: hidden; }
.bubbles i { position: absolute; bottom: -14px; border-radius: 50%; opacity: 0; }
.bubbles i { border: 1.5px solid rgba(255, 255, 255, .85); }
.hold.holding .bubbles i { animation: rise 2.4s linear infinite; }
@keyframes rise { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-210px) translateX(8px); } }
.hold-btn { position: relative; height: 54px; border: 2px solid var(--blue); border-radius: 27px; background: #fff; color: var(--blue); font-weight: 500; font-size: 15px; letter-spacing: .02em; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.hold-fill { position: absolute; inset: 0; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.hold-lab { position: relative; mix-blend-mode: difference; color: #e58c17; }
.hold.full .hold-btn { border-color: var(--green); }
.hold.full .hold-fill { background: var(--green); }
.hold-btn:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* trace */
.trace-cv { display: block; width: 100%; cursor: crosshair; }

/* drag and slide */
.pz { position: relative; user-select: none; -webkit-user-select: none; }
.pz-cv { display: block; width: 100%; }
.pz-piece { position: absolute; left: 0; top: 0; cursor: grab; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); will-change: transform; }
.pz.slide .pz-piece { cursor: default; pointer-events: none; }
.pz.dragging .pz-piece { cursor: grabbing; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.pz.miss .pz-piece { animation: nope .25s ease; }
.pz.fit .pz-piece { filter: none; transition: transform .2s ease; }
@keyframes nope { 25% { margin-left: -6px; } 75% { margin-left: 6px; } }
.pz-piece:focus-visible { outline: 2px solid var(--blue); }
.pz-track { position: relative; height: 44px; margin-top: 10px; border: 1px solid #dadce0; border-radius: 22px; background: #f1f3f4; }
.pz-hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #80868b; pointer-events: none; }
.pz-trail { position: absolute; left: 0; top: 0; bottom: 0; width: 22px; border-radius: 22px; background: rgba(26, 115, 232, .18); }
.pz-knob { all: unset; position: absolute; left: 0; top: -1px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); cursor: grab; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.pz-knob svg { width: 24px; height: 24px; fill: #fff; }
.pz-knob:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* the checkbox on the main switch */
.cbx { position: relative; display: grid; place-items: center; overflow: hidden; }
.cbx-pic { display: block; width: 100%; height: auto; }
.anchor.mini { position: absolute; left: 50%; top: 50%; width: 232px; height: 64px; margin: -32px 0 0 -116px; transition: transform .26s cubic-bezier(.3, .8, .3, 1); }
.anchor.mini .cb-label { font-size: 13px; }
.anchor.mini.done { opacity: 0; transition: opacity .4s ease .4s; }

/* help: every challenge by title */
.index { max-height: min(384px, calc(100svh - 260px)); overflow: auto; overscroll-behavior: contain; border: 1px solid #e3e3e3; }
.index ul { list-style: none; margin: 0; padding: 4px 0; }
.index .help { margin: 0; padding: 12px 12px 6px; font-size: 13px; line-height: 1.5; color: #444; }
.index ul:empty { display: none; }
.index .ix-h { padding: 10px 12px 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #777; }
.rq .index { border-color: #15181a; }
.rq .index .help { color: #6b7177; font-family: "Roboto Mono", ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.index li button { all: unset; position: relative; box-sizing: border-box; display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 32px 10px 12px; cursor: pointer; font-size: 14px; color: #000; }
.index li button:hover, .index li button:focus-visible { background: #f1f3f4; }
.index li button span { color: #777; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; text-align: right; }
.index li.about { border-top: 1px solid #eee; margin-top: 4px; padding-top: 4px; }
/* the check sits in a slot every row keeps free, so the client column never moves */
.index li.done button::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 12px; margin-top: -9px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- the back door: the same widget, after they find you. Mostly black. One accent, used sparingly. */
#backdrop { position: fixed; inset: 0; z-index: 4; width: 100%; height: 100%; display: block; }
body.robot-mode { background: var(--void); }
body.robot-mode #veil { background: rgba(0, 0, 0, .3); }
body.robot-mode #gate { opacity: 0; transition: opacity 1.2s ease; }

.ch-hq { margin: -7px -7px 7px; padding: 10px 12px 9px; min-height: 37px; background: var(--void); color: var(--dim); font: 400 11px/17px "Roboto Mono", ui-monospace, Menlo, monospace; letter-spacing: .04em; white-space: pre-wrap; }
.ch-hq::after { content: "▌"; color: var(--accent); margin-left: 1px; animation: blink 1.1s steps(1) infinite; }

.ch-card.rq { background: #050606; border-color: var(--wire); box-shadow: none; color: var(--ink); transition: filter .3s ease, border-color 2s ease; }
.rq .ch-head { background: #0a0b0c; color: var(--ink); font-family: "Roboto Mono", ui-monospace, Menlo, monospace; min-height: 0; padding: 18px 16px 18px; position: relative; overflow: hidden; }
.rq .ch-lead, .rq .ch-sub { font-size: 11px; line-height: 17px; letter-spacing: .08em; color: var(--dim); }
.rq .ch-noun { font-size: 21px; line-height: 28px; font-weight: 400; letter-spacing: .06em; }
.rq .tile, .rq .whole { background: #000; }
.rq .tile .tick { background: var(--accent); }
.rq .ch-msg, .human-check .ch-msg.ok { font: 400 12px/17px "Roboto Mono", ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.rq .ch-msg { color: #8d9399; }
.rq .ch-msg.err { color: #c9cdd1; }
.rq .ch-msg.ok { color: var(--ink); }
.rq .ch-msg.ok::before { content: ""; }
.rq .ch-foot { border-top-color: #121416; }
.rq .ic svg { fill: #4c5359; }
.rq .ic:hover svg { fill: #8d9399; }
.rq .verify { background: #0d0f10; border: 1px solid #2a2f34; color: var(--ink); font-family: "Roboto Mono", ui-monospace, Menlo, monospace; font-weight: 400; letter-spacing: .12em; }
.rq .verify:hover { border-color: #5a1712; background: #0d0f10; }
.rq .rot-b { background: #0d0f10; }
.rq .rot-b svg { fill: #6b7177; }
.rq .rot-disc { box-shadow: 0 0 0 4px #111315; }
.rq .hold-btn { border-color: #2a2f34; background: #0a0b0c; color: var(--ink); font-family: "Roboto Mono", ui-monospace, Menlo, monospace; font-weight: 400; letter-spacing: .14em; }
.rq .hold-fill { background: #3a0c09; }
.rq .hold.full .hold-btn { border-color: var(--accent); }
.rq .hold.full .hold-fill { background: #5a1712; }
.rq .hold-lab { mix-blend-mode: normal; color: var(--ink); }
.rq .pz-cv, .rq .pz-piece { filter: none; }
.rq .ch-mark { stroke: #2f3539; }
.hold-pic .bo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hold.seed .hold-pic::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .93); }
.seedpt { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; z-index: 2; background: #ff3b2f; box-shadow: 0 0 10px 2px rgba(255, 59, 47, .55); animation: seed 3.2s ease-in-out infinite; }
.hold.holding .seedpt { animation-duration: 1.1s; }
@keyframes seed { 50% { opacity: .25; } }

/* cut the power: each sector, then the next */
.grid.sectors .tick { display: none; }
.tile .lab { position: absolute; left: 6px; bottom: 6px; padding: 2px 5px; background: rgba(0, 0, 0, .72); color: var(--ink); font: 400 10px/14px "Roboto Mono", ui-monospace, Menlo, monospace; letter-spacing: .1em; pointer-events: none; }
.tile.dead .im { animation: die .7s steps(1) forwards; }
.tile.dead .lab { color: #3b4045; }
@keyframes die { 0% { filter: brightness(.15); } 14% { filter: brightness(1); } 28% { filter: brightness(.1); } 42% { filter: brightness(.8); } 57%, 100% { filter: brightness(.04); } }

/* the pauses between steps, and the moment the main switch goes */
.ch-card.hush .ch-head > *, .ch-card.hush .ch-body, .ch-card.hush .ch-msg, .ch-card.hush .ch-foot > * { opacity: 0; transition: opacity .8s ease; }
.ch-card.dead { filter: brightness(.04); transition: filter .25s ease; }

/* it gets worse as it goes: rarely, briefly */
.rq[data-level="2"] .ch-head, .rq[data-level="3"] .ch-head { animation: jitter 9s steps(1) infinite; }
.rq[data-level="3"] .ch-head::after, .rq[data-level="4"] .ch-head::after, .rq[data-level="5"] .ch-head::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.rq[data-level="3"] .ch-mark, .rq[data-level="4"] .ch-mark, .rq[data-level="5"] .ch-mark { animation: markglitch 6s steps(1) infinite; }
.rq[data-level="4"], .rq[data-level="5"] { border-color: #2a0b09; }
.rq[data-level="4"] .ch-head { animation: jitter 5s steps(1) infinite; }
.rq[data-level="4"] .ch-mark .mk-tick, .rq[data-level="5"] .ch-mark .mk-tick { stroke: var(--accent); }
.rq[data-level="5"] .ch-head { background: #050505; }
@keyframes jitter { 0%, 96%, 100% { transform: none; filter: none; } 96.5% { transform: translateX(2px); filter: contrast(1.6); } 97.5% { transform: translateX(-3px) skewX(-4deg); } 98.5% { transform: translateX(1px); } }
@keyframes markglitch { 0%, 90%, 100% { transform: none; opacity: 1; } 91% { transform: translate(2px, -1px) scaleX(1.2); opacity: .3; } 93% { transform: translate(-2px, 1px); opacity: 1; } 95% { opacity: 0; } }

/* the way back out, under the widget, while it runs */
.ch-card { position: relative; }
.leave { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 12px; padding: 6px 10px; border: 0; background: none; color: #4c5359; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; cursor: pointer; }
.leave:hover { color: #9aa0a6; }
.leave:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#bSound .snd-off, #bSound.off .snd-on { display: none; }
#bSound.off .snd-off { display: inline; }

#robot { position: fixed; inset: 0; z-index: 7; display: grid; place-items: center; padding: 24px; background: var(--void); color: var(--ink); opacity: 0; transition: opacity 1.2s ease; }
#robot.in { opacity: 1; }
#robot.fadeout { opacity: 0; transition: opacity 1.5s ease; }
.robot-in { width: min(560px, 100%); display: grid; gap: 34px; }
.robot-line { margin: 0; min-height: 3.2em; font: 400 clamp(19px, 4.6vw, 28px)/1.45 "Roboto Mono", ui-monospace, Menlo, monospace; color: var(--ink); letter-spacing: .01em; }
.robot-line span:last-child::after { content: "▌"; color: var(--accent); animation: blink 1.1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.robot-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.r-btn { height: 44px; padding: 0 20px; border: 1px solid #2a2f34; border-radius: 2px; background: transparent; color: var(--ink); font: 400 13px "Roboto Mono", ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.r-btn.ghost { color: var(--dim); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; letter-spacing: .04em; text-transform: none; }
.r-btn:hover { border-color: #5a1712; }
.r-btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ---------- the page behind it */
#page { position: fixed; inset: 0; z-index: 8; background: #fff; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; opacity: 0; transition: opacity .35s ease; }
#page.in { opacity: 1; }
.page-in { max-width: 880px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left)); }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 34px; }
.anchor.small { flex: none; }
.close { all: unset; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.close svg { width: 24px; height: 24px; fill: #555; }
.close:hover { background: #f1f3f4; }
.close:focus-visible { outline: 2px solid var(--blue); }
#pTitle { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 400; color: #202124; letter-spacing: -.01em; }
.p-client { margin: 6px 0 22px; font-size: 12px; letter-spacing: .08em; color: #5f6368; }
#page.about .p-client { letter-spacing: 0; font-size: 15px; }
#pWork { --ab-fg: #202124; --ab-muted: #5f6368; --ab-accent: var(--blue); font-size: 15px; line-height: 1.55; }
#pWork .ab-media { --ab-chrome: 120px; }
#pWork .ab-heading { font-size: 18px; font-weight: 500; margin-top: 18px; }
#pWork .ab-lede { font-size: 17px; color: #3c4043; }
.about-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; }
.about-list a { color: var(--blue); }

@media (min-width: 700px) and (min-height: 760px) { :root { --card: 460px; } }
@media (max-width: 420px) {
  .ch-head { padding: 18px 14px; min-height: 88px; }
  .ch-noun { font-size: 22px; line-height: 28px; }
  #pTitle { font-size: 28px; }
  .page-top { margin-bottom: 26px; }
  .anchor.small { width: 280px; }
  .anchor.mini { transform-origin: 50% 50%; }
}
@media (max-height: 700px) {
  .ch-head { padding: 14px 14px; min-height: 0; }
  .ch-head.quote .ch-noun { font-size: 15px; line-height: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
  .cb-spin.on, .cb.busy .cb-spin { animation: spin 1.6s linear infinite !important; }
}
