:root {
  --bg: #0c0916;
  --bg-2: #141026;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .11);
  --text: #f5f0ff;
  --muted: #a9a0c4;
  --pink: #ff4f8b;
  --gold: #ffc857;
  --teal: #36e2c6;
  --violet: #8b5cf6;
  --red: #ff5a5f;
  --paper: #f7efdc;
  --ink: #2b2318;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
  --type: 'Special Elite', 'Courier New', monospace;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 10% 20%, rgba(139, 92, 246, .14), transparent 60%),
    radial-gradient(800px 600px at 90% 70%, rgba(255, 79, 139, .10), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(54, 226, 198, .08), transparent 60%);
}
body.locked { overflow: hidden; }
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--pink); color: #fff; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 250; }

/* ---------- shared ---------- */
.eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.eyebrow.dark { color: rgba(42, 19, 0, .7); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.7em; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--pink), #ff7a59);
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(255, 79, 139, .7);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 36px -10px rgba(255, 79, 139, .85); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.small { padding: .7em 1.25em; font-size: .95rem; }
.btn.dark { background: #2a1300; color: #fff; box-shadow: none; }
.btn.light { background: rgba(255, 255, 255, .45); color: #2a1300; box-shadow: none; }

.section { max-width: 1100px; margin: 0 auto; padding: 110px 20px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }
.tag {
  display: inline-block; margin-bottom: 18px; padding: .35em .95em;
  font-family: var(--display); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(255, 200, 87, .35); border-radius: 999px;
}
h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 5.6vw, 3.7rem); line-height: 1.04; letter-spacing: -.025em;
}
.hl-pink { color: var(--pink); }
.hl-gold { color: var(--gold); }
.hl-teal { color: var(--teal); }
.hl-red { color: var(--red); }
.pink { color: var(--pink); }
.scribble { font-family: var(--hand); color: var(--gold); font-weight: 700; display: inline-block; transform: rotate(-6deg); padding: 0 .1em; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

.progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 260; background: linear-gradient(90deg, var(--pink), var(--gold), var(--teal)); }
.progress-label {
  position: fixed; bottom: 16px; right: 16px; z-index: 260;
  padding: 6px 12px; border-radius: 999px; font-size: .78rem; color: var(--muted);
  background: rgba(20, 16, 38, .85); backdrop-filter: blur(8px); border: 1px solid var(--line);
}

