/* Hurra design system — joyful, fast, every script, light + dark, RTL via logical properties. */

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #FFF7EF;
  --bg-2: #FFEFE2;
  --surface: #FFFFFF;
  --surface-2: #FFF9F4;
  --ink: #1E1433;
  --ink-2: #4A3D63;
  --muted: #7A6E8F;
  --line: #F0E2D6;
  --pink: #FF3D7F;
  --pink-2: #FF6B9D;
  --orange: #FF8A3D;
  --sun: #FFC53D;
  --mint: #2EC4B6;
  --grape: #7B5CFF;
  --sky: #3DB6FF;
  --green: #1FB26B;
  --red: #E5484D;
  --grad-party: linear-gradient(135deg, #FF3D7F 0%, #FF8A3D 55%, #FFC53D 100%);
  --grad-night: linear-gradient(135deg, #7B5CFF 0%, #3DB6FF 100%);
  --grad-mint: linear-gradient(135deg, #2EC4B6 0%, #3DB6FF 100%);
  --focus: 0 0 0 3px rgba(123, 92, 255, .35);
  --r-xs: 10px; --r-sm: 14px; --r: 20px; --r-lg: 28px; --r-xl: 40px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(30, 20, 51, .06), 0 2px 8px rgba(30, 20, 51, .05);
  --sh-2: 0 6px 24px rgba(30, 20, 51, .08), 0 2px 6px rgba(30, 20, 51, .05);
  --sh-3: 0 18px 50px rgba(30, 20, 51, .14), 0 4px 12px rgba(30, 20, 51, .06);
  --sh-pink: 0 10px 30px rgba(255, 61, 127, .32);
  --font-ui: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue",
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-display: "Manrope Variable", ui-rounded, "SF Pro Rounded", "Inter Variable", system-ui, -apple-system, "Segoe UI",
    Roboto, "Noto Sans", sans-serif;
  --font-hand: "Segoe Print", "Bradley Hand", "Comic Sans MS", "Chalkboard SE", ui-rounded, cursive;
  --w: 1160px;
  --w-narrow: 720px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #140C24; --bg-2: #1B1130; --surface: #21163A; --surface-2: #281C45; --ink: #F7F1FF; --ink-2: #D9CCF0;
  --muted: #A898C4; --line: #35285A; --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 8px 28px rgba(0,0,0,.45);
  --sh-3: 0 20px 60px rgba(0,0,0,.55); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #140C24; --bg-2: #1B1130; --surface: #21163A; --surface-2: #281C45; --ink: #F7F1FF; --ink-2: #D9CCF0;
    --muted: #A898C4; --line: #35285A; --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 8px 28px rgba(0,0,0,.45);
    --sh-3: 0 20px 60px rgba(0,0,0,.55); color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video, canvas, audio { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--grape); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--pink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.32rem); color: var(--ink-2); max-width: 46ch; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
::selection { background: rgba(255, 61, 127, .22); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[x-cloak] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ------------------------------------------------------------------ layout */
.wrap { width: min(100% - 2.4rem, var(--w)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.4rem, var(--w-narrow)); margin-inline: auto; }
.stack > * + * { margin-block-start: var(--gap, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, .75rem); align-items: center; }
.grid { display: grid; gap: var(--gap, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr)); }
.center { text-align: center; }
.section { padding-block: clamp(3rem, 8vw, 6.5rem); position: relative; }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-alt { background: var(--bg-2); }
.spacer { flex: 1; }

/* ------------------------------------------------------------------ header / footer */
.hdr { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.hdr .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font: 800 1.45rem/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 12px; background: var(--grad-party); display: grid; place-items: center; box-shadow: var(--sh-pink);
  color: #fff; font-size: 1.15rem; transform: rotate(-8deg); transition: transform .4s var(--spring); }
.logo:hover .logo-mark { transform: rotate(8deg) scale(1.06); }
.logo b { background: var(--grad-party); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: .25rem; margin-inline-start: 1rem; }
.nav a { padding: .5rem .8rem; border-radius: var(--r-pill); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.hdr-actions { margin-inline-start: auto; display: flex; gap: .5rem; align-items: center; }
@media (max-width: 860px) { .nav { display: none; } }
.ftr { padding: 3rem 0 6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; background: var(--bg-2); }
.ftr a { color: var(--ink-2); text-decoration: none; }
.ftr a:hover { color: var(--pink); }
.ftr-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
.ftr h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: .8rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset-inline: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom));
    z-index: 45; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-3); padding: .35rem; }
  .tabbar a { display: grid; justify-items: center; gap: .1rem; padding: .45rem .2rem; border-radius: 16px; text-decoration: none; color: var(--ink-2); font-size: .72rem; font-weight: 700; }
  .tabbar a span { font-size: 1.35rem; line-height: 1; }
  .tabbar a[aria-current="page"] { background: var(--bg-2); color: var(--pink); }
}

