/* =========================================================================
   for Maylee: fall coquette meets golden hour
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  --cream: #FFF8F2;
  --paper: #FFFDF9;
  --paper-2: #FFF4EC;
  --blush: #F9D5DD;
  --blush-2: #FCE8EC;
  --rose: #EE8FA8;
  --rose-deep: #C2566E;
  --raspberry: #D4547A;
  --berry: #4A1430;
  --berry-2: #6E2443;
  --wine: #7A2343;
  --cocoa: #6B4B45;
  --peach: #FFC9A8;
  --apricot: #F7A072;
  --gold: #CFA35E;
  --gold-2: #E9C88A;
  --lilac: #E6D4F2;
  --plum: #2A1B3D;
  --night-ink: #FFF1EA;
  --ink-soft: rgba(74, 20, 48, .62);
  --line: rgba(74, 20, 48, .12);
  --hair: rgba(74, 20, 48, .1);

  --grad-cta: linear-gradient(135deg, #C2566E 0%, #DB6C82 48%, #EB8A78 100%);
  --foil: linear-gradient(100deg, #9C6B2F, #E9C88A 40%, #FFF3CF 50%, #E9C88A 60%, #9C6B2F);
  --shadow-1: 0 1px 2px rgba(74, 20, 48, .06), 0 6px 16px -6px rgba(74, 20, 48, .12);
  --shadow-2: 0 2px 4px rgba(74, 20, 48, .05), 0 14px 30px -10px rgba(140, 47, 77, .24), 0 34px 70px -30px rgba(140, 47, 77, .3);
  --r-card: 28px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --font-ui: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Ben's pages: Swiss-minimal, one persimmon accent */
  --ink: #17110F;
  --ink-2: #4A403C;
  --persimmon: #E2552A;
  --stone: #FBF8F4;
  --rule: rgba(23, 17, 15, .12);
  --font-swiss: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html {
  background-color: var(--cream);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  transition: background-color .9s ease;
}
html[data-theme="night"] { background-color: var(--plum); }
html[data-theme="ben"] { background-color: #F6F0E9; }
body {
  overflow: hidden;
  overscroll-behavior: none;
  background-color: inherit;
  color: var(--berry);
  font: 400 16px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; color: inherit; }
button {
  -webkit-appearance: none; appearance: none;
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; touch-action: manipulation;
}
a { color: inherit; }
img, svg { display: block; }
p, h1, h2, h3, ol, ul, dl, dd { margin: 0; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(212, 84, 122, .55); outline-offset: 3px; border-radius: 14px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- app shell ---------- */
#app { position: fixed; inset: 0; overflow: hidden; }
#mesh { position: absolute; inset: 0; width: 100%; height: 100%; }
#scene { position: absolute; inset: 0; overflow: hidden; }
.scene-layer { position: absolute; inset: 0; will-change: opacity, transform; }
.scene-layer svg { display: block; width: 100%; height: 100%; }
#grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); background-size: 128px 128px; opacity: .6;
}
#ambient { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stage {
  position: absolute; inset: 0; margin: 0 auto; max-width: 480px; overflow: hidden;
  padding-left: var(--safe-l); padding-right: var(--safe-r);
}
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

@media (min-width: 720px) and (min-height: 640px) {
  #scene {
    top: 24px; bottom: 24px; left: 50%; right: auto; width: 430px; margin-left: -215px; border-radius: 38px;
    box-shadow: 0 40px 90px -40px rgba(74, 20, 48, .55);
  }
  .stage {
    top: 24px; bottom: 24px; max-width: 430px; border-radius: 38px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset;
  }
  html[data-theme="night"] .stage { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; }
}

/* ---------- ambient life: each scene opts in via html[data-ambient] ---------- */
.leaf, .fly, .fw, .mote, .orb { display: none; position: absolute; }
html[data-ambient~="leaves"] .leaf.l, html[data-ambient~="petals"] .leaf.p,
html[data-ambient~="fireflies"] .fly, html[data-ambient~="fireworks"] .fw,
html[data-ambient~="dust"] .mote, html[data-ambient~="bokeh"] .orb { display: block; }
.leaf {
  top: -60px; left: var(--x); width: var(--s); height: var(--s); opacity: var(--o);
  animation: fall var(--d) linear var(--delay) infinite; will-change: transform;
}
.leaf.far { filter: blur(.6px); }
.leaf.near { filter: blur(1.6px); }
.leaf .sway { width: 100%; height: 100%; animation: sway calc(var(--d) / 4) ease-in-out var(--delay) infinite alternate; }
.leaf .tumble { width: 100%; height: 100%; animation: tumble calc(var(--d) / 2.4) linear var(--delay) infinite; }
.leaf svg { display: block; width: 100%; height: 100%; }
@keyframes fall { to { transform: translate3d(var(--dx), calc(100vh + 120px), 0) rotate(var(--rot)); } }
@keyframes sway { from { transform: translateX(-16px) rotate(-18deg); } to { transform: translateX(16px) rotate(18deg); } }
@keyframes tumble { from { transform: rotate3d(1, .55, .2, 0deg); } to { transform: rotate3d(1, .55, .2, 360deg); } }
@keyframes twinkle-r { from { transform: scale(.7) rotate(0); } to { transform: scale(1.1) rotate(45deg); } }
/* keep falling things out of the reading column on phones */
@media (max-width: 719px) {
  html[data-ambient~="leaves"] #ambient, html[data-ambient~="petals"] #ambient {
    -webkit-mask-image: linear-gradient(90deg, #000 0 12%, rgba(0, 0, 0, .22) 30% 70%, #000 88%);
    mask-image: linear-gradient(90deg, #000 0 12%, rgba(0, 0, 0, .22) 30% 70%, #000 88%);
  }
}
.fly {
  width: 16px; height: 16px; margin: -8px; border-radius: 50%;
  background: radial-gradient(circle, #FFF8D2 0 18%, rgba(255, 226, 140, .65) 34%, rgba(255, 226, 140, 0) 68%);
  animation: wander var(--d) ease-in-out var(--delay) infinite alternate, blink 2.8s ease-in-out var(--delay) infinite;
}
@keyframes wander {
  0% { transform: translate(0, 0); }
  35% { transform: translate(var(--wx), calc(var(--wy) * -1)); }
  70% { transform: translate(calc(var(--wx) * -.6), var(--wy)); }
  100% { transform: translate(calc(var(--wx) * .4), calc(var(--wy) * .5)); }
}
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.fw { width: var(--s); height: var(--s); margin: calc(var(--s) / -2); opacity: 0; animation: burst 3.7s cubic-bezier(.2, .7, .3, 1) var(--delay) infinite; }
.fw svg { width: 100%; height: 100%; }
@keyframes burst {
  0% { transform: scale(.12); opacity: 0; }
  8% { opacity: 1; }
  48% { transform: scale(1); opacity: .95; }
  78% { opacity: 0; transform: scale(1.06) translateY(12px); }
  100% { opacity: 0; transform: scale(1.06) translateY(12px); }
}
.mote {
  width: 3px; height: 3px; border-radius: 50%; background: #FFFFFF; opacity: 0;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, .7);
  animation: mote var(--d) ease-in-out var(--delay) infinite;
}
@keyframes mote { 0% { transform: translate(0, 30px); opacity: 0; } 30%, 70% { opacity: .75; } 100% { transform: translate(18px, -60px); opacity: 0; } }
.orb {
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; opacity: var(--o);
  background: radial-gradient(circle at 40% 38%, rgba(255, 255, 255, .95), rgba(255, 240, 225, .45) 38%, rgba(255, 230, 210, 0) 70%);
  animation: drift var(--d) ease-in-out var(--delay) infinite alternate;
}
.orb:nth-child(3n) { background: radial-gradient(circle at 40% 38%, rgba(255, 236, 190, .9), rgba(255, 214, 150, .4) 40%, rgba(255, 214, 150, 0) 70%); }
.orb:nth-child(3n + 1) { background: radial-gradient(circle at 40% 38%, rgba(255, 226, 236, .9), rgba(246, 179, 198, .4) 40%, rgba(246, 179, 198, 0) 70%); }
@keyframes drift { from { transform: translate3d(-12px, 14px, 0) scale(.94); } to { transform: translate3d(16px, -20px, 0) scale(1.06); } }
.twinkle {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
  background: #FFF6E2; box-shadow: 0 0 8px 2px rgba(255, 238, 205, .6);
  opacity: 0; transition: opacity 1.2s ease;
  animation: twinkle var(--d) ease-in-out var(--delay) infinite;
}
@keyframes twinkle { 0%, 100% { transform: scale(.5); } 50% { transform: scale(1.2); } }
html[data-ambient~="stars"] .twinkle { opacity: .9; }

/* ---------- progress hearts ---------- */
#progress {
  position: absolute; z-index: 20; left: 50%; top: calc(var(--safe-t) + 14px);
  transform: translateX(-50%);
  display: flex; gap: 9px; align-items: center;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255, 253, 249, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-1);
  transition: opacity .45s ease, transform .45s var(--ease-out);
}
#progress.off, #progress.tucked { opacity: 0; transform: translate(-50%, -14px); pointer-events: none; }
#progress .ph { width: 15px; height: 15px; color: rgba(194, 86, 110, .25); transition: color .4s ease, transform .5s var(--ease-spring); }
#progress .ph.done { color: var(--rose-deep); }
#progress .ph.now { color: var(--raspberry); transform: scale(1.25); animation: beat 1.5s ease-in-out infinite; }
html[data-theme="night"] #progress { background: rgba(42, 27, 61, .6); }
html[data-theme="night"] #progress .ph { color: rgba(255, 210, 222, .3); }
html[data-theme="night"] #progress .ph.done, html[data-theme="night"] #progress .ph.now { color: #FFB3C7; }
html[data-theme="ben"] #progress .ph { color: rgba(23, 17, 15, .16); }
html[data-theme="ben"] #progress .ph.done { color: var(--ink); }
html[data-theme="ben"] #progress .ph.now { color: var(--persimmon); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #progress { background: rgba(255, 253, 249, .95); }
}

