/* The screens not yet moved to the design system (docs/design/README.md): their own classes,
   on the tokens of tokens.css. The frame, the swipe screen and the details live in
   components.css (q- classes); a screen moves there whole, then its rules here go.
   Every symbol is a Lucide icon (principle 6), never an emoji. */

/* the taste card and the day's share draw on a canvas in these two */
@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; }

/* the older names, on the tokens: one typeface, the system's colours */
:root {
  --surface-2: var(--sunk); --pass: var(--meh); --bad: var(--danger); --bad-soft: var(--danger-soft);
  --shadow: var(--shadow-sheet); --card-shadow: var(--shadow-card);
  --f-display: var(--font-sans); --f-body: var(--font-sans); --f-mono: var(--font-sans);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; font-optical-sizing: auto; }
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; }

/* ---------- inside the frame (.q-app): a screen's scroll keeps a phone's width, centred ---------- */
.iconbtn { width: var(--hit); height: var(--hit); border-radius: 50%; border: 1px solid var(--line); background: var(--raised); display: grid; place-items: center; padding: 0; text-decoration: none; flex: none; }
.main { position: relative; min-height: 0; overflow: hidden; }
.fill { height: 100%; }
.scroll { height: 100%; overflow-y: auto; padding: var(--space-4) max(var(--space-4), calc((100% - 36rem) / 2)) var(--space-6); overscroll-behavior: contain; }

/* ---------- 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(--accent); background: var(--accent); color: var(--on-accent); }
.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(--accent); }
.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 ---------- */

.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; }
.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; }
.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; }
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: var(--screen); 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: var(--space-4); 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; justify-content: center; }
.sheet-wrap.on { opacity: 1; }
.sheet { background: var(--surface); width: 100%; max-width: 36rem; 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 .hint-line { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); text-align: center; text-wrap: balance; }
.hint .hint-line 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 ---------- */
.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 .bar { grid-column: 1 / -1; }
.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-size: 54px; }

@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; }
.pv .note .i { width: 13px; height: 13px; vertical-align: -2px; }
/* "a deck like this already exists" (not .like: the first open's type chips 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; }

.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; }
.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; }

/* 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 */
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(--accent); border-color: var(--accent); color: var(--on-accent); }
.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 ---------- */

/* 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 */
.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)); }
.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; }
.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); }
.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); }
#newcodes:not(:empty) { display: grid; gap: 10px; }
.sec .btns .btn { min-height: 44px; }
.tag.ok { background: var(--surface-2); color: var(--ink); }
.tag .i { width: 10px; height: 10px; vertical-align: -1px; margin-right: 3px; }

/* 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 { font-size: 30px; font-stretch: 85%; }
.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; }
@media (min-width: 600px) { .update { bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); } }
.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) */
.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; }

/* a deck's page: how its cards swipe, in a 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; }

/* ---------- + (post): one search, the card's look, its deck (SPEC §4, amended 2026-11-11) ---------- */
.post { display: grid; gap: var(--space-4); max-width: 560px; margin: 0 auto; padding: var(--space-4) var(--space-4) var(--space-6); }
.post__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); align-items: center; }
.post__q { display: flex; align-items: center; gap: var(--space-2); padding-block: 0; }
.post__q > .q-i { flex: none; width: 20px; height: 20px; color: var(--ink-2); }
.post__q input { flex: 1; min-width: 0; min-height: var(--hit); border: 0; background: none; color: inherit; font: inherit; outline: none; }
.post__cam { border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); cursor: pointer; }
.post__found:empty { display: none; }
.post__hit, .post__make { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.post__hit > span:nth-child(2), .post__make > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.post__make .q-thumb { background: var(--sunk); color: var(--ink); }
.post__more { display: flex; justify-content: center; }
.post__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2); align-items: center; }
.post__title { font: 650 var(--t-title-3)/1.2 var(--font-sans); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post__preview { position: relative; width: min(64vw, 260px); aspect-ratio: 2 / 3; justify-self: center; }
.post__preview .q-card { box-shadow: var(--shadow-card); }
.post__from { position: absolute; z-index: 4; top: var(--space-3); right: var(--space-3); padding: 2px 8px; border-radius: var(--radius-round);
  background: var(--poster-chip); color: var(--on-poster); font: 600 var(--t-label)/1.4 var(--font-sans); }
.post__label { font: 600 var(--t-label)/1.3 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: calc(-1 * var(--space-2)); }
.post__looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.post__look { display: grid; gap: 4px; justify-items: center; padding: 0; border: 0; background: none; color: var(--ink-2); font: 500 var(--t-label)/1.3 var(--font-sans); cursor: pointer; }
.post__lookpic { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius-m);
  border: 2px solid transparent; background: var(--sunk); color: var(--ink-2); }