/* ---------- gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 280; display: grid; place-items: center; padding: 20px;
  grid-template-columns: minmax(0, 1fr);
  background: radial-gradient(ellipse at top, #2a1650, var(--bg) 70%);
  transition: opacity .8s ease, visibility .8s;
}
.gate.open { opacity: 0; visibility: hidden; }
.gate-card {
  width: 100%; max-width: 480px; text-align: center; padding: 42px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  backdrop-filter: blur(10px);
}
.gate-icon { font-size: 3rem; display: inline-block; animation: wobble 2.2s ease-in-out infinite; }
.gate h1 { font-family: var(--display); font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.12; margin: 10px 0; }
.gate h1 span { color: var(--pink); }
.gate-q { color: var(--muted); }
.gate-options { display: grid; gap: 10px; margin-top: 22px; }
.gate-options button {
  padding: 14px; border-radius: 14px; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); transition: .2s;
}
.gate-options button:hover { border-color: var(--pink); background: rgba(255, 79, 139, .12); }
.gate-options button.shake { animation: shake .4s; border-color: var(--red); }
.gate-msg { min-height: 2.4em; margin-top: 16px; color: var(--gold); font-family: var(--hand); font-size: 1.45rem; line-height: 1.2; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.ticker {
  position: relative; z-index: 3; overflow: hidden; white-space: nowrap;
  background: var(--gold); color: #1a1200; font-family: var(--display); font-weight: 700; font-size: .95rem;
}
.ticker .live {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 0 14px; background: var(--red); color: #fff; letter-spacing: .1em;
}
.ticker .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.ticker-track { display: inline-flex; gap: 44px; padding: 11px 0 11px 44px; width: max-content; animation: marquee 45s linear infinite; }
.ticker-track span::before { content: "●"; color: var(--red); margin-right: 14px; font-size: .7em; vertical-align: middle; }

.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float 16s ease-in-out infinite; }
.b1 { width: 460px; height: 460px; background: var(--violet); top: -60px; left: -140px; }
.b2 { width: 420px; height: 420px; background: var(--pink); bottom: -120px; right: -120px; animation-delay: -6s; }
.b3 { width: 260px; height: 260px; background: var(--teal); top: 40%; left: 58%; opacity: .22; animation-delay: -10s; }

.floaters span { position: absolute; z-index: 1; font-size: clamp(1.6rem, 4vw, 2.7rem); opacity: .85; animation: float 8s ease-in-out infinite; }

.hero-inner {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 20px 80px;
}
.hero-title {
  display: flex; margin-top: 10px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(5.2rem, 23vw, 15.5rem); line-height: .86; letter-spacing: -.045em;
}
.hero-title span {
  display: inline-block;
  background: linear-gradient(180deg, #fff 18%, var(--pink) 72%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation:
    drop .9s cubic-bezier(.2, 1.4, .4, 1) calc(var(--i) * .09s + .3s) both,
    bob 3.2s ease-in-out calc(var(--i) * .15s + 1.7s) infinite;
}
body.locked .hero-title span { animation-play-state: paused; }
.hero-script { font-family: var(--hand); font-size: clamp(1.9rem, 5vw, 2.9rem); color: var(--gold); transform: rotate(-3deg); margin-top: 2px; }
.hero-sub { max-width: 640px; margin: 22px auto 0; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); }
.hero-sub strong { color: var(--text); }
.hero-sub strong.pink { color: var(--pink); }

.counter-wrap { margin: 36px 0 34px; }
.counter-label { color: var(--muted); font-size: .95rem; }
.counter { display: flex; gap: 12px; justify-content: center; margin: 14px 0; }
.counter div { min-width: 78px; padding: 12px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.counter b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.counter span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.counter-foot { font-size: .95rem; color: var(--muted); }
.counter-foot b { color: var(--gold); }

/* ---------- tracking ---------- */
.track-card {
  max-width: 760px; margin: 0 auto; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.track-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.track-top small { color: var(--muted); font-size: .8rem; }
.track-top h3 { font-family: var(--display); font-size: 1.3rem; line-height: 1.25; margin-top: 4px; }
.status-pill {
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  font-weight: 700; font-size: .78rem; letter-spacing: .1em;
  color: var(--red); background: rgba(255, 90, 95, .15); border: 1px solid rgba(255, 90, 95, .4);
  animation: pulse 1.6s infinite;
}
.track-steps { list-style: none; padding: 24px 0 8px; }
.track-steps li { position: relative; padding: 0 0 22px 40px; color: var(--muted); }
.track-steps li::before { content: ""; position: absolute; left: 10px; top: 10px; bottom: -6px; width: 2px; background: var(--line); }
.track-steps li:last-child::before { display: none; }
.track-steps li::after {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; font-weight: 800;
  background: var(--teal); color: #06231e;
}
.track-steps li.warn::after { content: "!"; background: var(--gold); color: #2a1300; }
.track-steps li.late::after { content: "✕"; background: var(--red); color: #fff; }
.track-steps b { display: block; color: var(--text); font-family: var(--display); }
.track-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px dashed var(--line); }
.complaint-msg { flex: 1; min-width: 200px; color: var(--gold); font-size: .95rem; }

/* ---------- court ---------- */
.case-wrap { max-width: 800px; margin: 0 auto; }
.case-paper {
  position: relative; padding: 48px clamp(22px, 5vw, 58px) 52px; overflow: hidden;
  background: var(--paper); color: var(--ink); border-radius: 6px;
  font-family: var(--type); font-size: 1.02rem;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85);
  transform: rotate(-.6deg);
}
.case-header { text-align: center; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 10px; letter-spacing: .05em; font-size: .9rem; }
.case-header strong { display: block; font-size: 1.3rem; margin-bottom: 4px; }
.case-paper h4 { margin: 26px 0 10px; font-family: var(--type); font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; color: #8a1c1c; }
.case-paper ol { padding-left: 22px; }
.case-paper li { margin-bottom: 8px; }
.case-paper blockquote { padding: 10px 16px; border-left: 4px solid #8a1c1c; background: rgba(138, 28, 28, .07); font-size: 1.1rem; }
.court-note { font-family: var(--hand); font-size: 1.5rem; line-height: 1.2; color: #1d4ed8; transform: rotate(-1.5deg); margin-top: 10px; }
.stamp {
  position: absolute; right: 7%; bottom: 96px;
  padding: 4px 18px; border: 5px solid #c62828; border-radius: 8px;
  color: #c62828; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: .12em;
  mix-blend-mode: multiply; opacity: 0; transform: rotate(-14deg) scale(3);
  transition: opacity .3s ease .7s, transform .45s cubic-bezier(.2, 1.6, .4, 1) .7s;
  pointer-events: none;
}
.case-wrap.in .stamp { opacity: .85; transform: rotate(-14deg) scale(1); }
.resign { margin-top: 34px; padding-top: 18px; border-top: 1px dashed rgba(43, 35, 24, .35); text-align: center; }

/* ---------- profile ---------- */
.profile {
  display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 38px; align-items: center;
  max-width: 1000px; margin: 0 auto; padding: 30px; border-radius: 28px;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
              linear-gradient(135deg, var(--pink), var(--violet), var(--teal)) border-box;
  border: 2px solid transparent;
}
.profile-photo {
  position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2a1650, #4a1840);
}
.profile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-emoji { font-size: 6rem; }
.profile-photo .lvl {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 4px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); color: var(--gold);
}
.profile h3 { font-family: var(--display); font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1; }
.alias { font-family: var(--hand); font-size: 1.9rem; color: var(--gold); line-height: 1.3; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.badges span { padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.stat { margin-bottom: 14px; }
.stat-top { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; margin-bottom: 6px; }
.stat-top b { font-family: var(--display); }
.bar { height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--violet), var(--pink)); transition: width 1.6s cubic-bezier(.2, .8, .2, 1) .3s; }
.profile.in .bar i { width: var(--v); }
.stat.low .bar i { background: var(--red); }
.stat.low b { color: var(--red); }
.special { margin-top: 20px; padding: 14px 16px; border-radius: 14px; font-size: .95rem; background: rgba(255, 200, 87, .08); border: 1px dashed rgba(255, 200, 87, .45); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 40px 28px; padding: 14px 6px; }
.polaroid {
  position: relative; padding: 12px 12px 16px; border-radius: 4px; background: #fbf8f2;
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .85);
  transform: rotate(var(--r, -2deg)); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1);
}
.polaroid[data-src] { cursor: zoom-in; }
.polaroid:hover, .polaroid:focus-visible { transform: rotate(0) scale(1.05); z-index: 2; outline: none; }
.polaroid::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px;
  background: rgba(255, 200, 87, .6); transform: rotate(-3deg);
}
.polaroid .ph { aspect-ratio: 1; overflow: hidden; background: #222; }
.polaroid .ph img { width: 100%; height: 100%; object-fit: cover; }
.polaroid .ph.empty {
  display: grid; place-items: center; padding: 14px; text-align: center; color: #fff; font-size: 3.4rem;
  background: linear-gradient(135deg, #2a1650, #4a1840);
}
.polaroid .ph.empty small { display: block; margin-top: 8px; font-size: .82rem; color: rgba(255, 255, 255, .7); font-family: var(--body); }
.polaroid figcaption { margin-top: 12px; min-height: 2.3em; font-family: var(--hand); font-size: 1.38rem; line-height: 1.15; color: var(--ink); }

.lightbox {
  position: fixed; inset: 0; z-index: 270; display: grid; place-items: center; padding: 20px;
  grid-template-columns: minmax(0, 1fr);
  background: rgba(5, 3, 12, .93); opacity: 0; visibility: hidden; transition: .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { width: 100%; max-width: 900px; text-align: center; }
.lightbox img { max-height: 76vh; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { margin-top: 14px; font-family: var(--hand); font-size: 1.7rem; color: var(--gold); }
.close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 1.1rem;
}

/* ---------- timeline ---------- */
.timeline { position: relative; max-width: 920px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: linear-gradient(var(--pink), var(--violet), var(--teal));
}
.tl-item { position: relative; width: 50%; padding: 0 46px 46px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 46px 46px; }
.tl-dot {
  position: absolute; top: 18px; right: -23px; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--bg-2); border: 2px solid var(--pink); box-shadow: 0 0 0 6px var(--bg);
}
.tl-item:nth-child(even) .tl-dot { right: auto; left: -23px; }
.tl-card { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.tl-card:hover { border-color: rgba(255, 79, 139, .5); transform: translateY(-3px); }
.tl-card small { color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; }
.tl-card h3 { font-family: var(--display); font-size: 1.38rem; line-height: 1.2; margin: 4px 0 8px; }
.tl-card p { color: var(--muted); }
.mini-stats { display: flex; gap: 10px; margin-top: 14px; }
.mini-stats div { flex: 1; padding: 10px 6px; border-radius: 12px; text-align: center; background: var(--surface-2); }
.mini-stats b { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.mini-stats div:last-child b { color: var(--red); }
.mini-stats span { font-size: .74rem; color: var(--muted); }
.license {
  display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 8px;
  font-weight: 700; font-size: .84rem; color: var(--red); border: 2px dashed var(--red); transform: rotate(-2deg);
}
.small-note { margin-top: 8px; font-size: .9rem; }

/* ---------- chat ---------- */
.chat {
  max-width: 560px; margin: 0 auto; overflow: hidden; border-radius: 26px;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(139, 92, 246, .7);
}
.chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: linear-gradient(135deg, var(--violet), var(--pink)); }
.chat-top small { display: block; color: var(--teal); font-size: .78rem; }
.chat-body { height: 380px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .98rem; line-height: 1.4; animation: pop .3s cubic-bezier(.2, 1.4, .4, 1); }
.msg.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--pink), #ff7a59); border-bottom-right-radius: 6px; }
.msg.typing { display: flex; gap: 4px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .6; animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
.chat-actions { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--line); }
.scoreboard { display: flex; gap: 14px; max-width: 560px; margin: 22px auto 0; }
.scoreboard div { flex: 1; padding: 16px; text-align: center; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.scoreboard span { display: block; font-size: .82rem; color: var(--muted); }
.scoreboard b { font-family: var(--display); font-size: 2.5rem; line-height: 1.15; }
.scoreboard div:first-child b { color: var(--teal); }
.scoreboard div:last-child b { color: var(--red); }
.scoreboard small { display: block; color: var(--muted); font-size: .76rem; }

/* ---------- forgive ---------- */
.forgive { text-align: center; }
.forgive-area { position: relative; height: 210px; max-width: 520px; margin: 0 auto; }
#yesBtn, #noBtn { position: absolute; top: 70px; width: 140px; }
#yesBtn { left: calc(50% - 160px); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), box-shadow .2s; }
#noBtn { left: calc(50% + 20px); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; transition: left .25s ease, top .25s ease; }
.forgive-msg { min-height: 2.2em; font-family: var(--hand); font-size: 1.7rem; color: var(--gold); }

/* ---------- cake ---------- */
.cake-wrap { text-align: center; }
.cake { display: inline-flex; flex-direction: column; align-items: center; }
.candles { display: flex; gap: 22px; align-items: flex-end; height: 100px; margin-bottom: -4px; position: relative; z-index: 1; }
.candle { position: relative; width: 36px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; border: 0; background: none; padding: 0; }
.candle .stick { width: 14px; height: 58px; border-radius: 4px 4px 2px 2px; background: repeating-linear-gradient(45deg, #fff 0 6px, var(--pink) 6px 12px); }
.late-candle .stick { background: repeating-linear-gradient(45deg, #fff 0 6px, var(--gold) 6px 12px); }
.candle .flame {
  width: 16px; height: 26px; margin-bottom: 6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 70%, #fff 0 18%, #ffe27a 30%, #ff9b2f 62%, rgba(255, 90, 40, 0) 72%);
  box-shadow: 0 0 22px 8px rgba(255, 190, 80, .45);
  transform-origin: 50% 90%; animation: flicker .25s ease-in-out infinite alternate;
  transition: opacity .3s, transform .3s;
}
.candle.out .flame { opacity: 0; transform: scale(.2); animation: none; }
.candle.out::after {
  content: ""; position: absolute; top: 20px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: rgba(220, 220, 230, .5); filter: blur(3px); animation: smoke 1.4s ease-out forwards;
}
.tier { position: relative; margin: 0 auto; }
.tier-top {
  width: 240px; height: 76px; border-radius: 14px 14px 6px 6px; background: #f6b8cf;
  display: grid; place-items: center;
}
.tier-top::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 26px; border-radius: 14px 14px 0 0;
  background: radial-gradient(circle at 12px 14px, #fff 11px, transparent 12px) 0 8px / 24px 24px repeat-x, linear-gradient(#fff, #fff) 0 0 / 100% 14px no-repeat;
}
.cake-text { position: relative; margin-top: 16px; font-family: var(--hand); font-weight: 700; font-size: 1.6rem; color: #8a1c4a; }
.tier-bottom {
  width: 300px; height: 86px; border-radius: 10px 10px 6px 6px;
  background: linear-gradient(#7a4a33 0 45%, #f6dfa8 45% 52%, #7a4a33 52%);
}
.tier-bottom::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 22px; border-radius: 10px 10px 0 0;
  background: radial-gradient(circle at 12px 10px, #5a3322 10px, transparent 11px) 0 4px / 24px 22px repeat-x, linear-gradient(#5a3322, #5a3322) 0 0 / 100% 10px no-repeat;
}
.plate { width: 350px; max-width: 92vw; height: 16px; margin-top: -2px; border-radius: 50%; background: linear-gradient(#ece6fa, #b9b0d4); box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .7); }
.cake-note { margin-top: 24px; color: var(--muted); font-size: .92rem; }
.cake-msg { min-height: 1.6em; margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2rem); background: linear-gradient(90deg, var(--pink), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- offers ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer {
  position: relative; padding: 28px 22px; text-align: left; color: var(--text);
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.offer:hover { transform: translateY(-6px); border-color: var(--pink); box-shadow: 0 20px 40px -24px rgba(255, 79, 139, .8); }
.offer.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 200, 87, .25); }
.offer .em { font-size: 2.7rem; }
.offer h3 { font-family: var(--display); font-size: 1.38rem; margin: 10px 0 6px; }
.offer p { color: var(--muted); font-size: .95rem; }
.offer .pick { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--pink); }
.greedy { display: block; margin: 18px auto 0; padding: 12px 16px; background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.greedy:hover { color: var(--gold); }
.greedy-msg { text-align: center; min-height: 1.5em; margin-top: 8px; font-family: var(--hand); font-size: 1.45rem; color: var(--gold); }

.modal {
  position: fixed; inset: 0; z-index: 270; display: grid; place-items: center; padding: 20px;
  grid-template-columns: minmax(0, 1fr); overflow-y: auto;
  background: rgba(5, 3, 12, .86); opacity: 0; visibility: hidden; transition: .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.coupon {
  width: 100%; max-width: 470px; padding: 14px; border-radius: 22px; text-align: center; color: #2a1300;
  background: linear-gradient(135deg, #ffd36e, #ff8a5b);
  transform: scale(.85) rotate(-3deg); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1);
}
.modal.open .coupon { transform: none; }
.coupon-inner { padding: 26px 20px; border: 2px dashed rgba(42, 19, 0, .4); border-radius: 14px; }
.coupon-em { font-size: 3.2rem; margin-top: 8px; }
.coupon h3 { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; margin: 4px 0 10px; }
.coupon p { font-size: .98rem; }
.coupon .code { display: inline-block; margin: 16px 0 6px; padding: 6px 14px; border-radius: 8px; font-family: monospace; font-size: 1.15rem; letter-spacing: .15em; background: rgba(255, 255, 255, .45); }
.coupon .valid { font-size: .85rem; opacity: .75; }
.coupon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* ---------- letter ---------- */
.letter-wrap { max-width: 740px; margin: 0 auto; }
.letter {
  padding: clamp(30px, 6vw, 60px) clamp(24px, 6vw, 60px) clamp(30px, 6vw, 60px) clamp(48px, 9vw, 84px);
  border-radius: 8px; color: var(--ink);
  font-family: var(--hand); font-size: clamp(1.4rem, 3vw, 1.65rem); line-height: 1.42;
  background:
    linear-gradient(90deg, transparent clamp(30px, 6vw, 60px), rgba(255, 90, 95, .45) clamp(30px, 6vw, 60px), rgba(255, 90, 95, .45) calc(clamp(30px, 6vw, 60px) + 2px), transparent calc(clamp(30px, 6vw, 60px) + 2px)),
    #fdf9f0;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85);
  transform: rotate(.5deg);
}
.letter p { margin-bottom: .8em; }
.letter .sign { text-align: right; margin: 1.2em 0 0; }

/* ---------- footer ---------- */
.footer { padding: 60px 20px 90px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.reminder { display: inline-block; margin-bottom: 16px; padding: 10px 18px; border-radius: 999px; font-size: .92rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }
.reminder b { color: var(--teal); }

/* ---------- keyframes ---------- */
@keyframes drop { from { transform: translateY(-130%) rotate(-12deg); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, -28px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .5; } }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes wobble { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes blink { 50% { opacity: .15; } }
@keyframes flicker { from { transform: scaleY(1) rotate(-3deg); } to { transform: scaleY(1.12) rotate(3deg); } }
@keyframes smoke { to { transform: translateY(-50px) scale(3); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; padding: 22px; }
  .profile-photo { max-width: 280px; width: 100%; margin: 0 auto; }
  .offers { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 16px; }
  .section-head { margin-bottom: 40px; }
  .forgive-area { height: 170px; }
  #yesBtn, #noBtn { top: 40px; }
  .stamp { position: relative; right: auto; bottom: auto; display: table; margin: 22px auto 0; }
  .floaters span { font-size: 1.5rem; opacity: .7; }
  .floaters span:nth-child(1) { top: 8% !important; left: 6% !important; }
  .floaters span:nth-child(2) { top: 8% !important; right: 6% !important; }
  .floaters span:nth-child(3) { bottom: 4% !important; left: 8% !important; }
  .floaters span:nth-child(4) { bottom: 4% !important; right: 8% !important; }
  .timeline::before { left: 23px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 32px 66px; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 0; right: auto; top: 14px; }
  .track-card { padding: 22px 18px; }
  .track-top { flex-direction: column-reverse; }
  .counter { gap: 8px; }
  .counter div { min-width: 66px; }
  .floaters span:nth-child(n+5) { display: none; }
}
@media (max-width: 420px) {
  #yesBtn, #noBtn { width: 120px; }
  #yesBtn { left: calc(50% - 132px); }
  #noBtn { left: calc(50% + 12px); }
  .tier-top { width: 210px; }
  .tier-bottom { width: 260px; }
  .candles { gap: 14px; }
  .scoreboard { gap: 10px; }
  .scoreboard div { padding: 14px 10px; }
}
@media (max-width: 340px) {
  .scoreboard { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
