/* Hallmark · custom: paper slips party game · genre: playful · theme: custom (by request: user named the brief's direction) · posture: restrained · surface: paper · hero: split, headline left, live example right · nav: wordmark only · footer: one line · signature: the answer slips whose author stamps flip over at the reveal · v1.1.0 */
/* critique · P4 a guessing game should feel like passing folded notes, not a dashboard · H4 one question, one action per screen · E4 · S4 slips + stamps belong to this game only · R4 one accent, player colours only on avatars · V4 */
/* Hallmark · waive 38iii · one highlighter stroke on one word, once, in the hero only · the founder's brief stresses REALLY in the headline and a marker stroke is how friends would underline it */

:root {
  --paper: #f4efe6;
  --paper-deep: #ebe3d4;
  --card: #fffdf8;
  --ink: #1d1b17;
  --ink-soft: #5b5547;
  --line: #ded4c2;
  --line-strong: #c7bba4;
  --signal: #c9371c;
  --signal-press: #a92d16;
  --on-signal: #fffaf2;
  --avatar-ring: rgb(255 253 248 / 0.35);
  --tray-shadow: rgb(29 27 23 / 0.35);
  --ok: #24724a;
  --ok-wash: #e2f0e6;
  --wrong: #8f3a28;
  --wash: #f9f5ee;
  --scrim: rgb(29 27 23 / 0.45);
  --glass: rgb(244 239 230 / 0.82);
  --shadow-sm: 0 1px 0 rgb(29 27 23 / 0.06), 0 2px 6px rgb(29 27 23 / 0.05);
  --shadow-md: 0 1px 0 rgb(29 27 23 / 0.05), 0 10px 30px -12px rgb(29 27 23 / 0.22);
  --focus: #1d1b17;
  --marker: #f5c64a;
  --p0: #f2b544;
  --p1: #7aa2f2;
  --p2: #ef7b5c;
  --p3: #5bb58c;
  --p4: #c695e6;
  --p5: #f397b9;
  --p6: #49bcc6;
  --p7: #c39a73;
  --brand-whatsapp: #25d366;
  --brand-telegram: #229ed9;
  --brand-messages: #34c759;
  --brand-discord: #5865f2;
  --on-brand: #fffdf8;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-card: 22px;
  --r-slip: 14px;
  --r-pill: 999px;
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --measure: 35rem;
  --wide: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; transition: none; }
h1[tabindex="-1"]:focus { outline: none; }