.post__lookpic > img, .post__lookpic > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post__look[aria-checked="true"] { color: var(--ink); font-weight: 700; }
.post__look[aria-checked="true"] .post__lookpic { border-color: var(--accent); }
.post__new { display: grid; gap: var(--space-2); }
.post__new .q-row__meta { display: flex; align-items: center; gap: 6px; }
.post__new .q-row__meta .q-i { width: 14px; height: 14px; }
.post__shot { position: relative; display: grid; place-items: center; height: 140px; overflow: hidden; border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-m); color: var(--ink-2); cursor: pointer; }
.post__shot > .q-i { width: 28px; height: 28px; }
.post__shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post__shot--on { border-style: solid; }
.add-look { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: var(--t-small); color: var(--ink-2); }
.post--card #pgo { position: sticky; bottom: var(--space-3); box-shadow: var(--shadow-1); }
.post__preview { width: auto; height: min(40dvh, 360px); }

/* ---------- tags (SPEC §3, amended 2026-11-11): chips, a deck's row, the makers' sheet, a tag's page ---------- */
.q-chips--wrap { flex-wrap: wrap; overflow: visible; }
.q-chip--tag { text-decoration: none; color: var(--ink); min-height: 36px; padding: 4px 12px 4px 10px; }
.q-chip--tag .q-i { width: 16px; height: 16px; color: var(--ink-2); }
.q-chip--tag[aria-disabled="true"] { opacity: 0.7; }
.dh-tags { margin-top: var(--space-2); }
.dh-tags .q-chip { min-height: 36px; }
.tagsheet .body { gap: var(--space-3); padding-bottom: var(--space-2); }
.tagsheet h2 { font: 650 var(--t-title-3)/1.2 var(--font-sans); margin: var(--space-2) 0 0; }
.tagsheet .tag-offer { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.tagsheet .tag-offer > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.q-factags { display: grid; gap: var(--space-2); }
.q-facts__label { margin: 0; font: 600 var(--t-label)/1.3 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.tagp { display: grid; gap: var(--space-3); max-width: 1100px; margin: 0 auto; padding: var(--space-5) var(--space-4) var(--space-7); }
.tagp > .eyebrow { display: flex; align-items: center; gap: 6px; margin: 0; }
.tagp h1 { font: 800 var(--t-display)/0.95 var(--font-sans); font-stretch: 75%; text-transform: uppercase; margin: 0; overflow-wrap: anywhere; }
.tagp > .q-btn { justify-self: start; }
.tagp .dtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-4); margin: var(--space-3) 0 0; padding: 0; list-style: none; }

/* ---------- Find's stack of decks (SPEC §1, amended 2026-11-11): a deck is never a card ---------- */
.find { display: grid; gap: var(--space-3); max-width: 420px; margin: var(--space-3) auto var(--space-5); }
.q-decks { position: relative; height: min(52dvh, 440px); touch-action: pan-y; }
.q-deck { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; gap: var(--space-3); padding: var(--space-4);
  border-radius: var(--radius-l); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform var(--dur-ui) var(--ease-ui), opacity var(--dur-ui) var(--ease-ui); cursor: grab; user-select: none; }
.q-deck--next { transform: translateY(10px) scale(0.96); opacity: 0.85; pointer-events: none; }
.q-deck--dragging { transition: none; cursor: grabbing; }
.q-deck--joined { transform: translateX(120%) rotate(10deg) !important; opacity: 0; }
.q-deck--passed { transform: translateX(-120%) rotate(-10deg) !important; opacity: 0; }
.q-deck[data-lean="join"] { border-color: var(--accent); }
.q-deck[data-lean="pass"] { border-color: var(--line-strong); }
/* a fan of its cards, on a sheet: never one picture filling the screen */
.q-deck__fan { position: relative; display: grid; place-items: center; min-height: 0; }
.q-deck__pic { position: absolute; width: 46%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius-m); box-shadow: var(--shadow-1);
  border: 2px solid var(--raised); }