/* ------------------------------------------------------------------ buttons */
.btn { --b: var(--surface); --c: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.3rem;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--b); color: var(--c); font: 700 1rem/1.1 var(--font-ui);
  text-decoration: none; cursor: pointer; transition: transform .18s var(--spring), box-shadow .2s, background .2s; box-shadow: var(--sh-1);
  -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); color: var(--c); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-primary { --c: #fff; background: var(--grad-party); border-color: transparent; box-shadow: var(--sh-pink); }
.btn-primary:hover { --c: #fff; box-shadow: 0 14px 38px rgba(255, 61, 127, .42); }
.btn-night { --c: #fff; background: var(--grad-night); border-color: transparent; box-shadow: 0 10px 30px rgba(123, 92, 255, .32); }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 1.02rem 1.8rem; font-size: 1.1rem; }
.btn-xl { padding: 1.2rem 2.2rem; font-size: 1.22rem; border-radius: 22px; }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.btn-block { width: 100%; }
.btn-wa { --c: #fff; background: #25D366; border-color: transparent; }
.btn-tg { --c: #fff; background: #2AABEE; border-color: transparent; }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: .4rem; }
.field + .field { margin-top: 1rem; }
label, .label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.hint { font-size: .85rem; color: var(--muted); }
.input, input[type=text], input[type=email], input[type=date], input[type=time], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 1rem/1.4 var(--font-ui); transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--grape); box-shadow: var(--focus); }
.input-xl { font: 700 clamp(1.3rem, 3vw, 1.8rem)/1.2 var(--font-display) !important; padding: 1rem 1.2rem !important; border-radius: var(--r) !important; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.seg { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: .55rem 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; }
.seg input:checked + label { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 10%, var(--surface)); color: var(--pink); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--pink); margin-top: .15rem; }
.error { color: var(--red); font-weight: 600; font-size: .92rem; }
.honey { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: clamp(1.2rem, 3vw, 2rem); }
.card-hover { transition: transform .25s var(--spring), box-shadow .25s; }
.card-hover:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: var(--sh-3); }
.panel { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: clamp(1.4rem, 4vw, 2.6rem); border: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.chip-hot { background: color-mix(in srgb, var(--pink) 12%, var(--surface)); color: var(--pink); border-color: color-mix(in srgb, var(--pink) 30%, var(--line)); }
.chip-sun { background: color-mix(in srgb, var(--sun) 22%, var(--surface)); color: #8A5A00; border-color: color-mix(in srgb, var(--sun) 40%, var(--line)); }
:root[data-theme="dark"] .chip-sun { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip-sun { color: var(--sun); } }
.badge { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: var(--r-pill); background: var(--pink); color: #fff; font-size: .78rem; font-weight: 800; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad-night); flex: none; }
.notice { padding: 1rem 1.2rem; border-radius: var(--r); background: color-mix(in srgb, var(--mint) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--mint) 35%, var(--line)); }
.notice-warn { background: color-mix(in srgb, var(--sun) 16%, var(--surface)); border-color: color-mix(in srgb, var(--sun) 45%, var(--line)); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 7rem) 0 clamp(4rem, 10vw, 8rem); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background: radial-gradient(40% 50% at 12% 22%, rgba(255, 61, 127, .20), transparent 70%),
              radial-gradient(35% 45% at 88% 18%, rgba(255, 197, 61, .26), transparent 70%),
              radial-gradient(40% 50% at 70% 90%, rgba(123, 92, 255, .18), transparent 70%); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1.05fr .95fr; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 .hl { background: var(--grad-party); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.6rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
.world-clock { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .95rem .5rem .55rem; border-radius: var(--r-pill); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--sh-1); font-weight: 700; font-size: .92rem; margin-bottom: 1.2rem; }
.world-clock .pulse { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-party); display: grid; place-items: center; color: #fff; font-size: .8rem;
  animation: pulse 2s ease-in-out infinite; }
.world-clock b { font-variant-numeric: tabular-nums; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 61, 127, .45); } 50% { box-shadow: 0 0 0 10px rgba(255, 61, 127, 0); } }
.balloons { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.balloon { position: absolute; bottom: -140px; width: 64px; height: 80px; border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%; opacity: .9;
  animation: rise var(--d, 16s) linear infinite; animation-delay: var(--delay, 0s); filter: saturate(1.1); }
.balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 90px; background: color-mix(in srgb, var(--ink) 25%, transparent); }
.balloon::before { content: ""; position: absolute; inset: 14% 22% auto auto; width: 14px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.55); transform: rotate(25deg); }
@keyframes rise { 0% { transform: translate3d(0, 0, 0) rotate(-4deg); } 50% { transform: translate3d(18px, -60vh, 0) rotate(4deg); } 100% { transform: translate3d(-12px, -130vh, 0) rotate(-3deg); } }