/* ---------- screens ---------- */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 20px) 20px calc(var(--safe-b) + 18px);
}
.screen.with-progress { padding-top: calc(var(--safe-t) + 62px); }
.screen.scroll {
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding-bottom: 0;
}
.screen.center { justify-content: center; align-items: center; text-align: center; }

/* ---------- type ---------- */
.kicker {
  font: 700 11.5px/1.3 var(--font-ui); letter-spacing: .16em; text-transform: uppercase;
  color: var(--rose-deep);
}
.h-display {
  font-family: var(--font-display); font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -.022em; line-height: 1.04; text-wrap: balance;
}
.h-display em {
  font-style: italic; font-weight: 380;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--raspberry);
}
.h1 { font-size: clamp(34px, 9.6vw, 44px); }
.h2 { font-size: clamp(26px, 7.4vw, 32px); }
.lead { font-size: 17px; line-height: 1.5; color: var(--cocoa); text-wrap: pretty; }
.lead em {
  font: italic 400 1.06em/1 var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--raspberry);
}
.muted { color: var(--ink-soft); }
.script { font-family: var(--font-script); font-weight: 400; line-height: 1; }
.hand { font-family: var(--font-hand); }
.gold-text {
  background: linear-gradient(100deg, #C2566E 0%, #D7837A 26%, #E4AE72 44%, #F6D7A0 50%, #E4AE72 56%, #D7837A 74%, #C2566E 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldsweep 7s ease-in-out infinite;
}
@keyframes goldsweep { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.foil {
  background: var(--foil); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldsweep 6s ease-in-out infinite;
}

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 54px; padding: 15px 26px; border-radius: 999px;
  font: 650 17.5px/1.1 var(--font-ui); letter-spacing: .005em; text-decoration: none;
  user-select: none; -webkit-user-select: none;
  transition: transform .25s var(--ease-spring), box-shadow .3s ease, background-color .3s ease, color .3s ease, opacity .3s ease;
}
.btn:active { transform: scale(.96); }
.btn.block { width: 100%; }
.btn .btn-ic { width: 1.1em; height: 1.1em; }
.btn.primary {
  color: #fff; background: var(--grad-cta);
  text-shadow: 0 1px 1px rgba(120, 30, 60, .3);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 170, .38), inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 30px -12px rgba(194, 86, 110, .75);
}
.btn.shimmer::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .45) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: shimmer 3.6s ease-in-out 1.4s infinite;
}
@keyframes shimmer { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.btn .beat { transform-origin: 50% 55%; animation: beat4 4s ease-in-out 1.6s infinite; }
@keyframes beat4 { 0%, 80%, 100% { transform: scale(1); } 85% { transform: scale(1.28); } 90% { transform: scale(.94); } 95% { transform: scale(1.14); } }
.btn.soft {
  color: var(--berry); background: rgba(255, 253, 249, .9);
  box-shadow: inset 0 0 0 1.5px rgba(212, 84, 122, .26), var(--shadow-1);
}
.btn.link {
  min-height: 44px; padding: 10px 14px;
  font: 500 15px/1.2 var(--font-ui); color: var(--ink-soft);
  text-decoration: underline; text-decoration-style: wavy;
  text-decoration-color: rgba(212, 84, 122, .45); text-underline-offset: 5px;
}
.btn.link .btn-ic { width: 1em; height: 1em; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; }
.btn.primary[disabled], .btn.primary[aria-disabled="true"] {
  opacity: 1; color: var(--rose-deep); text-shadow: none;
  background: rgba(255, 253, 249, .8);
  box-shadow: inset 0 0 0 1.5px rgba(212, 84, 122, .35);
}
.btn.primary[aria-disabled="true"]::after, .btn.primary[disabled]::after { animation: none; opacity: 0; }
.btn.primary[aria-disabled="true"] .btn-ic { display: none; }
.btn.ready { animation: ready-pop .55s var(--ease-spring); }
@keyframes ready-pop { 0% { transform: scale(.95); } 60% { transform: scale(1.03); } 100% { transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:not([aria-disabled="true"]):hover { box-shadow: inset 0 0 0 1px rgba(255, 226, 170, .38), inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 36px -12px rgba(194, 86, 110, .85); transform: translateY(-1px); }
  .btn.soft:hover { background: #fff; }
  .btn.link:hover { color: var(--berry); }
}

/* ---------- stickers + paper ---------- */
.stk {
  width: var(--s, 72px); height: var(--s, 72px);
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.stk.xl { --s: clamp(96px, 30vw, 124px); }
.stk.big { --s: clamp(72px, 22vw, 96px); }
.stk.md { --s: 58px; }
.stk.sm { --s: 40px; }
.paper {
  position: relative; background: var(--paper);
  border-radius: var(--r-card); box-shadow: var(--shadow-2);
}
.paper::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: var(--paper-tex); background-size: 192px 192px;
}

/* ---------- sticky bottom actions (scroll screens): frosted, not foggy ---------- */
.sticky-actions {
  position: sticky; bottom: 0; z-index: 8; isolation: isolate;
  margin: auto -20px 0; padding: 24px 20px calc(var(--safe-b) + 16px);
  display: grid; gap: 6px;
}
.sticky-actions::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255, 244, 240, .4);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  -webkit-mask-image: linear-gradient(transparent, #000 30px); mask-image: linear-gradient(transparent, #000 30px);
}
html[data-theme="ben"] .sticky-actions::before { background: rgba(246, 240, 233, .84); }
html[data-theme="night"] .sticky-actions::before { display: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sticky-actions::before { background: linear-gradient(rgba(255, 246, 240, 0), rgba(255, 246, 240, .96) 30px); }
}

/* ---------- envelope ---------- */
.screen--envelope { justify-content: center; align-items: center; text-align: center; gap: 16px; }
.env-head { position: relative; }
.env-head .kicker { margin-bottom: 2px; }
.env-name { font-size: clamp(92px, 28vw, 120px); padding: 0 .16em .1em; }
.env-sparkle { position: absolute; color: var(--gold); animation: twinkle-r 2.2s ease-in-out infinite alternate; }
.env-sparkle.s1 { top: 30%; left: -6%; width: 18px; height: 18px; }
.env-sparkle.s2 { top: 6%; right: -2%; width: 13px; height: 13px; animation-delay: -.8s; }
.env-sparkle.s3 { bottom: 4%; right: 6%; width: 10px; height: 10px; animation-delay: -1.5s; }
.env-stage { position: relative; margin: 6px 0 14px; }
.env-shadow {
  position: absolute; left: 10%; right: 10%; bottom: -20px; height: 30px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110, 40, 60, .34), rgba(110, 40, 60, 0));
  animation: shadow-bob 5.5s ease-in-out infinite;
}
@keyframes shadow-bob { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .7; } }
.env-float { animation: bob 5.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }
.env-scene { position: relative; width: min(88vw, 360px); aspect-ratio: 3 / 2; --seal: clamp(78px, 23vw, 92px); }
.envelope { position: absolute; inset: 0; cursor: pointer; perspective: 1000px; border-radius: 14px; }
.env-back {
  position: absolute; inset: 0; z-index: 0; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #F3E1D4, #EAD2C3);
  box-shadow: 0 30px 50px -24px rgba(122, 35, 67, .45), 0 2px 6px rgba(122, 35, 67, .14);
}
.env-liner {
  position: absolute; left: 3.5%; right: 3.5%; top: 3%; height: 60%; border-radius: 10px 10px 2px 2px;
  background:
    repeating-linear-gradient(90deg, rgba(238, 157, 180, .34) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, rgba(238, 157, 180, .34) 0 8px, transparent 8px 16px),
    #FFF5F3;
}
.env-bloom {
  position: absolute; z-index: 1; left: 6%; right: 6%; top: -48%; height: 120%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 240, 222, .5) 45%, rgba(255, 240, 222, 0));
}
.env-letter {
  position: absolute; z-index: 2; left: 7%; right: 7%; top: 7%; height: 84%;
  border-radius: 8px; background: var(--paper); text-align: left;
  box-shadow: 0 2px 10px rgba(74, 20, 48, .14);
  padding: 8% 10% 0;
}
.env-letter-to { display: block; font: 400 clamp(24px, 7.4vw, 30px)/1 var(--font-script); color: var(--rose-deep); margin-bottom: 7%; }
.env-letter i { display: block; height: 3px; border-radius: 3px; margin: 0 0 8px; background: rgba(212, 84, 122, .16); }
.env-letter i:nth-of-type(1) { width: 86%; }
.env-letter i:nth-of-type(2) { width: 94%; }
.env-letter i:nth-of-type(3) { width: 58%; }
.env-front { position: absolute; inset: 0; z-index: 3; border-radius: 14px; overflow: hidden; pointer-events: none; }
.env-front svg, .flap-face svg { width: 100%; height: 100%; }
.env-flap {
  position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 70.8%;
  transform-origin: 50% 0; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; pointer-events: none;
}
.flap-face {
  position: absolute; inset: 0; border-radius: 14px 14px 0 0; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.flap-face.back { transform: rotateY(180deg); }
.env-flap.behind { z-index: 1; }
.env-flap.open { transform: rotateX(180deg); }
.env-ribbon {
  position: absolute; z-index: 5; pointer-events: none;
  width: calc(var(--seal) * 1.6); left: calc(50% - var(--seal) * .8); top: calc(62.5% - var(--seal) * .389);
}
.env-sprig {
  position: absolute; z-index: 6; pointer-events: none;
  width: calc(var(--seal) * .95); left: calc(50% - var(--seal) * .08); top: calc(62.5% - var(--seal) * .9);
  transform: rotate(-6deg);
}
.env-ribbon svg, .env-sprig svg { width: 100%; height: auto; }
.env-seal {
  position: absolute; z-index: 7; left: 50%; top: 62.5%;
  width: var(--seal); height: var(--seal); margin: calc(var(--seal) / -2) 0 0 calc(var(--seal) / -2);
  filter: drop-shadow(0 5px 6px rgba(74, 20, 48, .35));
}
.seal-half { position: absolute; inset: 0; }
.seal-half svg { width: 100%; height: 100%; }
.seal-half.l { clip-path: polygon(-5% -5%, 53% -5%, 47% 22%, 55% 40%, 46% 58%, 54% 76%, 48% 105%, -5% 105%); }
.seal-half.r { clip-path: polygon(53% -5%, 105% -5%, 105% 105%, 48% 105%, 54% 76%, 46% 58%, 55% 40%, 47% 22%); }
.seal-halo { position: absolute; inset: 7%; border-radius: 50%; animation: halo 2.4s ease-out infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(212, 84, 122, .5); } 100% { box-shadow: 0 0 0 18px rgba(212, 84, 122, 0); } }
.envelope.opening .seal-halo { display: none; }
.env-hint { font: italic 400 17px/1.3 var(--font-display); color: var(--berry-2); text-shadow: 0 0 10px rgba(255, 246, 238, .95), 0 0 2px rgba(255, 246, 238, .9); transition: opacity .3s; }
.env-small { font: 500 12.5px var(--font-ui); color: var(--berry-2); opacity: .8; text-shadow: 0 0 8px rgba(255, 246, 238, .95); margin-top: -10px; transition: opacity .3s; }