.q-deck__pic--0 { transform: translateX(-34%) rotate(-9deg); }
.q-deck__pic--1 { transform: translateX(34%) rotate(9deg); }
.q-deck__pic--2 { transform: translateY(-4%) rotate(-2deg); z-index: 1; }
.q-deck__pic--3 { transform: translateY(6%) rotate(3deg); z-index: 2; }
.q-deck__none { display: grid; place-items: center; width: 46%; aspect-ratio: 2 / 3; border-radius: var(--radius-m); background: var(--sunk); color: var(--ink-2); }
.q-deck__none .q-i { width: 40px; height: 40px; }
.q-deck__info { display: grid; gap: 4px; }
.q-deck__kind { display: flex; align-items: center; gap: 6px; margin: 0; font: 600 var(--t-label)/1.3 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.q-deck__kind .q-i { width: 14px; height: 14px; }
.q-deck__title { font: 800 var(--t-title-1)/1 var(--font-sans); font-stretch: 75%; text-transform: uppercase; margin: 0; overflow-wrap: anywhere; }
.q-deck__by { margin: 0; font-size: var(--t-small); color: var(--ink-2); }
.q-deck__tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 0; }
.q-decks__pad { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.q-chip--new { text-decoration: none; color: var(--ink-2); border-style: dashed; }
.maker-h .q-btn { margin-top: var(--space-2); }

/* ---------- groups and tonight (SPEC §7, amended 2026-11-11) ---------- */
.q-toggle { display: flex; align-items: center; gap: var(--space-3); min-height: var(--hit); font-size: var(--t-body); cursor: pointer; }
.q-toggle input { width: 22px; height: 22px; accent-color: var(--accent); }
.g-faces { display: inline-flex; }
.g-faces > * + * { margin-left: -10px; }
.g-faces .face, .g-faces > span { box-shadow: 0 0 0 2px var(--raised); border-radius: 50%; }
.g-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.g-row > span:nth-child(2), .group .q-row > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.g-new { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.group, .tonight { display: grid; gap: var(--space-4); max-width: 640px; margin: 0 auto; padding: var(--space-4) var(--space-4) var(--space-7); }
.g-head { display: grid; justify-items: start; gap: var(--space-2); }
.g-head h1, .tonight h1 { font: 800 var(--t-display)/0.95 var(--font-sans); font-stretch: 75%; text-transform: uppercase; margin: 0; overflow-wrap: anywhere; }
.g-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.g-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.g-poster { display: grid; gap: 4px; }
.g-pic { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius-m); background: linear-gradient(155deg, var(--c1), var(--c2)); }
.g-pic > img, .g-pic > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-t { font: 600 var(--t-small-strong)/1.25 var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tonight > .eyebrow { display: flex; align-items: center; gap: 6px; margin: 0; }
.t-modes { display: grid; gap: var(--space-3); }
.t-mode { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); align-items: center; padding: var(--space-4); text-align: left; font: inherit;
  border: 1.5px solid var(--line); border-radius: var(--radius-l); background: var(--raised); color: var(--ink); cursor: pointer; }
.t-mode > span { display: grid; gap: 2px; }
.t-mode small { color: var(--ink-2); font-size: var(--t-small); }
.t-mode[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.t-mode:disabled { opacity: var(--disabled); cursor: default; }
.tv-link h2 { display: flex; align-items: center; gap: var(--space-2); }

/* ---------- moments' icons, what landed, duels (SPEC §7, amended 2026-11-11) ---------- */
.m-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.m-react { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 6px; border-radius: var(--radius-round); background: var(--sunk);
  font: 600 var(--t-label)/1.3 var(--font-sans); }
.m-react .q-i { width: 14px; height: 14px; color: var(--love); }
.m-bar .q-iconbtn { width: 32px; height: 32px; }
.m-icons { display: inline-flex; gap: 2px; }
.landed { grid-template-columns: 44px minmax(0, 1fr); }
.landed > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.duel { display: grid; gap: var(--space-2); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.duel .eyebrow { margin: 0; }
.d-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; }
.d-side b { display: block; font: 800 var(--t-display)/1 var(--font-sans); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.d-side small { color: var(--ink-2); }
.d-vs { color: var(--ink-2); font-weight: 600; }
.d-ask, .d-new { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.d-new select { flex: 1; min-width: 160px; }


/* ---------- a deck's badges on You (SPEC §5, amended 2026-11-11) ---------- */
.deck-badges { gap: var(--space-3); }
.deck-b { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
.db-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; color: inherit; text-decoration: none; }
.db-head > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.db-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-2); }
.db { display: grid; gap: 2px; justify-items: start; padding: var(--space-2); border-radius: var(--radius-m); background: var(--sunk); color: var(--ink-2); }
.db .bi { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-round); background: var(--line); }
.db .bi .q-i { width: 16px; height: 16px; }
.db b { font: 700 var(--t-label)/1.25 var(--font-sans); color: var(--ink); }
.db small { font-size: var(--t-label); line-height: 1.3; }
.db.won .bi { background: var(--love); color: var(--on-love); }
.db.wait { opacity: .7; }


/* ---------- You: a type's page, one's map, one's year (SPEC §13, amended 2026-11-11) ---------- */
.tcount .tw { color: var(--ink); font-weight: 600; }
.tcount .tw:empty { display: none; }
.you-head { display: flex; gap: var(--space-3); align-items: center; margin: var(--space-3) 0 var(--space-4); }
.you-head h1 { margin: 0; }
.you-head.year { display: grid; gap: var(--space-1); }
.you-head .eyebrow { margin: 0; }
.you-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-round); background: var(--sunk); }
.you-ic .q-i { width: 26px; height: 26px; }
.you-word { margin: 2px 0 0; color: var(--ink-2); font-weight: 600; }
.decades { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.decades li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--space-2); align-items: center; }
.decades .bar { height: 10px; border-radius: var(--radius-round); background: var(--sunk); overflow: hidden; }
.decades .bar i { display: block; height: 100%; background: var(--love); border-radius: inherit; }
.decades .dn { font-variant-numeric: tabular-nums; font-weight: 600; }
.decades .dh { display: inline-flex; align-items: center; gap: 2px; color: var(--love); }
.decades .dh .q-i { width: 13px; height: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-n { margin-left: 6px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mymap { display: block; width: 100%; height: auto; border-radius: var(--radius-m); }
.m-sea { fill: var(--sunk); }
.m-grid line { stroke: var(--line); stroke-width: .6; }
.m-dot { stroke: var(--surface); stroke-width: 1.2; cursor: pointer; }
.m-dot.on { stroke: var(--ink); stroke-width: 2; }
.m-love, .map-key .m-love { fill: var(--love); background: var(--love); }
.m-like, .map-key .m-like { fill: var(--love-ink); background: var(--love-ink); opacity: .75; }
.m-want, .map-key .m-want { fill: var(--want); background: var(--want); }
.m-no, .map-key .m-no { fill: var(--nope); background: var(--nope); }
.map-key { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: var(--t-label); color: var(--ink-2); }
.map-key li { display: inline-flex; align-items: center; gap: 6px; }
.map-key .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.map-name { min-height: 1.4em; }
.year-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); text-align: center; }
.year-n b { display: block; font: 800 var(--t-display)/1 var(--font-sans); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.year-n small { color: var(--ink-2); }

/* a language a native speaker has not read yet (SPEC §13) */
.fb-th.fb-icon { display: grid; place-items: center; color: var(--love); background: var(--love-soft); }

/* a deck from a tag in two steps: a name, a deck to start from (Tom, 2026-11-12) */
.tag-new { display: grid; gap: var(--space-3); padding: var(--space-3) 0; }
.tag-from { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-2); min-width: 0; }
.tag-from__one { grid-template-columns: auto 44px minmax(0, 1fr); align-items: center; cursor: pointer; }
.tag-from__one > span:last-child { display: grid; gap: 2px; min-width: 0; }
.tag-from__one:has(input:checked) { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-m); }

