@font-face {
  font-family: "Pixelify Sans";
  src: url("/fonts/PixelifySans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* pixel borders: 9-slice SVGs on a 1-unit grid (stepped corners, card drop shadow) */
  --bi-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' shape-rendering='crispEdges'%3E%3Cpath fill='%232a2433' fill-opacity='.14' d='M12 2h1v8h-1zM11 10h1v2h-1zM10 11h1v2h-1zM3 12h7v1h-7z'/%3E%3Cpath fill='%232a2433' d='M2 0h8v1h-8zM1 1h1v1h-1zM10 1h1v1h-1zM0 2h1v8h-1zM11 2h1v8h-1zM1 10h1v1h-1zM10 10h1v1h-1zM2 11h8v1h-8z'/%3E%3Cpath fill='%23fffdf8' d='M2 1h8v10h-8zM1 2h1v8h-1zM10 2h1v8h-1z'/%3E%3C/svg%3E");
  --bi-card-lilac: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' shape-rendering='crispEdges'%3E%3Cpath fill='%232a2433' fill-opacity='.14' d='M12 2h1v8h-1zM11 10h1v2h-1zM10 11h1v2h-1zM3 12h7v1h-7z'/%3E%3Cpath fill='%232a2433' d='M2 0h8v1h-8zM1 1h1v1h-1zM10 1h1v1h-1zM0 2h1v8h-1zM11 2h1v8h-1zM1 10h1v1h-1zM10 10h1v1h-1zM2 11h8v1h-8z'/%3E%3Cpath fill='%23f1eafc' d='M2 1h8v10h-8zM1 2h1v8h-1zM10 2h1v8h-1z'/%3E%3C/svg%3E");
  --bi-card-mint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' shape-rendering='crispEdges'%3E%3Cpath fill='%232a2433' fill-opacity='.14' d='M12 2h1v8h-1zM11 10h1v2h-1zM10 11h1v2h-1zM3 12h7v1h-7z'/%3E%3Cpath fill='%232a2433' d='M2 0h8v1h-8zM1 1h1v1h-1zM10 1h1v1h-1zM0 2h1v8h-1zM11 2h1v8h-1zM1 10h1v1h-1zM10 10h1v1h-1zM2 11h8v1h-8z'/%3E%3Cpath fill='%23e6f5eb' d='M2 1h8v10h-8zM1 2h1v8h-1zM10 2h1v8h-1z'/%3E%3C/svg%3E");
  --bi-pill-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%232a2433' d='M3 0h8v1h-8zM1 1h2v1h-2zM11 1h2v1h-2zM1 2h1v1h-1zM12 2h1v1h-1zM0 3h1v8h-1zM13 3h1v8h-1zM1 11h1v2h-1zM12 11h1v2h-1zM2 12h1v1h-1zM11 12h1v1h-1zM3 13h8v1h-8z'/%3E%3Cpath fill='%232a2433' d='M3 1h8v12h-8zM2 2h1v10h-1zM11 2h1v10h-1zM1 3h1v8h-1zM12 3h1v8h-1z'/%3E%3C/svg%3E");
  --bi-pill-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%232a2433' d='M3 0h8v1h-8zM1 1h2v1h-2zM11 1h2v1h-2zM1 2h1v1h-1zM12 2h1v1h-1zM0 3h1v8h-1zM13 3h1v8h-1zM1 11h1v2h-1zM12 11h1v2h-1zM2 12h1v1h-1zM11 12h1v1h-1zM3 13h8v1h-8z'/%3E%3Cpath fill='%23fffdf8' d='M3 1h8v12h-8zM2 2h1v10h-1zM11 2h1v10h-1zM1 3h1v8h-1zM12 3h1v8h-1z'/%3E%3C/svg%3E");
  --bi-pill-blush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%232a2433' d='M3 0h8v1h-8zM1 1h2v1h-2zM11 1h2v1h-2zM1 2h1v1h-1zM12 2h1v1h-1zM0 3h1v8h-1zM13 3h1v8h-1zM1 11h1v2h-1zM12 11h1v2h-1zM2 12h1v1h-1zM11 12h1v1h-1zM3 13h8v1h-8z'/%3E%3Cpath fill='%23fbd9e3' d='M3 1h8v12h-8zM2 2h1v10h-1zM11 2h1v10h-1zM1 3h1v8h-1zM12 3h1v8h-1z'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' shape-rendering='crispEdges'%3E%3Cpath fill='%232a2433' d='M0 0h7v1h-7zM1 1h5v1h-5zM2 2h3v1h-3zM3 3h1v1h-1z'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23fffdf8' d='M6 0h1v2h-1zM5 1h1v2h-1zM0 2h1v2h-1zM4 2h1v2h-1zM1 3h1v2h-1zM3 3h1v2h-1zM2 4h1v2h-1z'/%3E%3C/svg%3E");
  --cream: #f7f1e3;
  --paper: #fffdf8;
  --ink: #2a2433;
  --ink-2: #5d5470;
  --blue: #5b74d6;
  --green: #2f8a5c;
  --purple: #8b5cc8;
  --pink: #f28aa8;
  --peri: #93a6ee;
  --peri-2: #c3cef6;
  --mint: #c4e6d0;
  --lilac: #e3d6f8;
  --blush: #fbd9e3;
  --butter: #f6e3a1;
  --sand: #d9cfbb;
  --bad: #b3364f;
  --pixel: "Pixelify Sans", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --notch: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
  --notch-2: 0 -2px 0 0 var(--ink), 0 2px 0 0 var(--ink), -2px 0 0 0 var(--ink), 2px 0 0 0 var(--ink);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; font: 400 17px/1.5 var(--sans); overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px dashed var(--blue); outline-offset: 4px; }
h1:focus, h2:focus, h3:focus { outline: none; }

.pf { font-family: var(--pixel); font-weight: 700; letter-spacing: .01em; }
.pf.sys { font-family: var(--sans); font-weight: 800; letter-spacing: 0; }
/* digits inside pixel text: Pixelify's 5 reads as an S */
.pf .dg { font-family: var(--sans); font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ico { display: inline-block; flex: none; width: 18px; line-height: 0; }
.ico svg { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- the sky of listeners */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mote {
  /* narrow screens: only in the 20px side gutters, never behind the text column */
  position: absolute; left: calc(var(--side, 0) * (100% - 20px) + 3px + var(--f, .5) * 4px); max-width: 10px;
  display: block; opacity: .6;
  animation: mote var(--d, 8s) steps(5, jump-none) var(--delay, 0s) infinite alternate;
}
.mote:nth-child(n+15) { display: none; }
@media (min-width: 760px) {
  /* wide screens: only in the margins beside the 600px column, a little bigger */
  .mote { left: calc(var(--side) * (50% + 320px) + var(--f) * (50% - 340px)); max-width: none; opacity: .9; scale: 1.5; }
  .mote:nth-child(n+15) { display: block; }
}
.mote svg { display: block; width: 100%; height: auto; }
@keyframes mote { from { transform: translate(0, 0); } to { transform: translate(var(--dx, 0px), -18px); } }

/* ---------------------------------------------------------------- frame */
.top {
  position: relative; z-index: 2; max-width: 600px; margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 20px 0; display: flex; align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--pixel); }
.brand-mark, .brand-mark svg { display: block; width: 28px; height: 38px; }
.app {
  position: relative; z-index: 1; max-width: 600px; margin: 0 auto; min-height: calc(100vh - 60px);
  padding: 4px max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  outline: none;
}

/* ---------------------------------------------------------------- pixel surfaces */
.card {
  position: relative; margin: 22px 0; padding: 14px 16px;
  border-style: solid; border-color: transparent; border-width: 9px 12px 12px 9px;
  border-image: var(--bi-card) 3 4 4 3 fill / 9px 12px 12px 9px / 0 stretch;
}
.card.match { border-image-source: var(--bi-card-mint); }
.card.incoming { border-image-source: var(--bi-card-lilac); }

.btn {
  -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 2px 14px; margin: 0;
  border-style: solid; border-color: transparent; border-width: 12px;
  border-image: var(--bi-pill-paper) 4 fill / 12px / 0 stretch;
  background: transparent; color: var(--ink); font: 650 17px/1.25 var(--sans); text-align: center; text-decoration: none;
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .1s steps(2);
}
.btn.primary { border-image-source: var(--bi-pill-ink); color: var(--paper); }
.btn.danger { border-image-source: var(--bi-pill-blush); }
.btn.big { width: 100%; min-height: 64px; font-size: 19px; }
.btn.small { min-height: 44px; border-width: 8px; border-image-width: 8px; padding: 0 10px; font-size: 15px; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* ---------------------------------------------------------------- the twins */
.twins-wrap { display: flex; justify-content: center; }
.twins-wrap svg { display: block; width: 290px; height: auto; aspect-ratio: 58 / 48; overflow: visible; }
.twins-wrap.small svg { width: 174px; }
@media (min-width: 720px) {
  .hero-twins svg { width: 348px; }
  .twins-wrap.small svg { width: 232px; }
}
.twins .pair { animation: bob 1.4s steps(1) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1px); } }
.twins .lids { opacity: 0; animation: blink 4.8s steps(1) infinite; }
.twins .tb .lids { animation-duration: 5.7s; animation-delay: -2.2s; }
@keyframes blink { 0%, 95% { opacity: 0; } 96%, 99% { opacity: 1; } 100% { opacity: 0; } }
.twins .float { animation: drift 2.8s steps(2) infinite; }
.twins .n2 { animation-duration: 3.4s; animation-delay: -.9s; }
.twins .n3 { animation-duration: 3.1s; animation-delay: -1.8s; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.twins .float.s1, .twins .float.s2 { animation: twinkle 2.2s steps(1) infinite; }
.twins .float.s2 { animation-delay: -1.1s; }
@keyframes twinkle { 0%, 60%, 100% { opacity: 1; } 70%, 90% { opacity: .2; } }
.twins .love { opacity: 0; }
.twins.hop .pair { animation: hop .36s steps(1) 4, bob 1.4s steps(1) 1.44s infinite; }
.twins.party .pair { animation: hop .3s steps(1) 10, bob 1.4s steps(1) 3s infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.twins.hop .love, .twins.party .love { opacity: 1; animation: beat 1s steps(1) infinite; }
@keyframes beat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
.twins.party .float { animation-duration: .9s; }
.look .twins .eyes { animation: peek 1.8s steps(1) infinite; }
.look .twins .lids { display: none; }
@keyframes peek { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1px); } 50% { transform: translateX(0); } 75% { transform: translateX(1px); } }

/* ---------------------------------------------------------------- landing */
.hero { text-align: center; }
.title {
  margin: 4px 0 12px; font-size: clamp(42px, 13vw, 76px); line-height: .98;
  text-shadow: 3px 3px 0 var(--ink);
}
.fit .wd { white-space: nowrap; }
.title.sys { font-size: clamp(32px, 10vw, 58px); line-height: 1.15; text-shadow: 2px 2px 0 var(--ink); }
.title .w0 { color: var(--blue); }
.title .w1 { color: var(--green); }
.title .w2 { color: var(--purple); }
.sub { max-width: 30em; margin: 0 auto 22px; font-size: 18px; color: var(--ink-2); }
.cta { max-width: 380px; }
.web-link { display: flex; width: fit-content; max-width: 100%; min-height: 48px; margin: 12px auto 0; border-width: 9px; border-image-width: 9px; font-size: 16px; }
.web-link .ico { width: 16px; }
.listeners {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 1.6em; margin: 14px 0 0;
  font-size: 15px; font-weight: 550; color: var(--ink-2); visibility: hidden;
}
.listeners.on { visibility: visible; }
.how h2 { font-size: 26px; margin-bottom: 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: flex-start; gap: 14px; }
.num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin: 3px; font-size: 19px; background: var(--lilac); box-shadow: var(--notch); }
.steps li:nth-child(2) .num { background: var(--mint); }
.steps li:nth-child(3) .num { background: var(--peri-2); }
.steps li:nth-child(4) .num { background: var(--blush); }
.steps li > span:last-child { padding-top: 6px; }
.returning { display: grid; justify-items: center; gap: 12px; margin: 22px 0 0; text-align: center; color: var(--ink-2); }

