/* ============================================================
   50dix · A Night at the Oasis
   Arabian-nights / Persian illuminated-manuscript theme
   Palette pulled from the party watercolor: midnight indigo,
   saffron gold, sunset rose/coral, ochre sand.
   ============================================================ */

:root {
  --night-1: #160d33;
  --night-2: #241250;
  --violet:  #3a1f74;
  --royal:   #4a2c8f;
  --gold:        #e0a93f;
  --gold-bright: #f6d27a;
  --gold-deep:   #a86f24;
  --rose:    #ff8c94;
  --coral:   #ff6f61;
  --saffron: #ffb347;
  --sand:    #d98a45;
  --blue:    #5b86c7;
  --ink:     #f3e6c8;   /* parchment text */
  --ink-dim: #c9b48b;

  --serif-display: "Marcellus", serif;
  --serif-head: "Marcellus", serif;
  --serif-body: "Marcellus", serif;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  min-height: 100dvh;
  font-family: var(--serif-body);
  color: var(--ink);
  background: var(--night-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   AMBIENT LAYERS
   ============================================================ */

.sky {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(120% 70% at 50% 118%, rgba(255,138,84,0.40) 0%, rgba(214,90,120,0.18) 28%, transparent 55%),
    radial-gradient(90% 60% at 82% 10%, rgba(91,134,199,0.20) 0%, transparent 50%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 42%, var(--violet) 78%, #5a2a63 100%);
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 27% 9%, #fbe9c2, transparent),
    radial-gradient(1px 1px at 41% 24%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 58% 13%, #fff, transparent),
    radial-gradient(1px 1px at 70% 27%, #cfe0ff, transparent),
    radial-gradient(1.3px 1.3px at 83% 8%, #fff, transparent),
    radial-gradient(1px 1px at 91% 21%, #fbe9c2, transparent),
    radial-gradient(1.5px 1.5px at 8% 36%, #fff, transparent),
    radial-gradient(1px 1px at 34% 41%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 49% 33%, #cfe0ff, transparent),
    radial-gradient(1px 1px at 64% 44%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 78% 38%, #fbe9c2, transparent),
    radial-gradient(1px 1px at 95% 47%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 19% 52%, #fff, transparent),
    radial-gradient(1px 1px at 45% 57%, #cfe0ff, transparent),
    radial-gradient(1.3px 1.3px at 88% 56%, #fff, transparent);
  animation: twinkle 5.5s ease-in-out infinite;
}

.moon {
  position: fixed;
  top: 7vh; right: 11vw;
  width: 84px; height: 84px;
  border-radius: 50%;
  z-index: -4;
  background: radial-gradient(circle at 38% 36%, #fff6df 0%, #f6d27a 58%, #d9a44a 100%);
  box-shadow: -16px 0 0 -2px var(--night-1), 0 0 60px rgba(246,210,122,0.35);
  filter: drop-shadow(0 0 24px rgba(246,210,122,0.25));
}

/* rolling dune silhouettes */
.dunes { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.dunes::before, .dunes::after {
  content: "";
  position: absolute;
  left: -20%;
  width: 140%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.dunes::before {
  bottom: -56vh; height: 70vh;
  background: linear-gradient(180deg, #7a3f57 0%, #2c163f 70%);
  opacity: 0.9;
}
.dunes::after {
  bottom: -64vh; height: 64vh; left: 8%;
  background: linear-gradient(180deg, #4a2240 0%, #1c0f30 75%);
}

/* subtle grain/watercolor noise */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   SCENES (shared)
   ============================================================ */

.scene {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6vh 22px;
}
[hidden] { display: none !important; }

.eyebrow {
  font-family: var(--serif-head);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.72rem;
  color: var(--gold-bright);
  opacity: 0.92;
  text-indent: 0.34em;
  margin-bottom: 14px;
}

.brand {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  text-shadow: 0 2px 0 var(--gold-deep), 0 0 38px rgba(224,169,63,0.45);
}
.brand span { color: var(--ink); -webkit-text-stroke: 0; }
.brand--sm { font-size: clamp(2.4rem, 8vw, 3.4rem); }

/* ============================================================
   SCENE 1 — THE GATE
   ============================================================ */

.scene--gate {
  /* the invite artwork takes over the whole welcome page */
  background:
    radial-gradient(130% 90% at 50% 40%, rgba(10,6,26,0) 46%, rgba(10,6,26,0.5) 100%),
    url("/img/invite.jpg") center / cover no-repeat;
}

.portal {
  position: relative;
  width: min(440px, 100%);
  padding: 84px 38px 44px;
  text-align: center;
  isolation: isolate;
}

/* keep the gate portal + arch fully on-screen on phones */
@media (max-width: 480px) {
  .portal { padding: 72px 22px 38px; }
  .field { padding: 5px 5px 5px 16px; gap: 8px; }
  .seal { width: 56px; height: 56px; font-size: 0.76rem; }
  #email { font-size: 1.05rem; }
}

.arch {
  position: absolute;
  inset: -2% -4% 0 -4%;
  width: 108%;
  height: 104%;
  z-index: -1;
  filter: drop-shadow(0 0 26px rgba(224,169,63,0.22));
}
.arch-path {
  fill: rgba(19, 11, 44, 0.82);
  stroke: url(#goldStroke);
  stroke-width: 3.5;
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  animation: draw-arch 2.4s var(--ease-soft) forwards;
}

.portal-inner > * { animation: rise 0.9s var(--ease-soft) both; }
.eyebrow { animation-delay: 0.5s; }
.brand   { animation-delay: 0.65s; margin-top: 8px; }
.tagline {
  font-style: italic;
  font-size: 1.45rem;
  color: var(--rose);
  margin-top: 2px;
  animation-delay: 0.8s;
}
.prompt {
  font-family: var(--serif-head);
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  margin: 24px 0 16px;
  animation-delay: 0.95s;
}
#gate-form { animation-delay: 1.1s; }

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.18));
  border: 1px solid rgba(246,210,122,0.45);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 30px rgba(0,0,0,0.35);
}
.field:focus-within { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(246,210,122,0.18), 0 10px 30px rgba(0,0,0,0.4); }

#email,
#pw {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
#email::placeholder,
#pw::placeholder { color: rgba(201,180,139,0.6); font-style: italic; }

/* round wax-seal / medallion button */
.seal {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  cursor: pointer;
  color: #2a1505;
  font-family: var(--serif-head);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4), inset 0 2px 6px rgba(255,255,255,0.5), inset 0 -3px 8px rgba(120,80,20,0.6);
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s, filter 0.25s;
}
.seal:hover { transform: rotate(-6deg) scale(1.06); filter: brightness(1.06); box-shadow: 0 8px 26px rgba(224,169,63,0.5), inset 0 2px 6px rgba(255,255,255,0.5); }
.seal:active { transform: scale(0.95); }
.seal[disabled] { opacity: 0.6; cursor: progress; }

.gate-msg {
  min-height: 1.4em;
  margin-top: 16px;
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--rose);
  opacity: 0;
  transition: opacity 0.3s;
}
.gate-msg.show { opacity: 1; }

/* ============================================================
   OVERLAY — MAGIC CARPET RIDE
   ============================================================ */

.ride {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(255,140,90,0.35), transparent 55%),
    linear-gradient(180deg, #0c0726 0%, #2a1556 55%, #5a2a63 100%);
  animation: fade-in 0.4s ease both;
}
.ride.lift { animation: ride-lift 0.9s var(--ease-soft) forwards; }

.ride-stars {
  position: absolute; inset: -20%;
  background-image:
    radial-gradient(2px 2px at 20% 20%, #fff, transparent),
    radial-gradient(2px 2px at 70% 30%, #fbe9c2, transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, #fff, transparent),
    radial-gradient(2px 2px at 85% 75%, #cfe0ff, transparent),
    radial-gradient(1.5px 1.5px at 30% 85%, #fff, transparent),
    radial-gradient(2px 2px at 60% 10%, #fff, transparent);
  background-size: 50% 50%;
  animation: star-rush 0.9s linear infinite;
}
.speedlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg,
    transparent 0 14px,
    rgba(246,210,122,0.05) 14px 15px,
    transparent 15px 38px);
  mask-image: radial-gradient(70% 90% at 50% 50%, transparent 30%, #000 75%);
  animation: streak 0.6s linear infinite;
}

/* `screen` drops the asset's black background and composites the carpet +
   sparkle trail onto the night scene. It lives on the wrapper because the
   wrapper's transform forms the blending group that meets the ride backdrop. */
.carpet-wrap {
  animation: carpet-float 3s ease-in-out infinite;
  will-change: transform;
  mix-blend-mode: screen;
}
.carpet-img {
  display: block;
  width: min(760px, 96vw);
  filter: drop-shadow(0 0 46px rgba(246,210,122,0.3));
  /* feather the edges so the asset's rectangular border melts into the scene */
  -webkit-mask-image: radial-gradient(ellipse 84% 88% at 50% 48%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 84% 88% at 50% 48%, #000 60%, transparent 100%);
  animation: carpet-enter 1.4s var(--ease-soft) both;
}
/* on take-off, the carpet surges up + forward as the whole scene lifts away */
.ride.lift .carpet-img { animation: carpet-zoom 0.95s var(--ease-soft) forwards; }

.ride-text {
  position: relative;
  margin-top: 40px;
  font-family: var(--serif-display);
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px rgba(224,169,63,0.5);
  animation: pulse-text 2s ease-in-out infinite;
}

/* ============================================================
   OVERLAY — SEALED GATE (locked out)
   ============================================================ */

.lockout {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(80% 80% at 50% 40%, rgba(60,10,20,0.55), rgba(8,4,18,0.92));
  animation: fade-in 0.3s ease both;
}
.bars { position: absolute; inset: 0; display: flex; justify-content: space-around; pointer-events: none; }
.bars span {
  width: 14px; height: 100%;
  background: linear-gradient(90deg, #2a1a08, #c9a23c 45%, #6e4d18 55%, #2a1a08);
  box-shadow: 0 0 14px rgba(0,0,0,0.6);
  transform: translateY(-100%);
  animation: bar-slam 0.7s var(--ease-soft) forwards;
}
.bars span:nth-child(2) { animation-delay: 0.06s; }
.bars span:nth-child(3) { animation-delay: 0.12s; }
.bars span:nth-child(4) { animation-delay: 0.18s; }
.bars span:nth-child(5) { animation-delay: 0.24s; }

.lockout-inner {
  position: relative;
  text-align: center;
  padding: 24px;
  animation: shake 0.6s ease 0.5s both;
}
.padlock { width: 96px; margin-bottom: 6px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5)); }
.shackle { transform-origin: 60px 60px; animation: lock-shut 0.4s ease 0.7s both; }
.lockout-title {
  font-family: var(--serif-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: #f0c98a;
  letter-spacing: 0.04em;
  margin: 6px 0 10px;
  text-shadow: 0 0 24px rgba(200,60,60,0.4);
}
.lockout-text { font-size: 1.2rem; color: var(--ink-dim); line-height: 1.5; margin-bottom: 22px; }

.ghost-btn {
  display: inline-block;
  font-family: var(--serif-head);
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(246,210,122,0.55);
  border-radius: 999px;
  padding: 12px 26px;
  transition: background 0.25s, transform 0.2s, border-color 0.25s;
}
.ghost-btn:hover { background: rgba(246,210,122,0.12); border-color: var(--gold-bright); transform: translateY(-1px); }

/* ============================================================
   SCENE 2 — THE OASIS (inside)
   ============================================================ */

/* full-bleed hero: the caravan artwork is the centerpiece */
.scene--oasis {
  padding: 0;
  justify-content: flex-start;
  overflow: hidden;
}
.oasis-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* Fill the frame edge-to-edge on landscape screens (no letterbox bands).
     Anchored to the bottom so the horizon and the artist's signature (lower
     right) always stay in view; only a little of the top sky / side borders
     is trimmed. */
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  animation: fade-in 1.1s ease both;
}
/* On portrait / narrow screens a landscape cover-crop would eat the decorative
   borders and the signature, so show the whole framed painting instead. The
   cutoff (~1.4) is the point below which the bottom-right signature would start
   to be trimmed; typical laptops/desktops (>=1.4) get the edge-to-edge fill. */
@media (max-aspect-ratio: 7 / 5) {
  .oasis-art { object-fit: contain; object-position: center; }
}
/* darkening scrims top (nav) and bottom (welcome) for legibility */
.oasis-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8,4,20,0.72) 0%, rgba(8,4,20,0.16) 15%, transparent 30%),
    linear-gradient(to top, rgba(8,4,20,0.78) 0%, rgba(8,4,20,0.12) 18%, transparent 34%);
}

/* ---- background-music toggle (fixed, persists over sub-views) ---- */
.music-toggle {
  position: fixed; z-index: 40;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vh, 26px);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: #2a1505;
  background: radial-gradient(circle at 35% 25%, var(--gold-bright), var(--gold) 65%, var(--gold-deep));
  border: 1px solid var(--gold-bright);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 1px 3px rgba(255,255,255,0.4);
  transition: filter 0.2s, transform 0.15s, background 0.2s, color 0.2s;
}
.music-toggle:hover { filter: brightness(1.07); transform: translateY(-1px); }
.music-toggle:active { transform: translateY(0); }
.music-toggle .music-note { font-size: 1.3rem; line-height: 1; }
/* muted state: dim the disc and strike the note through */
.music-toggle.is-muted {
  color: var(--gold-bright);
  background: rgba(17,18,42,0.72);
  border-color: rgba(246,210,122,0.5);
}
.music-toggle.is-muted .music-note { opacity: 0.7; }
.music-toggle.is-muted::after {
  content: ""; position: absolute;
  width: 30px; height: 2px; border-radius: 2px;
  background: var(--gold-bright);
  transform: rotate(-45deg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

/* ---- top navigation bar (above the mobile menu so the ✕ can close it) ---- */
.oasis-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(18px, 4vw, 48px);
  animation: rise 0.7s var(--ease-soft) both;
}
.oasis-brand {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  text-decoration: none;
  text-shadow: 0 2px 18px rgba(0,0,0,0.65);
}
.oasis-brand span { color: var(--ink); }

.oasis-nav { display: flex; align-items: center; gap: clamp(8px, 1.7vw, 24px); }
.oasis-nav a {
  position: relative;
  font-family: var(--serif-head);
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.8);
  transition: color 0.2s;
}
.oasis-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--gold-bright);
  transition: right 0.28s var(--ease-soft);
}
.oasis-nav a:hover { color: var(--gold-bright); }
.oasis-nav a:hover::after { right: 0; }

/* RSVP call-to-action pill */
.oasis-nav-cta {
  color: #2a1505 !important;
  background: radial-gradient(circle at 35% 25%, var(--gold-bright), var(--gold) 65%, var(--gold-deep));
  border-radius: 999px;
  padding: 8px 20px !important;
  text-shadow: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 1px 3px rgba(255,255,255,0.4);
  transition: filter 0.2s, transform 0.2s;
}
.oasis-nav-cta::after { display: none; }
.oasis-nav-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ---- hamburger (mobile) ---- */
.oasis-burger {
  display: none;
  width: 48px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: rgba(8,4,20,0.4);
  border: 1px solid rgba(246,210,122,0.45);
  border-radius: 12px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.oasis-burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--gold-bright);
  transition: transform 0.28s var(--ease-soft), opacity 0.2s;
}
.oasis-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.oasis-burger.is-open span:nth-child(2) { opacity: 0; }
.oasis-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- footer: welcome + leave ---- */
.oasis-footer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 20px 22px;
  text-align: center;
  animation: rise 0.9s var(--ease-soft) 0.15s both;
}
.oasis-eyebrow {
  font-family: var(--serif-head);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.74rem;
  color: var(--gold-bright);
  text-shadow: 0 2px 12px rgba(0,0,0,0.85);
  margin: 0 0 2px;
}
.oasis-who {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(0,0,0,0.85);
  margin: 0;
}
.oasis-who b { color: var(--gold-bright); font-style: normal; font-weight: 400; }
.forget {
  margin-top: 6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--serif-body); font-style: italic; font-size: 0.98rem;
  color: var(--ink-dim);
  text-decoration: underline; text-underline-offset: 4px;
  opacity: 0.85; text-shadow: 0 2px 10px rgba(0,0,0,0.85);
  transition: opacity 0.2s, color 0.2s;
}
.forget:hover { opacity: 1; color: var(--rose); }

/* ---- mobile full-screen menu ---- */
.oasis-menu {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  background: radial-gradient(80% 80% at 50% 30%, rgba(26,13,60,0.95), rgba(7,4,16,0.98));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fade-in 0.25s ease both;
}
.oasis-menu[hidden] { display: none; }
.oasis-menu-nav { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.oasis-menu-nav a {
  font-family: var(--serif-head);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.oasis-menu-nav a:hover { color: var(--gold-bright); }
.oasis-menu-nav .oasis-nav-cta { padding: 10px 32px !important; font-size: 1.3rem; }
.oasis-menu-leave {
  margin-top: 10px;
  background: none; border: none; cursor: pointer;
  font-family: var(--serif-body); font-style: italic; font-size: 1.05rem;
  color: var(--ink-dim); text-decoration: underline; text-underline-offset: 4px;
  transition: color 0.2s;
}
.oasis-menu-leave:hover { color: var(--rose); }

/* ---- swap the inline nav for a hamburger on smaller screens ---- */
@media (max-width: 760px) {
  .oasis-nav { display: none; }
  .oasis-burger { display: flex; }
}

/* ============================================================
   SUB-VIEW PANEL
   ============================================================ */

.subview {
  position: fixed; inset: 0; z-index: 30;
  /* align-items: flex-start + margin:auto on the card centers it when it fits,
     but keeps the top reachable (scroll down) when the card is taller than the
     viewport — plain align-items:center clips the top out of the scroll area. */
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px;
  /* The camel-caravan painting sits behind the card (dimmed for legibility),
     so every page past the gate is framed by the desert art rather than flat
     dark purple. */
  background:
    linear-gradient(rgba(12,6,28,0.5), rgba(12,6,28,0.68)),
    url("/painting.jpg") center 42% / cover no-repeat;
  animation: fade-in 0.35s ease both;
}
.subview-card {
  position: relative;
  margin: auto;               /* vertical+horizontal centering that stays scrollable on overflow */
  width: min(520px, 94vw);
  text-align: center;
  padding: 54px 34px 40px;
  background: linear-gradient(180deg, rgba(58,31,116,0.6), rgba(22,13,51,0.85));
  border: 1px solid rgba(246,210,122,0.4);
  border-radius: 180px 180px 18px 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  animation: rise 0.5s var(--ease-soft) both;
}
.subview-card h2 {
  font-family: var(--serif-display);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  color: var(--gold-bright);
  margin: 8px 0 16px;
}
.subview-body { font-size: 1.22rem; line-height: 1.6; color: var(--ink); margin-bottom: 28px; }

/* roomier, less arch-y card when a gallery is showing */
.subview { overflow-y: auto; }
.subview-card.is-carousel {
  width: min(900px, 96vw);
  border-radius: 22px;
  padding: 40px 26px 28px;
}
.subview-card.is-carousel .subview-body { margin-bottom: 18px; font-size: 1.1rem; color: var(--ink-dim); font-style: italic; }

/* roomier, left-aligned card for text-heavy pages (FAQ / Schedule / Resources) */
.subview-card.is-text {
  width: min(680px, 94vw);
  border-radius: 22px;
  padding: 44px 34px 30px;
}
.subview-card.is-text > .eyebrow,
.subview-card.is-text > h2 { text-align: center; }
.subview-card.is-text .subview-body { text-align: center; }
.subview-content { text-align: left; color: var(--ink); }
.subview-content > :first-child { margin-top: 0; }
.subview-content .sv-lead { font-size: 1.06rem; line-height: 1.6; margin: 0 0 16px; }
.subview-content h3 {
  font-family: var(--serif-head);
  color: var(--gold-bright);
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  margin: 28px 0 10px;
}
/* schedule events */
.sv-event { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(246,210,122,0.2); }
.sv-event:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }
.sv-event h3 { margin-top: 0; }
.sv-details { margin: 0 0 10px; }
.sv-details > div { display: flex; gap: 12px; padding: 3px 0; }
.sv-details dt {
  flex: 0 0 92px;
  font-family: var(--serif-head);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-top: 3px;
}
.sv-details dd { margin: 0; flex: 1; line-height: 1.5; }
.sv-event p { margin: 8px 0; line-height: 1.55; }
/* faq question/answer */
.sv-qa { padding: 16px 0; border-top: 1px solid rgba(246,210,122,0.16); scroll-margin-top: 20px; }
.sv-qa:first-of-type { border-top: none; padding-top: 4px; }
.sv-q {
  font-family: var(--serif-head);
  color: var(--gold-bright);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  margin: 0 0 9px;
}
.sv-a { margin: 0 0 9px; line-height: 1.55; }
.sv-a:last-child { margin-bottom: 0; }
/* shared lists + resource rows */
.subview-content p { line-height: 1.55; }
.subview-content a,
.subview-body a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(246,210,122,0.4);
}
.subview-content a:hover,
.subview-body a:hover { border-bottom-color: var(--gold-bright); }
.sv-list { margin: 8px 0 12px; padding-left: 22px; }
.sv-list li { margin: 4px 0; line-height: 1.5; }
.sv-res { margin: 12px 0; }
.sv-res b { color: var(--gold-bright); font-weight: 400; }

.carousel { width: 100%; margin: 4px 0 18px; }
.car-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46vh;
}
.car-img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 12px;
  border: 1px solid rgba(246,210,122,0.45);
  box-shadow: 0 20px 48px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}
.car-img.ready { opacity: 1; transform: none; }

.car-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--serif-head);
  font-size: 1.9rem;
  line-height: 1;
  color: #2a1505;
  padding-bottom: 4px;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  border: 2px solid var(--gold-bright);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.5);
  transition: transform 0.2s var(--ease-soft), filter 0.2s;
  z-index: 2;
}
.car-nav:hover { filter: brightness(1.08); transform: translateY(-50%) scale(1.08); }
.car-nav:active { transform: translateY(-50%) scale(0.94); }
.car-prev { left: -6px; }
.car-next { right: -6px; }
@media (min-width: 720px) {
  .car-prev { left: -22px; }
  .car-next { right: -22px; }
}

/* ---- accommodations: two distinct places ---- */
.place-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 2px 0 20px;
}
.place-tab {
  flex: 1 1 0;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 16px 10px;
  cursor: pointer;
  color: var(--ink-dim);
  background: rgba(10,6,24,0.4);
  border: 1px solid rgba(246,210,122,0.28);
  border-radius: 14px;
  transition: color 0.2s, border-color 0.2s, background 0.25s, transform 0.15s, box-shadow 0.25s;
}
.place-tab:hover { color: var(--ink); border-color: rgba(246,210,122,0.55); transform: translateY(-1px); }
.place-tab.is-active {
  color: #2a1505;
  background: radial-gradient(circle at 35% 25%, var(--gold-bright), var(--gold) 65%, var(--gold-deep));
  border-color: var(--gold-bright);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45), inset 0 1px 3px rgba(255,255,255,0.4);
}
.place-tab-name { font-family: var(--serif-head); font-size: 1.12rem; letter-spacing: 0.02em; }
.place-tab-where {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  opacity: 0.85;
}
.place-info { text-align: center; margin-bottom: 16px; }
.place-name {
  font-family: var(--serif-display);
  color: var(--gold-bright);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin: 0 0 3px;
}
.place-where {
  font-family: var(--serif-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--ink-dim);
  margin: 0 0 12px;
}
.place-ask {
  font-family: var(--serif-head);
  color: var(--gold-bright);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}
.place-bullets {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 44ch;
  text-align: left;
  display: inline-block;
}
.place-bullets li {
  position: relative;
  padding-left: 22px;
  margin: 7px 0;
  line-height: 1.5;
  color: var(--ink);
  font-size: 1.02rem;
}
.place-bullets li::before {
  content: "✦";
  position: absolute; left: 0; top: 0;
  color: var(--gold-bright);
  opacity: 0.75;
}
.place-rsvp-note {
  text-align: center;
  margin: 2px 0 18px;
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--ink-dim);
  font-size: 0.96rem;
}
.place-rsvp-note a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(246,210,122,0.4);
}
.place-rsvp-note a:hover { border-bottom-color: var(--gold-bright); }

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes twinkle { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes draw-arch { to { stroke-dashoffset: 0; } }

/* ride */
@keyframes carpet-enter {
  0%   { transform: translate(-85vw, 34vh) rotate(-16deg) scale(0.4); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
}
@keyframes carpet-float {
  0%, 100% { transform: translateY(-12px) translateX(-8px) rotate(-2deg); }
  50%      { transform: translateY(14px) translateX(8px) rotate(2.5deg); }
}
@keyframes carpet-zoom {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(7vw, -95vh) rotate(7deg) scale(1.5); opacity: 0; }
}
@keyframes star-rush { from { background-position: 0 0; } to { background-position: -50% 60%; } }
@keyframes streak { from { background-position: 0 0; } to { background-position: -90px 42px; } }
@keyframes pulse-text { 0%,100% { opacity: 0.8; } 50% { opacity: 1; } }
@keyframes ride-lift { to { transform: translateY(-45%) scale(1.08); opacity: 0; } }

/* lockout */
@keyframes bar-slam { 0% { transform: translateY(-100%); } 70% { transform: translateY(2%); } 85% { transform: translateY(-3%); } 100% { transform: translateY(0); } }
@keyframes lock-shut { from { transform: translateY(-16px) scaleY(1.25); } to { transform: none; } }
@keyframes shake {
  10%,90% { transform: translateX(-2px); }
  20%,80% { transform: translateX(4px); }
  30%,50%,70% { transform: translateX(-8px); }
  40%,60% { transform: translateX(8px); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .arch-path { stroke-dashoffset: 0; }
}

/* ============================================================
   RSVP FORM (oasis sub-view)
   ============================================================ */
.rsvp-form { margin: 6px 0 20px; }
.rsvp-label {
  font-family: var(--serif-head);
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: var(--gold-bright);
  margin: 16px 0 12px;
}
.rsvp-choice { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.choice-btn {
  flex: 1 1 150px;
  max-width: 220px;
  font-family: var(--serif-body);
  font-size: 1.1rem;
  color: var(--ink);
  background: rgba(17,18,42,0.7);
  border: 1px solid rgba(246,210,122,0.32);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.05s;
}
.choice-btn:hover { border-color: var(--gold-bright); }
.choice-btn:active { transform: translateY(1px); }
.choice-btn.selected {
  background: linear-gradient(180deg, rgba(246,210,122,0.18), rgba(224,169,63,0.08));
  border-color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px var(--gold-bright), 0 0 22px rgba(224,169,63,0.22);
}

.rsvp-partner { margin-top: 4px; }
.rsvp-stay { margin-top: 4px; }
.rsvp-note {
  text-align: center;
  font-family: var(--serif-body);
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 34rem;
  margin: 0 auto 16px;
}

.rsvp-rank { margin-top: 6px; }
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(17,18,42,0.7);
  border: 1px solid rgba(246,210,122,0.24);
  border-radius: 12px;
  padding: 12px 14px;
}
.rank-num {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--serif-head); font-weight: 400; color: #2a1505;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 70%);
}
.rank-name { flex: 1; text-align: left; font-size: 1.1rem; }
.rank-moves { display: flex; flex-direction: column; gap: 1px; }
.rmove {
  background: transparent; border: none; cursor: pointer;
  color: var(--gold-bright); font-size: 0.72rem; line-height: 1; padding: 3px 7px;
}
.rmove:disabled { color: rgba(201,180,139,0.3); cursor: default; }
.rmove:not(:disabled):hover { filter: brightness(1.25); }

.seal-wide {
  margin-top: 22px; width: 100%;
  font-family: var(--serif-head); letter-spacing: 0.08em; font-size: 1rem; font-weight: 400;
  color: #2a1505;
  background: radial-gradient(circle at 30% 25%, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  border: none; border-radius: 999px; padding: 14px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  transition: filter 0.2s, transform 0.05s;
}
.seal-wide:hover { filter: brightness(1.06); }
.seal-wide:active { transform: translateY(1px); }
.seal-wide:disabled { opacity: 0.6; cursor: progress; }

.rsvp-msg { color: var(--rose); font-style: italic; min-height: 1.2em; margin-top: 12px; }
.rsvp-done {
  font-family: var(--serif-body); font-style: italic; font-size: 1.28rem;
  color: var(--gold-bright); line-height: 1.5; padding: 16px 6px;
}

/* ---------- Desert activities form ---------- */
.activities-form { margin: 6px 0 20px; text-align: left; }
.act-field { display: block; }
.act-field .rsvp-label { text-align: left; }
.act-input {
  width: 100%;
  background: rgba(17,18,42,0.7);
  border: 1px solid rgba(246,210,122,0.32);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.1rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.act-input::placeholder { color: rgba(201,180,139,0.55); }
.act-input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(246,210,122,0.14);
}
.act-choices { display: flex; flex-direction: column; gap: 10px; }
.act-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-family: var(--serif-body);
  font-size: 1.1rem;
  color: var(--ink);
  background: rgba(17,18,42,0.7);
  border: 1px solid rgba(246,210,122,0.32);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.05s;
}
.act-choice:hover { border-color: var(--gold-bright); }
.act-choice:active { transform: translateY(1px); }
.act-choice.selected {
  background: linear-gradient(180deg, rgba(246,210,122,0.18), rgba(224,169,63,0.08));
  border-color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px var(--gold-bright), 0 0 22px rgba(224,169,63,0.22);
}
.act-check {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(246,210,122,0.5);
  display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.act-choice.selected .act-check {
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 70%);
  border-color: var(--gold-bright);
}
.act-choice.selected .act-check::after {
  content: "✓";
  color: #2a1505; font-size: 0.9rem; line-height: 1;
}
.act-name { flex: 1; }
.act-price {
  flex: 0 0 auto;
  font-family: var(--serif-head);
  font-size: 0.95rem;
  color: var(--gold-bright);
  white-space: nowrap;
}

/* ============================================================
   THE BAR — villa drink ordering (oasis sub-view)
   ============================================================ */
.subview-card.is-bar {
  width: min(760px, 100%);   /* 100% respects the .subview padding (no overflow) */
  border-radius: 22px;
  padding: 30px 24px 22px;
  text-align: left;
  height: min(88vh, 900px);   /* definite height so the inner list can scroll */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.subview-card.is-bar .subview-arch { display: none; }
.subview-card.is-bar > .eyebrow,
.subview-card.is-bar > h2 { text-align: center; }
.subview-card.is-bar h2 { margin-bottom: 4px; }
.subview-card.is-bar .subview-body {
  text-align: center; font-size: 1.05rem; color: var(--ink-dim);
  font-style: italic; margin-bottom: 16px;
}
.subview-card.is-bar > .ghost-btn { margin-top: 16px; align-self: center; }

.bar-order { display: flex; flex-direction: column; min-height: 0; flex: 1; }
/* browse & cart panels fill the remaining height so their inner lists scroll */
#bar-browse, #bar-cart { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* summary pill / cart toggle */
.bar-bar { margin-bottom: 14px; }
.bar-cart-toggle {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  font-family: var(--serif-head); letter-spacing: 0.04em;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(246,210,122,0.14), rgba(224,169,63,0.05));
  border: 1px solid rgba(246,210,122,0.45);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.bar-cart-toggle:hover { border-color: var(--gold-bright); box-shadow: 0 0 20px rgba(224,169,63,0.16); }
.bar-cart-toggle.has-items { background: linear-gradient(180deg, rgba(246,210,122,0.22), rgba(224,169,63,0.08)); }
.bar-cart-glyph { color: var(--gold-bright); font-size: 1rem; }
.bar-cart-count { font-size: 0.98rem; }
.bar-cart-total { margin-left: auto; color: var(--gold-bright); font-size: 0.98rem; white-space: nowrap; }
.bar-cart-caret { color: var(--gold-bright); font-size: 0.7rem; transition: transform 0.2s; }
.bar-cart-toggle[aria-pressed="true"] .bar-cart-caret { transform: rotate(180deg); }

/* search */
.bar-search { margin-bottom: 12px; }
#bar-q {
  width: 100%;
  font-family: var(--serif-body); font-size: 1.08rem; color: var(--ink);
  background: rgba(11,7,26,0.6);
  border: 1px solid rgba(246,210,122,0.3);
  border-radius: 12px;
  padding: 11px 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#bar-q::placeholder { color: rgba(201,180,139,0.55); font-style: italic; }
#bar-q:focus { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(246,210,122,0.14); }

/* category chips */
.bar-cats {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 6px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.bar-cats::-webkit-scrollbar { height: 5px; }
.bar-cats::-webkit-scrollbar-thumb { background: rgba(246,210,122,0.3); border-radius: 3px; }
.bar-cat {
  flex: 0 0 auto;
  font-family: var(--serif-head); font-size: 0.82rem; letter-spacing: 0.03em;
  color: var(--ink-dim);
  background: rgba(17,18,42,0.6);
  border: 1px solid rgba(246,210,122,0.22);
  border-radius: 999px;
  padding: 7px 14px; cursor: pointer; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.bar-cat:hover { color: var(--ink); border-color: rgba(246,210,122,0.5); }
.bar-cat em { font-style: normal; opacity: 0.6; margin-left: 5px; font-size: 0.85em; }
.bar-cat.is-active {
  color: #2a1505; font-weight: 400;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 80%);
  border-color: var(--gold-bright);
}
.bar-cat.is-active em { opacity: 0.7; }

.bar-list-head {
  font-family: var(--serif-head); letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.68rem; color: var(--gold-bright); opacity: 0.85;
  margin: 8px 2px 6px;
}

/* the scrolling list of drinks */
.bar-list, .bar-cart-list {
  overflow-y: auto; min-height: 0; flex: 1;
  padding-right: 4px; margin-right: -4px;
  scrollbar-width: thin;
}
.bar-list::-webkit-scrollbar, .bar-cart-list::-webkit-scrollbar { width: 6px; }
.bar-list::-webkit-scrollbar-thumb, .bar-cart-list::-webkit-scrollbar-thumb {
  background: rgba(246,210,122,0.25); border-radius: 3px;
}

.drink {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 6px;
  border-bottom: 1px solid rgba(246,210,122,0.12);
}
.drink:last-child { border-bottom: none; }
.drink-info { flex: 1; min-width: 0; }
.drink-name {
  display: block; font-size: 1.1rem; color: var(--ink); line-height: 1.25;
}
.drink.has-qty .drink-name { color: var(--gold-bright); }
.drink-meta {
  display: block; font-size: 0.82rem; color: var(--ink-dim);
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drink-price { flex: 0 0 auto; text-align: right; line-height: 1.2; }
.drink-price .price-usd { display: block; font-size: 1.12rem; color: var(--ink); white-space: nowrap; letter-spacing: 0.01em; }
.drink-price .price-mad { display: block; font-size: 0.76rem; color: var(--ink-dim); white-space: nowrap; margin-top: 1px; }

/* quantity stepper */
.stepper { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.step-btn {
  width: 30px; height: 30px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  font-family: var(--serif-head); font-size: 1.15rem; line-height: 1; padding-bottom: 2px;
  color: var(--gold-bright);
  background: rgba(17,18,42,0.8);
  border: 1px solid rgba(246,210,122,0.4);
  transition: filter 0.15s, transform 0.05s, background 0.2s;
}
.step-btn:hover { filter: brightness(1.2); border-color: var(--gold-bright); }
.step-btn:active { transform: scale(0.9); }
.step-btn.inc {
  color: #2a1505;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 70%);
  border-color: var(--gold-bright);
}
.step-qty {
  min-width: 26px; text-align: center;
  font-family: var(--serif-head); font-size: 1.05rem; color: var(--gold-bright);
}
.step-qty.zero { color: var(--ink-dim); opacity: 0.5; }

.bar-empty { text-align: center; color: var(--ink-dim); font-style: italic; padding: 30px 10px; }

/* cart */
.bar-cart-line {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid rgba(246,210,122,0.12);
}
.bar-cart-line .drink-info { flex: 1; }
.bar-cart-qtybadge {
  flex: 0 0 auto; min-width: 30px; text-align: center;
  font-family: var(--serif-head); color: var(--gold-bright); font-size: 1rem;
}
.bar-cart-line .drink-price .price-usd { font-size: 1.12rem; }
.bar-cart-rm {
  flex: 0 0 auto; background: transparent; border: none; cursor: pointer;
  color: var(--rose); font-size: 1.05rem; padding: 4px 6px; opacity: 0.7;
  transition: opacity 0.15s, transform 0.05s;
}
.bar-cart-rm:hover { opacity: 1; }
.bar-cart-rm:active { transform: scale(0.9); }

.bar-cart-foot { border-top: 1px solid rgba(246,210,122,0.3); margin-top: 8px; padding-top: 14px; }
.bar-cart-grand {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--serif-head); letter-spacing: 0.04em;
}
.bar-cart-grand > span:first-child { color: var(--ink-dim); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; }
.bar-cart-grand-nums { text-align: right; }
.bar-cart-grand-nums b { display: block; color: var(--gold-bright); font-size: 1.5rem; }
.bar-cart-grand-nums .grand-sub { color: var(--ink-dim); font-style: italic; font-size: 0.9rem; }
.bar-cart-note { text-align: center; color: var(--ink-dim); font-style: italic; font-size: 0.86rem; margin-top: 10px; }

/* ============================================================
   PALACE GUESTS — the headshot roster
   ============================================================ */
.subview-card.is-roster {
  width: min(880px, 96vw);
  border-radius: 22px;
  padding: 40px 30px 30px;
}
.subview-card.is-roster > .eyebrow,
.subview-card.is-roster > h2 { text-align: center; }
.subview-card.is-roster .subview-body {
  font-size: 1.06rem;
  color: var(--ink-dim);
  font-style: italic;
  margin-bottom: 22px;
}

.guest-search { margin-bottom: 18px; }
#guest-q {
  width: 100%;
  font-family: var(--serif-body); font-size: 1.08rem; color: var(--ink);
  background: rgba(11,7,26,0.6);
  border: 1px solid rgba(246,210,122,0.3);
  border-radius: 12px;
  padding: 11px 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#guest-q::placeholder { color: rgba(201,180,139,0.55); font-style: italic; }
#guest-q:focus { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(246,210,122,0.14); }

/* Fixed-width columns rather than 1fr so a half-full roster stays centred
   instead of hugging the left edge with over-wide cards. */
.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
  justify-content: center;
  gap: 26px 22px;
  text-align: center;
}
.guest-card { margin: 0; }

/* The portrait sits in a keyhole arch, echoing the gate and the sub-view card. */
.guest-frame {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 46% 46% 12px 12px / 34% 34% 8px 8px;
  overflow: hidden;
  border: 1px solid rgba(246,210,122,0.42);
  background: linear-gradient(180deg, rgba(58,31,116,0.7), rgba(22,13,51,0.9));
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft),
              border-color 0.3s;
}
.guest-card:hover .guest-frame {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 20px 38px rgba(0,0,0,0.55);
}
.guest-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* Faces sit above centre in a standing portrait — bias the crop upward. */
  object-position: center 28%;
}
.guest-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-display);
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  color: rgba(246,210,122,0.6);
}
/* Top billing: the host gets a row to himself ahead of the grid, a larger
   portrait, and a doubled gold arch — an outline rather than a second border,
   so the ring follows the keyhole curve instead of squaring it off. */