/* ---------- what to swipe: the stack's name, a sheet to switch (Tom's pick, 2026-11-12) ---------- */
.q-switch { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px; min-height: var(--hit); padding: 4px 6px; margin-left: -6px;
  border: 0; background: none; color: var(--ink); font: 800 var(--t-title-3, 20px)/1.15 var(--font-sans); font-stretch: 85%; cursor: pointer; text-align: left; border-radius: var(--radius-m); }
.q-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.q-switch .q-i { flex: none; width: 20px; height: 20px; }
.q-switch .q-i:first-child { color: var(--love); }
.q-switch__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-switch .q-chip__count { flex: none; font: 500 var(--t-label)/1 var(--font-sans); color: var(--ink-2); font-stretch: 100%; }
.q-switcher { position: fixed; inset: 0; z-index: 60; background: rgba(10, 10, 12, .45); display: grid; align-items: end; }
.q-switcher__sheet { background: var(--surface); border-radius: var(--radius-l) var(--radius-l) 0 0; max-height: min(86vh, 760px); overflow: auto; outline: none;
  padding: var(--space-2) max(16px, env(safe-area-inset-right, 0px)) calc(var(--space-5) + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: grid; gap: var(--space-3); width: 100%; max-width: 640px; justify-self: center; transform: translateY(16px); opacity: 0; transition: transform .2s var(--ease-ui, ease), opacity .2s; }
.q-switcher.on .q-switcher__sheet { transform: none; opacity: 1; }
.q-switcher .grab { width: 40px; height: 5px; border-radius: 5px; background: var(--line-strong); justify-self: center; }
.q-switcher__head { display: flex; justify-content: space-between; align-items: center; }
.q-switcher__head h2 { margin: 0; font: 800 var(--t-title-2, 24px)/1.1 var(--font-sans); font-stretch: 80%; }
.q-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: var(--hit); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--raised); }
.q-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); outline: none; }
.q-search:focus-within { border-color: var(--accent); }
.q-switcher__list { display: grid; gap: var(--space-3); }
.q-switcher__h { margin: 0; font: 650 var(--t-label)/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.q-switcher__rows { display: grid; gap: 4px; }
.q-stackrow-wrap { display: flex; gap: var(--space-2); align-items: center; }
/* the rows keep .q-chip for the swipe page's code; scoped to the switcher, they outrank
   .q-chip (components.css loads after this file): full width, never a scroll sideways (Tom, 2026-11-12) */
.q-switcher .q-stackrow { flex: 1 1 auto; width: 100%; min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; text-align: left;
  padding: 6px; border: 0; border-radius: var(--radius-m); background: none; color: var(--ink); font: 600 var(--t-body, 16px)/1.25 var(--font-sans); text-decoration: none; cursor: pointer; white-space: normal; min-height: 56px; }
.q-switcher .q-stackrow:hover { background: var(--sunk); }
.q-switcher .q-stackrow[aria-pressed="true"] { background: var(--sunk); border-color: transparent; color: var(--ink); box-shadow: inset 3px 0 0 var(--love); }
.q-switcher .q-stackrow[aria-pressed="true"] .q-i { color: inherit; }
.q-switcher .q-stackrow[aria-pressed="true"] .q-chip__count { color: var(--ink-2); opacity: 1; }
.q-stackrow__cov { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1, var(--sunk)), var(--c2, var(--line))); color: #fff; }
.q-stackrow__cov img { width: 100%; height: 100%; object-fit: cover; }
.q-chip--new .q-stackrow__cov { background: var(--sunk); color: var(--ink); }
.q-stackrow__text { display: grid; gap: 4px; min-width: 0; }
.q-switcher .q-stackrow .q-chip__name { max-width: none; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-stackrow__meta { font: 500 var(--t-label)/1.2 var(--font-sans); color: var(--ink-2); }
.q-stackrow__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; max-width: 200px; }
.q-stackrow__bar i { display: block; height: 100%; background: var(--love); border-radius: inherit; }
.q-switcher .q-stackrow .q-chip__count { white-space: nowrap; }
.q-switcher__list, .q-switcher__rows, .q-stackrow-wrap { min-width: 0; }
.q-switcher__sheet { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { .q-switcher__sheet { transition: none; } }

/* ---------- you, as a stack of cards (Tom's picks, 2026-11-12; design rule 25) ---------- */
.youcards { display: grid; gap: var(--space-2); }
.you-stack { position: relative; height: min(58vh, 480px); }
.you-pad { justify-content: center; }
.q-you__line { white-space: normal; }
.you-kept { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.you-kept__one { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--raised); }
.you-kept__ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--love-soft); color: var(--love); }
.you-kept__tx { display: grid; gap: 2px; min-width: 0; }
.you-kept__tx small { color: var(--ink-2); }
.maker-stack .you-stack { height: min(48vh, 400px); }
/* the cards that are not things (Tom's pick, 2026-11-12: the Wrapped look): two glows of the
   card's pair over a deep ground, the number huge, a sticker, small tilted posters; the arrival */