/* ---------- the ask (letter) ---------- */
.screen--ask { padding-top: calc(var(--safe-t) + 40px); padding-bottom: calc(var(--safe-b) + 24px); }
.screen--ask > .letter { margin: auto 0; }
.letter {
  padding: 40px 24px 22px; border-radius: 6px 6px 28px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transform-origin: 0 0;
}
.letter::before {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: -8px; height: 16px; pointer-events: none;
  background:
    radial-gradient(circle at 8px 9px, rgba(212, 84, 122, .26) 1.6px, transparent 2.1px) repeat-x 0 0 / 16px 16px,
    radial-gradient(circle at 8px 8px, var(--paper) 7.6px, transparent 8.1px) repeat-x 0 0 / 16px 16px;
}
.letter-frame {
  position: absolute; inset: 12px 10px 10px; border-radius: 2px 2px 20px 20px; pointer-events: none;
  border: 1px solid rgba(207, 163, 94, .5);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(207, 163, 94, .3);
}
.letter-bow { position: absolute; z-index: 3; top: -28px; left: 50%; width: 88px; margin-left: -44px; filter: drop-shadow(0 5px 6px rgba(140, 47, 77, .3)); }
.letter-bow svg, .postage svg, .postmark svg, .letter-peony svg { width: 100%; height: auto; }
.postage { position: absolute; z-index: 2; top: -14px; right: 16px; width: 58px; transform: rotate(8deg); }
.postage svg { filter: drop-shadow(0 3px 4px rgba(74, 20, 48, .2)); }
.postmark { position: absolute; z-index: 3; top: 4px; right: 20px; width: 116px; color: rgba(74, 20, 48, .34); transform: rotate(-6deg); pointer-events: none; mix-blend-mode: multiply; }
.letter-peony { position: absolute; left: 18px; bottom: 16px; width: 44px; color: var(--rose-deep); opacity: .3; pointer-events: none; transform: rotate(-10deg); }
.letter-hi { position: relative; font: 600 31px/1.05 var(--font-hand); color: var(--raspberry); }
.letter-body { position: relative; font: 400 17px/1.55 var(--font-display); font-variation-settings: "SOFT" 100; color: var(--cocoa); text-wrap: pretty; }
.letter-body .aside { display: block; margin-top: 8px; font-style: italic; color: var(--ink-soft); font-size: 15.5px; }
.letter-q { position: relative; font-size: clamp(40px, 12.2vw, 52px); font-weight: 360; line-height: .98; margin: 10px 0 2px; text-wrap: initial; }
.letter-q em { position: relative; display: inline-block; padding-right: .04em; }
.doodle { position: absolute; left: -4%; right: -8%; bottom: -.12em; height: .3em; pointer-events: none; }
.doodle svg { width: 100%; height: 100%; overflow: visible; }
.doodle path {
  fill: none; stroke: var(--raspberry); stroke-width: 2.6; stroke-linecap: round;
  vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100;
}
.letter-sig { position: relative; font: 600 25px/1 var(--font-hand); color: var(--berry-2); text-align: right; margin-top: -4px; padding-right: 6px; }
.letter-actions { position: relative; z-index: 1; display: grid; gap: 10px; margin-top: 8px; }

/* ---------- verdict / maybe / yay ---------- */
.screen.center.scroll { justify-content: flex-start; padding-bottom: calc(var(--safe-b) + 18px); }
.screen.center.scroll > .center-stack { margin: auto 0; }
.center-stack { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.center-stack .btn { width: 100%; }
.screen--maybe .lead, .screen--verdict .lead { max-width: 30ch; }
.screen--verdict.center.scroll > .center-stack { margin: 6px 0 auto; padding-bottom: 150px; }

.scales { width: 132px; color: var(--gold); margin-bottom: -2px; }
.scales svg { width: 100%; height: auto; overflow: visible; }
@media (max-height: 700px) { .scales { display: none; } }
.brief { list-style: none; padding: 0; margin: 0 0 6px; width: 100%; text-align: left; counter-reset: b; border-top: 1px solid rgba(74, 20, 48, .14); }
.brief li {
  counter-increment: b; display: grid; grid-template-columns: 36px 1fr; gap: 2px; padding: 12px 2px;
  border-bottom: 1px solid rgba(74, 20, 48, .14);
  font: 400 16px/1.42 var(--font-display); font-variation-settings: "SOFT" 100; color: var(--cocoa); text-wrap: pretty;
}
.brief li::before { content: "§" counter(b); font: italic 400 20px/1.1 var(--font-display); color: var(--rose-deep); }

.maybe-heart { width: 96px; margin-bottom: 2px; }
.maybe-heart svg { width: 100%; height: auto; overflow: visible; }
.maybe-heart path { fill: none; stroke: var(--rose-deep); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }

.yay-title { font-size: clamp(76px, 22vw, 104px); line-height: .95; text-wrap: balance; padding: 0 .15em .1em; margin-bottom: -6px; }
.yay-calm { font: 600 25px/1.1 var(--font-hand); color: var(--berry-2); }
@media (max-height: 700px) { .yay-title { font-size: 62px; } }
.route { width: 100%; margin: 4px 0 2px; }
.route-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.route-steps::before {
  content: ""; position: absolute; top: 23px; left: calc(50% / var(--n)); right: calc(50% / var(--n));
  border-top: 2px dotted rgba(122, 35, 67, .4);
}
.route-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.route-dot {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--rose-deep);
  box-shadow: inset 0 0 0 1px rgba(207, 163, 94, .7), inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(207, 163, 94, .3), 0 8px 18px -10px rgba(140, 47, 77, .55);
}
.route-dot .ic { width: 21px; height: 21px; }
.route-l { font: 700 11.5px/1.2 var(--font-ui); color: var(--berry-2); }
.route-lead { margin-top: 14px; font: italic 400 17px var(--font-display); color: var(--berry-2); }