.guest-card.is-featured {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}
.guest-card.is-featured .guest-frame {
  width: min(212px, 60vw);
  margin: 0 auto;
  border: 2px solid var(--gold-bright);
  outline: 1px solid rgba(246,210,122,0.45);
  outline-offset: 5px;
  box-shadow: 0 0 30px rgba(246,210,122,0.20), 0 18px 40px rgba(0,0,0,0.5);
}
.guest-card.is-featured:hover .guest-frame { outline-color: var(--gold-bright); }
.guest-card.is-featured .guest-name { font-size: 1.22rem; }

.guest-card figcaption { display: block; margin-top: 12px; }
.guest-name {
  display: block;
  font-family: var(--serif-head);
  font-size: 1.06rem;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
/* Honorific. Marcellus has no bold, so the emphasis is tracking + gold. */
.guest-title {
  display: block;
  margin-top: 5px;
  font-family: var(--serif-display);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;   /* re-centre: tracking hangs off the last letter */
  text-transform: uppercase;
  color: var(--gold);
}
.guest-from {
  display: block;
  margin-top: 3px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.guest-blurb {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}
.guest-msg {
  margin-top: 24px;
  text-align: center;
  color: var(--ink-dim);
  font-style: italic;
  font-size: 0.92rem;
}
.guest-msg:empty { display: none; }
/* the message line usually collapses, so the back link needs its own air */
.subview-card.is-roster > .ghost-btn { display: inline-block; margin-top: 30px; }

@media (max-width: 480px) {
  .subview { padding: 12px; }
  .subview-card.is-bar { padding: 24px 14px 16px; height: min(92vh, 900px); }
  .subview-card.is-roster { padding: 32px 16px 20px; }
  .guest-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 160px)); gap: 20px 14px; }
  .guest-name { font-size: 0.98rem; }
  .guest-card.is-featured .guest-frame { width: min(178px, 62vw); }
  .guest-card.is-featured .guest-name { font-size: 1.12rem; }
  .drink { gap: 8px; padding: 10px 2px; }
  .drink-meta { font-size: 0.76rem; }
  .drink-name { font-size: 1.02rem; }
  .drink-price .price-usd { font-size: 1rem; }
  .drink-price .price-mad { font-size: 0.7rem; }
  .step-btn { width: 28px; height: 28px; }
  .step-qty { min-width: 20px; font-size: 0.98rem; }
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 94vw);
  margin: 0 auto;
  padding: 6vh 0 9vh;
}
.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.admin-title {
  font-family: var(--serif-display);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  color: var(--gold-bright);
  margin-top: 2px;
}
.admin-title span { color: var(--ink); }