.q-card.q-card--you { background: radial-gradient(120% 85% at 6% 0%, var(--c1), transparent 62%), radial-gradient(120% 95% at 100% 100%, var(--c2), transparent 62%), #120E1E; } /* components.css loads after this file */
.q-card--you .q-you__ground { grid-area: 1 / 1; background: radial-gradient(90% 60% at 90% 18%, rgba(255,255,255,.10), transparent 70%); }
.q-card--you .q-card__info { align-self: stretch; display: flex; flex-direction: column; gap: 8px; padding: var(--space-5); color: #fff; position: relative; z-index: 2; }
.q-you__eyebrow { margin: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font: 650 var(--t-label)/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; opacity: .88; max-width: 62%; }
.q-you__eyebrow .q-i { width: 16px; height: 16px; flex: none; }
.q-you__words { display: grid; gap: 8px; justify-items: start; }
.q-you__big { margin: 0; font: 800 clamp(64px, 22vw, 108px)/.86 var(--font-sans); font-stretch: 70%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.q-you__head { margin: 0; font: 800 clamp(24px, 7.4vw, 34px)/1.02 var(--font-sans); font-stretch: 75%; text-wrap: balance; }
.q-you__head--loud { font-size: clamp(40px, 13vw, 62px); line-height: .9; letter-spacing: -.01em; font-stretch: 70%; }
.q-you__sticker { margin: 2px 0 0; background: #FFD166; color: #141414; font: 800 var(--t-label)/1.15 var(--font-sans); padding: 7px 10px; border-radius: 9px;
  transform: rotate(-3deg); box-shadow: 0 3px 0 rgba(0,0,0,.28); max-width: 100%; }
.q-you__line { margin: 0; font: 500 var(--t-body)/1.35 var(--font-sans); opacity: .9; max-width: 30ch; white-space: normal; }
.q-you__fig { padding-top: var(--space-2); width: 100%; max-width: 260px; }
.q-you__posters { position: absolute; top: 46px; right: 16px; width: 160px; height: 130px; z-index: 1; pointer-events: none; }
.q-you__poster { position: absolute; top: calc(var(--i) * 10px); right: calc(var(--i) * 42px); width: 68px; aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden;
  transform: rotate(var(--r)); box-shadow: 0 10px 22px rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.9); background: #2A2340; }
.q-you__poster img, .q-you__poster svg { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes q-you-arrive { from { translate: 0 22px; scale: .94; } to { translate: 0 0; scale: 1; } }
@keyframes q-you-glow { 0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); } 45% { box-shadow: 0 0 0 10px rgba(255, 209, 102, .4); } 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); } }
.q-card.q-card--you.q-you--arrive { animation: q-you-arrive .6s cubic-bezier(.2, .8, .3, 1), q-you-glow 1.1s ease-out; }
@media (prefers-reduced-motion: reduce) { .q-card.q-card--you.q-you--arrive { animation: none; } }
.q-fig { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- changing one's mind, as cards (Tom, 2026-11-12; design rule 25) ---------- */
.rethink { position: absolute; inset: 0; z-index: 45; background: var(--ground); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: var(--space-3) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); gap: var(--space-2); opacity: 0; transition: opacity .2s; }
.rethink.on { opacity: 1; }
.rethink__head { display: flex; align-items: center; gap: var(--space-2); }
.rethink__head h2 { flex: 1; min-width: 0; margin: 0; font: 800 var(--t-title-3)/1.15 var(--font-sans); font-stretch: 85%; }
.rethink__n { color: var(--ink-2); font: 600 var(--t-label)/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.rethink__stack { position: relative; min-height: 0; }
.rethink__foot { display: flex; justify-content: center; }
.rethink__end { grid-row: 2 / -1; display: grid; place-content: center; justify-items: center; gap: var(--space-3); color: var(--ink-2); }
.rethink__end p { display: inline-flex; gap: 6px; align-items: center; margin: 0; font: 600 var(--t-body)/1.3 var(--font-sans); }
.q-card__said { margin: 0 0 4px; display: inline-flex; align-self: start; justify-self: start; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-round);
  background: var(--poster-chip); color: var(--on-poster); font: 650 var(--t-label)/1.2 var(--font-sans); }
