/* ============================================================
   SCARY OAKS — "Will you dare?" RSVP popup
   ============================================================ */
.rsvp { position: fixed; right: 22px; bottom: 74px; z-index: 110; width: min(390px, calc(100vw - 28px)); color: var(--bone, #e6e2d8);
  font-family: var(--font-body, 'Special Elite', monospace);
  opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .45s ease, transform .45s cubic-bezier(.3,1.2,.5,1); }
.rsvp.is-open { opacity: 1; transform: none; }
.rsvp[hidden] { display: none; }
.rsvp__card { position: relative; padding: 24px 24px 20px; overflow: hidden;
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, rgba(139,13,13,.35), transparent 70%),
    linear-gradient(180deg, rgba(18,12,10,.97), rgba(8,6,5,.98));
  border: 1px solid rgba(201,154,58,.7); box-shadow: 0 0 0 4px rgba(10,6,4,.9), 0 0 0 5px rgba(201,154,58,.35), 0 24px 60px rgba(0,0,0,.75), 0 0 40px rgba(139,13,13,.25); }
/* faint Fortune Teller in the corner of the card */
.rsvp__card::before { content: ''; position: absolute; right: -40px; top: -20px; width: 190px; height: 170px; opacity: .16; pointer-events: none;
  background: url('../images/fortune-teller.jpg') 50% 22% / 520px auto no-repeat;
  -webkit-mask: radial-gradient(circle at 60% 40%, #000 20%, transparent 68%); mask: radial-gradient(circle at 60% 40%, #000 20%, transparent 68%); }
.rsvp__x { position: absolute; top: -12px; right: -10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(201,154,58,.7);
  background: #0b0705; color: var(--bone, #e6e2d8); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.rsvp__x:hover { background: #3a0a0a; }
.rsvp__kicker { position: relative; margin: 0 0 8px; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: #e5392e; }
.rsvp__title { position: relative; margin: 0 0 16px; font-family: var(--font-display, 'Bebas Neue', sans-serif); font-weight: 400; font-size: 1.85rem; line-height: 1.02; letter-spacing: .03em; color: #f1ece0; text-shadow: 0 2px 12px #000; }
.rsvp__sub { position: relative; margin: 0; font-size: .9rem; line-height: 1.6; color: rgba(236,232,222,.85); }
.rsvp__choices { position: relative; display: grid; gap: 10px; }
.rsvp__btn, .rsvp__seal { font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: 1.2rem; letter-spacing: .12em; text-transform: uppercase; padding: 12px 16px 9px; cursor: pointer;
  background: rgba(255,255,255,.04); color: var(--bone, #e6e2d8); border: 1px solid rgba(236,232,222,.35); transition: background .2s, border-color .2s, transform .15s; }
.rsvp__btn:hover, .rsvp__btn:focus-visible { background: rgba(255,255,255,.1); border-color: rgba(236,232,222,.7); transform: translateY(-1px); }
.rsvp__btn--yes, .rsvp__seal { background: #8b0d0d; border-color: #b4161b; color: #fff; }
.rsvp__btn--yes:hover, .rsvp__seal:hover { background: #a51212; }
.rsvp__btn--no { opacity: .8; }
.rsvp__count { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(236,232,222,.15); font-size: .92rem; }
.rsvp__count small { opacity: .65; }
.rsvp__step-btns { display: flex; align-items: center; gap: 10px; }
.rsvp__step-btns button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(201,154,58,.7); background: rgba(0,0,0,.4); color: var(--bone, #e6e2d8); font-size: 1.2rem; cursor: pointer; }
.rsvp__step-btns button:hover { background: rgba(139,13,13,.5); }
.rsvp__step-btns b { min-width: 26px; text-align: center; font-family: var(--font-display, 'Bebas Neue', sans-serif); font-weight: 400; font-size: 1.6rem; }
.rsvp__name { position: relative; display: block; margin: 14px 0 16px; font-size: .82rem; color: rgba(236,232,222,.85); }
.rsvp__name small { opacity: .6; }
.rsvp__name input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--bone, #e6e2d8);
  background: rgba(0,0,0,.45); border: 1px solid rgba(236,232,222,.25); outline: none; }
.rsvp__name input:focus { border-color: rgba(201,154,58,.8); }
.rsvp__seal { position: relative; width: 100%; }
.rsvp__back { position: relative; display: block; margin: 10px auto 0; background: none; border: 0; color: rgba(236,232,222,.6); font: inherit; font-size: .78rem; letter-spacing: .1em; cursor: pointer; }
.rsvp__fine { margin: 8px 2px 0; font-size: .62rem; letter-spacing: .08em; color: rgba(236,232,222,.55); text-align: right; text-shadow: 0 1px 6px #000; }
.rsvp__test { margin: 0 0 6px; padding: 4px 8px; display: inline-block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #111; background: #ffd400; }
.rsvp__step[hidden] { display: none; }
[data-step="done"] .rsvp__title { font-size: 2.2rem; }

/* "Will you dare?" link in the Visit section */
.rsvp-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 16px 20px;
  background: rgba(13,13,13,.86); border: 1px solid rgba(139,13,13,.45); }
.rsvp-cta__q { margin: 0; font-size: .95rem; color: rgba(236,232,222,.9); }
.rsvp-cta__btn { white-space: nowrap; }

/* phones: a sheet that slides up from the bottom, above the graveyard grass */
@media (max-width: 600px) {
  .rsvp { left: 10px; right: 10px; bottom: 34px; width: auto; }
  .rsvp__card { padding: 20px 18px 16px; }
  .rsvp__title { font-size: 1.6rem; }
  .rsvp__x { right: -4px; }
  .rsvp__fine { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .rsvp { transition: opacity .2s ease; transform: none; } }
html.intro-on .rsvp, html.theater-on .rsvp { display: none; }

/* ---------- group question ---------- */
.rsvp__group.is-picked [data-g]:not(.is-on) { opacity: .4; }
.rsvp__group [data-g].is-on { outline: 2px solid rgba(201,154,58,.8); outline-offset: 2px; }
.rsvp__partybox { margin-top: 14px; }
.rsvp__partybox[hidden] { display: none; }
.rsvp__q { position: relative; margin: 4px 0 4px; font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: 1.3rem; letter-spacing: .04em; color: #f1ece0; }
.rsvp__partybox .rsvp__seal { margin-top: 14px; }

/* ---------- the plasma globe over the skull (after answering) ---------- */
.rsvp-globe { display: none; position: absolute; left: 50.9%; top: 48.2%; width: 12.3%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 0; padding: 0; margin: 0; background: none; border-radius: 50%; cursor: pointer; pointer-events: auto; z-index: 2; transition: filter .3s ease; }
.rsvp-globe::before { content: ''; position: absolute; inset: 1%; border-radius: 50%; background: radial-gradient(circle, #1a1040, #05030f 75%);
  box-shadow: 0 0 14px rgba(120,150,255,.7), 0 0 36px rgba(100,80,255,.45), inset 0 0 12px rgba(0,0,0,.8); animation: globeglow 3s ease-in-out infinite alternate; }
.rsvp-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.rsvp-globe:hover, .rsvp-globe:focus-visible { filter: brightness(1.25) drop-shadow(0 0 10px rgba(140,170,255,.9)); outline: none; }
@keyframes globeglow { from { box-shadow: 0 0 12px rgba(120,150,255,.6), 0 0 30px rgba(100,80,255,.35), inset 0 0 12px rgba(0,0,0,.8); } to { box-shadow: 0 0 20px rgba(150,170,255,.9), 0 0 50px rgba(120,90,255,.55), inset 0 0 12px rgba(0,0,0,.8); } }
html.rsvp-answered .rsvp-globe { display: block; }
html.rsvp-answered .lfx-eye { display: none; }
.rsvp-globe-layer { display: none; }
@media (min-aspect-ratio: 4/3) {
  .hero.has-logo-art .rsvp-globe-layer { display: block; position: absolute; left: 50%; top: 0; width: calc(var(--L) * 1.7778); height: var(--L); transform: translateX(-50%); z-index: 4; pointer-events: none; }
  html.rsvp-answered .hero.has-logo-art { --L: min(56.25vw, calc(100svh - 384px)); }
}
.keywrap .rsvp-globe { left: 51%; top: 46.5%; width: 17.5%; }
@media (min-aspect-ratio: 4/3) { .hero.has-logo-art .keywrap .rsvp-globe { display: none; } }

/* ---------- "The Fortune Teller is expecting you" under the lettering (after answering) ---------- */
.rsvp-hero { display: none; position: relative; align-items: center; gap: 14px; width: fit-content; max-width: 100%; margin: 0 auto 14px; padding: 9px 10px 9px 18px;
  background: linear-gradient(180deg, rgba(20,12,30,.86), rgba(8,6,12,.9)); border: 1px solid rgba(201,154,58,.8);
  box-shadow: 0 0 0 3px rgba(8,5,4,.85), 0 0 0 4px rgba(201,154,58,.3); animation: herobox 3.4s ease-in-out infinite alternate; }
html.rsvp-answered .rsvp-hero { display: flex; }
@keyframes herobox { from { box-shadow: 0 0 0 3px rgba(8,5,4,.85), 0 0 0 4px rgba(201,154,58,.3), 0 0 18px rgba(110,140,255,.35), 0 0 30px rgba(139,13,13,.25); }
  to { box-shadow: 0 0 0 3px rgba(8,5,4,.85), 0 0 0 4px rgba(201,154,58,.45), 0 0 28px rgba(130,160,255,.6), 0 0 44px rgba(160,20,20,.4); } }
.rsvp-hero__t { font-size: .95rem; letter-spacing: .04em; color: #efe9dc; text-shadow: 0 0 10px rgba(130,160,255,.5); white-space: nowrap; }
.rsvp-hero__btn { font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px 6px; cursor: pointer;
  background: #8b0d0d; border: 1px solid #b4161b; color: #fff; white-space: nowrap; }
.rsvp-hero__btn:hover { background: #a51212; }
@media (max-aspect-ratio: 4/3) { html.rsvp-answered .keywrap { width: min(92vw, 46svh); } }
@media (max-width: 600px) { .rsvp-hero { flex-direction: column; gap: 8px; padding: 10px 14px; margin-bottom: 10px; } .rsvp-hero__t { white-space: normal; text-align: center; font-size: .88rem; } }

/* ---------- lightning behind the Visit banner ---------- */
.rsvp-cta { position: relative; overflow: hidden; border-color: rgba(110,150,255,.55); animation: ctaglow 3s ease-in-out infinite alternate; }
.rsvp-cta__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.rsvp-cta > :not(canvas) { position: relative; z-index: 1; }
@keyframes ctaglow { from { box-shadow: 0 0 0 rgba(90,140,255,0), inset 0 0 20px rgba(60,100,255,.08); } to { box-shadow: 0 0 22px rgba(90,140,255,.35), inset 0 0 30px rgba(60,100,255,.18); } }

/* ---------- the faint orb on the side ---------- */
.rsvp-orb { position: fixed; right: 16px; top: 56%; z-index: 60; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .6s ease, transform .6s ease; }
.rsvp-orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.rsvp-orb::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(110,150,255,.25), transparent 70%); }
.rsvp-orb.is-on { opacity: .42; transform: none; pointer-events: auto; animation: orbfloat 5s ease-in-out infinite; }
.rsvp-orb.is-on:hover, .rsvp-orb.is-on:focus-visible { opacity: 1; outline: none; }
@keyframes orbfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.rsvp-orb__tip { position: absolute; right: 76px; top: 50%; transform: translateY(-50%); padding: 6px 10px 5px; white-space: nowrap; pointer-events: none;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #e6e2d8; background: rgba(8,6,12,.9); border: 1px solid rgba(110,150,255,.5); opacity: 0; transition: opacity .3s ease; }
.rsvp-orb:hover .rsvp-orb__tip, .rsvp-orb.show-tip .rsvp-orb__tip { opacity: 1; }
@media (max-width: 600px) { .rsvp-orb { right: 10px; top: 60%; width: 54px; height: 54px; } .rsvp-orb__tip { right: 64px; } }
html.intro-on .rsvp-orb, html.theater-on .rsvp-orb { display: none; }
@media (prefers-reduced-motion: reduce) { .rsvp-orb.is-on, .rsvp-hero, .rsvp-cta, .rsvp-globe::before { animation: none; } }

/* ---------- v3 polish ---------- */
/* "Don't ask me again" */
.rsvp__skip { position: relative; display: block; margin: 12px auto 0; background: none; border: 0; padding: 4px 6px; font: inherit; font-size: .74rem; letter-spacing: .08em;
  color: rgba(236,232,222,.55); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rsvp__skip:hover { color: rgba(236,232,222,.9); }
/* globe: a canvas for the ball, a bigger one around it for the leaping sparks and glow */
.rsvp-globe canvas.rsvp-globe__ball { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; z-index: 1; }
.rsvp-globe canvas.rsvp-globe__aura { position: absolute; left: -110%; top: -110%; width: 320%; height: 320%; border-radius: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen; }
.rsvp-globe::before { z-index: 1; }
/* hero box: a gold frame with a charge of blue light racing around the edge */
.rsvp-hero { padding: 9px 10px 9px 12px; overflow: visible; isolation: isolate; }
.rsvp-hero__edge { position: absolute; inset: -2px; z-index: -1; pointer-events: none; padding: 2px; border-radius: 2px;
  background: conic-gradient(from var(--so-a, 0deg), transparent 0 62%, rgba(110,160,255,.0) 64%, rgba(140,180,255,.95) 72%, #fff 74%, rgba(190,140,255,.9) 76%, transparent 84%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: soedge 3.2s linear infinite; filter: drop-shadow(0 0 6px rgba(130,170,255,.9)); }
@property --so-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes soedge { to { --so-a: 360deg; } }
.rsvp-hero__orb { width: 30px; height: 30px; flex: 0 0 30px; }
.rsvp-hero__t { font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: 1.35rem; letter-spacing: .08em; line-height: 1; padding-top: 3px; animation: soflick 6s steps(1) infinite; }
@keyframes soflick { 0%, 91%, 95%, 100% { text-shadow: 0 0 10px rgba(130,160,255,.6), 0 0 22px rgba(110,140,255,.35); } 92%, 94% { text-shadow: none; opacity: .75; } }
.rsvp-hero__btn { box-shadow: 0 0 14px rgba(180,22,27,.45); }
@media (max-width: 600px) { .rsvp-hero__orb { display: none; } .rsvp-hero__t { font-size: 1.08rem; white-space: nowrap; } .rsvp-hero { margin-top: 2px; } }
/* banner: a little more presence */
.rsvp-cta { padding: 20px 22px; }
.rsvp-cta__q { font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: 1.45rem; letter-spacing: .06em; color: #eef2ff; text-shadow: 0 0 12px rgba(110,150,255,.6); }
/* orb: a soft breathing halo */
.rsvp-orb.is-on::before { animation: orbhalo 3.4s ease-in-out infinite; }
@keyframes orbhalo { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.18); opacity: 1; } }
html.rsvp-skipped .rsvp-orb { display: none; }

/* ---------- orb v2: the Fortune Teller's crystal ball, small and semi-transparent ---------- */
.rsvp-orb { width: 46px; height: 45px; border-radius: 0; }
.rsvp-orb::before { display: none; }
.rsvp-orb__ball { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.rsvp-orb canvas.rsvp-orb__fx { position: absolute; inset: auto; left: 8.6%; top: .8%; width: 82.4%; height: 83.5%; border-radius: 50%; mix-blend-mode: screen; opacity: .7; }
.rsvp-orb.is-on { opacity: .55; animation: orbfloat 6s ease-in-out infinite, orbpulse 3.2s ease-in-out infinite; }
.rsvp-orb.is-on:hover, .rsvp-orb.is-on:focus-visible { opacity: 1; animation: orbfloat 6s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255,255,255,.7)) drop-shadow(0 0 22px rgba(255,140,190,.45)); }
@keyframes orbpulse { 0%, 100% { filter: drop-shadow(0 0 2px rgba(255,255,255,.15)); } 50% { filter: drop-shadow(0 0 8px rgba(255,255,255,.55)) drop-shadow(0 0 16px rgba(255,255,255,.2)); } }
@keyframes orbfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.rsvp-orb__tip { right: 58px; }
@media (max-width: 600px) { .rsvp-orb { width: 40px; height: 39px; right: 10px; } .rsvp-orb__tip { right: 50px; } }
@media (prefers-reduced-motion: reduce) { .rsvp-orb.is-on { animation: none; } }
/* "you already answered" screen */
[data-step="status"] .rsvp__title { font-size: 2rem; }

/* phones: the back link is a comfortable thumb target */
@media (max-width: 600px) { .rsvp__back { min-height: 36px; padding: 8px 10px; display: inline-flex; align-items: center; } }