.add-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(58,31,116,0.4), rgba(22,13,51,0.55));
  border: 1px solid rgba(246,210,122,0.28);
  border-radius: 14px;
}
.adm-input {
  background: #11122a;
  border: 1px solid rgba(246,210,122,0.3);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.05rem;
  padding: 10px 14px;
  outline: none;
}
.adm-input:focus { border-color: var(--gold-bright); }
#add-name { flex: 1 1 150px; }
#add-email { flex: 2 1 220px; }
.date-field {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif-head); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-dim);
}
.date-field .adm-input { color-scheme: dark; }
.adm-add-btn {
  font-family: var(--serif-head); letter-spacing: 0.05em; font-weight: 400; font-size: 0.95rem;
  color: #2a1505;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  border: none; border-radius: 8px; padding: 11px 20px; cursor: pointer;
  transition: filter 0.2s, transform 0.05s;
}
.adm-add-btn:hover { filter: brightness(1.07); }
.adm-add-btn:active { transform: translateY(1px); }

.admin-msg { color: var(--rose); font-style: italic; min-height: 1.1em; margin: 10px 2px 0; }

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(246,210,122,0.18);
}
.att-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.att-table th {
  font-family: var(--serif-head); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.7rem; color: var(--gold-bright); text-align: left; white-space: nowrap;
  padding: 14px 16px; background: rgba(22,13,51,0.85);
}
.att-table td {
  padding: 13px 16px; color: var(--ink);
  border-top: 1px solid rgba(246,210,122,0.1);
  vertical-align: middle;
}
.att-table tbody tr:hover { background: rgba(124,108,255,0.08); }
.att-table .email { color: var(--ink-dim); font-size: 0.95rem; }
.att-table .num { text-align: center; }
.att-table .rank { font-size: 0.9rem; color: var(--ink-dim); white-space: nowrap; }