/* ---------- vibe check ---------- */
.screen--vibe { gap: 8px; }
.vibe-head { text-align: center; }
.vibe-dots { display: flex; justify-content: center; gap: 6px; margin: 9px 0 9px; }
.vibe-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(122, 35, 67, .22); transition: width .45s var(--ease-out), background-color .3s; }
.vibe-dots i.done { background: var(--rose-deep); }
.vibe-dots i.now { width: 22px; background: var(--raspberry); }
.vibe-stage { flex: 1; min-height: 0; display: grid; }
.vibe-stage > * { grid-area: 1 / 1; }
.vibe-q { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.tot { flex: 1; min-height: 0; max-height: 520px; display: grid; grid-template-rows: 1fr 0 1fr; }
.tot-opt {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: center;
  border-radius: 26px; color: var(--berry);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), var(--shadow-2);
  transition: transform .4s var(--ease-spring), opacity .35s ease, filter .35s ease, box-shadow .35s ease;
}
.tot-art { position: absolute; inset: 0; z-index: -2; }
.tot-art .scene { display: block; width: 100%; height: 100%; }
.tot-opt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: -1;
  background: linear-gradient(to bottom, rgba(255, 250, 246, 0), rgba(255, 250, 246, .9));
}
.tot-opt.dark::after { background: linear-gradient(to bottom, rgba(26, 12, 38, 0), rgba(26, 12, 38, .78)); }
.tot-lbl {
  position: relative; padding: 0 16px 16px;
  font: 400 clamp(27px, 8vw, 31px)/1.05 var(--font-display); letter-spacing: -.015em;
}
.tot-opt.dark .tot-lbl { color: #FFF4EC; text-shadow: 0 2px 12px rgba(10, 4, 20, .45); }
.tot-opt.a .tot-lbl { padding-bottom: 30px; }
.tot-or {
  position: relative; z-index: 2; justify-self: center; align-self: center;
  width: 46px; height: 46px; margin: -23px 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper);
  box-shadow: inset 0 0 0 1px #E2BC7A, inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(233, 200, 138, .55), var(--shadow-1);
  font: italic 400 18px var(--font-display); color: var(--rose-deep);
}
.tot-check {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--raspberry);
  box-shadow: 0 4px 10px -4px rgba(74, 20, 48, .4);
  transform: scale(0); transition: transform .45s var(--ease-spring);
}
.tot-check .ic { width: 16px; height: 16px; }
.tot-opt.chosen { transform: scale(1.02); box-shadow: inset 0 0 0 3px #fff, 0 22px 44px -14px rgba(212, 84, 122, .65); }
.tot-opt.chosen .tot-check { transform: scale(1); }
.tot.has-choice .tot-opt:not(.chosen) { opacity: .85; filter: saturate(.35) brightness(1.06); transform: scale(.955); }
.vibe-bottom { display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; align-items: end; gap: 4px; }
.vibe-bq { width: 96px; height: 106px; margin: 0 0 -4px -8px; }
.vibe-bq svg { width: 100%; height: 100%; overflow: visible; }
.vibe-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 4px; }
.both-pill {
  padding: 9px 20px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(212, 84, 122, .3), var(--shadow-1);
  font: 700 14px var(--font-ui); color: var(--rose-deep);
  transition: transform .3s var(--ease-spring), background-color .3s, color .3s;
}
.both-pill:active { transform: scale(.94); }
.both-pill.chosen { background: var(--raspberry); color: #fff; box-shadow: none; }
.vibe-hint { font: 600 17px/1.05 var(--font-hand); color: var(--berry-2); text-align: center; }
@media (max-height: 700px) {
  .vibe-dots { margin: 6px 0; }
  .vibe-bq { width: 74px; height: 82px; }
  .vibe-bottom { grid-template-columns: 74px minmax(0, 1fr) 74px; }
}

/* ---------- vibe result: a collectible card ---------- */
.screen--result { justify-content: center; align-items: center; gap: 14px; text-align: center; }
.tarot-wrap { width: min(80vw, 316px); }
.tarot {
  position: relative; overflow: hidden; background: var(--paper);
  border-radius: 999px 999px 22px 22px; padding: 12px 12px 22px;
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(207, 163, 94, .4);
}
.tarot::before {
  content: ""; position: absolute; inset: 6px; z-index: 2; pointer-events: none;
  border-radius: 999px 999px 17px 17px; border: 1px solid rgba(207, 163, 94, .75);
}
.tarot::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 243, 207, .7) 44%, rgba(255, 214, 231, .5) 52%, rgba(201, 232, 255, .4) 58%, transparent 70%);
  transform: translateX(-120%);
}
.tarot.shine::after { animation: sweep 1.5s ease-out; }
@keyframes sweep { 0% { opacity: 1; transform: translateX(-120%); } 100% { opacity: 1; transform: translateX(120%); } }
.tarot-art { position: relative; aspect-ratio: 1 / 1.02; border-radius: 999px 999px 10px 10px; overflow: hidden; }
.tarot-scene, .tarot-scene .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.tarot-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(58% 50% at 50% 60%, rgba(255, 251, 246, .72), rgba(255, 251, 246, 0) 72%), rgba(255, 251, 246, .34);
}
.tarot-bq { z-index: 1; }
.tarot-bq { position: absolute; left: 50%; bottom: -3%; width: 80%; transform: translateX(-50%); filter: drop-shadow(0 10px 14px rgba(74, 20, 48, .3)); }
.tarot-bq svg { width: 100%; height: auto; display: block; overflow: visible; }
.tarot-num { margin-top: 15px; font: 700 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: #B3893F; }
.tarot-name {
  margin-top: 8px; padding: 0 10px;
  font: italic 400 clamp(28px, 8.4vw, 34px)/1.05 var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--berry); text-wrap: balance;
}
.tarot-line { margin: 8px auto 0; max-width: 30ch; font: 400 15.5px/1.45 var(--font-display); color: var(--cocoa); text-wrap: pretty; }
.tarot-tags { margin-top: 13px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px; font: 700 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep); }
.gdot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.result-note { font: 600 19px/1.1 var(--font-hand); color: var(--berry-2); }
.result-go { width: 100%; }
@media (max-height: 700px) {
  .tarot-wrap { width: min(66vw, 262px); }
  .tarot-line { display: none; }
}