/* ───────── layout ───────── */
.shell { max-width: var(--wide); margin: 0 auto; padding: 0 1rem calc(2rem + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 3.75rem; }
.page { display: grid; gap: 1rem; }
.game .page, .page:has(> .form), .page:has(> .card.center) { max-width: var(--measure); margin: 0 auto; }
.center { text-align: center; justify-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.625rem; align-items: center; }
.cta-row.center { justify-content: center; }
.page-foot { padding: 0.5rem 0 1rem; }

.wordmark { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; font: 800 1.0625rem/1 var(--font-display); letter-spacing: -0.01em; min-height: 44px; }
.wordmark-mark { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 0.5rem 0.5rem 0.5rem 0.15rem; background: var(--ink); color: var(--paper); font-size: 1rem; transform: rotate(-6deg); }
.live { font-size: 0.8125rem; color: var(--ok); }

/* ───────── type ───────── */
.display {
  font: 800 clamp(2.4rem, 7.2vw, 4.4rem)/1.02 var(--font-display);
  letter-spacing: -0.025em;
  overflow-wrap: break-word; min-width: 0;
  text-wrap: balance;
}
.marker { background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 92%, transparent 92%); padding: 0 0.08em; }
.lede { font-size: clamp(1.125rem, 2.4vw, 1.3rem); color: var(--ink-soft); max-width: 26rem; }
.title { font: 800 1.6rem/1.15 var(--font-display); letter-spacing: -0.015em; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
.title.big { font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.question { font: 800 clamp(1.5rem, 5.4vw, 2rem)/1.15 var(--font-display); letter-spacing: -0.018em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.label { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.fine { font-size: 0.8125rem; color: var(--ink-soft); }
.status-big { font: 700 1.125rem/1.3 var(--font-display); text-wrap: balance; }

/* ───────── surfaces ───────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem; box-shadow: var(--shadow-sm); display: grid; gap: 1rem; }
.card.stage { padding: 1.5rem 1.25rem; gap: 1.25rem; }
.q-head { display: grid; gap: 0.375rem; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: var(--r-slip); background: var(--paper-deep); font-size: 0.9375rem; }

/* ───────── controls ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; user-select: none;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), opacity 160ms;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-lg { min-height: 54px; font-size: 1.0625rem; padding: 0 1.5rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--signal); color: var(--on-signal); }
.btn-primary:hover:not(:disabled) { background: var(--signal-press); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover:not(:disabled) { background: var(--ink-soft); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--wash); border-color: var(--ink-soft); }
.btn-quiet { background: var(--paper-deep); color: var(--ink); min-height: 44px; padding: 0 1rem; font-size: 0.9375rem; }
.btn-quiet:hover { background: var(--line); }
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: var(--paper-deep); cursor: pointer; }
.icon-btn:active { transform: scale(0.94); }
.linkish { background: none; border: 0; padding: 0.5rem 0.25rem; min-height: 44px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.linkish:hover { color: var(--signal); }

.form { gap: 1.125rem; }
.field { display: grid; gap: 0.375rem; }
.field-label { font-weight: 650; font-size: 0.9375rem; }
.field-hint { font-size: 0.8125rem; color: var(--ink-soft); }
.input {
  width: 100%; min-height: 52px; padding: 0.75rem 1rem; border-radius: var(--r-slip);
  border: 1.5px solid var(--line-strong); background: var(--wash); font-size: 1.0625rem;
  transition: border-color 140ms, background-color 140ms;
}
.input:hover { border-color: var(--ink-soft); }
.input:focus { outline: none; border-color: var(--ink); background: var(--card); }
.input:focus-visible { outline: 3px solid var(--marker); outline-offset: 0; }
.input::placeholder { color: var(--ink-soft); opacity: 0.75; }
.form-error { color: var(--wrong); font-weight: 600; font-size: 0.9375rem; }

/* ───────── avatars & people ───────── */
.avatar {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  font: 800 1rem/1 var(--font-display); color: var(--ink); box-shadow: inset 0 0 0 2px var(--avatar-ring);
}
.avatar-sm { width: 1.75rem; height: 1.75rem; font-size: 0.8125rem; }
.avatar-md { width: 2.5rem; height: 2.5rem; }
.c0 { background: var(--p0); } .c1 { background: var(--p1); } .c2 { background: var(--p2); } .c3 { background: var(--p3); }
.c4 { background: var(--p4); } .c5 { background: var(--p5); } .c6 { background: var(--p6); } .c7 { background: var(--p7); }
.cx { background: var(--line); }
.stack { display: flex; }
.stack .avatar { margin-left: -0.5rem; box-shadow: 0 0 0 3px var(--card); }
.stack .avatar:first-child { margin-left: 0; }

.people-row { display: flex; flex-wrap: wrap; gap: 0.875rem 1rem; }
.person { display: grid; justify-items: center; gap: 0.25rem; width: 3.5rem; }
.person-av { position: relative; }
.person.pending .avatar { background: transparent; box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--ink-soft); }
.person-name { font-size: 0.75rem; color: var(--ink-soft); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--ok); color: var(--card); box-shadow: 0 0 0 2px var(--card); animation: pop 380ms var(--spring); }
.tick .icon { width: 0.8rem; height: 0.8rem; stroke-width: 3; }
.nudge { display: grid; gap: 0.75rem; padding: 1rem; border-radius: var(--r-slip); background: var(--paper-deep); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color 140ms; }
.chip:hover { border-color: var(--ink-soft); }
.yours { display: grid; gap: 0.5rem; }

/* ───────── slips (the signature) ───────── */
.slips { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.slip {
  position: relative; display: grid; gap: 0.75rem; padding: 1rem 1.125rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-slip);
  box-shadow: var(--shadow-sm);
  transition: transform 260ms var(--spring), box-shadow 200ms var(--ease-out), border-color 160ms;
}
.slips > .slip:nth-child(odd) { transform: rotate(-0.4deg); }
.slips > .slip:nth-child(even) { transform: rotate(0.35deg); }
.slip-text { font: 650 1.125rem/1.35 var(--font-display); overflow-wrap: anywhere; }
.slip-mine { background: var(--wash); border-style: dashed; }
.mine { display: grid; gap: 0.5rem; justify-items: start; }
.mine .slip { width: 100%; }

.stamp { display: inline-grid; perspective: 600px; }
.stamp-face {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.25rem;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 560ms var(--spring), opacity 200ms;
}
.stamp-q { justify-content: center; width: 2.25rem; border-radius: 50%; background: var(--paper-deep); color: var(--ink-soft); font: 800 1rem/1 var(--font-display); border: 1.5px dashed var(--line-strong); }
.stamp-a { transform: rotateY(-180deg); }
.stamp-name { font-weight: 700; }
.flipped .stamp-q { transform: rotateY(180deg); }
.flipped .stamp-a { transform: rotateY(0deg); }

/* example on the landing page */
.example { margin: 0; display: grid; gap: 1rem; padding: 1.25rem; background: var(--paper-deep); border-radius: calc(var(--r-card) + 6px); }
.example-q { display: grid; gap: 0.25rem; }
.example-q-text { font: 800 1.25rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.example .slip { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 0.875rem 1rem; }
.example .slip-text { font-size: 1rem; }
.example .stamp-name { font-size: 0.875rem; }

/* reveal */
.reveal-slip { border-left-width: 5px; }
.reveal-slip.next { border-color: var(--ink); box-shadow: var(--shadow-md); }
.reveal-slip.flipped.edge-c0 { border-left-color: var(--p0); } .reveal-slip.flipped.edge-c1 { border-left-color: var(--p1); }
.reveal-slip.flipped.edge-c2 { border-left-color: var(--p2); } .reveal-slip.flipped.edge-c3 { border-left-color: var(--p3); }
.reveal-slip.flipped.edge-c4 { border-left-color: var(--p4); } .reveal-slip.flipped.edge-c5 { border-left-color: var(--p5); }
.reveal-slip.flipped.edge-c6 { border-left-color: var(--p6); } .reveal-slip.flipped.edge-c7 { border-left-color: var(--p7); }
.reveal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.reveal-detail { display: grid; gap: 0.125rem; transition: opacity 240ms 260ms, transform 360ms 260ms var(--spring); }
.js .reveal-slip:not(.flipped) .reveal-detail { opacity: 0; transform: translateY(4px); }
.verdict { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 700; font-size: 0.9375rem; }
.verdict.right { color: var(--ok); }
.verdict.wrong { color: var(--wrong); }
.verdict.mine { color: var(--ink); }

.summary { display: grid; gap: 1.25rem; }
.summary:empty { display: none; }
.score { display: grid; justify-items: center; gap: 0.25rem; padding: 1.25rem; border-radius: var(--r-slip); background: var(--paper-deep); text-align: center; animation: rise 520ms var(--spring); }
.score-big { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.score-n { font: 800 4.5rem/1 var(--font-display); letter-spacing: -0.04em; }
.score-of { font: 700 1.25rem/1 var(--font-display); color: var(--ink-soft); }
.scores { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.score-row { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0 0.5rem; border-radius: 0.75rem; }
.score-row.me { background: var(--wash); }
.score-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-pts { font: 800 1rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.award { display: grid; gap: 0.125rem; padding: 0.75rem 1rem; border-radius: var(--r-slip); border: 1px dashed var(--line-strong); }
.countdown { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--ink-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

/* guessing */
.guess-slips .slip { padding-right: 1rem; }
.slip.guess { cursor: pointer; }
.slip-hit { position: absolute; inset: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.slip.guess .slip-text, .slip.guess .pick { position: relative; pointer-events: none; }
.slip.guess .pick:not(.empty) { pointer-events: auto; }
.slip.guess.active { border-color: var(--ink); box-shadow: var(--shadow-md); transform: none; }
.slip.guess.active::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--signal); }
.pick {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 40px; padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border-radius: var(--r-pill); background: var(--paper-deep); border: 0; font-weight: 650; cursor: pointer;
  animation: pop 320ms var(--spring);
}
.pick.empty { padding: 0.25rem 0.875rem; color: var(--ink-soft); background: transparent; border: 1.5px dashed var(--line-strong); font-weight: 600; animation: none; }
.slip.guess.active .pick.empty { border-color: var(--signal); color: var(--signal); }

.tray { position: sticky; bottom: 0; z-index: 5; margin: 0 -1rem; padding: 0 0.5rem env(safe-area-inset-bottom); }
.tray-inner {
  display: grid; gap: 0.75rem; padding: 0.875rem; border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -10px 30px -18px var(--tray-shadow);
}
.tray-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-person {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.25rem 0.875rem 0.25rem 0.375rem;
  border-radius: var(--r-pill); background: var(--card); border: 1.5px solid var(--line-strong); font-weight: 650; cursor: pointer;
  transition: transform 120ms var(--ease-out), opacity 160ms, border-color 160ms, background-color 160ms;
}
.chip-person:hover { border-color: var(--ink); }
.chip-person:active { transform: scale(0.95); }
.chip-person.used { opacity: 0.5; background: var(--paper-deep); }
.chip-person.used.here { opacity: 1; border-color: var(--ink); }
.tray-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tray-progress { font-size: 0.875rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.bios { gap: 0.75rem; }
.bio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.bio { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.9375rem; }

/* group header */
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.group-title { display: grid; min-width: 0; }
.group-name { font: 800 1.25rem/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-sub { font-size: 0.875rem; color: var(--ink-soft); }
.board-head { display: flex; justify-content: space-between; align-items: center; }
.streak { font-size: 0.875rem; font-weight: 700; color: var(--signal); }
.status { display: grid; gap: 0.25rem; }
.answer-form { display: grid; gap: 0.625rem; }
.answer-input { min-height: 7rem; resize: vertical; line-height: 1.4; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.answer-meta { display: flex; justify-content: space-between; gap: 1rem; }
.count { font-size: 0.8125rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* join */
.join-people { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.qcard { display: grid; gap: 0.375rem; padding: 1rem 1.125rem; border-radius: var(--r-slip); background: var(--paper-deep); }
.qcard-text { font: 750 1.1875rem/1.3 var(--font-display); }

/* landing */
.hero { display: grid; gap: 2rem; padding: 1.25rem 0 2.5rem; align-items: center; }
.hero-copy { display: grid; gap: 1.25rem; align-content: start; }
.beats { display: grid; gap: 1rem; padding: 0.5rem 0 1.5rem; }
.beat { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.875rem; row-gap: 0.125rem; align-items: baseline; }
.beat-n { grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--ink); font: 800 0.9375rem/1 var(--font-display); align-self: start; }
.beat-t { font: 800 1.125rem/1.3 var(--font-display); }
.beat-d { color: var(--ink-soft); }
.today { max-width: var(--measure); justify-items: start; }
.today-text { font: 800 clamp(1.4rem, 4.5vw, 1.8rem)/1.2 var(--font-display); letter-spacing: -0.015em; min-height: 2.4em; overflow-wrap: break-word; min-width: 0; }
.foot { padding: 2.5rem 0 1rem; color: var(--ink-soft); font-size: 0.9375rem; }
.cta-card { gap: 0.875rem; }

@media (min-width: 900px) {
  .shell { padding: 0 2rem 3rem; }
  .topbar { height: 4.5rem; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; padding: 2.5rem 0 4rem; min-height: min(78svh, 46rem); }
  .beats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-bottom: 3rem; }
  .example { padding: 1.75rem; transform: rotate(0.6deg); }
  .card.stage { padding: 2rem; }
  .tray { margin: 0; padding: 0; }
  .tray-inner { border-radius: var(--r-card); border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
}

/* ───────── sheet (dialog) ───────── */
.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 88dvh; overflow: auto;
  padding: 0.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); border: 0; border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-md);
  animation: sheet-in 420ms var(--spring);
}
.sheet::backdrop { background: var(--scrim); animation: fade 240ms var(--ease-out); }
.sheet.closing { animation: sheet-out 180ms var(--ease-out) forwards; }
.sheet.closing::backdrop { animation: fade 180ms reverse forwards; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.25rem 0 1rem; }
.sheet-title { font: 800 1.3rem/1.2 var(--font-display); }
@media (min-width: 640px) {
  .sheet { inset: 0; margin: auto; max-width: 28rem; height: fit-content; border-radius: var(--r-card); padding-bottom: 1.5rem; animation: sheet-pop 320ms var(--spring); }
  .sheet.closing { animation: fade 160ms reverse forwards; }
}
.share { display: grid; gap: 1rem; }
.share-preview { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.75rem; align-items: center; padding: 0.625rem; border-radius: var(--r-slip); background: var(--paper-deep); }
.share-preview img { width: 5.5rem; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 0.5rem; }
.share-preview-text { display: grid; gap: 0.125rem; font-size: 0.875rem; min-width: 0; }
.share-preview-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-preview-text span { color: var(--ink-soft); }
.share-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.share-app {
  display: grid; justify-items: center; gap: 0.375rem; padding: 0.5rem 0.25rem; border-radius: var(--r-slip); border: 0;
  background: transparent; color: var(--ink); text-decoration: none; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: background-color 140ms, transform 120ms var(--ease-out);
}
.share-app:hover { background: var(--wash); }
.share-app:active { transform: scale(0.95); }
.share-app-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 1rem; background: var(--paper-deep); }
.share-app-icon { color: var(--on-brand); overflow: hidden; }
.share-app.wa .share-app-icon { background: var(--brand-whatsapp); }
.share-app.tg .share-app-icon { background: var(--brand-telegram); }
.share-app.sms .share-app-icon { background: var(--brand-messages); }
.share-app.dc .share-app-icon { background: var(--brand-discord); }
.share-app .share-app-icon.has-logo { background: transparent; }
.share-app-icon img { width: 100%; height: 100%; object-fit: contain; }
.share-app-icon .icon { width: 1.5rem; height: 1.5rem; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
.copy-input { min-height: 48px; font-size: 0.9375rem; }
.confirm { display: grid; gap: 0.75rem; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 50; max-width: calc(100% - 2rem);
  padding: 0.75rem 1.125rem; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 0.9375rem;
  transform: translate(-50%, 1.5rem); opacity: 0; pointer-events: none;
  transition: transform 360ms var(--spring), opacity 200ms;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* skeleton */
.skeleton { gap: 0.75rem; }
.sk { height: 1rem; border-radius: 0.5rem; background: var(--paper-deep); animation: pulse 1.4s ease-in-out infinite; }
.sk-title { height: 2rem; width: 70%; }
.sk-line.short { width: 45%; }

@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes sheet-pop { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 50% { opacity: 0.55; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .stamp-face, .reveal-detail, .slip, .toast, .btn, .chip-person { transition-property: opacity !important; transition-duration: 160ms !important; transition-delay: 0ms !important; }
  .stamp-a, .flipped .stamp-q, .flipped .stamp-a, .js .reveal-slip .reveal-detail { transform: none !important; }
  .stamp-a { opacity: 0; }
  .flipped .stamp-q { opacity: 0; }
  .flipped .stamp-a { opacity: 1; }
  .slips > .slip:nth-child(n) { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .tray-inner { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #8a806d; --line-strong: #5b5547; --ink-soft: #3d382f; }
}
