/* zebra.banji.date — a birthday card with the partytime.banji.date stagecraft: dark stage, gold marquee type,
   cream copy, one big animated poster, and a few set pieces (savanna, reef, court, trail, jukebox, cake). */
:root {
  --stage: #0e0c18; --stage-2: #1d1633; --gold: #e0a94a; --gold-2: #fff3c4; --cream: #f6edd0; --muted: #c8b9a0;
  --ink: #111; --chalk: #f5f2ea; --pink: #e2557a; --teal: #19a3b8; --sea: #06243a; --sea-2: #0b4f6c; --tennis: #d4f33a;
  --radius: 14px; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--stage); color: var(--cream); font: 16px/1.55 ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: var(--gold); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; }
.wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 0; position: relative; z-index: 1; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.serif { font-family: 'Cormorant Garamond', Georgia, "Times New Roman", serif; }

/* ---------- stage background: sway + fireflies ---------- */
.stage-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.stage-bg::before { content: ""; position: absolute; inset: -20%; background:
  radial-gradient(40% 30% at 20% 0%, rgba(255,214,140,.16), transparent 70%),
  radial-gradient(40% 30% at 80% 0%, rgba(226,85,122,.14), transparent 70%); animation: sway 9s ease-in-out infinite alternate; }
@keyframes sway { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
.firefly { position: absolute; bottom: -20px; width: 4px; height: 4px; border-radius: 50%; background: #ffe7a3; box-shadow: 0 0 10px 3px rgba(255,231,163,.55); animation: rise linear infinite, blink 2.2s ease-in-out infinite; }
@keyframes rise { to { transform: translateY(-115vh) translateX(40px); } }
@keyframes blink { 0%, 100% { opacity: .1; } 50% { opacity: 1; } }

/* ---------- poster + marquee ---------- */
.poster { width: 100%; aspect-ratio: 1200/630; border-radius: 18px; overflow: hidden; border: 2px solid rgba(224,169,74,.45); box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 6px rgba(224,169,74,.08); background: #0b0f2e; }
.poster img { width: 100%; height: 100%; display: block; }
.kicker-gold { text-align: center; text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; color: var(--gold); font-weight: 700; margin: 0; }
.marquee-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: clamp(2.4rem, 8vw, 4.8rem); line-height: 1.02; margin: 14px 0 10px; text-align: center;
  background: linear-gradient(180deg, #fff3c4, #e0a94a 60%, #b47a22); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(224,169,74,.25)); }
.tagline { text-align: center; font-size: 1.15rem; color: #f3c9a8; margin: 0 auto 26px; max-width: 640px; }
.deco-rule { display: block; width: 160px; height: 14px; margin: -6px auto 18px; color: var(--gold); opacity: .8; }
.section-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: clamp(1.7rem, 4.5vw, 2.3rem); text-align: center; margin: 48px 0 12px; color: var(--gold-2); }
.lead { text-align: center; max-width: 640px; margin: 0 auto 22px; font-size: 1.05rem; }

/* boarding pass */
.ticket { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 2px dashed rgba(224,169,74,.5); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.03); }
.ticket > div { padding: 16px 18px; border-right: 2px dashed rgba(224,169,74,.25); }
.ticket > div:last-child { border-right: 0; }
.ticket .lbl { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.ticket .val { font-size: 1.12rem; font-weight: 700; margin-top: 2px; color: var(--gold-2); }
@media (max-width: 600px) { .ticket > div { border-right: 0; border-bottom: 2px dashed rgba(224,169,74,.25); } .ticket > div:last-child { border-bottom: 0; } }

/* ---------- passport stamps ---------- */
.stamps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stamp-card { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(224,169,74,.3); background: rgba(255,255,255,.04); transition: transform .25s, border-color .25s; }
.stamp-card:hover { transform: translateY(-4px) rotate(-.4deg); border-color: rgba(224,169,74,.7); }
.stamp-card svg.scene { display: block; width: 100%; aspect-ratio: 4/3; }
.stamp-card .cap { padding: 12px 14px 14px; }
.stamp-card .cap b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; color: var(--gold-2); }
.rubber { position: absolute; top: 12px; right: 12px; transform: rotate(-12deg) scale(2.4); opacity: 0; transition: transform .45s cubic-bezier(.2,1.4,.4,1), opacity .35s; color: #e23b3b; border: 3px double currentColor; border-radius: 10px; padding: 4px 10px; font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.08); text-shadow: 0 0 6px rgba(0,0,0,.35); pointer-events: none; }
.in .rubber { transform: rotate(-12deg) scale(1); opacity: .95; }

/* ---------- field guide ---------- */
.menu-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.menu-item { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(224,169,74,.2); transition: transform .2s, border-color .2s; }
.menu-item:hover { transform: translateY(-3px) rotate(-.4deg); border-color: rgba(224,169,74,.6); }
.menu-item .num { font-family: Georgia, serif; font-size: .95rem; letter-spacing: .12em; color: var(--gold); border-bottom: 1px solid rgba(224,169,74,.35); display: inline-block; padding-bottom: 2px; }
.menu-item .ico { float: right; width: 44px; height: 44px; margin: -4px -4px 0 8px; }
.menu-item b { display: block; margin: 4px 0 2px; color: var(--gold-2); clear: none; }

/* ---------- full-bleed set pieces ---------- */
.set { position: relative; margin: 56px 0 0; overflow: hidden; }
.set .wrap { padding-top: 0; }
.set .copy { position: relative; z-index: 1; max-width: 420px; padding: 20px 22px; border-radius: 16px; background: rgba(6,20,40,.62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.set .copy h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.9rem; color: var(--gold-2); margin-bottom: .3em; }
.set .copy p { margin: 0 0 .6em; }
.set .copy .log { font-family: ui-monospace, Menlo, monospace; font-size: .86rem; color: #bfe9ff; line-height: 1.6; }
.set .copy .log b { color: #fff; font-weight: 600; }

/* reef */
.dive { background: linear-gradient(#1a7fa3 0%, #0b4f6c 25%, #06243a 70%, #031423 100%); min-height: 560px; display: flex; align-items: center; }
.dive .copy { background: rgba(3,20,35,.6); }
.dive svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.dive .wrap { width: 100%; padding: 40px 16px; }

/* court */
.court { background: #1f5f45; min-height: 420px; display: flex; align-items: center; }
.court svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.court .copy { background: rgba(12,40,28,.6); margin-left: auto; }
.court .wrap { width: 100%; padding: 40px 16px; }

/* ---------- trail to 100 ---------- */
.trail-box { border: 2px dashed rgba(224,169,74,.45); border-radius: 18px; padding: 10px 10px 4px; background: rgba(255,255,255,.03); }
.trail-box svg { display: block; width: 100%; height: auto; }
.meter { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 14px 0 0; }
.meter .n { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: clamp(3rem, 10vw, 5rem); line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.meter .n sup { font-size: .45em; color: var(--pink); }
.meter .lbl { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--gold); font-weight: 700; }

/* ---------- salad ---------- */
.salad-wrap { text-align: center; }
.salad-wrap svg { width: min(100%, 360px); height: auto; cursor: pointer; display: block; margin: 0 auto; }
.salad-wrap .leaf { transform-box: fill-box; transform-origin: 50% 100%; }
.salad-wrap.toss .leaf { animation: toss .9s cubic-bezier(.3,0,.2,1); }
.salad-wrap.toss .leaf:nth-child(2) { animation-delay: .06s; } .salad-wrap.toss .leaf:nth-child(3) { animation-delay: .12s; } .salad-wrap.toss .leaf:nth-child(4) { animation-delay: .18s; } .salad-wrap.toss .leaf:nth-child(5) { animation-delay: .24s; } .salad-wrap.toss .leaf:nth-child(6) { animation-delay: .3s; } .salad-wrap.toss .leaf:nth-child(7) { animation-delay: .36s; }
@keyframes toss { 0% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-70px) rotate(160deg); } 100% { transform: translateY(0) rotate(360deg); } }
.salad-wrap .bowl-bob { transform-box: fill-box; transform-origin: 50% 100%; }
.salad-wrap.toss .bowl-bob { animation: bob .9s ease-in-out; }
@keyframes bob { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-5deg); } 70% { transform: rotate(5deg); } }

/* ---------- jukebox ---------- */
.jukebox { max-width: 560px; margin: 0 auto; position: relative; border-radius: 190px 190px 20px 20px; padding: 26px 18px 18px; background: linear-gradient(#2a1538, #140d20 60%, #0f0a18); border: 3px solid #c98a2b; box-shadow: 0 0 0 7px #1b1230, 0 0 0 9px rgba(224,169,74,.35), 0 0 60px rgba(224,169,74,.22), inset 0 0 60px rgba(0,0,0,.6); animation: neon 4s ease-in-out infinite; }
@keyframes neon { 0%, 100% { box-shadow: 0 0 0 7px #1b1230, 0 0 0 9px rgba(224,169,74,.35), 0 0 50px rgba(224,169,74,.2), inset 0 0 60px rgba(0,0,0,.6); } 50% { box-shadow: 0 0 0 7px #1b1230, 0 0 0 9px rgba(226,85,122,.5), 0 0 70px rgba(226,85,122,.35), inset 0 0 60px rgba(0,0,0,.6); } }
.juke-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 16px; }
.juke-head .disc { width: 54px; height: 54px; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 2px, #222 2px 4px); border: 3px solid #f6edd0; position: relative; animation: spin 3s linear infinite paused; flex: none; }
.juke-head .disc::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: var(--pink); }
.jukebox.playing .juke-head .disc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.juke-head h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.8rem; margin: 0; color: var(--gold-2); }
.juke-head .now { display: block; font-size: .8rem; color: var(--muted); min-height: 1.2em; }
.juke-screen { border-radius: 14px; overflow: hidden; background: #000; min-height: 152px; border: 2px solid rgba(224,169,74,.4); }
.juke-screen iframe { display: block; border: 0; width: 100%; }
.juke-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.juke-key { text-align: left; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(224,169,74,.3); border-radius: 10px; padding: 8px 10px; color: var(--cream); cursor: pointer; transition: transform .15s, background .15s; }
.juke-key:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); }
.juke-key .code { font-family: Georgia, serif; color: var(--gold); font-weight: 700; letter-spacing: .08em; min-width: 2.2em; }
.juke-key b { display: block; color: var(--gold-2); font-size: .95rem; line-height: 1.2; }
.juke-key span.small { color: var(--muted); }
.juke-key.on { background: linear-gradient(135deg, #f0b65a, #d9712f); border-color: transparent; }
.juke-key.on .code, .juke-key.on b, .juke-key.on span { color: #1a0f08; }
.juke-note { margin: 12px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
@media (max-width: 460px) { .juke-keys { grid-template-columns: 1fr; } .jukebox { border-radius: 120px 120px 16px 16px; padding: 20px 12px 14px; } }

/* ---------- the letter ---------- */
.letter { max-width: 620px; margin: 0 auto; background: #f6edd0; color: #2a1538; border-radius: 6px; padding: 34px 34px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.2); position: relative; transform: rotate(-.6deg);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(42,21,56,.09) 31px 32px); background-size: 100% 32px; background-position: 0 14px; line-height: 32px; font-size: 1.12rem; }
.letter::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; background: rgba(224,169,74,.55); transform: rotate(-2deg); border-radius: 2px; }
.letter .dear { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.7rem; font-weight: 700; margin-bottom: 8px; }
.letter .line { min-height: 32px; margin: 0; white-space: pre-wrap; }
.letter .line .cursor { display: inline-block; width: 2px; height: 1.1em; background: #2a1538; vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.letter .sig { font-family: 'Caveat', cursive; font-size: 2.4rem; color: #b4532a; margin: 10px 0 0; text-align: right; opacity: 0; transform: rotate(-4deg) translateY(8px); transition: opacity .8s, transform .8s; }
.letter .sig.show { opacity: 1; transform: rotate(-4deg) translateY(0); }
@media (max-width: 480px) { .letter { padding: 28px 18px 22px; font-size: 1.02rem; } }

/* ---------- cake: the blow-out-the-candles bit, copied from partytime.banji.date ---------- */
.cake-wrap { text-align: center; user-select: none; padding-top: 40px; }
.cake { display: inline-flex; gap: 22px; padding: 0 30px 0; position: relative; }
.candle { width: 14px; height: 54px; border-radius: 4px; background: repeating-linear-gradient(45deg,#f6edd0 0 6px,#e2557a 6px 12px); position: relative; cursor: pointer; border: 0; padding: 0; min-height: 0; }
.candle::before { content: ""; position: absolute; left: 50%; top: -26px; width: 14px; height: 22px; margin-left: -7px; background: radial-gradient(circle at 50% 70%, #fff6cf, #ffcf4a 45%, #e07a4b 75%, transparent 76%); border-radius: 50% 50% 40% 40%; animation: flick2 .4s ease-in-out infinite alternate; filter: drop-shadow(0 0 8px #ffcf4a); }
.candle.out::before { background: none; filter: none; }
.candle.out::after { content: "〰"; position: absolute; top: -30px; left: -4px; color: #aaa; animation: smoke 1.4s forwards; }
@keyframes flick2 { from { transform: scale(1) rotate(-4deg); } to { transform: scale(.9,1.12) rotate(4deg); } }
@keyframes smoke { to { transform: translateY(-24px); opacity: 0; } }
.cake-body { width: 240px; height: 70px; margin: 0 auto; border-radius: 10px 10px 14px 14px; background: linear-gradient(#f3c9a8 0 22%, #b4532a 22% 30%, #f6edd0 30%); }
.wish { max-width: 520px; margin: 14px auto 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border: 1px solid rgba(224,169,74,.35); background: rgba(255,255,255,.06); color: var(--cream); border-radius: 10px; padding: 9px 16px; min-height: 40px; cursor: pointer; text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, #f0b65a, #d9712f); color: #1a0f08; border: 0; box-shadow: 0 6px 24px rgba(224,122,75,.35); }

/* ---------- curtain + confetti ---------- */
.curtain { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.curtain-l, .curtain-r { position: absolute; top: 0; bottom: 0; width: 51%; background: repeating-linear-gradient(90deg, #111 0 26px, #f5f2ea 26px 52px); box-shadow: inset 0 -60px 100px rgba(0,0,0,.6); transition: transform 1.3s cubic-bezier(.7,0,.3,1); }
.curtain-l { left: 0; } .curtain-r { right: 0; }
.curtain-title { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(1.4rem, 5vw, 2.6rem) 'Cormorant Garamond', Georgia, serif; color: #ffe7a3; transition: opacity .4s; text-shadow: 0 2px 20px #000, 0 0 40px #000; }
.curtain.open .curtain-l { transform: translateX(-100%); } .curtain.open .curtain-r { transform: translateX(100%); } .curtain.open .curtain-title { opacity: 0; }
.confetti-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

footer { text-align: center; padding: 60px 16px 40px; color: var(--muted); font-size: .9rem; }
footer .stripe { display: block; width: 160px; height: 8px; margin: 0 auto 18px; border-radius: 4px; background: repeating-linear-gradient(90deg, #111 0 10px, #f5f2ea 10px 20px); opacity: .7; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rubber { opacity: .95; transform: rotate(-12deg); } .letter .sig { opacity: 1; } }