/* phone mockup in the hero */
.mock { position: relative; justify-self: center; width: min(360px, 88vw); aspect-ratio: 9 / 17.5; border-radius: 46px; padding: 12px; background: #1E1433;
  box-shadow: var(--sh-3), inset 0 0 0 2px rgba(255,255,255,.08); transform: rotate(3deg); transition: transform .6s var(--spring); }
.mock:hover { transform: rotate(0) scale(1.01); }
.mock-screen { height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); position: relative; }
.float-tag { position: absolute; padding: .55rem .85rem; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-3); font-weight: 800; font-size: .9rem;
  animation: bob 5s ease-in-out infinite; white-space: nowrap; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ------------------------------------------------------------------ tiles, steps, faq */
.tiles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1.6rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .3s var(--spring), box-shadow .3s; min-height: 230px; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--sh-3); color: var(--ink); }
.tile .emoji { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.tile h3 { margin: .2rem 0 0; }
.tile p { color: var(--ink-2); margin: 0; }
.tile .go { margin-top: auto; font-weight: 800; color: var(--pink); }
.tile::after { content: ""; position: absolute; inset: auto -30% -55% auto; width: 220px; height: 220px; border-radius: 50%; background: var(--tile-glow, rgba(255, 61, 127, .12)); }
.steps { counter-reset: s; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { counter-increment: s; padding: 1.4rem; border-radius: var(--r-lg); background: var(--surface); border: 1px dashed color-mix(in srgb, var(--pink) 35%, var(--line)); }
.step::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--grad-party); color: #fff; font: 800 1.1rem var(--font-display); margin-bottom: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.25rem; }
.faq details + details { margin-top: .75rem; }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--pink); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--ink-2); }
.cta-band { border-radius: var(--r-xl); padding: clamp(2rem, 6vw, 4rem); background: var(--grad-party); color: #fff; text-align: center; box-shadow: var(--sh-pink); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band .btn { --b: #fff; --c: #1E1433; }

/* ------------------------------------------------------------------ group card board */
.board-head { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.board-head .to { font: 800 clamp(2rem, 6vw, 3.6rem)/1.05 var(--font-display); }
.board { columns: 4 250px; column-gap: 1.1rem; padding-bottom: 2rem; }
.note { break-inside: avoid; margin: 0 0 1.1rem; padding: 1.1rem 1.15rem 1rem; border-radius: 18px; background: var(--note, #FFF3B0); color: #2A1E12;
  box-shadow: 0 8px 22px rgba(30,20,51,.10); transform: rotate(var(--tilt, -1deg)); transition: transform .3s var(--spring); position: relative; }
.note:hover { transform: rotate(0) scale(1.02); z-index: 2; }
.note .who { font-weight: 800; margin-top: .7rem; font-size: .92rem; opacity: .85; }
.note .body { font: 500 1.08rem/1.5 var(--font-ui); white-space: pre-wrap; overflow-wrap: anywhere; }
.note.hand .body { font-family: var(--font-hand); font-size: 1.2rem; }
.note img { border-radius: 12px; margin-bottom: .7rem; width: 100%; }
.note-pink { --note: #FFD6E4; } .note-sun { --note: #FFF0B3; } .note-mint { --note: #CFF5EF; } .note-sky { --note: #D4EEFF; } .note-grape { --note: #E4DCFF; } .note-peach { --note: #FFE0CC; }
.note-add { display: grid; place-items: center; min-height: 160px; border: 2.5px dashed color-mix(in srgb, var(--pink) 45%, var(--line)); background: transparent; color: var(--pink);
  font-weight: 800; cursor: pointer; text-decoration: none; transform: none; box-shadow: none; }
.note-add:hover { background: color-mix(in srgb, var(--pink) 7%, transparent); }

/* ------------------------------------------------------------------ opening experience: envelope + cake */
.stage { min-height: 100svh; display: grid; place-items: center; padding: 2rem 1rem; position: relative; overflow: hidden; background: radial-gradient(60% 50% at 50% 30%, rgba(255, 197, 61, .22), transparent 70%), var(--bg); }
.envelope { position: relative; width: min(420px, 86vw); aspect-ratio: 4 / 3; cursor: pointer; perspective: 1200px; filter: drop-shadow(0 30px 40px rgba(30,20,51,.25)); }
.env-back, .env-front, .env-flap { position: absolute; inset: 0; border-radius: 18px; }
.env-back { background: #E94F7C; }
.env-front { background: linear-gradient(160deg, #FF6B9D, #FF3D7F); clip-path: polygon(0 35%, 50% 72%, 100% 35%, 100% 100%, 0 100%); z-index: 3; }
.env-flap { background: linear-gradient(180deg, #FF8AB2, #FF5C8F); clip-path: polygon(0 0, 100% 0, 50% 62%); transform-origin: top; transition: transform .9s var(--ease); z-index: 4; }
.env-letter { position: absolute; inset: 8% 7% 10%; border-radius: 12px; background: var(--surface); z-index: 2; display: grid; place-items: center; text-align: center; padding: 1rem;
  transition: transform 1s var(--ease) .5s; font: 800 1.4rem/1.2 var(--font-display); color: var(--ink); }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .env-letter { transform: translateY(-58%); }
.seal { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--sun); z-index: 5;
  display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 6px 16px rgba(0,0,0,.2); transition: opacity .3s; }
.envelope.open .seal { opacity: 0; }
.cake { position: relative; width: 240px; height: 210px; margin: 0 auto; }
.cake .tier { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 18px 18px 14px 14px; }
.cake .t1 { bottom: 0; width: 240px; height: 86px; background: linear-gradient(#FFB4CB, #FF8AB2); box-shadow: inset 0 -10px 0 rgba(0,0,0,.06); }
.cake .t2 { bottom: 76px; width: 180px; height: 70px; background: linear-gradient(#FFF1D6, #FFE1A8); }
.cake .icing { position: absolute; left: 50%; transform: translateX(-50%); bottom: 132px; width: 186px; height: 22px; border-radius: 14px; background: #fff;
  -webkit-mask: radial-gradient(12px at 12px 100%, #0000 98%, #000) -12px 0 / 24px 100%; mask: radial-gradient(12px at 12px 100%, #0000 98%, #000) -12px 0 / 24px 100%; }
.candles { position: absolute; left: 50%; transform: translateX(-50%); bottom: 146px; display: flex; gap: 22px; }
.candle { width: 12px; height: 46px; border-radius: 4px; background: repeating-linear-gradient(135deg, #7B5CFF 0 6px, #fff 6px 12px); position: relative; }
.flame { position: absolute; left: 50%; bottom: 100%; width: 14px; height: 22px; margin-left: -7px; border-radius: 50% 50% 35% 35%;
  background: radial-gradient(circle at 50% 70%, #fff 0 20%, #FFE066 40%, #FF8A3D 75%, transparent 76%); animation: flicker .18s ease-in-out infinite alternate; transform-origin: 50% 90%; }
.cake.out .flame { animation: blowout .5s forwards; }
@keyframes flicker { to { transform: scaleY(1.12) skewX(3deg); } }
@keyframes blowout { to { transform: scale(0); opacity: 0; } }
.smoke { position: absolute; left: 50%; bottom: 100%; width: 8px; height: 8px; border-radius: 50%; background: rgba(150,150,150,.5); opacity: 0; }
.cake.out .smoke { animation: smoke 1.6s ease-out forwards; }
@keyframes smoke { 0% { opacity: .7; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -80px) scale(4); } }
.blow-hint { margin-top: 1.4rem; font-weight: 800; color: var(--ink-2); animation: bob 3s ease-in-out infinite; }

/* ------------------------------------------------------------------ song player */
.player { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: var(--r-lg); background: var(--grad-night); color: #fff; box-shadow: 0 14px 40px rgba(123, 92, 255, .35); }
.player .play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: #fff; color: var(--grape); font-size: 1.5rem; cursor: pointer; flex: none; transition: transform .2s var(--spring); }
.player .play:hover { transform: scale(1.08); }
.player .title { font: 800 1.05rem/1.2 var(--font-display); }
.player .sub { font-size: .85rem; opacity: .85; }
.bars { display: flex; gap: 3px; align-items: flex-end; height: 26px; margin-inline-start: auto; }
.bars i { width: 4px; border-radius: 2px; background: rgba(255,255,255,.85); height: 30%; animation: eq 1s ease-in-out infinite; animation-play-state: paused; }
.player.playing .bars i { animation-play-state: running; }
.bars i:nth-child(2) { animation-delay: -.2s; } .bars i:nth-child(3) { animation-delay: -.5s; } .bars i:nth-child(4) { animation-delay: -.7s; } .bars i:nth-child(5) { animation-delay: -.35s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ------------------------------------------------------------------ invitation */
.invite-cover { border-radius: var(--r-xl); overflow: hidden; position: relative; min-height: 320px; display: grid; align-items: end; padding: clamp(1.5rem, 5vw, 3rem);
  color: #fff; background: var(--cover, var(--grad-party)); background-size: cover; background-position: center; box-shadow: var(--sh-3); }
.invite-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20, 12, 36, .65)); }
.invite-cover > * { position: relative; }
.invite-cover h1 { color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.25); }
.facts { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 1.5rem 0; }
.fact { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.fact .ic { font-size: 1.5rem; line-height: 1; }
.rsvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.rsvp label { display: grid; place-items: center; gap: .2rem; padding: 1rem .5rem; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 800; text-align: center; }
.rsvp label span { font-size: 1.8rem; }
.rsvp input { position: absolute; opacity: 0; }
.rsvp input:checked + label { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 9%, var(--surface)); }
.countdown { display: flex; gap: .6rem; }
.countdown div { min-width: 70px; padding: .7rem .4rem; border-radius: var(--r); background: rgba(255,255,255,.18); backdrop-filter: blur(6px); text-align: center; }
.countdown b { display: block; font: 800 1.7rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown small { opacity: .85; }

/* ------------------------------------------------------------------ calendar */
.month { margin-top: 1.6rem; }
.month h3 { display: flex; align-items: center; gap: .6rem; }
.person { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.person + .person { margin-top: .5rem; }
.person .when { margin-inline-start: auto; font-weight: 800; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.person.today { border-color: var(--pink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 18%, transparent); }
.person.today .when { color: var(--pink); }

/* ------------------------------------------------------------------ sheet, toast, share */
.sheet-bg { position: fixed; inset: 0; background: rgba(20, 12, 36, .5); z-index: 60; display: grid; place-items: end center; backdrop-filter: blur(4px); }
.sheet { width: min(560px, 100%); background: var(--surface); border-radius: 28px 28px 0 0; padding: 1.4rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom)); box-shadow: var(--sh-3);
  animation: up .35s var(--ease); max-height: 92svh; overflow: auto; }
@media (min-width: 700px) { .sheet-bg { place-items: center; } .sheet { border-radius: 28px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(6rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; padding: .8rem 1.2rem; border-radius: var(--r-pill);
  background: var(--ink); color: var(--bg); font-weight: 700; box-shadow: var(--sh-3); animation: up .3s var(--ease); }
.share { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }

/* ------------------------------------------------------------------ themes for cards & invitations (backgrounds) */
.th-confetti { --cover: radial-gradient(circle at 20% 20%, #FFC53D 0 6px, transparent 7px) 0 0 / 60px 60px, radial-gradient(circle at 70% 60%, #3DB6FF 0 5px, transparent 6px) 0 0 / 70px 70px, radial-gradient(circle at 40% 80%, #2EC4B6 0 4px, transparent 5px) 0 0 / 50px 50px, var(--grad-party); }
.th-night { --cover: radial-gradient(circle at 30% 30%, rgba(255,255,255,.8) 0 1.5px, transparent 2px) 0 0 / 40px 40px, var(--grad-night); }
.th-mint { --cover: var(--grad-mint); }
.th-gold { --cover: linear-gradient(135deg, #2A1E12, #6B4E16 60%, #C9A24A); }
.th-pastel { --cover: linear-gradient(135deg, #FFD6E4, #E4DCFF 50%, #D4EEFF); }

/* ------------------------------------------------------------------ ads (placeholders filled after a human gesture) */
.ad-slot { margin: 2rem auto; text-align: center; min-height: 0; }
.ad-slot[data-filled="1"] { min-height: 100px; }
.ad-label { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .3rem; }

/* ------------------------------------------------------------------ misc */
.lang-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .3rem; }
.lang-pick a { padding: .5rem .7rem; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.lang-pick a:hover, .lang-pick a[aria-current="true"] { background: var(--bg-2); color: var(--pink); }
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.skeleton { background: linear-gradient(90deg, var(--line) 25%, var(--surface-2) 50%, var(--line) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.kbd { font: 700 .8rem ui-monospace, monospace; padding: .1rem .4rem; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .balloons { display: none; }
}
@media print { .hdr, .ftr, .tabbar, .ad-slot, .no-print { display: none !important; } body { background: #fff; } .note { box-shadow: none; } }