.pill {
  display: inline-block; padding: 3px 11px; border-radius: 999px; white-space: nowrap;
  font-family: var(--serif-head); font-size: 0.7rem; letter-spacing: 0.06em;
}
.pill-yes { background: rgba(54,211,153,0.16); color: #5fe0b0; border: 1px solid rgba(54,211,153,0.4); }
.pill-no { background: rgba(255,107,129,0.14); color: #ff8c9e; border: 1px solid rgba(255,107,129,0.4); }
.pill-pending { background: rgba(201,180,139,0.12); color: var(--ink-dim); border: 1px solid rgba(201,180,139,0.3); }
.pill-full { background: rgba(246,210,122,0.16); color: var(--gold-bright); border: 1px solid rgba(246,210,122,0.4); }
.pill-part { background: rgba(224,169,63,0.12); color: #e0b46a; border: 1px solid rgba(224,169,63,0.4); }
.pill-veg { background: rgba(132,204,105,0.14); color: #9fd67f; border: 1px solid rgba(132,204,105,0.4); }

.rm {
  background: transparent; border: 1px solid rgba(255,107,129,0.4); color: #ff8c9e;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 0.85rem;
  transition: background 0.2s, transform 0.05s;
}
.rm:hover { background: rgba(255,107,129,0.16); }
.rm:active { transform: scale(0.92); }

/* Row actions + inline attendee editing */
.row-actions { display: flex; gap: 6px; white-space: nowrap; }
.edit, .save, .cancel {
  background: transparent; width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: 0.85rem; line-height: 1;
  transition: background 0.2s, transform 0.05s;
}
.edit { border: 1px solid rgba(246,210,122,0.4); color: var(--gold-bright); }
.edit:hover { background: rgba(246,210,122,0.14); }
.save { border: 1px solid rgba(54,211,153,0.5); color: #5fe0b0; }
.save:hover { background: rgba(54,211,153,0.18); }
.cancel { border: 1px solid rgba(201,180,139,0.4); color: var(--ink-dim); }
.cancel:hover { background: rgba(201,180,139,0.14); }
.edit:active, .save:active, .cancel:active { transform: scale(0.92); }

.att-table tr.editing { background: rgba(124,108,255,0.10); }
.att-table tr.editing td { padding: 10px 8px; }
.att-table td .ed {
  width: 100%; min-width: 68px; box-sizing: border-box;
  font-size: 0.9rem; padding: 6px 8px;
}
.att-table td .ed[type="date"] { color-scheme: dark; min-width: 138px; }
.admin-msg--count { color: var(--ink-dim); font-style: normal; }

/* ============================================================
   ADMIN — Villa bar orders
   ============================================================ */
.bar-admin { margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(246,210,122,0.3); }
.bar-admin-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-bottom: 20px;
}
.bar-admin-totals { display: flex; gap: 10px; flex-wrap: wrap; }
.bar-stat {
  display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--serif-body); color: var(--ink-dim); font-size: 0.9rem;
  padding: 8px 16px; border-radius: 12px;
  background: rgba(17,18,42,0.6); border: 1px solid rgba(246,210,122,0.24);
}
.bar-stat b { font-family: var(--serif-head); color: var(--ink); font-size: 1.15rem; }
.bar-stat--money b { color: var(--gold-bright); }
.bar-stat em { font-style: italic; font-size: 0.78rem; }

.bar-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 820px) { .bar-admin-grid { grid-template-columns: 1fr; } }
.bar-admin-h3 {
  font-family: var(--serif-head); letter-spacing: 0.04em; font-size: 1rem;
  color: var(--gold-bright); margin-bottom: 12px;
}
.bar-admin-h3 span { color: var(--ink-dim); font-size: 0.85em; }

.bar-agg-table td { vertical-align: top; }
.bar-agg-table td.strong { font-family: var(--serif-head); color: var(--gold-bright); font-size: 1.05rem; }
.bar-agg-table td.money { color: var(--ink); white-space: nowrap; }
.att-table .dim { color: var(--ink-dim); font-size: 0.86em; }

/* per-guest cards */
.bar-guests { display: flex; flex-direction: column; gap: 14px; }
.bar-guest {
  background: linear-gradient(180deg, rgba(58,31,116,0.34), rgba(22,13,51,0.5));
  border: 1px solid rgba(246,210,122,0.24); border-radius: 14px; padding: 14px 16px;
}
.bar-guest-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(246,210,122,0.16);
}
.bar-guest-who { font-family: var(--serif-body); font-size: 1.12rem; color: var(--ink); }
.bar-guest-total {
  font-family: var(--serif-head); font-size: 0.9rem; color: var(--gold-bright); white-space: nowrap;
}
.bar-guest-total em { color: var(--ink-dim); font-style: italic; font-size: 0.82rem; }
.bar-guest-items { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.bar-guest-items li { display: flex; align-items: baseline; gap: 10px; font-size: 1rem; }
.bg-qty { flex: 0 0 auto; font-family: var(--serif-head); color: var(--gold-bright); min-width: 30px; }
.bg-name { flex: 1; color: var(--ink); }
.bg-line { flex: 0 0 auto; color: var(--ink-dim); white-space: nowrap; }
.att-table .dim { color: var(--ink-dim); }