/* ---------------------------------------------------------------- the form */
.form-top { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.progress { flex: 1; display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: 12px; padding: 3px; }
.pseg { height: 16px; background: #fff; box-shadow: var(--notch); }
.pseg.done { background: var(--mint); }
.pseg.now { background: repeating-linear-gradient(90deg, var(--peri) 0 6px, var(--peri-2) 6px 12px); animation: crawl .8s steps(2) infinite; }
@keyframes crawl { to { background-position: 12px 0; } }
.close { flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin-inline-end: -12px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.close svg { display: block; width: 16px; height: 16px; }
.step-of { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form-card { margin-top: 12px; }
.step-title { font-size: 30px; margin: 2px 0 2px; }
.intro { margin-top: 6px; color: var(--ink-2); }

.field { margin-top: 20px; }
.lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-weight: 650; }
.opt {
  flex: none; padding: 1px 8px; margin-inline-end: 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--cream);
  box-shadow: 0 -2px 0 0 var(--sand), 0 2px 0 0 var(--sand), -2px 0 0 0 var(--sand), 2px 0 0 0 var(--sand);
}
input[type=text], input[type=email], input[type=date], select {
  -webkit-appearance: none; appearance: none; display: block; width: calc(100% - 6px); min-height: 52px; margin: 3px;
  padding: 12px 14px; border: 0; border-radius: 0; outline: none;
  font: 400 17px/1.3 var(--sans); color: var(--ink); background-color: #fff; box-shadow: var(--notch);
}
input::placeholder { color: #8f879d; opacity: 1; }
select { padding-inline-end: 44px; background-image: var(--arrow); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 8px; text-overflow: ellipsis; cursor: pointer; }
[dir=rtl] select { background-position: left 16px center; }
input[type=date] { line-height: 26px; }
input[type=date]::-webkit-date-and-time-value { text-align: start; }
input:disabled { background-color: #f1ece1; }
input[type=text]:focus, input[type=email]:focus, input[type=date]:focus, select:focus {
  box-shadow: 0 -3px 0 0 var(--blue), 0 3px 0 0 var(--blue), -3px 0 0 0 var(--blue), 3px 0 0 0 var(--blue), 0 0 0 8px rgba(91, 116, 214, .2);
}
.invalid input[type=text], .invalid input[type=email], .invalid input[type=date], .invalid select, .invalid .check-row input {
  background-color: #fff5f7;
  box-shadow: 0 -3px 0 0 var(--bad), 0 3px 0 0 var(--bad), -3px 0 0 0 var(--bad), 3px 0 0 0 var(--bad);
}
.hint { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.err { margin-top: 6px; font-size: 14px; font-weight: 650; color: var(--bad); }
.err:empty { display: none; }
.short input[type=text] { max-width: 150px; }

/* the connected card: sentences with the inputs where the card has its blanks */
.intro.encourage { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 10px 12px; color: var(--ink); font-weight: 600; background: #f1eafc; box-shadow: var(--notch-2); }
.intro.encourage .ico { width: 16px; margin-top: 4px; }
.group .lbl { margin-bottom: 4px; }
.sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sentence-t { flex: none; max-width: 100%; font-weight: 650; }
.sentence input[type=text] { flex: 1 1 100%; width: auto; min-width: 0; }
.sentence.plays { gap: 4px 8px; }
.sentence.plays input[type=text] { flex: 0 0 80px; padding-inline: 10px; text-align: center; }
.sub-field { margin-top: 10px; }
@media (min-width: 600px) {
  .sentence.hop input[type=text] { flex: 1 1 140px; }
}
.at-wrap { position: relative; }
.at-wrap .at { position: absolute; z-index: 1; left: 17px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-2); pointer-events: none; }
.at-wrap input[type=text] { padding-left: 34px; text-align: left; }
.check-t { display: grid; gap: 4px; }
.check-desc { font-size: 14px; color: var(--ink-2); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 0 14px; align-items: end; }

.sign-block { margin-top: 20px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt { position: relative; flex: 1 1 140px; display: block; cursor: pointer; }
.seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-opt span {
  height: 100%; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 8px; text-align: center;
  border: 8px solid transparent; border-image: var(--bi-pill-paper) 4 fill / 8px / 0 stretch; font-size: 15px; font-weight: 650;
}
.seg-opt input:checked + span { border-image-source: var(--bi-pill-ink); color: var(--paper); }
.seg-opt input:focus-visible + span { outline: 3px dashed var(--blue); outline-offset: 3px; }
.sign-slot .field { margin-top: 12px; }
.sign-out { display: block; min-height: 1.3em; margin-top: 10px; font-size: 21px; color: var(--purple); }

.check { margin-top: 20px; }
.check-row { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.check-row input {
  -webkit-appearance: none; appearance: none; flex: none; width: 26px; height: 26px; margin: 3px 3px 0;
  background: #fff; box-shadow: var(--notch); cursor: pointer;
}
.check-row input:checked { background: var(--ink) var(--check) center / 14px 12px no-repeat; }
.check-row input:focus-visible { outline: 3px dashed var(--blue); outline-offset: 5px; }

.tags .count { font: 700 13px/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0 2px; list-style: none; }
.chips:not(:empty) { margin: 4px 0 14px; }
.chip { display: inline-flex; align-items: center; max-width: calc(100% - 4px); min-height: 36px; margin: 2px; padding-inline-start: 12px; font-size: 15px; font-weight: 550; background: var(--lilac); box-shadow: var(--notch-2); }
.mint .chip { background: var(--mint); }
.blush .chip { background: var(--blush); }
.chip-t { padding: 5px 0; overflow-wrap: anywhere; min-width: 0; }
.chip-x { flex: none; display: grid; place-items: center; width: 40px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.chip-x svg { display: block; width: 11px; height: 11px; }

.form-nav { display: flex; gap: 12px; margin-top: 28px; }
.form-nav .btn { flex: 1 1 0; min-width: 0; }
.form-nav .btn.primary { flex-grow: 1.7; }
.form-nav .spacer { display: none; }
.form-nav.with-save { flex-wrap: wrap; }
.form-nav .save-now { flex: 1 0 100%; }

/* ---------------------------------------------------------------- messages */
.status { margin: 14px 3px 0; padding: 10px 14px; font-weight: 600; background: var(--paper); box-shadow: var(--notch); overflow-wrap: anywhere; }
.status.bad, .status[data-kind=bad] { background: #fde6ec; color: #8f2440; }
.status[data-kind=ok] { background: #e6f5eb; }
.status[data-kind=party] { background: var(--blush); }
.status.global { margin-top: 12px; }
.check-email { display: flex; align-items: flex-start; gap: 12px; margin: 20px 3px 0; padding: 12px 14px; font-size: 15px; background: var(--paper); box-shadow: var(--notch); overflow-wrap: anywhere; }
.check-email .ico { width: 22px; margin-top: 3px; }
.check-email + .btn, .lead + .check-email + .btn { display: flex; margin: 18px auto 0; max-width: 380px; }

/* ---------------------------------------------------------------- searching / results */
.searching, .loading-screen, .center-screen { padding-top: 20px; text-align: center; }
.center-screen .btn { margin-top: 18px; min-width: 220px; }
.center-screen .btn + .btn { margin-top: 10px; }
.center-screen { display: grid; justify-items: center; }
.scan { position: relative; display: flex; justify-content: center; gap: 14px; width: max-content; max-width: 100%; margin: 22px auto 0; padding: 8px 12px; }
.sd { width: 10px; height: 10px; background: var(--peri-2); }
.sd1 { background: var(--mint); }
.sd2 { background: var(--lilac); }
.sd3 { background: var(--blush); }
.beam { position: absolute; top: 0; bottom: 0; left: 0; width: 28px; background: rgba(246, 211, 107, .55); animation: beam 2s steps(10) infinite alternate; }
@keyframes beam { to { left: calc(100% - 28px); } }
.loading-text { margin-top: 20px; font-size: 22px; }

.title-2 { margin: 8px 0 4px; font-size: clamp(28px, 8vw, 40px); text-align: center; text-shadow: 3px 3px 0 #d9cdf3; overflow-wrap: break-word; }
.title-2.msg { max-width: 18em; margin-inline: auto; font-size: clamp(22px, 6vw, 30px); line-height: 1.25; }
.lead { max-width: 30em; margin: 8px auto 0; text-align: center; color: var(--ink-2); }
.deck { margin-top: 4px; }
.pager { display: flex; justify-content: center; gap: 10px; margin: 16px 0 -8px; }
.pager span { width: 10px; height: 10px; background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.pager .on { background: var(--ink); }
.pager .past { background: var(--peri-2); }
.cand-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.badge { display: inline-block; margin: 2px; padding: 3px 12px; font-size: 17px; background: var(--mint); box-shadow: var(--notch-2); }
.hot .badge { background: var(--blush); }
.mini-heart { display: block; width: 27px; }
.mini-heart svg { display: block; width: 27px; height: auto; }
.cand-name { margin: 12px 0 6px; font-size: 30px; overflow-wrap: anywhere; }
.cand-name.sys { font-size: 26px; }
.place { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 550; }
.place .ico { width: 15px; }
.common { margin-top: 12px; }
.blurb { display: flex; align-items: flex-start; gap: 10px; margin: 14px 3px 0; padding: 10px 12px; font-weight: 600; background: #fdf3cf; box-shadow: var(--notch-2); }
.blurb .ico { width: 18px; margin-top: 4px; }
.blurb > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.woah { margin-top: 8px; font-size: 34px; color: var(--purple); text-shadow: 2px 2px 0 var(--ink); }
.woah.sys { font-size: 28px; }
.q { margin-top: 16px; font-weight: 650; }
.actions { display: grid; gap: 10px; margin-top: 14px; }
.actions .btn, .cand > .btn { width: 100%; }
.cand > .btn { margin-top: 10px; }
.none h2, .none h3 { font-size: 26px; }
.none p { margin-top: 8px; }
.mail { margin-top: 16px; font-size: 17px; }
.mail .ico { width: 22px; }
.ig { margin-top: 10px; font-size: 17px; }
.ig .ico { width: 22px; }
.mail-t { min-width: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- private page */
.private-note { max-width: 30em; margin: 4px auto 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.verify { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 16px; font-weight: 650; }
.vdot { display: grid; place-items: center; width: 26px; height: 26px; margin: 2px; background: var(--mint); box-shadow: var(--notch-2); }
.vdot svg { display: block; width: 14px; height: auto; }
.verify.no .vdot { background: var(--butter); }
.me-sec { margin-top: 30px; }
.me-sec > h2 { margin: 0 0 -6px; font-size: 26px; }
.settings { display: grid; gap: 16px; }
.switch { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0; border: 0; background: none; color: var(--ink); font: 600 16px/1.3 var(--sans); text-align: start; cursor: pointer; }
.track { position: relative; flex: none; width: 54px; height: 28px; margin: 3px; background: #ebe4d4; box-shadow: var(--notch); }
.knob { position: absolute; top: 4px; inset-inline-start: 4px; width: 20px; height: 20px; background: var(--ink); transition: inset-inline-start .15s steps(3); }
.switch[aria-checked=true] .track { background: var(--mint); }
.switch[aria-checked=true] .knob { inset-inline-start: 30px; }
.web-set { display: grid; justify-items: start; gap: 4px; }
.web-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline-start: 74px; font-weight: 650; text-underline-offset: 3px; }
.web-go .ico { width: 15px; }
.linkish { justify-self: center; min-height: 44px; padding: 10px 4px; border: 0; background: none; color: var(--bad); font: 600 15px/1.2 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.confirm { margin: 3px; padding: 14px; background: #fde6ec; box-shadow: var(--notch); }
.confirm p { margin-bottom: 12px; font-weight: 650; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.row-btns .btn { flex: 1 1 140px; }

/* ---------------------------------------------------------------- the twin web */
.web-screen { --fw: calc(100vw - 16px); --sky: #262036; }
.web-screen .lead { margin-bottom: 4px; }
.web-few { max-width: 30em; margin: 8px auto 0; text-align: center; font-weight: 650; color: var(--purple); }
.web-frame {
  position: relative; width: var(--fw); height: clamp(380px, calc(100dvh - 250px), 640px);
  margin: 16px calc((100% - var(--fw)) / 2) 0; background: var(--sky); box-shadow: var(--notch), 0 9px 0 -3px rgba(42, 36, 51, .14);
  overflow: hidden; user-select: none; -webkit-user-select: none;
}
@media (min-width: 720px) {
  .web-screen { --fw: min(1180px, calc(100vw - 64px)); }
  .web-frame { height: clamp(440px, calc(100vh - 260px), 780px); }
}
.web-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline-offset: -6px; }
.web-canvas:active { cursor: grabbing; }
.web-canvas:focus-visible { outline: 3px dashed var(--butter); }
.web-ctrls { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; gap: 10px; }
.web-ctl { display: grid; place-items: center; width: 40px; height: 40px; margin: 2px; padding: 0; border: 0; background: var(--paper); box-shadow: var(--notch-2); cursor: pointer; }
.web-ctl svg { display: block; width: 13px; height: 13px; }
.web-ctl:active { transform: translateY(1px); }
.web-me {
  position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 0; background: var(--butter); box-shadow: var(--notch-2); color: var(--ink); font: 700 15px/1 var(--sans); cursor: pointer;
}
.web-me .ico { width: 15px; }
.web-load { position: absolute; inset: 0; display: grid; place-items: center; }
.web-empty {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 24px;
  text-align: center; color: var(--cream); pointer-events: none;
}
.web-empty > * { pointer-events: auto; max-width: 26em; }
.web-empty h2 { font-size: clamp(24px, 6vw, 34px); color: var(--butter); text-shadow: 2px 2px 0 #000; }
.web-empty p { color: #d9d2e8; }
.web-empty .btn { margin-top: 6px; min-width: 220px; width: auto; }
.web-card {
  position: absolute; bottom: 8px; inset-inline-start: 8px; width: min(380px, calc(100% - 16px)); max-height: calc(100% - 64px);
  margin: 0; overflow: auto;
}
.web-card .cand-top { min-height: 0; }
.web-card .close { width: 40px; height: 40px; margin: -8px; margin-inline-end: -10px; }
.web-card .cand-name { margin-top: 2px; font-size: 26px; }
.web-card .cand-name.sys { font-size: 22px; }
.me-badge { background: var(--butter); }
.web-error { display: grid; justify-items: center; gap: 10px; margin-top: 12px; }
.web-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 10px; }
.lg-line { flex: none; width: 30px; height: 3px; }
.lg-line.twins { background: #e0688d; }
.lg-line.hop { height: 2px; background: repeating-linear-gradient(90deg, #6f85dd 0 3px, transparent 3px 7px); }
.web-counts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 10px; font-size: 14px; color: var(--ink-2); text-align: center; }
.web-below { display: grid; justify-items: center; margin-top: 18px; }
.web-below .btn.big { max-width: 380px; }
.web-soon { max-width: 30em; text-align: center; font-weight: 600; color: var(--ink-2); }
[dir=rtl] .lg-line.hop { background: repeating-linear-gradient(270deg, #6f85dd 0 3px, transparent 3px 7px); }

/* ---------------------------------------------------------------- footer */
.foot {
  display: grid; justify-items: center; gap: 14px; margin-top: 44px; padding-top: 24px; text-align: center; font-size: 15px; color: var(--ink-2);
  background: linear-gradient(90deg, var(--sand) 50%, transparent 0) top / 12px 3px repeat-x;
}
.foot-lang { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.foot-lang label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.lang-select { width: auto; min-width: 210px; min-height: 46px; font-size: 16px; }
.privacy summary {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none;
}
.privacy summary::-webkit-details-marker { display: none; }
.privacy p { max-width: 32em; margin: 6px 3px 0; padding: 12px 14px; text-align: start; color: var(--ink); background: var(--paper); box-shadow: var(--notch); }
.privacy.inline { margin-top: 16px; font-size: 15px; }
.disclaimer { max-width: 30em; }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .app { padding-top: 10px; }
}

/* ---------------------------------------------------------------- motion */
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
