/* Quadra's one stylesheet. Tokens and look come from the clickable demo;
   every symbol is a Lucide icon (principle 6), never an emoji. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ground: #DCE4E0; --surface: #F8FAF9; --surface-2: #ECF1EF; --line: #D2DCD7;
  --ink: #12201A; --ink-2: #56685F;
  --love: #DE2457; --want: #D98A00; --pass: #5F7380; --nope: #8A7464;
  --love-soft: #FBE0E8; --want-soft: #FBEED2; --bad: #B3261E; --bad-soft: #F9DEDC;
  --scrim: rgba(14,22,19,.46); --shadow: 0 24px 70px rgba(18,32,26,.20);
  --card-shadow: 0 10px 30px rgba(18,32,26,.16); --map-land: #9EAFA8; --map-sea: #E6ECE9;
  --on-poster: #FFFFFF; --focus: #1C7DD6;
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0A100E; --surface: #111916; --surface-2: #1A2420; --line: #26332D;
    --ink: #E6EEEA; --ink-2: #93A59C;
    --love: #FF5A84; --want: #FFBA38; --pass: #93A8B5; --nope: #B7A08F;
    --love-soft: #3B1522; --want-soft: #3A2B0E; --bad: #FFB4AB; --bad-soft: #3A1512;
    --scrim: rgba(0,0,0,.6); --shadow: 0 24px 70px rgba(0,0,0,.55);
    --card-shadow: 0 10px 30px rgba(0,0,0,.45); --map-land: #4C5E56; --map-sea: #16201C;
    --focus: #5AB0FF; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0A100E; --surface: #111916; --surface-2: #1A2420; --line: #26332D;
  --ink: #E6EEEA; --ink-2: #93A59C;
  --love: #FF5A84; --want: #FFBA38; --pass: #93A8B5; --nope: #B7A08F;
  --love-soft: #3B1522; --want-soft: #3A2B0E; --bad: #FFB4AB; --bad-soft: #3A1512;
  --scrim: rgba(0,0,0,.6); --shadow: 0 24px 70px rgba(0,0,0,.55);
  --card-shadow: 0 10px 30px rgba(0,0,0,.45); --map-land: #4C5E56; --map-sea: #16201C;
  --focus: #5AB0FF; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--ground); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.05; }
[hidden] { display: none !important; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.2em; }
.i.fill { fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the app frame: a phone-sized column, centred on wide screens ---------- */
.app { position: relative; max-width: 480px; margin: 0 auto; height: 100dvh; background: var(--surface); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
@media (min-width: 560px) {
  body { padding: 16px; }
  .app { height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
}
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px 6px; padding-top: max(12px, env(safe-area-inset-top)); }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.015em; font-stretch: 85%; display: flex; align-items: center; gap: 9px; text-decoration: none; }
.mark { display: inline-block; width: 18px; height: 22px; border-radius: 5px; background: var(--love); transform: rotate(-10deg); box-shadow: 5px 2px 0 var(--want); flex: none; }
.tools { display: flex; gap: 8px; }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; padding: 0; text-decoration: none; }
.main { position: relative; min-height: 0; overflow: hidden; }
.fill { height: 100%; }
.scroll { height: 100%; overflow-y: auto; padding: 4px 16px 32px; overscroll-behavior: contain; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--surface); }
.tab { border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.tab .i { width: 22px; height: 22px; stroke-width: 1.8; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] .i { color: var(--love); }

/* ---------- type, sections, notes ---------- */
.hero { display: grid; gap: 12px; padding: 18px 0 10px; }
.hero h1 { font-size: 34px; font-weight: 800; font-stretch: 80%; letter-spacing: -.01em; }
.hero h2 { font-size: 28px; font-stretch: 85%; }
.lead { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.sec { display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; }
.sec h2 { font-size: 19px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.note { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.eyebrow { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin: 0; }
.err { color: var(--bad); font-size: 12.5px; margin: 0; }
.banner { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; background: var(--surface-2); font-size: 13.5px; }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 40px 12px; color: var(--ink-2); }
.empty .i { width: 40px; height: 40px; stroke-width: 1.5; }
.empty h3 { color: var(--ink); font-size: 21px; }

/* ---------- buttons, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; border-radius: 999px; padding: 10px 16px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn.primary { border-color: var(--love); background: var(--love); color: #fff; }
.btn.dark { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.btn.big { padding: 13px 20px; font-size: 15px; width: 100%; }
.btn.small { padding: 6px 11px; font-size: 12.5px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .55; cursor: default; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; }
.field > span { font-weight: 600; font-size: 13.5px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.field textarea { min-height: 120px; font-family: var(--f-mono); font-size: 12.5px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field .help { font-size: 12px; color: var(--ink-2); font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.sw { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.sw button { width: 44px; height: 26px; border-radius: 13px; border: 0; background: var(--line); position: relative; padding: 0; flex: none; }
.sw button::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); transition: transform .2s; }
.sw button[aria-checked="true"] { background: var(--love); }
.sw button[aria-checked="true"]::after { transform: translateX(18px); }

/* ---------- people ---------- */
.face { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--fc, var(--pass)); border: 2px solid var(--surface); flex: none; }
.faces { display: flex; flex: none; }
.faces .face { width: 26px; height: 26px; font-size: 11px; border-color: var(--ink); }
.faces .face + .face { margin-left: -8px; }
.me { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.me .face { width: 52px; height: 52px; font-size: 18px; }
.me h1 { font-size: 24px; }
.person { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 600; font-size: 13px; }
.person small { font-family: var(--f-mono); font-weight: 400; font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.people { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- lists ---------- */
.list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--surface); }
.row .th { width: 44px; height: 52px; border-radius: 9px; background: linear-gradient(155deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; overflow: hidden; }
.row .th img { width: 100%; height: 100%; object-fit: cover; }
.row .t { font-weight: 600; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.row .m { font-size: 12px; color: var(--ink-2); }
.row .acts { display: flex; gap: 6px; }
.tag { font-family: var(--f-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; border-radius: 4px; padding: 1px 5px; background: var(--surface-2); color: var(--ink-2); margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.tag.want { background: var(--want-soft); color: var(--want); }
.tag.love { background: var(--love-soft); color: var(--love); }

/* ---------- swipe view ---------- */
.swipe { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.swipe.solo { grid-template-rows: auto 1fr auto auto; }
.chips { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px 6px 12px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; white-space: nowrap; }
/* a long deck name stays on the screen ("Les chansons françaises que tout le monde connaît") */
.chip .ct { min-width: 0; max-width: min(56vw, 240px); overflow: hidden; text-overflow: ellipsis; }
.chip small { font-family: var(--f-mono); font-weight: 400; font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: var(--surface); opacity: .75; }
.stack { position: relative; margin: 4px 16px 0; min-height: 0; }

/* a card: the poster (never under our own text), then a band: title, one meta line */
.card { position: absolute; inset: 0; border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow); overflow: hidden; display: flex; flex-direction: column; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab; border: 1px solid var(--line); transition: transform .32s cubic-bezier(.2,.8,.3,1), opacity .3s; }
.card:focus { outline: none; }
.card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.card.dragging { transition: none; cursor: grabbing; }
.card.next { transform: translateY(14px) scale(.94); pointer-events: none; }
.card.next.enter { animation: enter .35s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(24px) scale(.9); } }
.poster { position: relative; flex: 1 1 auto; min-height: 120px; color: var(--on-poster); background: linear-gradient(155deg, var(--c1), var(--c2)); overflow: hidden; isolation: isolate; }
.poster img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.poster img.bg { display: none; }
.poster.fit img.cover { object-fit: contain; }
.poster.fit img.bg { display: block; position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(22px) saturate(1.2) brightness(.72); z-index: 0; }
.poster .art { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(64px, 14vh, 120px); height: clamp(64px, 14vh, 120px); stroke-width: 1.3; opacity: .9; z-index: 1; filter: drop-shadow(0 10px 18px rgba(0,0,0,.3)); }
.poster .art-map { position: absolute; left: 6%; top: 50%; width: 88%; aspect-ratio: 2 / 1; transform: translateY(-50%); z-index: 1; --map-land: rgba(255,255,255,.42); --love: #FFFFFF; }
.poster.game:not(.has-img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 2px, transparent 2px 6px), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 6px); }
.poster-play, .mute { position: absolute; z-index: 4; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: rgba(10,14,12,.58); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.poster-play { right: 12px; bottom: 12px; }
.poster-play .i { width: 18px; height: 18px; margin-left: 2px; }
.mute { right: 12px; top: 12px; }
.mute .i { width: 19px; height: 19px; }
.band { flex: none; display: grid; gap: 3px; padding: 11px 16px 14px; }
.band .ttl { font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.08; letter-spacing: -.01em; font-stretch: 88%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.band .meta-line { margin: 0; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.band .b-text { margin-top: 5px; font-size: 13px; }
.band .b-audio { margin-top: 7px; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 3; background: rgba(255,255,255,.94); color: #12201A; border-radius: 999px; padding: 4px 10px; font-weight: 600; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.2); display: inline-flex; gap: 6px; align-items: center; }
.stamp { position: absolute; z-index: 5; opacity: 0; border: 3px solid currentColor; border-radius: 10px; padding: 4px 10px; font-family: var(--f-display); font-weight: 800; font-size: 20px; text-transform: uppercase; font-stretch: 80%; letter-spacing: .02em; background: var(--surface); pointer-events: none; white-space: nowrap; max-width: calc(100% - 36px); overflow: hidden; text-overflow: ellipsis; }
.stamp[data-d="r"] { top: 22px; left: 18px; color: var(--love); transform: rotate(-12deg); }
.stamp[data-d="l"] { top: 22px; right: 18px; color: var(--pass); transform: rotate(12deg); }
.stamp[data-d="u"] { bottom: 42%; left: 50%; color: var(--want); transform: translateX(-50%) rotate(-4deg); }
.stamp[data-d="d"] { top: 22px; left: 50%; color: var(--nope); transform: translateX(-50%) rotate(3deg); }
.stamp[data-d="q"] { top: 38%; left: 50%; color: var(--ink-2); transform: translateX(-50%) rotate(-2deg); }
/* a still press: a heart grows, then it is strong love */
.card .hold { position: absolute; left: 50%; top: 42%; z-index: 6; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--love); box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; transform: scale(.4); pointer-events: none; }
.card .hold .i { width: 40px; height: 40px; }
.card.holding .hold { animation: hold .37s linear forwards; }
@keyframes hold { to { opacity: .94; transform: scale(1); } }
.blocks { flex: none; display: grid; gap: 10px; padding: 12px 16px 14px; }
.end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 20px; border: 1.5px dashed var(--line); border-radius: 24px; }
.end h3 { font-size: 24px; }
.end .note { max-width: 270px; }

/* the end of a deck: a recap of the whole deck, the next one */
.done { position: absolute; inset: 0; overflow: hidden auto; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 20px 16px; text-align: center; border-radius: 24px; background: var(--surface-2); }
.done h3 { font-size: 28px; font-stretch: 85%; }
.done .note { max-width: 300px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--love); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px color-mix(in srgb, var(--love) 40%, transparent); animation: pop .55s cubic-bezier(.2,1.5,.4,1) both; }
.done-mark .i { width: 28px; height: 28px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.recap { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; max-width: 330px; }
.rc { border-radius: 14px; padding: 10px 12px; background: var(--surface); text-align: left; display: grid; gap: 3px; }
.rc b { font-family: var(--f-display); font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; }
.rc span { font-size: 12px; color: var(--ink-2); line-height: 1.2; }
.rc-r b { color: var(--love); } .rc-u b { color: var(--want); } .rc-l b { color: var(--pass); } .rc-d b { color: var(--nope); }
.rc-q { margin: 0; font-size: 13px; color: var(--ink-2); }
.rc-q b { color: var(--ink); font-variant-numeric: tabular-nums; }
.loved { display: flex; gap: 6px; justify-content: center; }
.lv { position: relative; width: 46px; height: 66px; border-radius: 9px; overflow: hidden; background: linear-gradient(155deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; box-shadow: var(--card-shadow); }
.lv img { width: 100%; height: 100%; object-fit: cover; }
.lv i { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--love); display: grid; place-items: center; }
.lv i .i { width: 11px; height: 11px; }
.done .btns { justify-content: center; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -14px; left: var(--x); width: 7px; height: 12px; border-radius: 2px; background: var(--c); opacity: 0; animation: fall 1.5s cubic-bezier(.25,.6,.45,1) var(--d) forwards; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--y)) rotate(var(--r)); } }

/* the line after a swipe: the film, what you said or who agrees, Undo */
.fb-slot { height: 50px; margin: 0 16px; display: grid; align-items: center; }
.fb { display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; padding: 3px 3px 3px 3px; border-radius: 14px; background: var(--ink); color: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 12.5px; line-height: 1.25; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.3,1), visibility 0s .25s; }
.fb.on { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.3,1); }
.fb-th { flex: none; width: 27px; height: 38px; border-radius: 7px; overflow: hidden; background: linear-gradient(155deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; }
.fb-th img { width: 100%; height: 100%; object-fit: cover; }
.fb-th .i { width: 15px; height: 15px; }
.fb-tx { flex: 1; min-width: 0; display: grid; }
.fb-tx > b, .fb-tx > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-tx > span { opacity: .86; }
.fb .i { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.fb .i.love { color: var(--love); } .fb .i.want { color: var(--want); }
.fb .faces { display: inline-flex; vertical-align: middle; margin-right: 5px; }
.fb .faces .face { width: 18px; height: 18px; font-size: 9px; border-width: 1.5px; border-color: var(--ink); }
.fb-x { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; padding: 0 10px; }
.fb-undo { flex: none; height: 38px; border: 0; border-radius: 11px; padding: 0 12px; background: color-mix(in srgb, var(--surface) 16%, transparent); color: inherit; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 2px; }

/* the answer pad: a cross, like the swipe (↑ ← ? → ↓), "?" in the middle */
.pad { display: grid; grid-template-columns: 1fr 48px 1fr; grid-template-rows: repeat(3, 44px); gap: 4px 8px; padding: 0 16px 10px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pad .key { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; max-width: 100%; height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px; line-height: 1.1; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .15s, background .15s, border-color .15s; }
.pad .key span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: center; }
.pad .key .i { width: 18px; height: 18px; stroke-width: 2.4; }
.pad .k-u { grid-area: 1 / 1 / 2 / 4; justify-self: center; }
.pad .k-l { grid-area: 2 / 1; justify-self: end; }
.pad .k-q { grid-area: 2 / 2; width: 48px; padding: 0; border-style: dashed; color: var(--ink-2); font-family: var(--f-display); font-size: 21px; }
.pad .k-r { grid-area: 2 / 3; justify-self: start; }
.pad .k-d { grid-area: 3 / 1 / 4 / 4; justify-self: center; }
.pad .k-u .i { color: var(--want); } .pad .k-l .i { color: var(--pass); } .pad .k-r .i { color: var(--love); } .pad .k-d .i { color: var(--nope); }
.pad .key:active, .pad .key.hot { transform: scale(1.06); }
.pad .k-r.hot { background: var(--love-soft); border-color: var(--love); }
.pad .k-u.hot { background: var(--want-soft); border-color: var(--want); }
.pad .k-l.hot { border-color: var(--pass); } .pad .k-d.hot { border-color: var(--nope); } .pad .k-q.hot { border-color: var(--ink-2); }
.pad .rewind { grid-area: 1 / 1; justify-self: start; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--want); display: grid; place-items: center; padding: 0; transition: opacity .2s; }
.pad .rewind .i { width: 20px; height: 20px; stroke-width: 2.3; }
.pad .rewind:disabled { opacity: .35; cursor: default; }
.swipe.ended .pad { display: none; }
.sheet .pad { padding: 12px 16px 4px; border-top: 1px solid var(--line); }

/* ---------- blocks (one renderer per kind) ---------- */
.b-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.b-facts span { font-family: var(--f-mono); font-size: 11px; background: var(--surface-2); border-radius: 6px; padding: 3px 7px; font-variant-numeric: tabular-nums; }
.b-facts em { font-style: normal; color: var(--ink-2); }
.b-text { color: var(--ink-2); font-size: 13.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.sheet .b-text { display: block; -webkit-line-clamp: unset; font-size: 15px; color: var(--ink); }
.b-image img { width: 100%; border-radius: 14px; display: block; }
.b-image figcaption { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; }
.b-map { display: grid; grid-template-columns: 128px 1fr; gap: 12px; align-items: center; }
.b-map canvas { width: 128px; height: 64px; border-radius: 8px; background: var(--map-sea); display: block; }
.b-map .where { font-weight: 600; }
.b-props { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.b-props div { display: flex; gap: 10px; }
.b-props dt { flex: none; width: 76px; color: var(--ink-2); }
.b-props dd { margin: 0; min-width: 0; }
.credits { margin: 0; font-size: 11.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; }
.credits a { color: inherit; }
.sheet .b-map { grid-template-columns: 1fr; }
.sheet .b-map canvas { width: 100%; height: auto; aspect-ratio: 2 / 1; }
.b-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.b-action p { margin: 0; font-size: 12px; color: var(--ink-2); }
.b-attr { font-size: 11px; color: var(--ink-2); }
.skipped { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-2); }
.b-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: thin; }
.b-gallery figure { margin: 0; flex: 0 0 78%; scroll-snap-align: start; }
.b-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; background: var(--surface-2); }
.b-gallery figcaption { font-size: 10.5px; color: var(--ink-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-video { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--c2, #333), #000); color: #fff; text-decoration: none; }
.b-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-video .pl { position: relative; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.94); color: #111; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.b-video .pl .i { width: 24px; height: 24px; fill: currentColor; }
.b-video .cap { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.55); border-radius: 6px; padding: 2px 8px; }
.links .btn { padding: 6px 11px; }
.pv-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pv-strip figure { margin: 0; flex: 0 0 92px; }
.pv-strip img, .pv-none { width: 92px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.pv-strip figcaption { font-size: 11px; line-height: 1.2; margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pv-strip small { color: var(--ink-2); }
button.b-video { width: 100%; border: 0; padding: 0; cursor: pointer; font: inherit; }
.b-audio { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; }
.b-audio .play { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--love); color: #fff; display: grid; place-items: center; padding: 0; }
.b-audio .play .i { width: 17px; height: 17px; fill: currentColor; }
.wave { display: flex; align-items: center; gap: 2px; height: 30px; }
.wave i { flex: 1; background: var(--line); border-radius: 2px; height: var(--h); transform-origin: center; }
.wave i.on { background: var(--love); }
.b-audio.playing .wave i { animation: bar .9s ease-in-out infinite alternate; }
.b-audio.playing .wave i:nth-child(3n) { animation-delay: -.3s; } .b-audio.playing .wave i:nth-child(3n+1) { animation-delay: -.6s; }
@keyframes bar { from { transform: scaleY(.45); } to { transform: scaleY(1.1); } }
.b-audio .meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-2); margin-top: 3px; font-variant-numeric: tabular-nums; }
.player-wrap { position: absolute; inset: 0; z-index: 70; background: rgba(0,0,0,.82); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.player-wrap.on { opacity: 1; }
.player { width: 100%; display: grid; gap: 10px; }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #fff; font-size: 14px; }
.player-head .iconbtn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.player .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- the four directions and "?" ---------- */
.actions { display: flex; justify-content: center; align-items: flex-start; gap: 4px; padding: 12px 8px 10px; }
.act { display: grid; justify-items: center; gap: 4px; flex: 1 1 0; min-width: 0; max-width: 70px; background: none; border: 0; padding: 0; }
.act .o { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.08); transition: transform .15s, background .15s, border-color .15s; }
.act .o .i { width: 22px; height: 22px; stroke-width: 2.2; }
.act .w { font-size: 10.5px; line-height: 1.15; color: var(--ink-2); text-align: center; min-height: 2.3em; }
.act[data-d="q"] .o { color: var(--ink-2); border-style: dashed; }
.act[data-d="r"] .o { color: var(--love); } .act[data-d="l"] .o { color: var(--pass); }
.act[data-d="u"] .o { color: var(--want); } .act[data-d="d"] .o { color: var(--nope); }
.act.strong .o { width: 60px; height: 60px; margin-top: -4px; background: var(--love); border-color: var(--love); color: #fff; }
.act.strong .o .i { width: 26px; height: 26px; }
.act:active .o, .act.hot .o { transform: scale(1.12); }
.act[data-d="r"].hot .o { background: var(--love-soft); border-color: var(--love); }
.act[data-d="u"].hot .o { background: var(--want-soft); border-color: var(--want); }
.act[data-d="l"].hot .o, .act[data-d="d"].hot .o { border-color: currentColor; }

/* ---------- toast, burst, sheet, hint ---------- */
.toast { position: absolute; left: 50%; top: 62px; z-index: 60; transform: translate(-50%, -14px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.3,1); background: var(--ink); color: var(--surface); border-radius: 16px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 500; font-size: 13.5px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast .i { width: 18px; height: 18px; }
.burst { position: absolute; left: 50%; top: 45%; pointer-events: none; z-index: 20; }
.burst span { position: absolute; color: var(--love); animation: fly .9s ease-out forwards; }
.burst span .i { width: 22px; height: 22px; }
@keyframes fly { from { transform: translate(-50%,-50%) scale(.4); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.2); opacity: 0; } }
.sheet-wrap { position: absolute; inset: 0; z-index: 50; background: var(--scrim); opacity: 0; transition: opacity .25s; display: flex; align-items: flex-end; }
.sheet-wrap.on { opacity: 1; }
.sheet { background: var(--surface); width: 100%; max-height: 90%; overflow: auto; border-radius: 26px 26px 0 0; transform: translateY(100%); transition: transform .34s cubic-bezier(.2,.8,.3,1); padding: 0 0 18px; }
.sheet-wrap.on .sheet { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sheet .head { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; }
.sheet .thumb { width: 76px; height: 96px; border-radius: 12px; background: linear-gradient(155deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; overflow: hidden; }
.sheet .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sheet .thumb .i { width: 34px; height: 34px; stroke-width: 1.5; }
.sheet .head h2 { font-size: 22px; }
.sheet .head p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.sheet .head .lvl { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 9px 2px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sheet .head .lvl .i { width: 13px; height: 13px; }
.sheet .body { display: grid; gap: 16px; padding: 4px 16px; }
.sheet .rule { font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; display: flex; gap: 8px; }
.sheet .actions { padding: 8px 0 4px; border-top: 1px solid var(--line); }
.hint { position: absolute; inset: 0; z-index: 40; background: var(--scrim); display: grid; place-items: center; padding: 16px; }
.hint .panel:focus, .sheet:focus { outline: none; }
.hint .panel { background: var(--surface); border-radius: 24px; padding: 18px 16px 16px; width: 100%; max-width: 330px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.hint h2 { font-size: 20px; text-align: center; }
.compass { display: grid; grid-template-columns: 1fr 70px 1fr; grid-template-rows: auto 92px auto; gap: 8px; align-items: center; justify-items: center; }
.compass .mini { grid-column: 2; grid-row: 2; width: 62px; height: 88px; border-radius: 12px; background: linear-gradient(155deg, #2B5876, #4E4376); box-shadow: var(--card-shadow); animation: wiggle 3.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: none; } 20% { transform: translateX(10px) rotate(6deg); } 40% { transform: translateY(-8px); } 60% { transform: translateX(-10px) rotate(-6deg); } 80% { transform: translateY(8px); } }
.compass .lbl { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; display: grid; justify-items: center; gap: 2px; }
.compass .n { grid-column: 2; grid-row: 1; color: var(--want); } .compass .s { grid-column: 2; grid-row: 3; color: var(--nope); }
.compass .w { grid-column: 1; grid-row: 2; color: var(--pass); } .compass .e { grid-column: 3; grid-row: 2; color: var(--love); }
.hint ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.hint li b { color: var(--ink); }

/* ---------- profile: the answers grid, top loves, counts by type ---------- */
.bar { height: 9px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 5px; background: var(--love); width: var(--v); transition: width .6s cubic-bezier(.2,.8,.3,1); }
.grid2 { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px; align-items: stretch; }
.grid2 .hd { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); align-self: end; padding: 0 2px; }
.grid2 .rh { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); align-self: center; writing-mode: vertical-rl; transform: rotate(180deg); }
.cell { border-radius: 14px; padding: 10px 12px; background: var(--surface-2); }
.cell b { display: block; font-family: var(--f-display); font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.cell span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cell.k-pos { background: var(--love-soft); } .cell.k-pos b { color: var(--love); }
.cell.u-pos { background: var(--want-soft); } .cell.u-pos b { color: var(--want); }
a.cell { position: relative; display: block; text-decoration: none; min-height: 72px; }
a.cell > .i { position: absolute; top: 11px; right: 9px; width: 16px; height: 16px; color: var(--ink-2); }
.cell.wide { display: flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 6px; }
.cell.wide b { font-size: 24px; }
.cell.wide > .i { top: 50%; transform: translateY(-50%); }
.iconbtn.big { width: 44px; height: 44px; flex: none; }
.me .who { flex: 1; min-width: 0; }
.frow { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; min-height: 58px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
.frow .faces .face { width: 30px; height: 30px; font-size: 12px; border-color: var(--surface); }
.frow .fi { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.frow .fx { flex: 1; display: grid; }
.frow .fx small { color: var(--ink-2); font-size: 12.5px; }
.frow > .i { color: var(--ink-2); }
.pill { background: var(--love); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tcounts { display: flex; flex-wrap: wrap; gap: 8px; }
.tcount { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 13.5px; color: var(--ink-2); }
.tcount b { color: var(--ink); font-family: var(--f-display); font-size: 17px; font-variant-numeric: tabular-nums; }

/* ---------- posters: your answers, top loves, a friend's lists ---------- */
.strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; list-style: none; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .tile { flex: 0 0 98px; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; margin: 0; padding: 0; list-style: none; }
.tile { display: grid; gap: 6px; align-content: start; min-width: 0; }
.pt { display: grid; gap: 6px; border: 0; background: none; padding: 0; text-align: left; color: inherit; min-width: 0; }
.pp { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(155deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px rgba(18,32,26,.14); }
.pp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp > .i { width: 30px; height: 30px; stroke-width: 1.5; opacity: .9; }
.pp .st { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.94); color: #DE2457; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.pp .st .i { width: 13px; height: 13px; }
.pt-t { font-size: 12.5px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.seen { min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; }

/* ---------- your answers: kinds, search, the answer sheet ---------- */
.subhead { display: flex; align-items: center; gap: 10px; padding: 8px 0 6px; min-height: 58px; }
.subhead h1 { font-size: 26px; font-stretch: 85%; }
.subhead .face { width: 44px; height: 44px; font-size: 16px; border: 0; }
.subhead .who { flex: 1; min-width: 0; }
.subhead .who h1 { overflow-wrap: anywhere; }
.subhead .who .note { margin-top: 2px; }
.ktabs { display: flex; gap: 6px; overflow-x: auto; margin: 4px -16px 10px; padding: 0 16px 2px; scrollbar-width: none; }
.ktabs::-webkit-scrollbar { display: none; }
.ktabs button { flex: none; min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 14px; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.ktabs small { font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.ktabs [aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ktabs [aria-selected="true"] small { color: var(--surface); opacity: .75; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; min-height: 46px; background: var(--surface); color: var(--ink-2); margin-bottom: 16px; }
.search input { border: 0; background: none; flex: 1; min-width: 0; font-size: 15px; color: var(--ink); padding: 10px 0; outline: none; }
.search:focus-within { outline: 2px solid var(--focus); border-color: transparent; }
.tfilter { flex-wrap: nowrap; overflow-x: auto; margin: -6px -16px 16px; padding: 0 16px; scrollbar-width: none; }
.tfilter::-webkit-scrollbar { display: none; }
.tfilter button { flex: none; min-height: 44px; }
.more { width: 100%; margin-top: 18px; }
.sheet .now { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.sheet .now b { color: var(--ink); }
.pad { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 8px; }
.pd { min-height: 52px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; font-weight: 600; font-size: 13px; line-height: 1.15; text-align: left; }
.pd .i { width: 20px; height: 20px; }
.pad .pd[data-d="u"], .pad .pd[data-d="d"] { grid-column: 1 / -1; justify-self: center; width: 64%; }
.pad .pd[data-d="q"] { padding: 0; color: var(--ink-2); border-style: dashed; }
.pad .pd[data-d="q"] span { display: none; }
.pd[data-d="r"] .i { color: var(--love); } .pd[data-d="u"] .i { color: var(--want); }
.pd[data-d="l"] .i { color: var(--pass); } .pd[data-d="d"] .i { color: var(--nope); }
.pd[data-d="r"][aria-pressed="true"] { background: var(--love-soft); border-color: var(--love); }
.pd[data-d="u"][aria-pressed="true"] { background: var(--want-soft); border-color: var(--want); }
.pd[data-d="l"][aria-pressed="true"], .pd[data-d="d"][aria-pressed="true"], .pd[data-d="q"][aria-pressed="true"] { background: var(--surface-2); border-color: var(--ink-2); border-style: solid; }
.strongtg { justify-self: center; min-height: 44px; }
.strongtg[aria-pressed="true"] { background: var(--love); border-color: var(--love); color: #fff; }
.strongtg[aria-pressed="true"] .i { fill: currentColor; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two .pd { min-height: 64px; }
.linkbtn { border: 0; background: none; color: var(--ink-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 4px; justify-self: center; }

/* ---------- settings ---------- */
.shares { display: grid; gap: 2px; }
.sw.share { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; min-height: 46px; }
.share .sl { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.share .sl .i { color: var(--ink-2); }
.share small { font-size: 12px; color: var(--ink-2); }
.sec details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; min-height: 44px; }
.sec details > summary::-webkit-details-marker { display: none; }
.sec details > summary > .i { color: var(--ink-2); transition: transform .2s; }
.sec details[open] > summary > .i { transform: rotate(180deg); }

/* ---------- friends, a friend's page ---------- */
.ticket { display: grid; gap: 12px; margin-top: 6px; padding: 16px; border-radius: 20px; background: linear-gradient(140deg, var(--love-soft), var(--want-soft)); }
.tk-top { display: flex; gap: 12px; align-items: center; }
.tk-top .face { width: 44px; height: 44px; font-size: 16px; border: 0; }
.tk-top h2 { font-size: 20px; }
.linkpill { margin: 0; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 12px; padding: 11px 12px; font-family: var(--f-mono); font-size: 13px; min-width: 0; }
.linkpill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket .btn { min-height: 44px; }
.btn.grow { flex: 1; }
.ticket .linkbtn { margin: -6px 0 -8px; }
.manual { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-family: var(--f-mono); font-size: 12.5px; background: var(--surface); color: var(--ink); }
.inline { display: flex; gap: 8px; margin-top: 14px; }
.inline input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: 15px; min-height: 44px; }
.inline input:focus { outline: 2px solid var(--focus); border-color: transparent; }
.inline .btn { min-height: 44px; }
.row.person-row { grid-template-columns: 36px 1fr auto; min-height: 58px; }
.person-row .face { width: 36px; height: 36px; font-size: 14px; }
a.row > .i { color: var(--ink-2); }
.tms { display: grid; gap: 14px; }
.tm { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.tm .tl { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.tm .tv { font-family: var(--f-mono); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.tm .bar { grid-column: 1 / -1; }
.tm.locked .tv { font-family: var(--f-body); font-weight: 500; font-size: 12.5px; color: var(--ink-2); text-align: right; }
.tm.locked .bar i { background: var(--ink-2); opacity: .45; }

/* ---------- together ---------- */
.res-h { display: grid; gap: 6px; padding: 16px 0 6px; }
.res-h .big { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--love); font-stretch: 80%; }
.rank { display: grid; gap: 10px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); }
.rank.first { border-color: var(--love); background: var(--love-soft); }
.rank-b { display: grid; grid-template-columns: 28px 52px 1fr; gap: 10px; align-items: center; width: 100%; min-height: 64px; border: 0; background: none; padding: 0; text-align: left; color: inherit; }
.rank .no { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.rank .th { width: 52px; height: 64px; border-radius: 10px; background: linear-gradient(155deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; overflow: hidden; }
.rank .th img { width: 100%; height: 100%; object-fit: cover; }
.rank-tx { display: grid; min-width: 0; }
.rank .t { font-weight: 600; overflow-wrap: anywhere; }
.rank .m { font-size: 11.5px; color: var(--ink-2); margin: 2px 0 0; }
.rank .m.wl { color: var(--ink); display: flex; align-items: center; gap: 5px; }
.rank .m.wl:empty { display: none; }
.rank .bar { margin-top: 7px; }
.rank-acts { display: flex; gap: 8px; padding-left: 38px; }
.rank-acts .btn { min-height: 44px; }
.pick { font-family: var(--f-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--love); display: flex; align-items: center; gap: 4px; margin-bottom: 2px; }
.tg-bar { display: flex; gap: 8px; padding: 2px 16px 8px; overflow-x: auto; align-items: center; }
.code { font-family: var(--f-mono); font-size: 22px; letter-spacing: .12em; font-weight: 600; background: var(--surface-2); border-radius: 12px; padding: 10px 14px; text-align: center; overflow-wrap: anywhere; }
.dots { display: inline-flex; gap: 2px; margin-left: 2px; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-2); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .2; } }

/* ---------- sign-in ---------- */
.signin { min-height: 100%; display: grid; align-content: center; gap: 22px; padding: 24px; }
.signin .big-brand { font-family: var(--f-display); font-weight: 800; font-size: 54px; font-stretch: 80%; letter-spacing: -.02em; display: flex; align-items: center; gap: 14px; }
.signin .big-brand .mark { width: 30px; height: 38px; border-radius: 8px; box-shadow: 8px 3px 0 var(--want); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .12s !important; }
  .burst, .confetti { display: none; }
}

/* welcome: big fields (16px and more keeps a phone from zooming in), the
   birthday as day, month and year */
.form.welcome input, .form.welcome select { font-size: 17px; min-height: 48px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field > legend { font-weight: 600; font-size: 13.5px; padding: 0; margin-bottom: 5px; }
.bday-row { display: grid; grid-template-columns: 4.6em 1fr 5.6em; gap: 8px; }

/* ---------- decks: tiles, shelves, a deck's page, making one ---------- */
/* a form never grows wider than the phone: a long option or a number field shrinks */
.form > *, .field, .row2 > * { min-width: 0; }
.field select { max-width: 100%; text-overflow: ellipsis; }
.row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field > span small { font-weight: 400; color: var(--ink-2); }
.field textarea.plain { font-family: inherit; font-size: 15px; min-height: 76px; }
.opts > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; min-height: 44px; font-weight: 600; font-size: 14px; }
.opts > summary::-webkit-details-marker { display: none; }
.opts > summary > .i { color: var(--ink-2); transition: transform .2s; }
.opts[open] > summary > .i { transform: rotate(180deg); }
.opts > .form { padding: 4px 0 6px; }
.opts h3 { font-size: 16px; margin-top: 6px; }
.seg button { min-height: 44px; }

.mosaic { display: grid; gap: 2px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: linear-gradient(155deg, var(--c1), var(--c2)); color: #fff; }
.mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.mosaic.n0 { place-items: center; }
.mosaic.n0 > .i { width: 34px; height: 34px; stroke-width: 1.5; opacity: .9; }
.mosaic.n2 { grid-template-columns: 1fr 1fr; }
.mosaic.n3, .mosaic.n4 { grid-template: 1fr 1fr / 1fr 1fr; }
.mosaic.n3 img:first-child { grid-row: 1 / 3; }
.mosaic.cover-band { aspect-ratio: 8 / 3; grid-template: 1fr / repeat(4, 1fr); border-radius: 18px; }
.mosaic.cover-band.n1 { grid-template-columns: 1fr 3fr; }
.mosaic.cover-band.n2 { grid-template-columns: 1fr 1fr 2fr; }
.mosaic.cover-band.n3 { grid-template: 1fr / repeat(3, 1fr) 1fr; }
.mosaic.cover-band.n3 img:first-child { grid-row: auto; }
.mosaic.cover-band.n0 { grid-template: 1fr / 1fr; }

.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 12px; }
.dl-head h1 { font-size: 34px; font-weight: 800; font-stretch: 80%; letter-spacing: -.01em; }
.dl-head .btn { min-height: 44px; }
.dl-none { padding: 8px 2px; }
.shelf { display: grid; gap: 8px; padding: 6px 0 14px; }
.shelf h2 { font-size: 19px; }
.dstrip { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; list-style: none; scroll-snap-type: x proximity; scrollbar-width: none; }
.dstrip::-webkit-scrollbar { display: none; }
.dstrip > li { flex: 0 0 142px; scroll-snap-align: start; }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin: 0; padding: 0; list-style: none; }
.dtile { display: grid; gap: 4px; align-content: start; text-decoration: none; min-width: 0; }
.dt-pic { position: relative; display: block; }
.dt-pic .mosaic { box-shadow: 0 4px 12px rgba(18,32,26,.14); }
.dt-b { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.94); color: #12201A; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.dt-b .i { width: 12px; height: 12px; }
.dt-t { margin-top: 4px; font-weight: 700; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dt-m { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 0; }
.dt-m > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-m > .i { width: 15px; height: 15px; color: var(--love); }
/* a tile: its members (from 20), and Join for a deck not joined */
.dt { display: grid; gap: 6px; align-content: start; min-width: 0; }
.dt-by { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; margin-top: -2px; }
.dt-n { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 0; }
.dt-n > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-n > .i { width: 14px; height: 14px; flex: none; }
.dt-join { justify-self: start; min-height: 36px; position: relative; }
.dt-join::after { content: ""; position: absolute; inset: -4px; }
.dt-join .i { width: 14px; height: 14px; color: var(--love); }
/* a deck's page as its community's: its members, Join, Leave */
.dh-members { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dh-members .i { width: 16px; height: 16px; }
.joined-mark { white-space: nowrap; }
.dh-leave { margin: -4px 0 0; display: flex; justify-content: center; }
.ring { flex: none; display: block; }
.ring circle { fill: none; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--love); stroke-linecap: round; transition: stroke-dasharray .6s cubic-bezier(.2,.8,.3,1); }

.dh { display: grid; gap: 10px; padding: 12px 0 6px; }
.dh .mosaic { margin-bottom: 4px; }
.dh h1 { font-size: 30px; font-stretch: 85%; letter-spacing: -.01em; overflow-wrap: anywhere; }
.dh .eyebrow .i { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }
.you { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px 0 4px; }
.you-ring { position: relative; width: 64px; height: 64px; }
.yr-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.yr-n b { font-family: var(--f-display); font-size: 21px; font-variant-numeric: tabular-nums; }
.yr-n small { font-size: 10.5px; color: var(--ink-2); }
.yr-n .i { width: 24px; height: 24px; color: var(--love); stroke-width: 2.6; }
.ya-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; }
.ya { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 7px 8px; border-radius: 12px; background: var(--surface-2); min-width: 0; min-height: 52px; }
.ya b { font-family: var(--f-display); font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.ya-w { grid-column: 2; font-size: 11px; color: var(--ink-2); line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.ya-pp { grid-row: 1 / 3; display: flex; }
.ya-pp:empty { display: none; }
.ya-p { width: 24px; height: 34px; border-radius: 5px; overflow: hidden; display: grid; place-items: center; color: #fff; background: linear-gradient(155deg, var(--c1), var(--c2)); box-shadow: 0 1px 4px rgba(0,0,0,.25); border: 1.5px solid var(--surface-2); }
.ya-p + .ya-p { margin-left: -12px; }
.ya-p img { width: 100%; height: 100%; object-fit: cover; }
.ya-p .i { width: 12px; height: 12px; }
.ya.none { opacity: .55; }
.ya-r { background: var(--love-soft); } .ya-r b { color: var(--love); }
.ya-u { background: var(--want-soft); } .ya-u b { color: var(--want); }
.ya-l b { color: var(--pass); } .ya-d b { color: var(--nope); }
.you-new { margin: 0; display: grid; gap: 2px; }
.you-new b { font-family: var(--f-display); font-size: 20px; }
.you-new span { font-size: 13px; color: var(--ink-2); }
.dh-btns { padding: 10px 0 6px; }
.dh-btns .btn { min-height: 44px; }
.sharebox { display: grid; gap: 8px; padding: 4px 0 8px; }
.src-line { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.src-line .i { margin-top: 2px; }
.sec.src { gap: 8px; }
/* decks built on decks: the decks it starts from, copies, "based on", a deck like it */
.based { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.based .i { width: 14px; height: 14px; margin-top: 2px; flex: none; }
.based a { color: var(--ink); font-weight: 600; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pchips:empty { display: none; }
.pchip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; border: 1px solid var(--ink); background: var(--ink); color: var(--surface); border-radius: 999px; padding: 0 4px 0 14px; font-weight: 600; font-size: 13.5px; max-width: 100%; }
.pchip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchip small { font-weight: 400; opacity: .75; }
.pchip .iconbtn { width: 36px; height: 36px; border: 0; background: transparent; color: inherit; flex: none; }
.pv-n { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.pv-n b { font-family: var(--f-display); font-size: 18px; }
.pv .note .i, .cp-opts .note .i { width: 13px; height: 13px; vertical-align: -2px; }
/* "a deck like this already exists" (not .like: the first open's type buttons have it) */
.like-box { display: grid; gap: 10px; border: 1.5px solid var(--want); border-radius: 18px; padding: 14px 16px; background: var(--want-soft); }
.like-h { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 15px; }
.like-h .i { color: var(--want); flex: none; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 4px; }
.cp-head h2 { font-size: 22px; }
.cp-opts { display: grid; gap: 10px; padding: 8px 16px 6px; }
.opt { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 16px; min-height: 64px; color: var(--ink); }
.opt > .i { margin-top: 2px; color: var(--love); }
.opt b { display: block; font-size: 15.5px; }
.opt small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.opt:disabled { opacity: .6; }

.addbox { display: grid; gap: 8px; }
.search.add { margin-bottom: 0; color: var(--love); }
.sugg:empty { display: none; }
.sugg .row { width: 100%; text-align: left; min-height: 60px; }
.sugg .row.dim { opacity: .6; }
.sugg .row > .i { color: var(--love); }
.sw.ko { min-height: 44px; font-weight: 600; font-size: 13.5px; }
.crow { display: flex; align-items: stretch; gap: 6px; }
.crow .cr-main { flex: 1; min-width: 0; width: 100%; text-align: left; color: inherit; min-height: 60px; }
.crow .cr-main > .cr-ic { color: var(--ink-2); width: 16px; height: 16px; }
.crow.adding { opacity: .6; }
.crow.going { opacity: .4; pointer-events: none; }
.crow.dragging { position: relative; z-index: 2; }
.crow.dragging .cr-main { box-shadow: var(--card-shadow); border-color: var(--ink-2); }
.cr-x { align-self: center; width: 44px; height: 44px; flex: none; color: var(--ink-2); }
.cr-move { display: flex; align-items: center; flex: none; }
.grip { width: 40px; min-height: 60px; border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; padding: 0; touch-action: none; cursor: grab; }
/* up and down: for keyboards, seen when one has the focus */
.mv { width: 36px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0; display: grid; place-items: center; }
.mv:not(:focus-visible) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sheet form.body { padding-bottom: 8px; }

/* ---------- together, after the first test round: the lobby's friends,
   the session's pad, a match's sheet, where to watch, the shared pick ---------- */
.person.invited { border-style: dashed; color: var(--ink-2); }
.person .i { width: 14px; height: 14px; color: var(--love); }
.rule { display: flex; align-items: flex-start; gap: 8px; padding: 14px 0; }
.rule .i { margin-top: 1px; }
.swipe.tg { grid-template-rows: auto 1fr auto auto; }
.swipe.tg .end .btn { min-height: 44px; }
.why { margin: 0; font-size: 13px; font-weight: 600; color: var(--love); }
.sheet-acts { padding: 12px 16px 4px; border-top: 1px solid var(--line); }
.sheet-acts .locked { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; color: var(--love); }
.watch { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.watch h3 { font-size: 16px; }
.wg { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: start; }
.wk { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); padding-top: 9px; }
.provs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.prov { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 3px 10px 3px 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.prov img, .prov > .i { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex: none; }
.prov > .i { padding: 6px; color: var(--ink-2); }
.watch .credit { margin: 0; font-size: 11.5px; color: var(--ink-2); }

/* the swipe screen's news line: a face where a swipe's line has its poster */
.fb > .face { width: 34px; height: 34px; margin-left: 4px; font-size: 13px; border: 0; }
.fb > a.fb-undo { text-decoration: none; }
.fb-close { flex: none; width: 38px; height: 38px; border: 0; border-radius: 11px; background: none; color: inherit; display: grid; place-items: center; padding: 0; opacity: .8; }
.fb-close .i { margin: 0; }
.fb .fb-x .fb-tx { display: grid; }

/* the tab a friend's invitation waits on */
.tab { position: relative; }
.tab.dot::after { content: ""; position: absolute; top: 4px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--love); border: 2px solid var(--surface); }

/* a friend's new matches */
.new-m { display: flex; align-items: center; gap: 5px; color: var(--love); font-weight: 600; }
.new-m .i { width: 14px; height: 14px; }
.tile { position: relative; }
.new-tag { position: absolute; top: 6px; left: 6px; font-family: var(--f-mono); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; background: var(--love); color: #fff; pointer-events: none; }

/* sign-in and welcome from a friend's invite */
.signin .invited { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.signin .invited .face { width: 52px; height: 52px; font-size: 20px; border: 0; margin-top: -6px; }
.signin .invited h1 { font-size: 28px; font-stretch: 85%; }
.signin .invited .lead { margin-top: 6px; }
.invited-chip { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--love-soft); font-weight: 600; font-size: 13.5px; }

/* a shared pick */
.pickpage { min-height: 100%; display: grid; align-content: center; justify-items: center; text-align: center; gap: 12px; padding: 24px 16px 32px; }
.pickpage h1 { font-size: 34px; font-weight: 800; font-stretch: 80%; }
.pickpage .lead { font-size: 14px; }
.pickpage .btn { max-width: 320px; }
.pk-brand { margin: 0 0 12px; }
.pk-poster { width: 168px; aspect-ratio: 2 / 3; border-radius: 18px; overflow: hidden; background: linear-gradient(155deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; box-shadow: var(--card-shadow); }
.pk-poster img { width: 100%; height: 100%; object-fit: cover; }
.pk-poster .i { width: 56px; height: 56px; stroke-width: 1.5; }

/* "Start here": the first open's choice of decks */
.start { display: grid; gap: 12px; padding: 12px 0 8px; }
.start h1 { font-size: 30px; font-stretch: 85%; letter-spacing: -.01em; }
.st-tx { display: grid; gap: 3px; min-width: 0; }
.st-m { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-go { justify-self: start; min-height: 44px; }
.st-more { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.st-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; min-height: 64px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; }
.st-row .mosaic { width: 52px; border-radius: 10px; }
.st-row .mosaic.n0 > .i { width: 22px; height: 22px; }
.st-row .st-tx b { font-size: 14.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-all { justify-self: center; min-height: 44px; margin-top: 4px; }
/* the first open: what you like, then decks to join */
.likes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0; }
.like { min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; text-align: left; }
.like .i { width: 22px; height: 22px; flex: none; color: var(--ink-2); }
.like span { min-width: 0; overflow-wrap: anywhere; }
.like[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.like[aria-pressed="true"] .i { color: var(--love); }
.start .st-go.big { position: sticky; bottom: 10px; z-index: 2; box-shadow: 0 8px 22px rgba(18,32,26,.22); }
button.st-row { width: 100%; font: inherit; color: inherit; text-align: left; }
.st-row.choice[aria-pressed="true"] { border-color: var(--ink); }
.st-row .tick { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.st-row .tick .i { width: 16px; height: 16px; opacity: 0; }
.st-row[aria-pressed="true"] .tick { background: var(--love); border-color: var(--love); color: #fff; }
.st-row[aria-pressed="true"] .tick .i { opacity: 1; }

/* a deck's maker: how it does, totals only */
.stats .st-n { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.stats .st-n b { font-family: var(--f-display); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.stats .st-n span { color: var(--ink-2); font-size: 14px; }
.share-row { grid-template-columns: 44px 1fr; }
.share-bar { display: flex; height: 6px; margin: 6px 0 4px; border-radius: 3px; overflow: hidden; background: var(--surface-2); }
.share-bar i { display: block; height: 100%; }
.share-bar .b-love { background: var(--love); }
.share-bar .b-want { background: var(--want); }
.share-row .m b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* a moderator's review of a public deck */
.mod .sw { min-height: 44px; }
.mod select { min-height: 44px; }
.reviewed-mark { white-space: nowrap; }

/* ---------- a reason to come back tomorrow: Today's 10 and its streak,
   "did you watch it?", the taste card, badges ---------- */
.streak { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.streak .i { width: 19px; height: 19px; }
.streak.on { color: var(--ink); border-color: color-mix(in srgb, var(--want) 55%, var(--line)); background: var(--want-soft); }
.streak.on .i { color: var(--want); }
.streak.pop { animation: pop .55s cubic-bezier(.2,1.6,.4,1); }
.chip.daily .i { color: var(--want); }
.chip.daily[aria-pressed="true"] .i { color: var(--want); }

/* a want of a while ago, asked about */
.ask-q { margin: 0 0 2px; display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--want); }
.ask-q .i { width: 15px; height: 15px; }
.card.ask .band { padding-top: 13px; }
/* a card of the Feed or of Today's 10: the deck it comes from (a tap opens
   its page), and a discovery's Join */
.band .from { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); min-width: 0; }
.band .from .i { width: 13px; height: 13px; flex: none; }
.band .from a { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: inherit; text-decoration: none; padding: 8px 8px 8px 0; margin: -8px 0; }
.band .from a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band .from.disc a { color: var(--ink); font-weight: 600; }
.band .from.disc a .i { color: var(--want); }
.from-join, .from-joined { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; font-size: 12.5px; font-weight: 700; padding: 0 12px; min-height: 32px; }
.from-join { position: relative; border: 0; background: var(--ink); color: var(--surface); }
.from-join::after { content: ""; position: absolute; inset: -6px -4px; }
.from-joined { color: var(--ink-2); }
.from-join .i, .from-joined .i { width: 14px; height: 14px; }
/* the Feed's chip; Join beside a deck from a link */
.chip.feed .i { color: var(--love); }
.chip.feed[aria-pressed="true"] .i { color: var(--love); }
.chip-join { flex: none; min-height: 44px; margin-left: -4px; border: 1px dashed color-mix(in srgb, var(--love) 60%, var(--line)); background: var(--love-soft); color: var(--ink); border-radius: 999px; padding: 6px 13px 6px 10px; display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.chip-join .i { width: 15px; height: 15px; color: var(--love); }
.pad.asking .k-u { border-style: dashed; }

/* the taste card, offered in the flow */
.card.offer { background: #0A100E; color: #F4F8F6; }
.offer-pic { position: relative; flex: 1 1 0; min-height: 0; }
.offer-pic img { position: absolute; top: 16px; bottom: 0; left: 50%; transform: translateX(-50%); height: calc(100% - 16px); width: auto; max-width: calc(100% - 32px); aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.card.offer .band { padding-bottom: 16px; }
.card.offer .btns { margin-top: 8px; }
.card.offer .btn:not(.primary) { background: transparent; color: inherit; border-color: rgba(255,255,255,.28); }
.pad.offering { display: flex; align-items: center; justify-content: center; }
.pad .keep { max-width: 320px; }

/* Today's 10, done */
.done-mark.flame { background: linear-gradient(160deg, var(--want), var(--love)); box-shadow: 0 8px 24px color-mix(in srgb, var(--want) 45%, transparent); }
.done-mark.still { animation: none; }
.streak-line { margin: -4px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 19px; color: var(--want); }
.ten { display: grid; grid-template-columns: repeat(5, 46px); gap: 8px; margin: 4px 0; padding: 0; list-style: none; justify-content: center; }
.ten .lv i { background: var(--surface); color: var(--ink-2); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.ten .lv.a-r i { background: var(--love); color: #fff; }
.ten .lv.a-u i { background: var(--want); color: #fff; }
.ten .lv.a-l i { background: var(--pass); color: #fff; }
.ten .lv.a-d i { background: var(--nope); color: #fff; }

/* the taste card's sheet */
.taste-sheet .head, .sheet .head.plain { grid-template-columns: 1fr auto; }
.taste-pic { display: grid; place-items: center; padding: 0 16px; min-height: 200px; }
.taste-pic img { height: min(50dvh, 460px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; box-shadow: var(--card-shadow); }
.taste-wait .i { width: 32px; height: 32px; color: var(--ink-2); }
.taste-btns { padding: 14px 16px 4px; flex-wrap: nowrap; }
.taste-btns .btn { flex: 1; }

/* the profile: the taste card's row, badges */
.trow { width: 100%; margin-top: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.trow .fi { background: linear-gradient(160deg, var(--love), var(--want)); color: #fff; }
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.badge-t { display: grid; justify-items: center; text-align: center; gap: 5px; padding: 12px 6px 10px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.badge-t .bi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); border: 1.5px dashed var(--line); }
.badge-t .bi .i { width: 22px; height: 22px; }
.badge-t b { font-size: 13px; line-height: 1.15; }
.badge-t small { font-size: 11px; color: var(--ink-2); line-height: 1.2; font-variant-numeric: tabular-nums; }
.badge-t .bar { width: 70%; height: 5px; background: var(--surface); }
.badge-t .bar i { display: block; height: 100%; background: var(--want); border-radius: 3px; }
.badge-t.won { background: var(--love-soft); }
.badge-t.won .bi { background: var(--love); color: #fff; border: 0; box-shadow: 0 4px 14px color-mix(in srgb, var(--love) 35%, transparent); }
.badge-t.won small { color: var(--love); font-weight: 600; }

/* ---------- you vs everyone: a deck's "You in this deck", the profile's
   "You vs everyone" (versus-view.js) ---------- */
.vs { gap: 14px; }
.vs-wait { display: flex; gap: 10px; align-items: center; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.vs-wait .i { color: var(--want); width: 20px; height: 20px; }
.vs-m { display: grid; gap: 6px; }
.vs-n { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 14px; color: var(--ink-2); }
.vs-n .i { align-self: center; color: var(--love); }
.vs-n b { font-family: var(--f-display); font-size: 30px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.vs-n .vs-of { font-family: var(--f-display); font-size: 17px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vs-bar { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); }
.vs-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: linear-gradient(90deg, var(--want), var(--love)); transform-origin: left; animation: vs-grow .8s cubic-bezier(.2, .8, .2, 1) both; }
.vs-bar s { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); opacity: .7; }
.vs-l { margin: 0; font-size: 13px; color: var(--ink-2); }
.vs-l b { color: var(--ink); }
.vs-track { position: relative; height: 10px; margin: 8px 0 2px; border-radius: 5px; background: linear-gradient(90deg, color-mix(in srgb, var(--want) 70%, var(--surface-2)), var(--surface-2) 50%, color-mix(in srgb, var(--love) 70%, var(--surface-2))); }
.vs-dot { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--surface); border: 5px solid var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.25); animation: vs-pop .5s .25s cubic-bezier(.2, .8, .2, 1.4) both; }
.vs-ends { display: flex; justify-content: space-between; margin: 0; font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.vs-ends span { display: inline-flex; align-items: center; gap: 4px; }
.vs-row { display: grid; gap: 8px; }
.vs-row h3 { font-size: 15px; }
.vs-posters { display: grid; grid-template-columns: repeat(3, minmax(0, 96px)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.vs-posters li { display: grid; gap: 4px; align-content: start; min-width: 0; }
.vs-posters .pp { aspect-ratio: 2 / 3; }
.vs-t { font-size: 12.5px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.vs-posters small { font-size: 11.5px; color: var(--love); font-weight: 600; line-height: 1.2; }
.vs-posters small.rare { color: var(--want); }
.vs-early { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--want-soft); }
.vs-early .th, .vs-hl .th { width: 44px; height: 62px; border-radius: 8px; background: linear-gradient(155deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; overflow: hidden; }
.vs-early .th img, .vs-hl .th img { width: 100%; height: 100%; object-fit: cover; }
.vs-early div { display: grid; gap: 2px; min-width: 0; }
.vs-early b { font-size: 14px; }
.vs-early span { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-early > .i { color: var(--want); width: 22px; height: 22px; }

/* the profile: three highlights, then each type's meters */
.vs-hls { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 2px 16px 6px; list-style: none; scrollbar-width: none; }
.vs-hls::-webkit-scrollbar { display: none; }
.vs-hl { position: relative; flex: 0 0 min(78%, 300px); scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; min-height: 112px; padding: 14px 52px 14px 14px; border-radius: 18px; background: var(--surface-2); animation: vs-in .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 110ms); }
.vs-hl.arch, .vs-hl.early { background: var(--love-soft); }
.vs-hl.seen, .vs-hl.rare { background: var(--want-soft); }
.vs-hi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--love); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--love) 35%, transparent); }
.vs-hl.seen .vs-hi { background: var(--want); box-shadow: 0 4px 14px color-mix(in srgb, var(--want) 35%, transparent); }
.vs-hi .i { width: 22px; height: 22px; }
.vs-hx { display: grid; gap: 3px; min-width: 0; }
.vs-hx > b { font-family: var(--f-display); font-size: 24px; font-stretch: 85%; line-height: 1.05; }
.vs-hx p b { color: var(--ink); }
.vs-hx p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.vs-hx p small { display: block; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--love); }
.vs-share { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; background: var(--surface); }
.vs-type { display: grid; gap: 10px; padding: 12px 0 2px; border-top: 1px dashed var(--line); }
.vs-th { display: flex; align-items: center; gap: 8px; }
.vs-th > .i { color: var(--ink-2); }
.vs-th h3 { font-size: 16px; flex: 1; }
.vs-arch { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--love); color: #fff; font-weight: 700; font-size: 12.5px; }
@keyframes vs-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes vs-grow { from { transform: scaleX(0); } }
@keyframes vs-pop { from { transform: scale(0); } }
/* the retest's polish (step 26) */
.btn.wrap { white-space: normal; text-align: center; line-height: 1.25; min-height: 44px; }
.btn.wrap .i { flex: none; }
.err .free { display: block; margin-top: 8px; color: var(--ink-2); }
.err .free-hs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.err .free-hs .btn { min-height: 44px; color: var(--ink); }
.strip.recent .tile { flex: 0 0 84px; }
.rtile .ra { position: absolute; right: 5px; bottom: 5px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,.25); font-size: 13px; }
.rtile .ra .i { width: 14px; height: 14px; }
.rtile .ra-r { background: var(--love); color: #fff; }
.rtile .ra-u { background: var(--want); color: #241500; }
.rtile .ra-q { background: var(--surface); color: var(--ink-2); }
.fb.moment { background: var(--love); color: #fff; animation: moment .5s cubic-bezier(.2,.8,.3,1); }
.fb.moment .i.love, .fb.moment .i.want { color: #fff; }
.fb.moment .faces .face { border-color: var(--love); }
.fb.moment .fb-undo { background: #fff; color: var(--love); gap: 4px; }
.fb.moment .fb-undo .i { margin: 0; }
@keyframes moment { 0% { transform: scale(.92); } 55% { transform: scale(1.04); } 100% { transform: none; } }
.fb.moment.daily-moment { background: var(--want); color: #1B1300; }
.fb.daily-moment .fb-th.flame { background: #fff; color: var(--want); }
.fb.daily-moment .fb-undo { color: #7A4D00; }
#stack > .confetti { z-index: 5; }
@media (prefers-reduced-motion: reduce) { .fb.moment { animation: none; } }
.hint .panel .invited-chip { margin: 0 auto; }
/* makers together, the community runs its decks (step 27) */
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.mk-row, .q-row, .mq-row { grid-template-columns: 44px 1fr auto; min-height: 60px; }
.mk-row .face { width: 40px; height: 40px; font-size: 15px; border: 0; justify-self: center; }
.mk-row .iconbtn, .q-row .iconbtn { width: 44px; height: 44px; }
.q-row .acts { align-items: center; }
.q-note { font-style: italic; overflow-wrap: anywhere; }
.q-row .acts .btn { min-height: 44px; }
.mk-row .btn { min-height: 44px; }
.mk-pick { display: grid; gap: 8px; }
.queue { border-bottom-color: var(--line); }
.queue h2 { font-size: 19px; }
.suggest .sugg .row > .i { color: var(--love); }
.hidden-card .cr-main { border-color: var(--bad); border-style: dashed; }
.hidden-why { color: var(--bad); display: flex; gap: 4px; align-items: flex-start; }
.hidden-why .i { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.community { display: grid; gap: 10px; }
.wk-bars { display: grid; grid-template-columns: repeat(8, 1fr); align-items: end; gap: 5px; height: 48px; }
.wk-bars i { display: block; height: var(--h); min-height: 3px; border-radius: 4px 4px 2px 2px; background: var(--love); opacity: .85; }
.wk-bars i:last-child { opacity: 1; }
.wk-bars i.none { background: var(--surface-2); opacity: 1; }
.weeks { display: grid; gap: 6px; }
.report { display: grid; gap: 8px; justify-items: center; margin-top: 4px; }
.report .linkbtn { display: inline-flex; align-items: center; gap: 6px; }
.report .linkbtn .i { width: 15px; height: 15px; }
.report-q { margin: 0; font-weight: 600; }
.report-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.report-kinds .btn { min-height: 44px; justify-content: center; white-space: normal; line-height: 1.2; }
.report-note { width: 100%; }
.report-note input { width: 100%; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.report-note input::placeholder { color: var(--ink-2); }
.report-done { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--ink-2); font-size: 13.5px; }
.mq { gap: 12px; }
.mq-item { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mq-item:last-child { border-bottom: 0; }
.mq-row { color: inherit; }
.mq-said { display: flex; gap: 4px; align-items: center; color: var(--bad); }
.mq-said .i { width: 13px; height: 13px; }
.mq-acts { display: grid; gap: 8px; }
.mq-acts .seg button, .mq-acts .btn { min-height: 44px; }
.mq-mosaic { width: 44px; height: 52px; border-radius: 9px; }
.banner.ask { margin: 4px 0 0; background: var(--love-soft); }
.banner.ask > .i { color: var(--love); flex: none; margin-top: 2px; }
.banner.ask p { margin: 0 0 8px; }
.banner.ask .btn { min-height: 44px; }
.mk-row.pending { border-style: dashed; }
.mk-row.pending .face { opacity: .6; }
.mq-raise { margin: 0; font-size: 12.5px; color: var(--ink-2); }

/* step 30: makers, numbers and the rough edges */
.opt.way { grid-template-columns: 24px 1fr 20px; width: 100%; margin: 4px 0 6px; border-color: color-mix(in srgb, var(--love) 45%, var(--line)); }
.opt.way > .i:last-child { align-self: center; color: var(--ink-2); }
.ways-or { margin: 24px 0 8px; }
.like-box .like-list { gap: 6px; }
.like-row { grid-template-columns: 44px 1fr 18px; color: inherit; }
.like-row .mosaic.lk-pic { width: 44px; height: auto; border-radius: 9px; }
.like-row .mosaic.lk-pic.n0 > .i { width: 20px; height: 20px; }
.like-row > .i { color: var(--ink-2); width: 18px; height: 18px; }
.dh-title { display: flex; align-items: flex-start; gap: 8px; }
.dh-title h1 { flex: 1; min-width: 0; }
.dh-pen { flex: none; width: 44px; height: 44px; margin-top: 2px; }
.dh-pen .i { width: 18px; height: 18px; }
.dh-rename { flex: 1; display: grid; gap: 8px; }
.dh-rename input { font-size: 20px; font-weight: 700; }
.dh .eyebrow a.by { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; padding: 6px 0; }
.activity { margin: 4px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); display: grid; gap: 8px; }
.act-h { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; }
.act-h .i { width: 16px; height: 16px; flex: none; color: var(--ink-2); }
.act-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.act-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.act-list .face { width: 24px; height: 24px; font-size: 11px; }
.act-list small { color: var(--ink-2); font-size: 11.5px; white-space: nowrap; }
.tag.pin { background: var(--want-soft); color: var(--want); }
.tag.pin .i { width: 10px; height: 10px; vertical-align: -1px; margin-right: 2px; }
.crow { touch-action: pan-y; transition: transform .16s ease-out; }
.crow.swiping { transition: none; }
.crow.swiping .cr-main { background: color-mix(in srgb, var(--love) 10%, var(--surface)); border-color: color-mix(in srgb, var(--love) 50%, var(--line)); }
.swipe-hint { margin: 0 0 6px; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.swipe-hint .i { width: 14px; height: 14px; }
.toast .toast-undo { pointer-events: auto; margin: -8px -6px -8px 4px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 13px; }
.toast .toast-undo .i { width: 15px; height: 15px; }
.iconbtn[data-armed] { width: auto; min-width: 38px; height: auto; min-height: 38px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: normal; text-align: center; max-width: 150px; line-height: 1.2; }
.cp-name { padding: 4px 16px 0; }
.maker-h { display: flex; align-items: center; gap: 12px; padding: 16px 0 8px; }
.maker-h .face { width: 56px; height: 56px; font-size: 24px; flex: none; }
.maker-h h1 { font-size: 26px; }
.maker-h .note { margin: 2px 0 0; }
.vs-wait span { overflow-wrap: anywhere; }

/* ---------- Quadra's own accounts: sign-in, sign-up, codes, passkeys, security ---------- */
.signin .form.alt { gap: 10px; }
.signin .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; margin: -8px 0 0; font-size: 14px; }
.signin .links a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px; }
.signin .links span { color: var(--ink-2); display: inline-flex; align-items: center; }
.note.center, .signin.center { text-align: center; }
.signin.center { justify-items: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 12.5px; margin: 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.signin.up { align-content: start; gap: 18px; padding: max(20px, env(safe-area-inset-top)) 8px 24px; }
.signin.up .big-brand { font-size: 30px; gap: 10px; }
.signin.up .big-brand .mark { width: 18px; height: 24px; border-radius: 6px; box-shadow: 5px 2px 0 var(--want); }
.signin.up > h1, .acct h1 { font-size: 28px; font-stretch: 85%; }
.signin.up .subhead { padding: 0; }
.pw { position: relative; display: block; }
.pw input { padding-right: 52px; }
.pw .eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--ink-2); }
.acct { min-height: 100%; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 24px 8px; text-align: center; }
.acct .lead { max-width: 320px; }
.acct .btn.big { max-width: 340px; }
.acct #msg { width: 100%; max-width: 340px; }
.acct-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--love-soft); color: var(--love); }
.acct-ic .i { width: 32px; height: 32px; stroke-width: 1.8; }
.codes { list-style: none; margin: 0; padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; background: var(--surface-2); border-radius: 16px; width: 100%; max-width: 340px; counter-reset: code; text-align: left; }
.codes li { counter-increment: code; display: flex; gap: 8px; align-items: baseline; font-family: var(--f-mono); font-size: 14.5px; white-space: nowrap; }
.codes li::before { content: counter(code); color: var(--ink-2); font-size: 11px; min-width: 1.4em; text-align: right; }
.codes code { font-family: inherit; letter-spacing: .02em; }
.codes-btns { justify-content: center; }
.sec .codes-btns { justify-content: flex-start; }
#newcodes:not(:empty) { display: grid; gap: 10px; }
.codes-btns .btn, .sec .btns .btn { min-height: 44px; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ln { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 54px; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: 14px; }
.ln > .i { color: var(--ink-2); width: 20px; height: 20px; }
.ln-t { display: grid; min-width: 0; }
.ln-t b { font-size: 14px; overflow-wrap: anywhere; }
.ln-t small { font-size: 12px; color: var(--ink-2); }
.ln .iconbtn { border: 0; color: var(--ink-2); }
.ln .btn { min-height: 44px; }
.ln:not(:has(.iconbtn)) { padding-right: 14px; }
.mailrow { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.tag.ok { background: var(--surface-2); color: var(--ink); }
.tag .i { width: 10px; height: 10px; vertical-align: -1px; margin-right: 3px; }
.reauth { position: absolute; inset: 0; z-index: 30; background: var(--scrim); display: grid; align-items: end; }
.reauth .panel { background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow); }
.reauth h2 { font-size: 20px; }

/* a connector's pick (step 32): a search box inside a field, its finds under it */
.field-pick .search { margin-bottom: 0; }
.field-pick .search input { border: 0; border-radius: 0; background: none; padding: 10px 0; }
.field-pick .search input:focus { outline: none; }

/* the installed app (step 31): the offline page, the update line, the install hint */
.bare-app { grid-template-rows: 1fr; }
.offline .off-msg { display: grid; gap: 8px; }
.offline .off-msg > .i { width: 34px; height: 34px; color: var(--ink-2); }
.offline h1, .signin.bye h1 { font-size: 30px; font-stretch: 85%; }
.signin.bye .lead { margin-top: 8px; }
.update { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); background: var(--ink); color: var(--surface); border-radius: 999px; padding: 0 0 0 16px; font-size: 13.5px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.update > .i { width: 16px; height: 16px; }
.update-go { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 16px 0 4px; cursor: pointer; }
.inst-body { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 14px 20px 4px; }
.inst-icon { width: 64px; height: 64px; border-radius: 15px; }
.inst-body h2 { font-size: 22px; }
.inst-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; text-align: left; }
.inst-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 15px; }
.inst-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; color: var(--focus); flex: none; }
.inst-ic .i { width: 22px; height: 22px; }

/* privacy, and leaving (step 31) */
.privacy > .lead { padding: 2px 0 6px; }
.privacy .sec h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.privacy .sec h2 .i { color: var(--love); width: 20px; height: 20px; }
.privacy .sec p { margin: 0; }
.privacy a, .signin .note a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.btn.bad { border-color: var(--bad); background: var(--bad); color: var(--surface); }
.sheet.leave .body { gap: 12px; padding: 12px 16px 4px; }
.sheet.leave h2 { font-size: 22px; }
.sheet.leave p { margin: 0; }