.q-card__said .q-i { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .rethink { transition: none; } }

/* ---------- You, calm (Tom's picks, 2026-11-12): your cards, your types, your decks, one line ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.you2__cover { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-l); overflow: hidden; background: linear-gradient(155deg, var(--c1), var(--c2)); }
.you2__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.you2__line { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-1); border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 var(--t-body)/1.2 var(--font-sans); }
.you2__line span { flex: 1; }
.you2__line b { font-variant-numeric: tabular-nums; }
.you2__line .q-i { color: var(--ink-2); }
.deck-badgecards .you-stack { height: min(48vh, 400px); }

/* ---------- Friends, calm (Tom's picks, 2026-11-12): moments, faces, groups, one line ---------- */
.fr2, .fp2 { display: grid; gap: var(--space-5); padding-bottom: var(--space-6); }
.fr2 .dl-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.fr2__inv { position: relative; }
.fr2__nd { position: absolute; right: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--love); box-shadow: 0 0 0 2px var(--surface); }
.fr2__moments .you-stack, .fp2__deck .you-stack { height: min(58vh, 480px); }
.you-below { display: flex; justify-content: center; min-height: 0; }
.you-below:empty { display: none; }
.fr2__people h2, .fr2__groupsec h2 { margin: 0 0 var(--space-3); font: 800 var(--t-title-3)/1.15 var(--font-sans); font-stretch: 85%; }
.fr2__faces { list-style: none; margin: 0; padding: 6px 2px; display: flex; gap: var(--space-3); overflow-x: auto; scrollbar-width: none; }
.fr2__faces::-webkit-scrollbar { display: none; }
.fr2__face { display: grid; justify-items: center; gap: 4px; width: 76px; text-decoration: none; color: var(--ink); text-align: center; }
.fr2__face .face { width: 58px; height: 58px; font-size: 22px; border: 0; }
.fr2__face.is-new .face { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--love); }
.fr2__face b { font: 700 var(--t-label)/1.2 var(--font-sans); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr2__face small { font: 500 var(--t-label)/1.1 var(--font-sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fr2__groups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.fr2__gitem { display: grid; gap: 6px; min-width: 0; }
.fr2__group { position: relative; aspect-ratio: 1; border-radius: var(--radius-l); display: grid; place-items: center; background: linear-gradient(155deg, var(--c1), var(--c2));
  border: 0; color: #fff; text-decoration: none; cursor: pointer; }
.fr2__group .face { width: 34px; height: 34px; font-size: 13px; border: 2px solid rgba(255,255,255,.9); }
.fr2__group--new { background: var(--sunk); color: var(--ink); border: 1.5px dashed var(--line-strong); }
.fr2__group--new .q-i { width: 26px; height: 26px; }
.fr2__dots { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.fr2__dots i { width: 9px; height: 9px; border-radius: 50%; background: #FFD166; box-shadow: 0 0 0 2px rgba(0,0,0,.25); display: block; }
.fr2__gname { font: 600 var(--t-label)/1.25 var(--font-sans); color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fr2-sheet .sheet { display: grid; gap: var(--space-4); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.fp2 .subhead { display: flex; align-items: center; gap: var(--space-3); }
.fp2 .subhead .who { flex: 1; min-width: 0; }
.fp2 .subhead h1 { margin: 0; }
.fp2__menu { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end; }

/* ---------- the switcher anywhere (design rule 26), a stack's end (Tom, 2026-11-12) ---------- */
.q-stack.you-stack.you-stack--ended { display: none; }
.you-end { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-4); text-align: center;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-l); color: var(--ink); }
.you-end p { margin: 0; font: 700 var(--t-body, 16px)/1.3 var(--font-sans); display: block; }
.you-end__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--love-soft, var(--sunk)); color: var(--love); }
.you-end__ic .q-i { width: 26px; height: 26px; }
.you-end__acts { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.fr2__find { width: 100%; font: inherit; color: var(--ink-2); cursor: pointer; text-align: left; }
.fr2__find span { flex: 1; }
.fp2__name { margin: 0; }
.fp2 .fp2__switch { flex: none; margin-left: -6px; font: inherit; color: inherit; background: none; border: 0; border-radius: var(--radius-m); max-width: 100%; }
.fp2 .fp2__switch .q-switch__name { font: inherit; }
.q-switcher .q-stackrow__cov--face { background: none; }
.q-switcher .q-stackrow__cov--face .face { width: 44px; height: 44px; font-size: 17px; border: 0; }
.q-switcher .q-stackrow--act .q-stackrow__cov { background: var(--love-soft, var(--sunk)); color: var(--love); }

/* the pad of a card that is not a thing: its own icons, quiet colours, the act in the accent */
.q-answer.q-answer--act .q-answer__dot { color: var(--ink); width: var(--hit-answer); height: var(--hit-answer); margin: 0; }
.q-answer.q-answer--act .q-answer__dot .q-i { width: 22px; height: 22px; fill: none; }
.q-answer.q-answer--act.q-answer--u .q-answer__dot { color: var(--love-ink); }
.q-answer.q-answer--act.q-answer--hot .q-answer__dot { background: var(--sunk); border-color: currentColor; color: inherit; }
/* one picture on a card: bigger, it is the card's thing */
.q-you__posters--one { width: 170px; height: 220px; }
.q-you__posters--one .q-you__poster { width: 138px; top: 0; right: 4px; --r: -6deg; }
.you-below .m-bar--open { justify-content: center; }
.you-below .m-bar .q-iconbtn { width: var(--hit); height: var(--hit); }

/* the line after a yes (L5's demo tour): its sentence keeps the room; on a phone "Let's do it" is its icon */
@media (max-width: 520px) {
  .fb.moment .fb-act { padding: 0 11px; }
  .fb.moment .fb-act .fb-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* the switcher's button is not the settings toggle (components.css's .q-switch, loaded after this file):
   its chevron stays by its name on a wide screen (L5's demo tour) */
button.q-switch { display: inline-flex; justify-content: flex-start; flex: 0 1 auto; max-width: 100%; }
/* a new version waiting: said at the top, never over the answers (L5's demo tour) */
.update, .update[id] { top: calc(var(--space-3) + env(safe-area-inset-top, 0px)); bottom: auto; }
@media (min-width: 600px) { .update[id] { top: calc(var(--space-4) + env(safe-area-inset-top, 0px)); bottom: auto; } }
/* the map card's land (Tom's pick: the coastlines' map) */
.q-mapfig { display: block; width: 100%; height: auto; border-radius: 12px; background: rgba(255,255,255,.06); }
.q-mapfig__land { fill: rgba(255,255,255,.22); }
.q-mapfig__lakes { fill: #17122A; }

/* L5's re-tour (2026-11-12): a row that scrolls sideways (faces, types) never widens its page; the line
   after a yes may take two lines, growing up over the card's foot, never cut */
.fr2, .fp2 { grid-template-columns: minmax(0, 1fr); }
.fr2 > *, .fp2 > * { min-width: 0; }
.fb.moment { height: auto; min-height: 44px; align-self: end; padding-block: 4px; }
.fb.moment .fb-tx > b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; }

/* L5's tour, second batch: a group's cover; a request's face;
   the Feed's news on two lines; room under + Post's sticky button; You's types wrap */
.fr2__gfaces { display: flex; align-items: center; }
.fr2__gfaces .face { width: 30px; height: 30px; font-size: 12px; border: 2px solid rgba(255,255,255,.9); }
.fr2__gfaces .face + .face { margin-left: -9px; }
.fr2__gmore { margin-left: 4px; font: 700 var(--t-label)/1 var(--font-sans); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.q-you__person { position: absolute; top: 56px; right: 22px; z-index: 1; }
.q-you__person .face { width: 132px; height: 132px; font-size: 54px; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 10px 22px rgba(0,0,0,.4); }
.fb.news { height: auto; min-height: 44px; align-self: end; padding-block: 4px; }
.fb.news .fb-tx > b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; }
.post--card { padding-bottom: calc(var(--space-6) + var(--hit)); }

/* L5's tour, item 21: a group's titles take two lines before they are cut ("Santa Justa L…") */
.g-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