/* ---------- deck ---------- */
.screen--deck { padding-bottom: calc(var(--safe-b) + 12px); }
.deck-head { text-align: center; padding: 0 6px; }
.deck-title { font-size: clamp(22px, 6.2vw, 26px); }
.deck-sub { font: 500 12.5px/1.4 var(--font-ui); color: var(--berry-2); margin-top: 6px; }
.deck {
  position: relative; flex: 1; min-height: 0; margin: 16px 0 8px;
  perspective: 1400px; isolation: isolate;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.card {
  position: absolute; inset: 0; margin: auto;
  width: min(100%, 360px); height: min(100%, 552px);
  touch-action: none; cursor: grab;
  transition: transform .5s var(--ease-out), opacity .4s ease;
}
.card[data-pos="0"] { z-index: 30; }
.card[data-pos="1"] { z-index: 20; transform: translate3d(0, 14px, 0) scale(.95); }
.card[data-pos="2"] { z-index: 10; transform: translate3d(0, 28px, 0) scale(.9); }
.card[data-pos="3"] { z-index: 5; transform: translate3d(0, 34px, 0) scale(.86); opacity: 0; }
.card[data-pos="out"] { z-index: 40; }
.card.live { transition: none; cursor: grabbing; }
.card-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.3, 1.3, .45, 1);
}
.card.flipped .card-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(74, 20, 48, .08), 0 22px 44px -20px rgba(74, 20, 48, .38);
}
.face.front { display: flex; flex-direction: column; transform: translateZ(.1px); }
.face.back { transform: rotateY(180deg) translateZ(.1px); }
.art { position: relative; flex: 1 1 auto; min-height: 44%; overflow: hidden; }
.art .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(to bottom, rgba(255, 253, 249, 0), var(--paper)); }
.pill-match, .pill-when {
  position: absolute; z-index: 1; top: 12px; display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 999px; font: 700 11.5px/1 var(--font-ui); letter-spacing: .01em;
}
.pill-match .ic, .pill-when .ic { width: 12px; height: 12px; }
.pill-match { left: 12px; background: rgba(255, 253, 249, .94); color: var(--rose-deep); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.pill-when { right: 12px; background: rgba(42, 27, 61, .76); color: #FFE9D6; }
.info { position: relative; flex: none; padding: 26px 18px 12px; display: flex; flex-direction: column; gap: 5px; }
.card-stk { position: absolute; z-index: 2; left: 12px; top: -46px; transform: rotate(-8deg); }
.card-stk .stk { --s: 64px; }
.card-title { font: 400 clamp(22px, 6vw, 25px)/1.1 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.card-where { display: flex; align-items: center; gap: 5px; font: 700 12px/1.3 var(--font-ui); color: var(--rose-deep); letter-spacing: .01em; }
.card-where .ic { width: 13px; height: 13px; }
.card-tag {
  font-size: 14.5px; line-height: 1.42; color: var(--cocoa); text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip-tag { padding: 5px 11px; border-radius: 999px; background: var(--blush-2); color: var(--rose-deep); font: 700 11.5px var(--font-ui); letter-spacing: .02em; }
.card-meta { margin-top: auto; padding-top: 4px; display: flex; align-items: center; gap: 8px; font: 700 12px var(--font-ui); color: var(--ink-soft); }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.flip-cue { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--rose-deep); }
.flip-cue .ic { width: 14px; height: 14px; }
.stamp {
  position: absolute; z-index: 6; top: 28px; padding: 7px 13px 8px;
  border: 3px solid currentColor; border-radius: 12px;
  background: rgba(255, 253, 249, .82);
  font: 800 19px/1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase;
  opacity: 0; pointer-events: none; white-space: nowrap;
}
.stamp.like { left: 20px; color: var(--raspberry); transform: rotate(-14deg); }
.stamp.nope { right: 20px; color: #8B736E; transform: rotate(14deg); }
.stamp.super { left: 50%; top: 40%; color: #B8862F; transform: translateX(-50%) rotate(-8deg); }
.face.back { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--paper), #FFF2EA); }
.back-band { position: relative; flex: 1 1 26%; min-height: 104px; overflow: hidden; display: flex; align-items: flex-end; }
.back-band .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.back-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20, 8, 24, 0) 25%, rgba(20, 8, 24, .58)); }
.back-title { position: relative; z-index: 1; padding: 0 18px 12px; font: 400 21px/1.12 var(--font-display); letter-spacing: -.01em; color: #FFF7F0; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); text-wrap: balance; }
.back-body { flex: 0 1 auto; min-height: 0; padding: 14px 18px 12px; display: flex; flex-direction: column; gap: 9px; }
.back-body .kicker { margin-bottom: -2px; }
.plan { list-style: none; padding: 0; display: grid; gap: 6px; counter-reset: p; }
.plan li { counter-increment: p; display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 14px; line-height: 1.35; align-items: baseline; }
.plan li::before { content: counter(p); font: italic 400 18px/1 var(--font-display); color: var(--rose-deep); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 13.5px; line-height: 1.35; }
.facts dt { font: 800 11px/1.65 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--rose-deep); }
.facts dd { color: var(--cocoa); }
.note-card {
  position: relative; margin-top: 12px; padding: 15px 14px 9px; border-radius: 3px;
  background: #FCE4E8; color: #6E2443;
  font: 600 20px/1.12 var(--font-hand); transform: rotate(-1.2deg);
  box-shadow: 0 8px 16px -10px rgba(110, 36, 67, .45);
}
.washi {
  position: absolute; top: -9px; left: 50%; width: 76px; height: 18px; margin-left: -38px; transform: rotate(-3deg);
  background: repeating-linear-gradient(45deg, rgba(233, 200, 138, .78) 0 6px, rgba(255, 243, 207, .78) 6px 12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.note-card .from { display: block; text-align: right; font-size: 18px; opacity: .75; margin-top: 2px; }
.flip-back { margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; font: 600 12px var(--font-ui); color: var(--ink-soft); }
.flip-back .ic { width: 14px; height: 14px; }
.deck-foot { display: flex; align-items: center; justify-content: center; min-height: 40px; }
.deck-done.primary { padding: 8px 18px; }
.deck-controls { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 4px 0 2px; }
.ctl {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); box-shadow: var(--shadow-2);
  transition: transform .3s var(--ease-spring), opacity .3s;
}
.ctl:active { transform: scale(.88); }
.ctl .ic { width: 26px; height: 26px; }
.ctl.small { width: 48px; height: 48px; }
.ctl.small .ic { width: 21px; height: 21px; }
.ctl.nope { color: #9A7F7A; }
.ctl.like { width: 68px; height: 68px; color: #fff; background: var(--grad-cta); box-shadow: inset 0 0 0 1px rgba(255, 226, 170, .38), 0 14px 30px -12px rgba(194, 86, 110, .8); }
.ctl.like .ic { width: 30px; height: 30px; }
.ctl.super { color: #C99232; }
.ctl.undo { color: var(--ink-soft); }
.ctl[disabled] { pointer-events: none; }
.ctl.undo { transition: width .35s var(--ease-out), margin .35s var(--ease-out), opacity .3s ease, transform .35s var(--ease-spring); }
.ctl.gone { width: 0; margin: 0 -8px; opacity: 0; transform: scale(.4); }
@media (max-height: 700px) {
  .deck-sub { display: none; }
  .card-tag { -webkit-line-clamp: 2; }
  .card-chips { display: none; }
  .plan li:nth-child(4) { display: none; }
  .ctl { width: 54px; height: 54px; }
  .ctl.like { width: 60px; height: 60px; }
}

/* ---------- matches ---------- */
.match-head { text-align: center; padding-top: 4px; }
.match-head .kicker { margin-bottom: 8px; }
.match-head .lead { margin-top: 6px; }
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin: 26px 0 8px; }
.tile {
  position: relative; text-align: left; border-radius: 20px; background: var(--paper);
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  box-shadow: var(--shadow-2);
  transition: transform .4s var(--ease-spring), box-shadow .3s ease;
}
.tile.single { grid-column: 1 / -1; }
.tile-art { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 20px 20px 0 0; overflow: hidden; }
.tile.single .tile-art { aspect-ratio: 16 / 9; }
.tile-art .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile-art .stk { position: absolute; left: 8px; bottom: 6px; --s: 48px; transform: rotate(-8deg); }
.tile-t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding: 10px 12px 2px; font: 400 16px/1.18 var(--font-display); letter-spacing: -.01em;
}
.tile-w { display: block; margin-top: auto; padding: 4px 12px 12px; font: 700 11px/1.3 var(--font-ui); color: var(--rose-deep); }
.tile-bow { position: absolute; z-index: 2; top: -18px; left: 50%; width: 62px; margin-left: -31px; transform: scale(0) rotate(-20deg); transition: transform .5s var(--ease-spring); filter: drop-shadow(0 3px 4px rgba(140, 47, 77, .3)); }
.tile-bow svg { width: 100%; height: auto; }
.tile[aria-pressed="true"] { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--raspberry), 0 20px 36px -14px rgba(212, 84, 122, .65); }
.tile[aria-pressed="true"] .tile-bow { transform: scale(1) rotate(0); }
.none-actions { margin-top: 28px; }

/* ---------- details ---------- */
.det-head { text-align: center; }
.det-head .kicker { margin-bottom: 6px; }
.det-head .sub { font: italic 400 16px var(--font-display); color: var(--ink-soft); margin-top: 4px; }
.pick-card {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 10px 10px 10px;
  border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-1); text-align: left;
}
.picked-art { position: relative; flex: none; width: 60px; height: 60px; border-radius: 15px; overflow: hidden; }
.picked-art .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.picked-art .stk { position: absolute; left: 50%; top: 52%; --s: 38px; transform: translate(-50%, -50%) rotate(-6deg); }
.picked-t { flex: 1; min-width: 0; font: 400 17px/1.2 var(--font-display); letter-spacing: -.01em; }
.picked-w { display: block; margin-top: 3px; font: 700 11.5px/1.3 var(--font-ui); color: var(--rose-deep); }
.round-btn {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--rose-deep); background: var(--blush-2);
  transition: transform .3s var(--ease-spring);
}
.round-btn:active { transform: scale(.9) rotate(-20deg); }
.round-btn .ic { width: 19px; height: 19px; }
section.block { margin-top: 26px; }
.block-h { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 10px; font: 400 22px/1.15 var(--font-display); letter-spacing: -.012em; }
.block-h small { font: 600 12px var(--font-ui); color: var(--ink-soft); letter-spacing: 0; }
.cal { background: var(--paper); border-radius: 22px; padding: 14px 8px 10px; box-shadow: var(--shadow-1); }
.cal-month { text-align: center; margin-bottom: 10px; font: italic 400 19px/1 var(--font-display); color: var(--berry); }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow span { text-align: center; font: 700 11px var(--font-ui); letter-spacing: .08em; color: var(--ink-soft); padding-bottom: 6px; }
.cal-gap { grid-column: 1 / -1; height: 14px; display: grid; place-items: center; }
.cal-gap span { width: 36%; border-top: 2px dotted rgba(74, 20, 48, .2); }
.day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  min-height: 62px; padding: 16px 0 6px; border-radius: 14px; cursor: pointer;
  transition: background-color .2s ease, color .2s, box-shadow .2s;
}
.day input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: inherit; }
.day-mo { position: absolute; top: 4px; left: 0; right: 0; text-align: center; font: 800 10px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--rose-deep); }
.day-n { font: 600 16px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.day-wx { display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 12px; font: 600 11px/1 var(--font-ui); color: var(--ink-soft); letter-spacing: -.01em; white-space: nowrap; }
.day-wx .ic { width: 12px; height: 12px; }
.day-badge { position: absolute; top: 3px; right: 3px; color: var(--persimmon); }
.day-badge .ic { width: 13px; height: 13px; }
.day.on { background: linear-gradient(150deg, #CF5677, #EE8A78); color: #fff; box-shadow: inset 0 0 0 2px #fff, 0 10px 18px -10px rgba(212, 84, 122, .85); }
.day.on .day-wx, .day.on .day-mo, .day.on .day-badge { color: rgba(255, 255, 255, .95); }
.day.off { opacity: .28; cursor: not-allowed; }
.day.blank { visibility: hidden; }
.day:has(input:focus-visible) { outline: 3px solid rgba(212, 84, 122, .55); outline-offset: 1px; }
.cal-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 0 6px; font: 500 11px var(--font-ui); color: var(--ink-soft); }
.cal-foot a { color: inherit; text-decoration: none; opacity: .75; }
.seg { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.opt, .chip {
  position: relative; cursor: pointer;
  transition: background-color .25s ease, box-shadow .25s ease, transform .3s var(--ease-spring), color .25s;
}
.opt input, .chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: inherit; }
.opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
  min-height: 78px; padding: 10px 6px; border-radius: 18px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(212, 84, 122, .18), var(--shadow-1);
}
.opt-ic { width: 22px; height: 22px; color: var(--rose-deep); }
.opt-l { font: 700 13.5px/1.2 var(--font-ui); }
.opt-s { font: 600 11px/1.2 var(--font-ui); color: var(--ink-soft); }
.opt.on { background: linear-gradient(150deg, #FDE7EC, #FFE6D6); box-shadow: inset 0 0 0 2px var(--raspberry), 0 10px 20px -12px rgba(212, 84, 122, .7); transform: scale(1.02); }
.opt.on .opt-ic { color: var(--raspberry); }
.opt.locked { cursor: default; }
.dst-note { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 8px; font: 600 12px var(--font-ui); color: var(--ink-soft); }
.dst-note .ic { width: 14px; height: 14px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px 10px 12px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(212, 84, 122, .2), var(--shadow-1);
  font: 600 14px/1.1 var(--font-ui);
}
.chip .ic { width: 17px; height: 17px; color: var(--rose-deep); }
.chip.on { background: var(--raspberry); color: #fff; box-shadow: 0 10px 18px -10px rgba(212, 84, 122, .8); }
.chip.on .ic { color: #fff; }
.day-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.away-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 9px 10px 9px 16px;
  border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(212, 84, 122, .2), var(--shadow-1);
  font: 600 14.5px var(--font-ui); color: var(--berry);
}
.away-in {
  min-height: 40px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--blush-2);
  font: 600 16px var(--font-ui); color: var(--berry); -webkit-appearance: none; appearance: none;
}
.away-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--raspberry); }
.cal.empty .cal-month, .cal.empty .cal-dow, .cal.empty .cal-grid, .cal.empty .cal-foot { display: none; }
.cal.empty .cal-note { margin-bottom: 4px; }
.cal-note {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 6px 12px; padding: 12px 12px 6px;
  border-radius: 14px; background: var(--blush-2); text-align: center; font: 600 14px/1.35 var(--font-ui); color: var(--berry-2);
}
.note-in {
  display: block; width: 100%; min-height: 88px; resize: none; border: 0; border-radius: 18px;
  padding: 14px 16px; font: 400 16px/1.45 var(--font-ui); color: var(--berry);
  background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(212, 84, 122, .2), var(--shadow-1);
  -webkit-appearance: none; appearance: none;
}
.note-in::placeholder { color: rgba(74, 20, 48, .38); }
.note-in:focus { box-shadow: inset 0 0 0 2px var(--raspberry); }
.extras { border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(212, 84, 122, .18), var(--shadow-1); }
.extras-toggle { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 15px 16px; text-align: left; }
.extras-l { display: flex; flex-direction: column; gap: 2px; }
.extras-t { font: 400 21px/1.15 var(--font-display); letter-spacing: -.012em; }
.extras-l small { font: 600 12px var(--font-ui); color: var(--ink-soft); }
.extras-sum { justify-self: end; text-align: right; font: 600 12.5px/1.3 var(--font-ui); color: var(--rose-deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.extras-ic { width: 20px; height: 20px; color: var(--rose-deep); transition: transform .45s var(--ease-spring); }
.extras.open .extras-ic { transform: rotate(180deg); }
.extras-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.extras.open .extras-body { grid-template-rows: 1fr; }
.extras-in { overflow: hidden; padding: 0 16px; }
.extras.open .extras-in { padding-bottom: 16px; }
.extra-part { padding-top: 14px; border-top: 1px solid var(--line); }
.extra-part + .extra-part { margin-top: 16px; }
.block-h.small { font-size: 18px; }
.sign-terms { font: 500 15.5px var(--font-ui); margin-bottom: 10px; }
.sig-pad { position: relative; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(212, 84, 122, .2), var(--shadow-1); overflow: hidden; }
.sig-canvas { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 3 / 1; touch-action: none; cursor: crosshair; }
.sig-x { position: absolute; left: 16px; bottom: 20px; font: 400 22px/1 var(--font-display); color: rgba(74, 20, 48, .4); }
.sig-line { position: absolute; left: 40px; right: 18px; bottom: 24px; border-top: 1.5px solid rgba(74, 20, 48, .18); }
.sig-ph { position: absolute; left: 0; right: 0; top: 34%; display: flex; align-items: center; justify-content: center; gap: 7px; font: 600 21px var(--font-hand); color: rgba(194, 86, 110, .6); pointer-events: none; transition: opacity .3s; }
.sig-ph .ic { width: 16px; height: 16px; }
.sig-pad.signed .sig-ph { opacity: 0; }
.sig-clear { position: absolute; z-index: 2; top: 8px; right: 10px; padding: 6px 11px; border-radius: 999px; font: 700 12px var(--font-ui); color: var(--rose-deep); background: var(--blush-2); }
.sign-alt { display: flex; align-items: center; gap: 10px; margin-top: 12px; font: 500 14px var(--font-ui); color: var(--ink-soft); }
.check-box {
  flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 2px rgba(212, 84, 122, .45);
  transition: background-color .25s ease, box-shadow .25s ease, transform .35s var(--ease-spring);
}
.check-box .ic { width: 16px; height: 16px; color: #fff; transform: scale(0); transition: transform .35s var(--ease-spring); }
.check-box[aria-checked="true"] { background: var(--raspberry); box-shadow: none; }
.check-box[aria-checked="true"] .ic { transform: scale(1); }
.linkish { color: var(--raspberry); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.missing { min-height: 0; text-align: center; font: 600 12.5px var(--font-ui); color: var(--rose-deep); }
.missing:empty { display: none; }
.wiggle { animation: wiggle .55s ease; }
@keyframes wiggle {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px) rotate(-1deg); }
  40% { transform: translateX(6px) rotate(1deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* ---------- sheet dialogs ---------- */
dialog.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto;
  width: 100%; max-width: 480px; max-height: 88%;
  padding: 0; border: 0; border-radius: 28px 28px 0 0;
  background: var(--paper); color: var(--berry);
  box-shadow: 0 -20px 60px -20px rgba(74, 20, 48, .45);
  overflow: hidden;
}
dialog.sheet[open] { animation: sheet-up .5s var(--ease-out); }
dialog.sheet::backdrop { background: rgba(42, 27, 61, .4); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet-in { padding: 10px 22px calc(var(--safe-b) + 22px); max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; }
.grabber { width: 42px; height: 5px; border-radius: 3px; background: rgba(74, 20, 48, .15); margin: 0 auto 16px; }
.sheet-title { font-size: 28px; text-align: center; }
.sheet-sub { text-align: center; font: italic 400 15px var(--font-display); color: var(--ink-soft); margin: 4px 0 16px; }
.terms-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; counter-reset: t; }
.terms-list li { counter-increment: t; display: grid; grid-template-columns: 30px 1fr; gap: 6px; font-size: 15.5px; line-height: 1.45; color: var(--cocoa); }
.terms-list li::before { content: "§" counter(t); font: italic 600 15px/1.45 var(--font-display); color: var(--rose-deep); }
.fb-actions { display: grid; gap: 10px; margin-top: 16px; }
.fb-number { text-align: center; font: 700 20px var(--font-ui); letter-spacing: .04em; margin-top: 6px; user-select: all; -webkit-user-select: all; }

/* ---------- ticket ---------- */
.screen--ticket { color: var(--night-ink); text-align: center; align-items: center; padding-top: calc(var(--safe-t) + 10px); }
.tk-sky { width: 104px; margin: 0 auto -8px; }
.tk-sky svg { width: 100%; height: auto; overflow: visible; }
.cn-line { stroke-dasharray: 100; stroke-dashoffset: 100; }
.cn-stars path { transform-box: fill-box; transform-origin: center; animation: twinkle-s 2.6s ease-in-out infinite; }
.cn-stars path:nth-child(2n) { animation-delay: -1.3s; }
@keyframes twinkle-s { 0%, 100% { opacity: .55; transform: scale(.82); } 50% { opacity: 1; transform: scale(1.1); } }
.tk-title { font-size: clamp(64px, 18vw, 84px); color: #FFE9DC; padding: 0 .12em .08em; text-shadow: 0 0 34px rgba(255, 170, 200, .35); }
.tk-sub { font: 500 15px var(--font-ui); color: rgba(255, 233, 220, .78); margin-top: -2px; }
.ticket-wrap { position: relative; width: 100%; max-width: 360px; margin: 18px auto 0; }
.tk-slot {
  position: absolute; z-index: 3; left: -10px; right: -10px; top: -3px; height: 6px; border-radius: 3px;
  background: #0E0818; box-shadow: 0 2px 6px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0; transition: opacity .5s ease;
}
.ticket-wrap.printing .tk-slot { opacity: 1; }
.tk-feed { position: relative; }
.tk-feed::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 40px; bottom: -14px; border-radius: 30px;
  background: rgba(10, 4, 20, .6); filter: blur(22px); opacity: 0; transition: opacity .8s ease;
}
.ticket-wrap.printing .tk-feed { overflow: hidden; }
.ticket-wrap.printed .tk-feed::before { opacity: 1; }
.ticket {
  --stub: 104px;
  position: relative; text-align: left; background: var(--paper); color: var(--berry); border-radius: 22px; overflow: hidden;
  -webkit-mask:
    radial-gradient(circle 12px at 0 calc(100% - var(--stub)), #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 12px at 100% calc(100% - var(--stub)), #0000 98%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 12px at 0 calc(100% - var(--stub)), #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 12px at 100% calc(100% - var(--stub)), #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .7) 45%, rgba(255, 214, 231, .55) 50%, rgba(201, 232, 255, .55) 55%, transparent 66%);
  mix-blend-mode: soft-light; transform: translateX(-120%);
}
.ticket.holo::after { animation: sweep 1.4s ease-out .1s; }
.tk-art { position: relative; height: 92px; overflow: hidden; }
.tk-art .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.tk-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(rgba(255, 253, 249, 0), var(--paper)); }
.tk-main { padding: 4px 20px 14px; background-size: 120px 24px; }
.tk-top { display: flex; justify-content: space-between; font: 800 11px/1 var(--font-ui); letter-spacing: .22em; }
.tk-what { margin-top: 10px; font: 400 26px/1.1 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.tk-where { margin-top: 6px; font: 700 11.5px/1.4 var(--font-ui); letter-spacing: .11em; text-transform: uppercase; color: var(--rose-deep); }
.tk-date { position: relative; margin-top: 13px; padding: 11px 0 10px; border-top: 1px solid var(--hair); }
.tk-dk { font: 800 10.5px/1.2 var(--font-ui); letter-spacing: .18em; color: var(--ink-soft); }
.tk-dnum { margin-top: 4px; font: 300 52px/1 var(--font-display); font-variation-settings: "opsz" 144; font-variant-numeric: lining-nums; letter-spacing: -.02em; color: var(--berry); }
.tk-date.small .tk-dnum { font: italic 400 38px/1.1 var(--font-display); }
.tk-dsub { margin-top: 3px; font: 600 18px/1 var(--font-hand); color: var(--rose-deep); }
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); }
.tk-cell { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--hair); }
.tk-cell:nth-child(2n) { padding-left: 12px; border-left: 1px solid var(--hair); }
.tk-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tk-cell dt { font: 800 11px/1.2 var(--font-ui); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); }
.tk-cell dd { margin-top: 3px; font: 500 15px/1.3 var(--font-ui); color: var(--berry); }
.tk-note { margin-top: 10px; font: italic 400 17px/1.35 var(--font-display); color: var(--berry-2); }
.tk-note-k { display: block; margin-bottom: 3px; font: 800 11px/1.2 var(--font-ui); font-style: normal; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); }
.tk-perf { position: relative; z-index: 1; height: 10px; margin: -5px 18px; background: radial-gradient(circle, #20142F 2.2px, transparent 2.7px) repeat-x 0 50% / 12px 10px; }
.tk-stub {
  position: relative; height: var(--stub); display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 0 16px 0 10px; background: linear-gradient(180deg, #FFF6EF, #FCE6E2);
}
.tk-bq { width: 60px; height: 66px; }
.tk-bq svg { width: 100%; height: 100%; overflow: visible; }
.tk-who { min-width: 0; }
.tk-names { font: 400 27px/1 var(--font-script); color: var(--berry); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-names.signed { display: flex; align-items: center; gap: 4px; overflow: visible; }
.tk-sig { display: block; width: 88px; height: 34px; color: var(--berry); flex: none; }
.tk-sig svg { width: 100%; height: 100%; overflow: visible; }
.tk-x { font: 400 26px/1 var(--font-script); }
.tk-seat { margin-top: 8px; font: 800 10.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.tk-code { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.tk-barcode { width: 76px; height: 42px; color: var(--berry); }
.tk-barcode svg { width: 100%; height: 100%; }
.tk-serial { font: 500 9.5px/1 var(--font-mono); letter-spacing: .18em; color: var(--ink-soft); }
.tk-stamp { position: absolute; z-index: 4; right: -2px; top: 50%; width: 86px; margin-top: -43px; color: #C2566E; opacity: .9; mix-blend-mode: multiply; transform: rotate(-8deg); pointer-events: none; }
.tk-stamp svg { width: 100%; height: auto; }
.ticket-actions { display: grid; gap: 4px; width: 100%; max-width: 360px; margin: 20px auto 0; }
.tk-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; }
.tk-row .btn { padding: 14px 14px; }
.screen--ticket .btn.soft { color: var(--night-ink); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 233, 220, .32); }
.screen--ticket .btn.link { color: rgba(255, 233, 220, .75); text-decoration-color: rgba(255, 179, 199, .5); }
.tk-foot { margin: 12px 0 calc(var(--safe-b) + 44px); font: 500 12.5px var(--font-ui); color: rgba(255, 233, 220, .6); }
.save-overlay {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(var(--safe-t) + 20px) 24px calc(var(--safe-b) + 20px);
  background: rgba(20, 10, 32, .88);
  color: var(--night-ink); text-align: center;
}
.save-overlay img { max-height: 70vh; max-width: 100%; border-radius: 18px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6); -webkit-touch-callout: default; user-select: auto; }
.save-overlay p { font: 600 15px var(--font-ui); }

/* ---------- Ben's pages (Swiss-minimal) ---------- */
.screen--meet, .screen--truths { color: var(--ink); }
.btn.ink {
  color: var(--stone); background: var(--ink); font-family: var(--font-swiss); font-weight: 650; letter-spacing: -.01em;
  box-shadow: 0 16px 30px -16px rgba(23, 17, 15, .7);
}
.btn.ink .ic { width: 20px; height: 20px; color: var(--persimmon); transition: transform .3s var(--ease-spring); }
.btn.ink:active .ic { transform: translateX(3px); }
.btn.ink[aria-disabled="true"] { opacity: .32; }
.mono-k { font: 600 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--persimmon); }
.meet-head { padding: 4px 2px 0; }
.wordmark { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; color: var(--ink); }
.wm { font: 800 clamp(58px, 17vw, 70px)/.9 var(--font-swiss); letter-spacing: -.055em; }
.wm-dot { color: var(--persimmon); }
.meet-sub { margin-top: 12px; max-width: 30ch; font: 500 16px/1.4 var(--font-swiss); letter-spacing: -.01em; color: var(--ink-2); text-wrap: pretty; }
.swiss-card {
  position: relative; margin-top: 22px; padding: 22px 18px 6px; border-radius: 22px; background: var(--stone);
  box-shadow: 0 1px 0 rgba(23, 17, 15, .04), 0 22px 44px -28px rgba(23, 17, 15, .35);
}
.swiss-card .clip { position: absolute; top: -20px; right: 30px; width: 17px; transform: rotate(6deg); }
.swiss-card .clip svg { width: 100%; height: auto; }
.passport { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; margin-top: 14px; align-items: center; }
.pstamp {
  position: relative; color: var(--c, var(--ink)); padding: 6px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center;
  border: 2px solid currentColor; transform: rotate(var(--r, 0deg));
  mix-blend-mode: multiply;
  -webkit-mask-image: var(--ink-tex); mask-image: var(--ink-tex); -webkit-mask-size: 160px; mask-size: 160px;
  transition: transform .45s var(--ease-spring);
}
.pstamp.s-circle { border-radius: 50%; aspect-ratio: 1; }
.pstamp.s-rect { border-radius: 10px; aspect-ratio: 1.08; }
.pstamp.s-oval { border-radius: 50% / 44%; aspect-ratio: 1.08; }
.pstamp::after { content: ""; position: absolute; inset: 4px; border: 1px dashed currentColor; border-radius: inherit; opacity: .5; }
.pstamp.now { border-width: 2.5px; }
.pstamp .ic { width: 22px; height: 22px; }
.pstamp .city { font: 600 11px/1.1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.pstamp .pnote { font: 500 11px/1.2 var(--font-mono); padding: 0 8px; }
.pstamp.thunk { animation: thunk .45s var(--ease-spring); }
@keyframes thunk { 0% { transform: rotate(var(--r)) scale(1); } 35% { transform: rotate(var(--r)) scale(.86); } 100% { transform: rotate(var(--r)) scale(1); } }
.prints { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 4px; padding: 0 4px; }
.print {
  position: relative; display: block; padding: 7px 7px 0; border-radius: 3px; background: #FFFDF9;
  transform: rotate(var(--r, 0deg));
  box-shadow: 0 1px 2px rgba(23, 17, 15, .12), 0 14px 26px -12px rgba(23, 17, 15, .5);
  transition: transform .45s var(--ease-spring);
}
.print:active { transform: rotate(var(--r, 0deg)) scale(.96); }
.print.tall { width: 41%; }
.print.wide { width: 55%; }
.print-img { display: block; overflow: hidden; background: #2A211E; }
.print.tall .print-img { aspect-ratio: 3 / 4; }
.print.wide .print-img { aspect-ratio: 3 / 2; }
.print-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; display: block; }
.print-cap { display: block; padding: 8px 2px 9px; text-align: left; font: 500 11px/1.25 var(--font-mono); letter-spacing: .02em; color: var(--ink-2); }
.print-cap b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--persimmon); text-transform: uppercase; letter-spacing: .1em; }
@media (hover: hover) and (pointer: fine) { .print:hover { transform: rotate(0deg) scale(1.03); } }
.photo-view {
  position: fixed; inset: 0; z-index: 85; display: grid; place-items: center;
  padding: calc(var(--safe-t) + 24px) 18px calc(var(--safe-b) + 24px);
  background: rgba(23, 17, 15, .84);
}
.pv-fig { margin: 0; width: min(100%, 440px); padding: 10px 10px 0; border-radius: 4px; background: #FFFDF9; transform: rotate(-1deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.pv-fig img { display: block; width: 100%; max-height: 72vh; object-fit: contain; background: #2A211E; }
.pv-fig figcaption { padding: 12px 4px 14px; font: 500 13px/1.4 var(--font-mono); color: var(--ink-2); }
.pv-fig figcaption b { font-weight: 600; color: var(--persimmon); text-transform: uppercase; letter-spacing: .1em; }
.pv-close {
  position: absolute; top: calc(var(--safe-t) + 14px); right: 14px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #FFFDF9; background: rgba(255, 255, 255, .14);
}
.pv-close .ic { width: 20px; height: 20px; }
.pstamp[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 9%, transparent); }
.pstamp[aria-pressed="true"]::after { opacity: .9; }
.pass-story {
  display: block; min-height: 68px; margin: 16px 0 14px; padding: 13px 14px; border-radius: 14px;
  background: rgba(23, 17, 15, .045); box-shadow: inset 0 0 0 1px var(--rule);
}
.ps-city { display: block; font: 600 11px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--persimmon); }
.ps-text { display: block; margin-top: 5px; font: 500 15.5px/1.4 var(--font-swiss); letter-spacing: -.012em; color: var(--ink); text-wrap: pretty; }
.pass-story.empty { display: flex; align-items: center; }
.pass-story.empty .ps-city { display: none; }
.pass-story.empty .ps-text { margin: 0; color: var(--ink-2); }
.meet-more {
  margin-top: 18px; padding: 4px 18px 18px; border-radius: 22px; background: var(--stone);
  box-shadow: 0 1px 0 rgba(23, 17, 15, .04), 0 22px 44px -28px rgba(23, 17, 15, .35);
}
.traits { list-style: none; margin: 0; padding: 0; }
.trait { padding: 16px 0 17px; border-bottom: 1px solid var(--rule); }
.trait-k { font: 600 11px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.trait-k b { font-weight: 600; color: var(--persimmon); }
.trait-t { margin-top: 7px; font: 700 clamp(22px, 6.4vw, 25px)/1.08 var(--font-swiss); letter-spacing: -.035em; color: var(--ink); }
.trait-v { margin-top: 6px; font: 450 15px/1.45 var(--font-swiss); letter-spacing: -.008em; color: var(--ink-2); text-wrap: pretty; }
.day-job { margin-top: 14px; font: 500 13.5px/1.45 var(--font-swiss); color: var(--ink-2); }
.serious { margin-top: 18px; border-radius: 20px; background: var(--ink); color: var(--stone); overflow: hidden; box-shadow: 0 18px 36px -24px rgba(23, 17, 15, .7); }
.serious-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px; text-align: left; }
.serious-k { display: block; font: 600 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #F4A27E; }
.serious-t { display: block; margin-top: 5px; font: 700 18px/1.2 var(--font-swiss); letter-spacing: -.02em; }
.serious-ic { width: 22px; height: 22px; flex: none; color: #F4A27E; transition: transform .45s var(--ease-spring); }
.serious.open .serious-ic { transform: rotate(180deg); }
.serious-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.serious.open .serious-body { grid-template-rows: 1fr; }
.serious-in { overflow: hidden; }
.serious-in p { padding: 0 18px 12px; font: 450 15.5px/1.5 var(--font-swiss); letter-spacing: -.008em; color: rgba(251, 248, 244, .86); text-wrap: pretty; }
.serious-in p:first-child { padding-top: 2px; border-top: 1px solid rgba(251, 248, 244, .12); padding-top: 14px; }
.serious-in .serious-end { padding-bottom: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: #F4A27E; }
.btn.line {
  color: var(--ink); background: transparent; font-family: var(--font-swiss); font-weight: 650; letter-spacing: -.01em;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
html[data-theme="ben"] .btn.link { color: var(--ink-2); text-decoration-color: rgba(226, 85, 42, .55); font-family: var(--font-swiss); }

.truths-title { font: 700 clamp(36px, 11vw, 46px)/1 var(--font-swiss); letter-spacing: -.045em; margin-top: 10px; }
.truths-theme { margin-top: 10px; font: 700 18px/1.2 var(--font-swiss); letter-spacing: -.02em; color: var(--ink); }
.truths-theme:empty { display: none; }
.truths-hint { font: 500 14.5px var(--font-swiss); color: var(--ink-2); margin-top: 4px; }
.truths-stage { display: grid; margin-top: 18px; }
.truths-stage > * { grid-area: 1 / 1; }
.truths { display: grid; gap: 10px; align-content: start; }
.truth {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 10px;
  width: 100%; text-align: left; padding: 16px; border-radius: 18px;
  background: var(--stone); box-shadow: inset 0 0 0 1px var(--rule), 0 10px 24px -20px rgba(23, 17, 15, .4);
  transition: box-shadow .3s ease, transform .35s var(--ease-spring), opacity .3s ease;
}
.truth:active { transform: scale(.98); }
.truth-guess {
  display: none; grid-column: 1 / -1; justify-self: start; margin-bottom: 4px; padding: 3px 7px; border-radius: 6px;
  font: 600 11px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink);
}
.truths.revealed .truth.picked .truth-guess { display: block; }
.truth-t { position: relative; font: 600 16.5px/1.32 var(--font-swiss); letter-spacing: -.018em; }
.truth-tag {
  position: relative; font: 700 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 7px; border-radius: 6px; opacity: 0; transform: scale(.5) rotate(-8deg);
}
.truth-a-wrap { position: relative; grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.truth-a { overflow: hidden; font: 450 14.5px/1.42 var(--font-swiss); color: var(--ink-2); }
.truth-a span { display: block; padding-top: 6px; }
.truth-wm {
  position: absolute; right: -4px; bottom: -14px; pointer-events: none;
  font: 800 66px/1 var(--font-swiss); letter-spacing: -.05em; color: var(--persimmon);
  opacity: 0; transform: rotate(-8deg); transition: opacity .6s ease .25s;
}
.truths.revealed .truth.is-lie .truth-wm { opacity: .1; }
.truths.revealed .truth-a-wrap { grid-template-rows: 1fr; }
.truths.revealed .truth-tag { opacity: 1; transform: rotate(-4deg); transition: opacity .3s ease, transform .5s var(--ease-spring); }
.truth.is-lie .truth-tag { background: var(--persimmon); color: #fff; }
.truth.is-true .truth-tag { background: rgba(23, 17, 15, .07); color: var(--ink); }
.truths.revealed .truth.is-lie { box-shadow: inset 0 0 0 2px var(--persimmon), 0 14px 28px -18px rgba(226, 85, 42, .6); }
.truths.revealed .truth:not(.is-lie):not(.picked) { opacity: .78; }
.truths.revealed .truth.picked { outline: 1.5px dashed var(--ink); outline-offset: -6px; }
.truths.revealed .truth { pointer-events: none; }
.truth-verdict { margin-top: 14px; text-align: left; }
.truth-verdict:not(:empty) { padding: 14px 16px; border-radius: 16px; background: rgba(251, 248, 244, .94); box-shadow: inset 0 0 0 1px var(--rule); }
.tv-main { display: block; font: 600 22px/1.2 var(--font-swiss); letter-spacing: -.02em; }
.tv-sub { display: block; margin-top: 6px; font: 500 15px/1.4 var(--font-swiss); color: var(--ink-2); }

/* ---------- toasts / banners / overlays ---------- */
#toasts {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: calc(var(--safe-b) + 22px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 14px;
  max-width: 420px; padding: 12px 16px; border-radius: 16px;
  background: rgba(42, 27, 61, .94); color: var(--night-ink);
  font: 600 14px/1.35 var(--font-ui);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .55);
  animation: toast-in .5s var(--ease-out);
}
.toast button { color: #FFB3C7; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.inapp {
  position: absolute; z-index: 30; left: 12px; right: 12px; top: calc(var(--safe-t) + 10px);
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px;
  background: rgba(42, 27, 61, .92); color: var(--night-ink);
  font: 600 12.5px/1.35 var(--font-ui); text-align: left;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5);
}
.inapp button { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #FFB3C7; }
#rotate {
  position: fixed; inset: 0; z-index: 90; display: none; place-items: center; text-align: center;
  padding: 24px; background: var(--cream);
}
#rotate .rotate-in { display: grid; gap: 14px; justify-items: center; }
#rotate p { font: 400 22px/1.2 var(--font-display); }
@media (orientation: landscape) and (max-height: 500px) { #rotate:not(.dismissed) { display: grid; } }
#preloader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--cream); transition: opacity .55s ease, visibility .55s;
}
#preloader.done { opacity: 0; visibility: hidden; }
#preloader svg { width: 64px; height: 64px; }
#preloader path {
  fill: none; stroke: var(--raspberry); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 80; stroke-dashoffset: 80;
  animation: draw 1.1s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1.2); } 50% { transform: scale(1.38); } }
.debug {
  position: fixed; z-index: 99; left: 6px; bottom: 6px; max-width: 46vw; max-height: 40vh; overflow: auto;
  padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .75); color: #9f9; font: 10px/1.3 ui-monospace, monospace;
  white-space: pre-wrap; pointer-events: none;
}

/* ---------- reduced motion ---------- */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .16s !important;
}
.reduce-motion #ambient { display: none; }
.reduce-motion .card-inner { transform: none !important; }
.reduce-motion .face.back { transform: none; opacity: 0; visibility: hidden; }
.reduce-motion .card.flipped .face.back { opacity: 1; visibility: visible; }
.reduce-motion .card.flipped .face.front { opacity: 0; }
.reduce-motion .doodle path, .reduce-motion .maybe-heart path, .reduce-motion .cn-line { stroke-dashoffset: 0; }
