/* Trembling Hand: the house style (Design v2, ink hands).
   Tokens from the canvas; logical properties throughout (RTL costs nothing
   later); the room is a 390x844 stage that scales with the viewport. */

@font-face { font-family: "Gabarito"; font-weight: 700; font-display: swap; src: url(/static/fonts/gabarito-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gabarito"; font-weight: 800; font-display: swap; src: url(/static/fonts/gabarito-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gabarito"; font-weight: 900; font-display: swap; src: url(/static/fonts/gabarito-latin-900-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gabarito"; font-weight: 900; font-display: swap; src: url(/static/fonts/gabarito-latin-ext-900-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(/static/fonts/golos-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(/static/fonts/golos-text-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(/static/fonts/golos-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap; src: url(/static/fonts/golos-text-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap; src: url(/static/fonts/golos-text-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0F0D2A;
  --ink: #15132B;
  --day: #F6F7FB;
  --lamp: #FFB454;
  --ice: #8FE3FF;
  --pot: #8A7BD8;
  --muted: #A9A5C8;
  --dim: #6E6A8F;
  --line: rgba(169, 165, 200, 0.25);
  --display: "Gabarito", system-ui, sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); -webkit-font-smoothing: antialiased; min-block-size: 100dvh; }
body.night { background: var(--night); color: var(--day); }
body.day { background: var(--day); color: var(--ink); }
a { color: var(--lamp); }
img { display: block; max-inline-size: 100%; }
button, input { font: inherit; }
h1, h2, p { margin: 0; }
.d { font-family: var(--display); font-weight: 900; letter-spacing: -0.015em; }
.cap { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- motion ----------------------------------------------------------------- */
@keyframes tremble { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 20% { transform: translate(1.2px, -0.8px) rotate(-0.35deg); } 40% { transform: translate(-1px, 0.9px) rotate(0.3deg); } 60% { transform: translate(0.9px, 0.6px) rotate(-0.2deg); } 80% { transform: translate(-0.8px, -0.7px) rotate(0.25deg); } }
@keyframes tremble2 { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-0.9px, 0.7px); } 50% { transform: translate(0.8px, -0.6px); } 75% { transform: translate(-0.5px, -0.8px); } }
@keyframes shiver { 0%, 100% { text-shadow: 3px -2px 0 var(--lamp); } 25% { text-shadow: -2px 3px 0 var(--lamp); } 50% { text-shadow: -3px -2px 0 var(--lamp); } 75% { text-shadow: 2px 3px 0 var(--lamp); } }
@keyframes settle { from { transform: translateY(2%) scale(0.98); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes slap { 0% { opacity: 0; transform: rotate(-3deg) scale(1.7); } 70% { opacity: 1; transform: rotate(-3deg) scale(0.94); } 100% { opacity: 1; transform: rotate(-3deg) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* --- wordmark ------------------------------------------------------------------ */
.wordmark { display: inline-flex; align-items: center; gap: 6px; }
.wordmark .mark { inline-size: 20px; block-size: auto; transform: rotate(-14deg); }
.wm { font-family: var(--display); font-weight: 900; font-size: 16px; line-height: 1; letter-spacing: -0.02em; color: var(--day); text-shadow: 1.5px -1px 0 var(--lamp); }
.wm.shiver { animation: shiver 0.55s steps(1) infinite; }
.wordmark.big .mark { inline-size: 26px; }
.wordmark.big .wm { font-size: 22px; }

/* --- buttons, pills, cards ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; block-size: 54px; padding-inline: 22px; border-radius: 14px; border: 2px solid var(--ink); font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: -0.01em; cursor: pointer; text-decoration: none; transition: transform 120ms, box-shadow 120ms, opacity 160ms; }
.btn.primary { background: var(--lamp); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.night .btn.primary { box-shadow: 4px 4px 0 var(--day); }
.btn.secondary { background: rgba(15, 13, 42, 0.6); color: var(--ice); border-color: var(--ice); backdrop-filter: blur(6px); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { cursor: default; }
.moves .btn:disabled:not(.chosen) { opacity: 0.5; }
.moves .btn:disabled.chosen { outline: none; }
.btn.wide { inline-size: 100%; }
.btn-mark { inline-size: 18px; block-size: auto; }
.pill { display: inline-flex; align-items: center; block-size: 34px; padding-inline: 14px; border: 2px solid var(--day); border-radius: 999px; background: transparent; color: var(--day); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.pill.small { block-size: 28px; padding-inline: 11px; border-width: 1.5px; font-size: 10px; }
.pill.quiet { border-color: var(--line); color: var(--muted); }
.card { color-scheme: light; background: var(--day); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--lamp); }

/* --- the stage (room, reveal) ---------------------------------------------------- */
.stage-wrap { min-block-size: 100dvh; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, #241E3E 0%, var(--night) 62%); }
.stage-wrap.day { background: var(--day); }
.island { display: contents; }
.stage { position: relative; inline-size: min(100vw, calc(100dvh * 390 / 844)); aspect-ratio: 390 / 844; overflow: hidden; container-type: inline-size; --u: calc(100cqw / 390); font-size: calc(14 * var(--u)); }
.stage.night { background: var(--night); color: var(--day); }
.stage .layer, .stage .hand { position: absolute; }
.stage .layer { inline-size: auto; }
.stage .hand img { inline-size: 100%; block-size: 100%; position: relative; }
.stage .sleeve { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.tremble-a { animation: tremble 0.32s infinite; transform-origin: 50% 100%; }
.tremble-b { animation: tremble2 0.37s 0.12s infinite; }
.hand.still { animation: settle 280ms ease-out both; }

.topbar { position: absolute; inset-inline: calc(20 * var(--u)); inset-block-start: calc(40 * var(--u)); display: flex; justify-content: space-between; align-items: center; }
.topbar .cap { font-size: calc(11 * var(--u)); color: var(--day); background: rgba(15, 13, 42, 0.72); border-radius: 999px; padding: calc(4 * var(--u)) calc(9 * var(--u)); backdrop-filter: blur(6px); }
.stage .wordmark .mark { inline-size: calc(20 * var(--u)); }
.stage .wm { font-size: calc(16 * var(--u)); }

.card.sheet { position: absolute; inset-inline: calc(20 * var(--u)); inset-block-start: calc(84 * var(--u)); padding: calc(13 * var(--u)) calc(15 * var(--u)); display: flex; flex-direction: column; gap: calc(6 * var(--u)); box-shadow: calc(5 * var(--u)) calc(5 * var(--u)) 0 var(--lamp); border-radius: calc(18 * var(--u)); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sheet h1 { font-size: calc(22 * var(--u)); line-height: 1; }
.sheet .meta { font-size: calc(10 * var(--u)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.sheet p { font-size: calc(14 * var(--u)); line-height: 1.4; color: #2E2B4A; }
.chips { display: flex; gap: calc(6 * var(--u)); margin-block-start: calc(3 * var(--u)); }
.chip { flex: 1; border-radius: calc(9 * var(--u)); padding: calc(6 * var(--u)) calc(8 * var(--u)); font-size: calc(10.5 * var(--u)); line-height: 1.3; }
.chip b { display: block; font-size: calc(14 * var(--u)); color: var(--ink); }
.chip.warm { background: #FFF1DC; color: #5C4A20; }
.chip.plain { background: #EEF0F6; color: #4A4766; }
.chip.cold { background: #E3F7FF; color: #1F5A6E; }

.tag { position: absolute; display: flex; flex-direction: column; gap: 1px; padding: calc(6 * var(--u)) calc(9 * var(--u)) calc(5 * var(--u)); border-radius: calc(10 * var(--u)); background: rgba(21, 19, 43, 0.78); border: 1px solid color-mix(in srgb, var(--sleeve, #A9A5C8) 60%, transparent); backdrop-filter: blur(6px); white-space: nowrap; }
.tag b { font-size: calc(12 * var(--u)); font-weight: 700; color: var(--day); line-height: 1.1; display: flex; align-items: center; gap: 5px; }
.tag span { font-size: calc(10 * var(--u)); font-weight: 500; color: var(--muted); line-height: 1.1; }
.tag .dot { display: inline-block; inline-size: calc(8 * var(--u)); block-size: calc(8 * var(--u)); border-radius: 50%; background: var(--sleeve); border: 1px solid var(--night); }
.tag.bot b, .tag.bot span { color: var(--ice); }
.tag.you-tag { background: rgba(255, 180, 84, 0.16); }
.tag.you-tag b, .tag.you-tag span { color: var(--lamp); }

.moves { position: absolute; inset-inline: calc(20 * var(--u)); inset-block-start: calc(742 * var(--u)); display: flex; gap: calc(10 * var(--u)); margin: 0; }
.moves .btn { block-size: calc(58 * var(--u)); border-radius: calc(16 * var(--u)); font-size: calc(19 * var(--u)); padding-inline: calc(10 * var(--u)); }
.moves .secondary { flex: 1; }
.moves .primary { flex: 1.25; box-shadow: calc(4 * var(--u)) calc(4 * var(--u)) 0 var(--ink); }
.moves .btn-mark { inline-size: calc(18 * var(--u)); }
.moves .chosen.primary { outline: calc(3 * var(--u)) solid var(--day); outline-offset: calc(2 * var(--u)); }
.moves .chosen.secondary { background: var(--ice); color: var(--ink); border-color: var(--ink); }
.moves .unchosen { opacity: 0.55; }
.caption { position: absolute; inset-inline: 0; inset-block-start: calc(810 * var(--u)); display: flex; justify-content: center; }
.caption span { font-size: calc(10 * var(--u)); color: var(--day); background: rgba(15, 13, 42, 0.78); border-radius: 999px; padding: calc(4 * var(--u)) calc(10 * var(--u)); backdrop-filter: blur(6px); }

.side-links { position: fixed; inset-inline-end: 16px; inset-block-end: 16px; display: flex; gap: 8px; align-items: center; }
.side-links form { margin: 0; }
/* The play clock, local development only. */
.dev-clock { position: fixed; inset-inline-start: 16px; inset-block-end: 16px; z-index: 50; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border: 1.5px dashed var(--lamp); border-radius: 14px; background: rgba(15, 13, 42, 0.88); backdrop-filter: blur(6px); }
.dev-clock form { margin: 0; }
.dev-clock .cap { color: var(--lamp); font-size: 10px; }
.dev-clock .pill { border-color: var(--lamp); color: var(--lamp); }
@media (max-width: 700px) { .dev-clock { position: static; margin: 0 16px 16px; justify-content: center; } }
@media (max-width: 700px) { .side-links { position: static; justify-content: center; padding: 14px 16px 22px; inline-size: 100%; } .stage-wrap { align-content: start; } }

.wait-card { position: absolute; inset-inline: calc(20 * var(--u)); inset-block-start: calc(96 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)); display: flex; flex-direction: column; gap: calc(6 * var(--u)); }
.wait-card h1 { font-size: calc(26 * var(--u)); line-height: 1.05; }
.wait-card p { font-size: calc(14 * var(--u)); color: #2E2B4A; }

/* --- the reveal: four seconds, skippable ------------------------------------------- */
.stage.reveal { background: var(--day); color: var(--ink); cursor: pointer; }
.reveal .night-only { animation: fade-out 600ms ease 400ms both; }
.reveal .daylight { animation: fade-in 600ms ease 400ms both; }
.reveal .hand.daylight.settle { animation: fade-in 260ms ease 950ms both, settle 300ms ease-out 950ms both; }
.reveal-head { position: absolute; inset-inline: calc(20 * var(--u)); inset-block-start: calc(40 * var(--u)); display: flex; flex-direction: column; gap: calc(2 * var(--u)); }
.reveal-head .eyebrow { display: flex; }
.reveal-head .cap { color: var(--ink); font-size: calc(11 * var(--u)); background: rgba(246, 247, 251, 0.85); border-radius: 999px; padding: calc(3 * var(--u)) calc(8 * var(--u)) calc(3 * var(--u)) 0; }
.reveal .lights { font-size: calc(52 * var(--u)); line-height: 0.95; text-shadow: calc(3 * var(--u)) calc(3 * var(--u)) 0 var(--lamp); animation: rise 360ms ease-out 900ms both; }
.stamp { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: calc(5 * var(--u)) calc(9 * var(--u)) calc(4 * var(--u)); border: 2px solid var(--ink); border-radius: calc(9 * var(--u)); font-family: var(--display); font-weight: 900; font-size: calc(13 * var(--u)); letter-spacing: 0.02em; white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg); animation: slap 260ms cubic-bezier(.2, .9, .3, 1.3) calc(1400ms + var(--i, 0) * 120ms) both; }
.stamp small { font-family: var(--text); font-weight: 600; font-size: calc(10 * var(--u)); letter-spacing: 0.04em; opacity: 0.75; }
.stamp.warm { background: var(--lamp); color: var(--ink); }
.stamp.cold { background: #E3F7FF; color: var(--ink); }
.stamp.you { background: var(--ink); color: var(--lamp); box-shadow: 3px 3px 0 var(--lamp); }
.stamp.you small { opacity: 1; }
.card.result { position: absolute; inset-inline: calc(14 * var(--u)); inset-block-start: calc(696 * var(--u)); padding: calc(12 * var(--u)) calc(16 * var(--u)); display: flex; flex-direction: column; gap: calc(8 * var(--u)); background: #FFFFFF; box-shadow: calc(5 * var(--u)) calc(5 * var(--u)) 0 var(--ink); border-radius: calc(18 * var(--u)); animation: rise 420ms ease-out 1800ms both; }
.result h2 { font-size: calc(28 * var(--u)); line-height: 1; }
.result .points { display: inline-block; color: #E8921F; animation: pop 420ms ease-out 2250ms both; }
.result p { font-size: calc(13 * var(--u)); line-height: 1.35; color: #3A3659; }
.result .actions { display: flex; gap: calc(8 * var(--u)); }
.result .btn { flex: 1; block-size: calc(40 * var(--u)); font-size: calc(16 * var(--u)); border-radius: calc(12 * var(--u)); box-shadow: 3px 3px 0 var(--ink); }
.skip-hint { position: absolute; inset-inline-end: calc(20 * var(--u)); inset-block-start: calc(40 * var(--u)); color: var(--dim); font-size: calc(10 * var(--u)); animation: fade-out 400ms ease 2400ms both; }
.reveal.skip *, .reveal.skip { animation-delay: 0s !important; animation-duration: 1ms !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal *, .reveal { animation-delay: 0s !important; animation-duration: 1ms !important; }
  .tremble-a { animation-name: tremble2; animation-duration: 0.9s; }
  .tremble-b { animation-duration: 1.1s; }
  .wm.shiver { animation: none; }
}

/* --- landing ---------------------------------------------------------------------- */
.landing { position: relative; min-block-size: 100dvh; overflow: hidden; background: var(--night); }
.land-stage { position: absolute; inset-block: 0; inset-inline-start: 19%; aspect-ratio: 2400 / 1520; block-size: 100%; min-block-size: 640px; }
.land-stage .layer { position: absolute; }
.t1 { animation: tremble 0.32s infinite; } .t2 { animation: tremble2 0.41s infinite; } .t3 { animation: tremble2 0.37s 0.1s infinite; } .t4 { animation: tremble 0.45s 0.2s infinite; }
.land-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 13, 42, 0.96) 0%, rgba(15, 13, 42, 0.85) 30%, rgba(15, 13, 42, 0) 56%); pointer-events: none; }
.land-nav { position: absolute; inset-inline: clamp(16px, 4.6vw, 56px); inset-block-start: 30px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.land-hero { position: relative; z-index: 2; padding-inline: clamp(16px, 4.6vw, 56px); padding-block: max(170px, 24vh) 120px; max-inline-size: 700px; display: flex; flex-direction: column; gap: 20px; }
.land-hero h1 { display: flex; flex-direction: column; gap: 6px; line-height: 0.92; }
.land-hero .l1 { font-size: clamp(31px, 4.6vw, 56px); text-shadow: 3px 3px 0 var(--lamp); }
.land-hero .l2 { font-size: clamp(48px, 6vw, 74px); color: var(--lamp); text-shadow: 4px 4px 0 var(--day); }
.land-hero .lede { font-size: 17px; line-height: 1.45; max-inline-size: 440px; color: #E3E5EE; }
.email-form { display: flex; flex-wrap: wrap; gap: 10px; max-inline-size: 460px; }
.email-form input { flex: 1 1 220px; block-size: 54px; border: 2px solid var(--day); border-radius: 12px; padding-inline: 16px; font-size: 16px; color: var(--day); background: var(--night); }
.email-form input::placeholder { color: var(--dim); }
.email-form .btn { font-size: 22px; }
.form-error { flex-basis: 100%; color: var(--lamp); font-weight: 600; font-size: 14px; }
.land-foot { position: absolute; inset-inline: clamp(16px, 4.6vw, 56px); inset-block-end: 26px; display: flex; justify-content: space-between; gap: 16px; z-index: 2; }
/* Between the phone layout and the wide one the art sits behind the text,
   centred and dimmed, instead of being pushed off the right edge. */
@media (min-width: 761px) and (max-width: 1279px) {
  .land-stage { inset-inline-start: 50%; transform: translateX(-50%); }
  .land-shade { background: radial-gradient(ellipse at 30% 45%, rgba(15, 13, 42, 0.9) 0%, rgba(15, 13, 42, 0.72) 45%, rgba(15, 13, 42, 0.55) 100%); }
}
@media (max-width: 760px) {
  .land-stage { position: relative; inset: auto; inline-size: 190%; block-size: auto; min-block-size: 0; margin-inline-start: -58%; margin-block-start: 0; }
  .land-shade { background: linear-gradient(180deg, rgba(15, 13, 42, 0) 34%, rgba(15, 13, 42, 0.92) 47%, var(--night) 55%); }
  .email-form .btn { flex: 1 1 100%; }
  .land-hero { padding-block: 0 96px; margin-block-start: -18vw; }
  .land-foot { flex-direction: column; inset-block-end: 20px; }
}

/* --- solo card pages (sign-in, welcome, errors) --------------------------------------- */
.solo { min-block-size: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 16px; background: radial-gradient(ellipse at 50% 0%, #241E3E 0%, var(--night) 60%); }
.solo-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.solo-brand .mark { inline-size: 24px; transform: rotate(-14deg); }
.solo-brand .wm { font-size: 20px; }
.solo-card { inline-size: min(100%, 440px); padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.solo-card h1 { font-size: 30px; line-height: 1.05; }
.solo-card p { font-size: 15px; line-height: 1.45; color: #2E2B4A; }
.solo-card .cap { color: var(--dim); }
.solo-card input:not([type=checkbox]):not([type=radio]) { inline-size: 100%; block-size: 50px; border: 2px solid var(--ink); border-radius: 12px; padding-inline: 14px; font-size: 17px; color: var(--ink); background: #FFFFFF; }
.solo-card .email-form input { color: var(--ink); background: #FFFFFF; border-color: var(--ink); }
.solo-card .btn.primary { box-shadow: 4px 4px 0 var(--ink); }
.solo-card .form-error { color: #B4471F; }
.solo-card .quiet { color: var(--dim); font-size: 14px; }
.code-form { display: flex; flex-direction: column; gap: 10px; }
.code-form input { font-family: var(--display); font-weight: 900; font-size: 28px !important; letter-spacing: 0.3em; text-align: center; }
.dev { margin-block-start: 6px; }
.dev-link a { color: #6B4CC9; word-break: break-all; font-size: 12px; }
.welcome { display: flex; flex-direction: column; gap: 10px; }
.handle-field { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 12px; background: #FFFFFF; padding-inline-start: 12px; }
.handle-field .at { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--dim); }
.handle-field input { border: 0 !important; background: transparent !important; padding-inline-start: 4px !important; outline: none; }
.handle-field:focus-within { outline: 3px solid var(--lamp); outline-offset: 2px; }
.hint { color: var(--dim); font-size: 12px; margin-block-start: -4px; }
.inks { border: 0; padding: 0; margin: 6px 0 2px; display: flex; flex-direction: column; gap: 12px; }
.inks legend { margin-block-end: 12px; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 9px; padding: 4px; }
.swatch { position: relative; cursor: pointer; aspect-ratio: 1; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.swatch .dot { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; background: var(--sleeve); border: 2px solid var(--ink); }
.swatch input:checked + .dot { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: inset 0 0 0 3px #FFFFFF; }
.swatch input:focus-visible + .dot { outline: 3px solid var(--lamp); outline-offset: 3px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; color: #2E2B4A; cursor: pointer; }
.consent input { inline-size: 18px; block-size: 18px; margin-block-start: 1px; accent-color: var(--ink); flex: none; }

/* --- the house ------------------------------------------------------------------------ */
.house { min-block-size: 100dvh; font-size: 13px; }
.house-nav { display: flex; gap: 18px; align-items: center; padding: 14px 20px; border-block-end: 1px solid var(--line); position: sticky; top: 0; background: var(--night); z-index: 3; flex-wrap: wrap; }
.house-nav b { font-size: 18px; color: var(--lamp); }
.house-nav a { color: var(--day); text-decoration: none; font-weight: 600; }
.house-nav .cap { margin-inline-start: auto; }
.house main { padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 12px; }
.house h1 { font-size: 28px; }
.house h2 { font-size: 14px; font-weight: 700; margin-block-start: 12px; color: var(--muted); }
.grid { border-collapse: collapse; inline-size: 100%; }
.grid th, .grid td { text-align: start; padding: 6px 8px; border-block-end: 1px solid var(--line); vertical-align: top; }
.grid th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.grid a { color: var(--ice); }
.grid .payload { max-inline-size: 520px; }
.grid pre { white-space: pre-wrap; word-break: break-all; font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.status.done { color: #8DBF6A; } .status.failed { color: #E58E6A; } .status.running { color: var(--lamp); }
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; min-inline-size: 110px; }
.stat b { font-size: 28px; }
.bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; block-size: 90px; }
.bar { display: block; background: var(--pot); border-radius: 3px 3px 0 0; block-size: calc(3px + var(--n) * 6px); max-block-size: 90px; font-size: 9px; color: var(--night); text-align: center; }
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.filters label { display: flex; flex-direction: column; gap: 4px; min-inline-size: 0; }
.filters input { box-sizing: border-box; inline-size: 100%; block-size: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: var(--day); padding-inline: 10px; }
.filters .pill { block-size: 34px; justify-content: center; }
.kinds summary { cursor: pointer; color: var(--muted); font-size: 12px; inline-size: fit-content; }
.kinds summary:hover { color: var(--day); }
.kind-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; margin-block-start: 8px; }
.kind-list a { display: flex; justify-content: space-between; gap: 12px; padding: 5px 2px; border-block-end: 1px solid var(--line); color: var(--day); font-size: 12px; text-decoration: none; }
.kind-list a .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.kind-list a:hover, .kind-list a.on { color: var(--lamp); }
.kind-list a.on .n { color: var(--lamp); }
.grid-frame { overflow-x: auto; max-inline-size: 100%; }
.house main { min-inline-size: 0; }
@media (max-width: 760px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.flash { color: var(--lamp); font-weight: 600; }
