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

/* Screen-reader only — visible to crawlers and assistive tech, invisible on screen */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --gold: #dcc15e;
  --gold-light: #f5e8a8;
  --gold-dark: #a8883f;
  --ink: #0e0d11;
  --card-bg: #181522;
}

html {
  font-size: 18px;
  /* Lock horizontal scroll/rubber-band on iOS Safari */
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: auto;
  max-width: 100vw;
  position: relative;
}

body {
  background: var(--ink);
  color: #f4f0e6;
  font-family: 'Cormorant Garamond', Georgia, serif;
  min-height: 100vh; min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  /* Prevent iOS/Android overscroll bounce on the page body */
  overscroll-behavior: none;
  overscroll-behavior-x: none;
  /* Smooth text rendering on WebKit/Blink */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ═══ BACKGROUND ═══ */
body::after {
  content: '';
  position: fixed; inset: 0; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px; pointer-events: none; z-index: 0;
}

/* Ambient light canvas sits behind everything */
#ambientCanvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ═══ PARTICLES ═══ */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.particle {
  position: absolute; width: 2px; height: 2px;
  background: var(--gold); border-radius: 50%;
  opacity: 0; animation: drift 8s ease-in-out infinite;
}
@keyframes drift {
  0% { opacity: 0; transform: translateY(100vh) scale(0.5); }
  20% { opacity: 0.6; }
  80% { opacity: 0.25; }
  100% { opacity: 0; transform: translateY(-20vh) scale(0); }
}

/* ═══ LAYOUT ═══ */
.page-wrapper {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh; min-height: 100dvh;
  padding: 2rem 1rem 2rem;
  /* iOS safe areas: respect notch and home indicator */
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

/* ═══ HEADER ═══ */
header { text-align: center; margin-bottom: 1.5rem; }

.logo-wrap {
  position: relative;
  display: inline-block;
  cursor: default;
  perspective: 800px;
  padding: 0 1rem;
  overflow: hidden; /* contain shimmer pseudo-element */
}

.logo-svg {
  width: clamp(240px, 65vw, 420px);
  height: auto;
  filter: drop-shadow(0 0 0px rgba(201,168,76,0));
  transition: filter 0.6s cubic-bezier(0.22,1,0.36,1),
              transform 0.6s cubic-bezier(0.22,1,0.36,1);
  will-change: filter, transform;
}

/* Shimmer sweep on hover */
.logo-wrap::after {
  content: '';
  position: absolute; inset: -20% -10%;
  background: linear-gradient(
    105deg,
    transparent 0%, transparent 40%,
    rgba(232,212,139,0.08) 45%,
    rgba(232,212,139,0.15) 50%,
    rgba(232,212,139,0.08) 55%,
    transparent 60%, transparent 100%
  );
  transform: translateX(-120%);
  transition: none;
  pointer-events: none;
  z-index: 1;
}
.logo-wrap:hover::after {
  transform: translateX(120%);
  transition: transform 0.9s cubic-bezier(0.22,1,0.36,1);
}

/* Ambient glow ring beneath logo */
.logo-wrap::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 70%; height: 60%;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%);
  transition: opacity 0.6s ease, transform 0.6s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.logo-wrap:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.3);
}

.logo-wrap:hover .logo-svg {
  filter: drop-shadow(0 0 40px rgba(201,168,76,0.25))
          drop-shadow(0 0 80px rgba(201,168,76,0.1));
}
/* Easter egg: demonic red glow — fade in over 1s, hold */
.logo-svg.logo-demon {
  filter: drop-shadow(0 0 20px rgba(200,30,30,0.8))
          drop-shadow(0 0 50px rgba(200,30,30,0.5))
          drop-shadow(0 0 100px rgba(180,20,20,0.3))
          drop-shadow(0 0 180px rgba(140,10,10,0.2)) !important;
  transition: filter 1s ease-in !important;
}
/* Fade back to normal over ~5s */
.logo-svg.logo-demon-fade {
  transition: filter 5s cubic-bezier(0.22,1,0.36,1) !important;
}
/* During flash: hide pseudo-elements AND remove overflow clip so drop-shadow isn't boxed */
.logo-wrap.logo-active {
  overflow: visible !important;
}
.logo-wrap.logo-active::before,
.logo-wrap.logo-active::after {
  display: none !important;
}

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 300;
  font-size: 1.15rem; color: rgba(237,231,218,0.55);
  margin-top: 1.5rem; letter-spacing: 0.04em;
  transition: color 0.5s ease;
}
.logo-wrap:hover ~ .tagline {
  color: rgba(237,231,218,0.7);
}

/* ═══ OPEN STATUS INDICATOR ═══ */
.open-status {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  margin-top: 0.6rem;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.open-status.visible { opacity: 1; }
.open-status .status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.open-status.now-open { color: rgba(130,200,130,0.85); }
.open-status.now-open .status-dot {
  background: rgba(130,200,130,0.9);
  box-shadow: 0 0 8px rgba(130,200,130,0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
.open-status.now-closed { color: rgba(237,231,218,0.45); }
.open-status.now-closed .status-dot {
  background: rgba(237,231,218,0.35);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ═══ CARD SPREAD ═══ */
.spread {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.2rem;
  row-gap: 2.5rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  padding-top: 2rem;  /* space for floating labels above cards — reduced by .no-labels */
  width: 100%;
  perspective: 1200px;
}
.spread.no-labels { padding-top: 0.5rem; row-gap: 0.8rem; }
.spread .tarot-card {
  width: calc(33.33% - 1.2rem);
  min-width: 125px;
}

/* Subtle shadow pulse when card lands after deal-in */
@keyframes card-land {
  0%   { box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.4), 0 20px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(201,168,76,0.08); }
  40%  { box-shadow: 0 4px 8px rgba(0,0,0,0.35), 0 12px 30px rgba(0,0,0,0.45), 0 25px 50px rgba(0,0,0,0.25), 0 0 15px rgba(201,168,76,0.12); }
  100% { box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.4), 0 20px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(201,168,76,0.08); }
}

/* ═══ TAROT CARD (in grid) ═══ */
.tarot-card {
  aspect-ratio: 4 / 7.1;
  cursor: pointer;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Prevent iOS long-press callout and text selection on cards */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  animation: card-deal 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
  border-radius: 6px;
  overflow: visible;
  position: relative;
  perspective: 800px;
  border: none;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s ease;
  box-shadow: none;
  /* Performance: isolate paint and layout per card */
  contain: layout style;
  will-change: transform, box-shadow;
}
/* Show border and shadow only after card is revealed */
.tarot-card.revealed {
  box-shadow:
    inset 0 0 0 2px rgba(200,170,70,0.55),
    0 2px 4px rgba(0,0,0,0.3),
    0 8px 20px rgba(0,0,0,0.4),
    0 20px 40px rgba(0,0,0,0.2),
    0 0 0 1px rgba(201,168,76,0.08);
}

.tarot-card.ghost { visibility: hidden; }

.tarot-card:nth-child(1) { animation-delay: 0.1s; }
.tarot-card:nth-child(2) { animation-delay: 0.22s; }
.tarot-card:nth-child(3) { animation-delay: 0.34s; }
.tarot-card:nth-child(4) { animation-delay: 0.46s; }
.tarot-card:nth-child(5) { animation-delay: 0.58s; }
.tarot-card:nth-child(6) { animation-delay: 0.70s; }

@keyframes card-deal {
  0%   { opacity: 0; transform: translate(60vw, 80vh) rotate(25deg) scale(0.7); }
  15%  { opacity: 1; }
  70%  { transform: translate(0, -6px) rotate(-1.5deg) scale(1.02); }
  85%  { transform: translate(0, 2px) rotate(0.5deg) scale(0.995); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
}

/* ═══ GRID CARD FLIP STRUCTURE ═══ */
.grid-card-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(180deg);  /* start face-down showing cardback */
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 6px;
}
.tarot-card.revealed .grid-card-inner {
  transform: rotateY(0deg);    /* flip to reveal front */
}

.grid-front, .grid-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 6px;
  overflow: hidden;
  /* Force GPU compositing for reliable backface-visibility on mobile */
  transform-style: flat;
  -webkit-transform-style: flat;
}
.grid-front {
  z-index: 2;
}
/* Surface gloss — a soft highlight that shifts with tilt angle */
.grid-card-inner::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 6px;
  z-index: 10;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 60% at var(--gloss-x, 50%) var(--gloss-y, 30%),
    rgba(255, 252, 240, 0.08) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tarot-card.ready .grid-card-inner::before {
  opacity: 1;
}
.grid-back {
  z-index: 1;
  transform: rotateY(180deg);  /* back face is pre-rotated */
  overflow: hidden;
}
.grid-back img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
}

/* ═══ GOLD FOIL EFFECT ═══ */
.gold-foil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      var(--foil-angle, 135deg),
      #6b4e1f 0%, #8a6d2b 12%, #c9a84c 25%, #e8d48b 35%,
      #f5e6a8 44%, #fffbea 50%, #f5e6a8 56%, #e8d48b 65%,
      #c9a84c 75%, #8a6d2b 88%, #6b4e1f 100%
    );
  --foil-angle: 135deg;
  --foil-x: 50%;
  --foil-y: 50%;
  transition: background 0.4s ease;
  will-change: background;
}
/* Specular highlight — follows cursor/drift */
.gold-foil::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 90% 90% at var(--foil-x, 50%) var(--foil-y, 50%),
    rgba(255, 252, 235, 0.7) 0%,
    rgba(255, 245, 200, 0.35) 20%,
    rgba(232, 212, 139, 0.15) 45%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}
/* Metallic noise grain */
.gold-foil::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
  opacity: 0.06;
  mix-blend-mode: overlay;
  z-index: 2;
  pointer-events: none;
}

/* ═══ COPPER-RED FOIL (events card) ═══ */
.copper-foil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      var(--foil-angle, 135deg),
      #3b1a1a 0%, #6b2e20 12%, #a84c3c 25%, #c47050 35%,
      #d8917a 44%, #f0c0a8 50%, #d8917a 56%, #c47050 65%,
      #a84c3c 75%, #6b2e20 88%, #3b1a1a 100%
    );
  --foil-angle: 135deg;
  --foil-x: 50%;
  --foil-y: 50%;
  transition: background 0.4s ease;
  will-change: background;
}
/* Copper specular highlight */
.copper-foil::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 90% 90% at var(--foil-x, 50%) var(--foil-y, 50%),
    rgba(255, 220, 200, 0.65) 0%,
    rgba(240, 192, 168, 0.3) 20%,
    rgba(196, 112, 80, 0.12) 45%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}
/* Copper metallic grain */
.copper-foil::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
  opacity: 0.07;
  mix-blend-mode: overlay;
  z-index: 2;
  pointer-events: none;
}

/* Event card border — copper instead of gold */
.tarot-card.event-card.revealed {
  box-shadow:
    inset 0 0 0 2px rgba(168, 76, 60, 0.5),
    0 2px 4px rgba(0,0,0,0.3),
    0 8px 20px rgba(0,0,0,0.4),
    0 20px 40px rgba(0,0,0,0.2),
    0 0 0 1px rgba(168, 76, 60, 0.1);
}

/* ═══ EDGE RIM LIGHT ═══ */
/* Subtle bright rim along card edges — shifts with foil position */
.grid-front::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 6px;
  z-index: 4;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255,252,235,0.12),
    inset 0 -1px 0 rgba(255,252,235,0.04),
    inset 1px 0 0 rgba(255,252,235,0.06),
    inset -1px 0 0 rgba(255,252,235,0.06);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.tarot-card.revealed .grid-front::after {
  opacity: 1;
}
/* Copper rim for event card */
.tarot-card.event-card .grid-front::after {
  box-shadow:
    inset 0 1px 0 rgba(240,192,168,0.15),
    inset 0 -1px 0 rgba(240,192,168,0.05),
    inset 1px 0 0 rgba(240,192,168,0.08),
    inset -1px 0 0 rgba(240,192,168,0.08);
}

/* ═══ IDLE BREATHING ═══ */
/* Gentle shadow pulse while resting — gives a "living" feel */
.tarot-card.ready {
  animation: card-breathe 6s ease-in-out infinite;
}
@keyframes card-breathe {
  0%, 100% {
    box-shadow:
      0 2px 4px rgba(0,0,0,0.3),
      0 8px 20px rgba(0,0,0,0.4),
      0 20px 40px rgba(0,0,0,0.2),
      0 0 0 1px rgba(201,168,76,0.08);
  }
  50% {
    box-shadow:
      0 3px 6px rgba(0,0,0,0.3),
      0 10px 25px rgba(0,0,0,0.42),
      0 22px 44px rgba(0,0,0,0.22),
      0 0 12px rgba(201,168,76,0.06);
  }
}
/* Event card breathe uses copper glow */
.tarot-card.event-card.ready {
  animation-name: card-breathe-copper;
}
@keyframes card-breathe-copper {
  0%, 100% {
    box-shadow:
      0 2px 4px rgba(0,0,0,0.3),
      0 8px 20px rgba(0,0,0,0.4),
      0 20px 40px rgba(0,0,0,0.2),
      0 0 0 1px rgba(168,76,60,0.1);
  }
  50% {
    box-shadow:
      0 3px 6px rgba(0,0,0,0.3),
      0 10px 25px rgba(0,0,0,0.42),
      0 22px 44px rgba(0,0,0,0.22),
      0 0 14px rgba(168,76,60,0.08);
  }
}

/* Pause breathing on hover so tilt shadow takes over */
@media (hover: hover) {
  .tarot-card.ready:hover { animation-play-state: paused; }
}

/* Stagger breathing so cards don't pulse in sync */
.tarot-card.ready:nth-child(1) { animation-delay: 0s; }
.tarot-card.ready:nth-child(2) { animation-delay: -1s; }
.tarot-card.ready:nth-child(3) { animation-delay: -2s; }
.tarot-card.ready:nth-child(4) { animation-delay: -3s; }
.tarot-card.ready:nth-child(5) { animation-delay: -4s; }
.tarot-card.ready:nth-child(6) { animation-delay: -5s; }

/* Card art rendered as ink on gold via multiply blend */
.grid-front img {
  position: relative;
  z-index: 3;
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: grayscale(100%) contrast(1.6) brightness(0.9);
  /* Prevent iOS image save dialog on long-press */
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

/* Gold foil on touch devices — JS handles gyro/random shimmer */

/* ═══ CARD LABEL (floats just above each card) ═══ */
.tarot-card .card-label {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(6px);
  z-index: 20;
  padding: 0;
  white-space: nowrap;
  text-align: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(201,168,76,0.4), 0 1px 2px rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
/* Desktop: labels only on hover */
@media (hover: hover) {
  .spread.labels-shown .tarot-card .card-label {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  .spread.labels-shown .tarot-card:hover .card-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
    color: #fff;
    text-shadow: 0 0 14px rgba(201,168,76,0.6), 0 1px 2px rgba(0,0,0,0.8);
    transition-delay: 0s;
  }
}
/* Mobile / touch: labels always visible after deal */
@media (hover: none) {
  .spread.labels-shown .tarot-card .card-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
  }
  /* Stagger each label's entrance */
  .spread.labels-shown .tarot-card:nth-child(1) .card-label { transition-delay: 0s; }
  .spread.labels-shown .tarot-card:nth-child(2) .card-label { transition-delay: 0.12s; }
  .spread.labels-shown .tarot-card:nth-child(3) .card-label { transition-delay: 0.24s; }
  .spread.labels-shown .tarot-card:nth-child(4) .card-label { transition-delay: 0.36s; }
  .spread.labels-shown .tarot-card:nth-child(5) .card-label { transition-delay: 0.48s; }
  .spread.labels-shown .tarot-card:nth-child(6) .card-label { transition-delay: 0.60s; }
}

/* ═══ HOVER — JS spring physics handles transform, CSS handles shadow ═══ */
.tarot-card.ready {
  animation: none;
  opacity: 1;
  /* Shadow transitions only — transform is driven by JS spring on desktop */
  transition: box-shadow 0.4s ease;
  will-change: transform, box-shadow;
}
@media (hover: hover) {
  .tarot-card.ready:hover {
    /* Shadow lifts with the card — transform handled by JS spring */
    box-shadow:
      0 6px 12px rgba(0,0,0,0.3),
      0 22px 45px rgba(0,0,0,0.4),
      0 40px 80px rgba(0,0,0,0.2),
      0 0 40px rgba(201,168,76,0.14),
      0 0 0 1px rgba(201,168,76,0.18);
    z-index: 20;
  }
}
/* Touch devices: tap lift still works via CSS (no JS spring) */
@media (hover: none) {
  .tarot-card.ready {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
  }
  .tarot-card.ready:active {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
      0 4px 10px rgba(0,0,0,0.3),
      0 16px 35px rgba(0,0,0,0.35),
      0 30px 60px rgba(0,0,0,0.2),
      0 0 25px rgba(201,168,76,0.1);
  }
}

/* ═══ BACKDROP ═══ */
.backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 7, 12, 0);
  z-index: 900;
  pointer-events: none;
  transition: background 0.45s ease;
  /* backdrop-filter applied instantly (not transitioned) — avoids
     expensive per-frame blur recalculation on older iOS/Android */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.backdrop.active {
  background: rgba(8, 7, 12, 0.78);
  pointer-events: all;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ═══ FLYING CARD ═══ */
.flying-card {
  position: fixed;
  z-index: 1000;
  perspective: 1200px;
  perspective-origin: center center;
  pointer-events: none;
  will-change: transform, opacity;
}
.flying-card.interactive { pointer-events: all; }

/* Close button — visible after flip completes */
.flying-card-close {
  position: absolute;
  top: -14px; right: -14px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.5);
  background: rgba(14,13,17,0.9);
  color: rgba(201,168,76,0.85);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.3s ease, border-color 0.2s, background 0.2s;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.flying-card.interactive .flying-card-close {
  opacity: 1;
  pointer-events: all;
}
.flying-card-close:hover {
  border-color: rgba(201,168,76,0.9);
  background: rgba(26,22,18,0.95);
}

.flying-card .card-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.flying-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.flying-card .card-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  contain: layout style paint;
}

/* Back face lives behind front in 3D space */
.flying-card .card-back {
  transform: rotateY(180deg);
}

/* Mobile WebKit fallback: z-index swap at midpoint */
.flying-card .card-front { z-index: 2; }
.flying-card .card-back { z-index: 1; }
.flying-card.flipped .card-front { z-index: 1; pointer-events: none; }
.flying-card.flipped .card-back { z-index: 2; }

/* Front — gold foil face */
.flying-card .card-front {
  border: 2.5px solid rgba(180,150,70,0.6);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.6),
    0 25px 70px rgba(0,0,0,0.4),
    0 0 60px rgba(201,168,76,0.08);
}
.flying-card .card-front .gold-foil {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg,
    #6b4e1f 0%, #8a6d2b 12%, #c9a84c 25%, #e8d48b 35%,
    #f5e6a8 44%, #fffbea 50%, #f5e6a8 56%, #e8d48b 65%,
    #c9a84c 75%, #8a6d2b 88%, #6b4e1f 100%);
  border-radius: 6px;
}
.flying-card .card-front .copper-foil {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg,
    #3b1a1a 0%, #6b2e20 12%, #a84c3c 25%, #c47050 35%,
    #d8917a 44%, #f0c0a8 50%, #d8917a 56%, #c47050 65%,
    #a84c3c 75%, #6b2e20 88%, #3b1a1a 100%);
  border-radius: 6px;
}
.flying-card .card-front img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  border-radius: 6px;
  mix-blend-mode: multiply;
  filter: grayscale(100%) contrast(1.6) brightness(0.9);
}

/* Back — rotated 180deg so backface-visibility hides it until parent flips */
.flying-card .card-back {
  transform: rotateY(180deg);
  background: linear-gradient(165deg, #1c1828 0%, #110f18 40%, #161320 100%);
  border: 2.5px solid rgba(180,150,70,0.6);
  display: flex; flex-direction: column;
  padding: 1.8rem 1.5rem;
  box-shadow:
    0 8px 30px rgba(0,0,0,0.6),
    0 25px 70px rgba(0,0,0,0.4),
    0 0 60px rgba(201,168,76,0.08);
  overflow-y: auto;

  /* Hide scrollbars but keep scrolling */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.flying-card .card-back::-webkit-scrollbar { display: none; }
.flying-card .card-back::before {
  content: ''; position: absolute; inset: 8px;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 8px; pointer-events: none;
}
.flying-card .card-back::after {
  content: ''; position: absolute; inset: 12px;
  border: 1px solid rgba(201,168,76,0.05);
  border-radius: 6px; pointer-events: none;
}

/* ═══ CARD BACK TYPOGRAPHY ═══ */
.back-header {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.35rem; color: var(--gold);
  letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(201,168,76,0.18);
  flex-shrink: 0;
  text-shadow: 0 0 20px rgba(201,168,76,0.15);
}
.back-content {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; line-height: 1.65;
  color: rgba(237,231,218,0.88);
  flex: 1; overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.back-content::-webkit-scrollbar { display: none; }
.back-content p { margin-bottom: 0.7rem; }
.back-content a {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.5);
  transition: border-color 0.3s, color 0.3s;
}
.back-content a:hover { border-color: var(--gold-light); color: #fff; }

.detail-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.3rem 0;
  border-bottom: 1px dotted rgba(201,168,76,0.1);
  font-size: 1.05rem;
}
.detail-label {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; flex-shrink: 0;
  margin-right: 0.6rem;
  opacity: 0.8;
}
.detail-value {
  text-align: right; color: rgba(237,231,218,0.78);
}

/* Today's row — highlighted on The Oracle hours list */
.detail-line.is-today {
  border-bottom-color: rgba(61,220,132,0.35);
  background: linear-gradient(90deg, rgba(61,220,132,0.06) 0%, rgba(61,220,132,0.12) 50%, rgba(61,220,132,0.06) 100%);
  box-shadow: inset 0 0 12px rgba(61,220,132,0.08);
  border-radius: 3px;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  animation: today-glow 3s ease-in-out infinite;
}
.detail-line.is-today .detail-label {
  color: #7fe8a3;
  opacity: 1;
  text-shadow: 0 0 8px rgba(61,220,132,0.4);
}
.detail-line.is-today .detail-value {
  color: #a8f0c1;
  text-shadow: 0 0 6px rgba(61,220,132,0.25);
}
@keyframes today-glow {
  0%, 100% { box-shadow: inset 0 0 12px rgba(61,220,132,0.08); }
  50%      { box-shadow: inset 0 0 16px rgba(61,220,132,0.14); }
}

.section-divider {
  text-align: center; color: var(--gold-dark);
  opacity: 0.4; margin: 0.5rem 0;
  font-size: 0.7rem; letter-spacing: 0.2em;
}

.back-cta {
  display: block; text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  text-decoration: none; padding: 0.7rem;
  margin-top: 0.6rem; flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 5px; transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(201,168,76,0.1);
}
.back-cta:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.1);
}

.flip-hint {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 0.78rem;
  color: rgba(201,168,76,0.35);
  margin-top: 0.6rem; flex-shrink: 0;
}

/* ═══ GALLERY GRID (legacy, kept for card-back fallback) ═══ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0.5rem 0;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(201,168,76,0.15);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-grid img:hover { opacity: 0.85; transform: scale(1.02); }

/* ═══ GALLERY CAROUSEL ═══ */
.gallery-overlay {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow: hidden;
  touch-action: pan-x;
  overscroll-behavior: none;
}
.gallery-overlay.active {
  pointer-events: all;
  opacity: 1;
}

.gallery-scroll {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0 calc(50vw - 90px);
  overflow-x: auto;
  overflow-y: hidden; /* fallback for older iOS */
  overflow-y: clip;  /* clip is stricter than hidden — no scroll at all */
  width: 100%;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  /* scroll-snap removed: caused visual jerk when tapping off-center cards */

  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-x;
  overscroll-behavior: contain;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll::-webkit-scrollbar:vertical { display: none; height: 0; }
.gallery-scroll:active { cursor: grabbing; }

.gallery-card {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 2 / 3;
  max-height: 70vh;
  max-height: 70dvh;
  border-radius: 12px;
  overflow: hidden;
  border: 2.5px solid rgba(180,150,70,0.5);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.5),
    0 25px 60px rgba(0,0,0,0.3),
    0 0 50px rgba(201,168,76,0.06);
  /* --enter-x / --enter-y set per card by JS: center drops from top, sides slide in */
  transform: translate(var(--enter-x, 0px), var(--enter-y, -80px)) scale(0.8);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              box-shadow 0.4s ease;
  position: relative;
  background: var(--card-bg);
  will-change: transform, opacity;
}
.gallery-card.revealed {
  transform: translate(0, 0) scale(1);
  opacity: 1;
}
/* Slide-out for close: cards depart to their entry directions */
.gallery-card.slide-out {
  transform: translate(var(--enter-x, 0px), var(--enter-y, -80px)) scale(0.8) !important;
  opacity: 0 !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.7, 0.2),
              opacity 0.3s ease !important;
}
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Photo caption overlay */
.gallery-card .photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 0.8rem 0.7rem;
  background: linear-gradient(to top, rgba(8,7,12,0.9) 0%, rgba(8,7,12,0.5) 50%, transparent 100%);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(237,231,218,0.8);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* On touch devices, always show captions; on desktop, show on hover */
@media (hover: none) {
  .gallery-card .photo-caption {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (hover: hover) {
  .gallery-card:hover .photo-caption {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gallery title floating above */
.gallery-title {
  position: fixed;
  top: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(201,168,76,0.2);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
  pointer-events: none;
}
.gallery-overlay.active .gallery-title {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Gallery CTA at bottom */
.gallery-bottom-cta {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 5px;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s,
              background 0.3s ease, border-color 0.3s ease;
  pointer-events: none;
}
.gallery-overlay.active .gallery-bottom-cta {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.gallery-bottom-cta:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
}

/* Gallery arrow buttons */
.gallery-arrow {
  position: fixed;
  top: 50%; z-index: 1002;
  transform: translateY(-50%) scale(1);
  width: 48px; height: 48px;
  border: 1.5px solid rgba(201,168,76,0.35);
  border-radius: 50%;
  background: rgba(14,13,17,0.7);
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease,
              transform 0.3s ease, opacity 0.4s ease;
  opacity: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.gallery-overlay.active .gallery-arrow { opacity: 1; }
.gallery-arrow:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.1);
}
.gallery-arrow:active { transform: translateY(-50%) scale(0.95); }
.gallery-arrow.left { left: 0.8rem; }
.gallery-arrow.right { right: 0.8rem; }
.gallery-arrow.hidden { opacity: 0 !important; pointer-events: none; }

/* Photo zoom overlay */
.photo-zoom-backdrop {
  position: fixed; inset: 0;
  z-index: 1100;
  background: rgba(8,7,12,0);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: background 0.4s ease;
  pointer-events: none;
}
.photo-zoom-backdrop.active {
  background: rgba(8,7,12,0.92);
  pointer-events: all;
  cursor: zoom-out;
}
.photo-zoom-img {
  max-width: 90vw;
  max-height: 80vh;
  max-height: 80dvh;
  border-radius: 6px;
  border: 2px solid rgba(201,168,76,0.3);
  box-shadow:
    0 15px 60px rgba(0,0,0,0.7),
    0 0 80px rgba(201,168,76,0.06);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
  object-fit: contain;
}
.photo-zoom-backdrop.active .photo-zoom-img {
  transform: scale(1);
  opacity: 1;
}
.photo-zoom-caption {
  margin-top: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(237,231,218,0.75);
  opacity: 0;
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  pointer-events: none;
  transform: translateY(10px);
}
.photo-zoom-backdrop.active .photo-zoom-caption {
  opacity: 1;
  transform: translateY(0);
}

.photo-zoom-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.5);
  background: rgba(26,22,18,0.7);
  color: rgba(201,168,76,0.85);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0;
}
.photo-zoom-arrow.left { left: 1rem; }
.photo-zoom-arrow.right { right: 1rem; }
.photo-zoom-arrow:hover {
  border-color: rgba(201,168,76,0.9);
  background: rgba(26,22,18,0.9);
}
@media (max-width: 480px) {
  .photo-zoom-arrow { width: 38px; height: 38px; font-size: 1.5rem; }
  .photo-zoom-arrow.left { left: 0.5rem; }
  .photo-zoom-arrow.right { right: 0.5rem; }
}

.gallery-card { cursor: pointer; -webkit-touch-callout: none; touch-action: manipulation; }

/* ═══ MENU OVERLAY ═══ */
.menu-overlay {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow: hidden;
}
.menu-overlay.active {
  pointer-events: all;
  opacity: 1;
}

.menu-title {
  position: relative;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(201,168,76,0.2);
  z-index: 1001;
  opacity: 0;
  padding-top: 1.5rem;
  margin-bottom: 0.4rem;
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
  transform: translateY(-15px);
  flex-shrink: 0;
}
.menu-overlay.active .menu-title {
  opacity: 1;
  transform: translateY(0);
}

.menu-col-header {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(201,168,76,0.2);
  text-align: center;
  padding-bottom: 0.8rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.menu-columns {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 1100px;
  gap: 0;
  overflow: hidden;
  padding: 0.6rem 0 0;
}

.menu-col {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem 1.2rem 3rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.menu-col::-webkit-scrollbar { display: none; }

.menu-overlay.active .menu-col.col-food {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.15s;
}
.menu-overlay.active .menu-col.col-drinks {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.25s;
}

/* Divider between columns */
.menu-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(201,168,76,0.2) 15%, rgba(201,168,76,0.2) 85%, transparent 100%);
  flex-shrink: 0;
  margin: 1rem 0 3rem;
}

/* Section headers */
.menu-section {
  margin-bottom: 1.2rem;
}
.menu-section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.0rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  text-shadow: 0 0 15px rgba(201,168,76,0.1);
}

/* ─── Zodiac cocktail featured section ─── */
.menu-zodiac-feature {
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(107,29,42,0.06) 100%);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
}
.menu-zodiac-header {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(201,168,76,0.15);
}
.zodiac-symbol {
  font-size: 1.1rem;
  margin-right: 0.2rem;
}
.menu-zodiac-feature .menu-item { margin-bottom: 0.15rem; }
.menu-zodiac-feature .menu-item-desc {
  text-align: center;
  font-style: italic;
  opacity: 0.75;
}

/* Individual items */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.25rem 0;
  gap: 0.6rem;
}
.menu-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: rgba(237,231,218,0.9);
  flex: 1;
}
.menu-item-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  white-space: nowrap;
  opacity: 0.8;
}
.menu-item-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.98rem;
  color: rgba(237,231,218,0.5);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

/* Happy hour badge */
.menu-section-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Allergen notice */
.menu-allergen-notice {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(237,231,218,0.4);
  padding: 0.5rem 1.2rem 0;
  flex-shrink: 0;
  z-index: 1001;
  letter-spacing: 0.02em;
}

/* Close hint */
.menu-close-hint {
  position: fixed;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%) translateY(15px);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(201,168,76,0.35);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
  pointer-events: none;
}
.menu-overlay.active .menu-close-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Menu close button (always visible) ── */
.menu-close-btn {
  position: fixed;
  top: 0.8rem; right: 0.8rem;
  z-index: 1002;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.4);
  background: rgba(26,22,18,0.7);
  color: rgba(201,168,76,0.8);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color 0.2s, background 0.2s;
  padding: 0;
}
.menu-close-btn:hover {
  border-color: rgba(201,168,76,0.8);
  background: rgba(26,22,18,0.9);
}

/* ── Menu tabs (mobile only) ── */
.menu-tabs {
  display: none; /* hidden on desktop */
  flex-shrink: 0;
  z-index: 1001;
}

/* Mobile: single column with tab toggle */
@media (max-width: 600px) {
  .menu-tabs {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 320px;
    margin: 0.3rem auto 0;
  }
  .menu-tab {
    flex: 1;
    padding: 0.55rem 0;
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(201,168,76,0.45);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s;
  }
  .menu-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
  }
  .menu-columns {
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
  
  }
  .menu-divider { display: none; }
  .menu-col {
    padding: 0.6rem 1rem 1.5rem;
    overflow: visible;
  }
  /* Tab-toggled visibility */
  .menu-col.col-drinks.menu-hidden,
  .menu-col.col-food.menu-hidden {
    display: none;
  }
  .menu-title { font-size: 1.1rem; }
  .menu-col-header { display: none; } /* redundant with tabs */
  .menu-close-hint { display: none; } /* replaced by X button */
}

@media (min-width: 768px) {
  .gallery-card { width: 280px; }
  .gallery-scroll { gap: 1.8rem; padding: 0 calc(50vw - 140px); }
  .gallery-arrow { width: 52px; height: 52px; font-size: 1.5rem; }
  .gallery-arrow.left { left: 1.2rem; }
  .gallery-arrow.right { right: 1.2rem; }
}
@media (min-width: 1200px) {
  .gallery-card { width: 320px; }
  .gallery-scroll { gap: 2rem; padding: 0 calc(50vw - 160px); }
}

/* ═══ EVENTS — THE SUMMONING ═══ */

/* Pulsing red label for Events card */
.card-label-event {
  color: #e74c3c;
  border-color: rgba(231,76,60,0.45);
  animation: event-label-glow 1.8s ease-in-out infinite;
}
@keyframes event-label-glow {
  0%, 100% {
    color: rgba(231,76,60,0.75);
    text-shadow: 0 0 8px rgba(231,76,60,0.3), 0 0 20px rgba(231,76,60,0.15);
    border-color: rgba(231,76,60,0.35);
  }
  50% {
    color: #e74c3c;
    text-shadow: 0 0 12px rgba(231,76,60,0.7), 0 0 30px rgba(231,76,60,0.4);
    border-color: rgba(231,76,60,0.6);
  }
}

/* Flying card for spin animation */
.events-flying-card {
  position: fixed;
  z-index: 999;
  perspective: 800px;
  pointer-events: none;
}
.events-card-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.events-flying-card.spinning .events-card-inner {
  transform: rotateY(180deg);
}
.events-card-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 6px;
  overflow: hidden;
}
.events-card-face img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.events-card-back {
  transform: rotateY(180deg);
}
.events-card-front .gold-foil,
.events-card-front .copper-foil {
  position: absolute; inset: 0;
  z-index: 2;
  mix-blend-mode: color-dodge;
  opacity: 0.35;
  pointer-events: none;
  border-radius: 6px;
}

/* Events overlay */
.events-overlay {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow-y: auto;

  padding: 2rem 1rem;
}
.events-overlay.active {
  pointer-events: all;
  opacity: 1;
}

.events-header {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(201,168,76,0.3);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.events-overlay.active .events-header {
  opacity: 1;
  transform: translateY(0);
}

.events-list {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.event-item {
  background: linear-gradient(165deg, rgba(22,19,32,0.95) 0%, rgba(14,13,17,0.95) 100%);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}
.events-overlay.active .event-item {
  opacity: 1;
  transform: translateY(0);
}

.event-image-wrap {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
}
.event-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-details {
  padding: 1.2rem 1.4rem 1.4rem;
}

.event-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(201,168,76,0.3);
  margin-bottom: 0.3rem;
}

.event-date {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: rgba(201,168,76,0.7);
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.event-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(237,231,218,0.85);
  margin-bottom: 1rem;
}

.event-cta {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid rgba(201,168,76,0.5);
  border-radius: 6px;
  background: rgba(201,168,76,0.08);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.event-cta:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.8);
  box-shadow: 0 0 20px rgba(201,168,76,0.15);
}

.events-close-btn {
  position: absolute;
  top: -22px; right: -22px;
  z-index: 1002;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.4);
  background: rgba(26,22,18,0.9);
  color: rgba(201,168,76,0.8);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color 0.2s, background 0.2s;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.events-close-btn:hover {
  border-color: rgba(201,168,76,0.8);
  background: rgba(26,22,18,1);
}

.events-close-hint {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(237,231,218,0.35);
  margin-top: 1.2rem;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}
.events-overlay.active .events-close-hint {
  opacity: 1;
}

/* ═══ GIFT CARDS OVERLAY ═══ */
.gift-overlay {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}
.gift-overlay.active {
  pointer-events: all;
  opacity: 1;
}

.gift-card-panel {
  background: linear-gradient(165deg, rgba(22,19,32,0.97) 0%, rgba(14,13,17,0.97) 100%);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 2rem 1.8rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.gift-overlay.active .gift-card-panel {
  opacity: 1;
  transform: translateY(0);
}

.gift-header {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(201,168,76,0.3);
  margin-bottom: 1.2rem;
}

.gift-content {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(237,231,218,0.85);
}
.gift-content p { margin-bottom: 0.8rem; }

.gift-divider {
  color: rgba(201,168,76,0.4);
  font-size: 0.9rem;
  margin: 0.8rem 0;
}

.gift-cta {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid rgba(201,168,76,0.4);
  border-radius: 6px;
  background: rgba(201,168,76,0.06);
  transition: background 0.3s, border-color 0.3s;
  margin: 0.3rem 0;
}
.gift-cta:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.8);
}

.gift-coming-soon {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(201,168,76,0.5);
  font-style: italic;
}

.gift-close-btn {
  position: fixed;
  top: 0.8rem; right: 0.8rem;
  z-index: 1002;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.4);
  background: rgba(26,22,18,0.7);
  color: rgba(201,168,76,0.8);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color 0.2s, background 0.2s;
  padding: 0;
}
.gift-close-btn:hover {
  border-color: rgba(201,168,76,0.8);
  background: rgba(26,22,18,0.9);
}

/* ═══ QUOTES MARQUEE ═══ */
.quotes-strip {
  width: 100%; overflow: hidden;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.quotes-track {
  display: flex; gap: 3rem;
  animation: marquee 45s linear infinite;
  white-space: nowrap; width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.quotes-strip:hover .quotes-track {
  animation-play-state: paused;
}
.quotes-track span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.08rem;
  color: rgba(244,240,230,0.75);
}
.quotes-track span em {
  font-style: normal; color: var(--gold);
  font-family: 'Cinzel', serif; font-size: 0.82em;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-left: 0.5rem;
  opacity: 0.7;
}
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ═══ SPIRIT CIRCLE (NEWSLETTER) ═══ */
.spirit-circle {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.spirit-circle-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.08rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(201,168,76,0.15);
  margin-bottom: 0.6rem;
}
.spirit-circle-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.98rem;
  color: rgba(244,240,230,0.65);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.spirit-circle form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}
.spirit-circle form > input[type="email"],
.spirit-circle form > select {
  flex-shrink: 1;
}
.spirit-circle input[type="email"] {
  flex: 1 1 45%;
  min-width: 0;
}
.spirit-circle select {
  flex: 1 1 45%;
  min-width: 0;
}
.spirit-circle input[type="email"],
.spirit-circle select {
  padding: 0.6rem 0.8rem;
  background: rgba(24,21,34,0.8);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 5px;
  color: #f4f0e6;
  font-family: 'Cormorant Garamond', serif;
  font-size: max(16px, 0.95rem); /* prevent iOS auto-zoom on focus */
  transition: border-color 0.3s ease;
  outline: none;
  /* iOS: suppress rounded corners and inner shadow on inputs */
  -webkit-appearance: none;
}
.spirit-circle input[type="email"]:focus,
.spirit-circle select:focus {
  border-color: var(--gold);
}
.spirit-circle input[type="email"]::placeholder {
  color: rgba(237,231,218,0.35);
  font-style: italic;
}
.spirit-circle select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}
.spirit-circle select option {
  background: #181522;
  color: #f4f0e6;
}
.spirit-circle button[type="submit"] {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 5px;
  padding: 0.6rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(201,168,76,0.1);
}
.spirit-circle button[type="submit"]:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.1);
}
.spirit-circle .form-response {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-top: 0.5rem;
  min-height: 1.2em;
}
.spirit-circle-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.8rem 0;
  color: var(--gold-dark);
  opacity: 0.4;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
}
.spirit-circle-divider::before,
.spirit-circle-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.3), transparent);
}

/* ═══ FOOTER ═══ */
footer { text-align: center; padding: 1.2rem 0 0.8rem; }
.footer-ctas {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 auto 1rem;
  max-width: 480px;
  padding: 0 1rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.footer-cta {
  display: inline-block;
  flex: 1 1 45%;
  min-width: 0;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.88rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 0.55rem 1.3rem;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 5px;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(201,168,76,0.1);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.footer-cta:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.1);
  color: var(--gold-light);
}
/* Shimmer sweep — triggered by JS adding .cta-shimmer class */
.footer-cta {
  position: relative;
  overflow: hidden;
}
.footer-cta::after {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background: linear-gradient(
    105deg,
    transparent 0%, transparent 35%,
    rgba(232,212,139,0.12) 42%,
    rgba(232,212,139,0.25) 50%,
    rgba(232,212,139,0.12) 58%,
    transparent 65%, transparent 100%
  );
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 1;
}
.footer-cta.cta-shimmer::after {
  transform: translateX(120%);
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
@keyframes cta-glow-pulse {
  0% { box-shadow: 0 0 0 rgba(201,168,76,0); border-color: rgba(201,168,76,0.35); }
  50% { box-shadow: 0 0 18px rgba(201,168,76,0.2), 0 0 40px rgba(201,168,76,0.08); border-color: var(--gold); }
  100% { box-shadow: 0 0 0 rgba(201,168,76,0); border-color: rgba(201,168,76,0.35); }
}
.footer-cta.cta-shimmer {
  animation: cta-glow-pulse 1.2s ease-out;
}
.social-links {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-bottom: 0.8rem;
}
.social-links a {
  color: rgba(220,193,94,0.65);
  font-family: 'Cinzel', serif;
  font-size: 0.95rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  transition: color 0.3s;
}
.social-links a:hover { color: var(--gold-light); }
/* Site copyright — very bottom of page */
.site-copyright {
  text-align: center;
  padding: 1.5rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: rgba(244,240,230,0.6);
  letter-spacing: 0.04em;
  line-height: 1.8;
}
.site-copyright a {
  color: rgba(201,168,76,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  transition: color 0.3s, border-color 0.3s;
}
.site-copyright a:hover { color: var(--gold-light); border-color: var(--gold); }
.site-copyright span {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.2rem;
  opacity: 0.7;
}

/* ═══ OPEN NOW INDICATOR (inside Oracle card) ═══ */
.open-indicator {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
  white-space: pre-line;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease 1.8s;
}
.tarot-card.ready .open-indicator { opacity: 1; }
.open-indicator.is-open {
  color: #1a1a1a;
  text-shadow: 0 0 6px rgba(61,220,132,0.4);
}
.open-indicator.is-open::before {
  content: '●';
  display: block;
  font-size: 0.5rem;
  color: #3ddc84;
  margin-bottom: 0.15rem;
  animation: pulse-dot 2s ease-in-out infinite;
}
.open-indicator.is-closed {
  color: #2a1f0a;
  text-shadow: 0 1px 3px rgba(201,168,76,0.5), 0 0 8px rgba(0,0,0,0.6);
  font-weight: 700;
}

/* ═══ VISIT US — crystal ball overlay (Oracle card) ═══ */
.visit-us-overlay {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 14;
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: #1a1a1a;
  text-shadow: 0 0 8px rgba(201,168,76,0.4);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: none;
}
.visit-us-overlay.is-visible {
  animation: crystalBallPulse 5s ease-in-out 2.5s infinite;
}
@keyframes crystalBallPulse {
  0%, 100% { opacity: 0; }
  30%, 70% { opacity: 0.85; }
}

/* ═══ SOCIAL LINK ICONS ═══ */
.social-links a svg {
  vertical-align: -0.15em;
  margin-right: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.social-links a:hover svg { opacity: 1; }

/* ═══ ENTRANCE ═══ */
header { opacity: 0; animation: reveal 1s ease forwards 0.1s; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ MOBILE ═══ */
@media (max-width: 480px) {
  html { font-size: 17px; }
  .page-wrapper { padding: 1rem 0.75rem 1rem; }
  header { margin-bottom: 0.5rem; }
  .tagline { font-size: 1rem; margin-top: 0.8rem; }

  /* Card spread: 3+3 or 3+2 — fill viewport width, tight vertical */
  .spread {
    max-width: calc(100vw - 1rem);
    gap: 0.6rem;
    row-gap: 2.4rem;
    padding-top: 1.6rem;
    margin-bottom: 0.8rem;
  }
  /* Lighten gold on mobile screens (tends to appear darker) */
  .tarot-card.revealed {
    box-shadow:
      inset 0 0 0 2px rgba(212,180,88,0.6),
      0 2px 4px rgba(0,0,0,0.3),
      0 8px 20px rgba(0,0,0,0.4),
      0 20px 40px rgba(0,0,0,0.2);
  }
  .spread .tarot-card {
    width: calc(33.33% - 0.5rem);
    min-width: 0;
  }
  /* Label smaller on mobile */
  .tarot-card .card-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }
  .open-indicator { font-size: 0.5rem; top: 4%; }
  .visit-us-overlay { font-size: 0.45rem; }

  /* Flying card back — larger text for legibility */
  .flying-card .card-back { padding: 1.4rem 1.1rem; }
  .back-header { font-size: 1.2rem; letter-spacing: 0.08em; }
  .back-content { font-size: 1.05rem; line-height: 1.6; }
  .back-content p { margin-bottom: 0.55rem; }
  .detail-label { font-size: 0.75rem; }
  .detail-value { font-size: 0.95rem; }
  .back-cta { font-size: 0.85rem; padding: 0.65rem; }
  .flip-hint { font-size: 0.75rem; }

  /* Gallery */
  .gallery-card { width: 205px; }
  .gallery-scroll { padding: 0 calc(50vw - 103px); gap: 0.8rem; }
  .gallery-arrow { width: 40px; height: 40px; font-size: 1.1rem; }
  .gallery-arrow.left { left: 0.5rem; }
  .gallery-arrow.right { right: 0.5rem; }
  .gallery-title { font-size: 1.1rem; }

  /* Quotes ticker */
  .quotes-track span { font-size: 0.85rem; }
  .quotes-track span em { font-size: 0.72em; }
  .quotes-strip { padding: 0.4rem 0; }

  /* Footer */
  footer { padding: 0.6rem 0 0.4rem; }
  .footer-ctas { gap: 0.8rem; }
  .footer-cta { font-size: 0.72rem; padding: 0.5rem 1rem; }
  .social-links { gap: 1rem; margin-bottom: 0.4rem; }
  .social-links a { font-size: 0.78rem; }

  /* Newsletter */
  .spirit-circle { padding: 0.6rem 0.5rem 0.3rem; }
  .spirit-circle-title { font-size: 0.9rem; }
  .spirit-circle input[type="email"] { flex: 1 1 40%; min-width: 0; }
  .spirit-circle select { flex: 1 1 30%; min-width: 0; }

  .site-copyright { font-size: 0.82rem; padding: 0.6rem 0.75rem 1rem; }
  .site-copyright span { font-size: 0.72rem; }

  /* Menu overlay — slightly larger for readability */
  .menu-col-header { font-size: 1.1rem; }
  .menu-section-title { font-size: 1.0rem; }
  .menu-item-name { font-size: 1.15rem; }
  .menu-item-price { font-size: 1.08rem; }
  .menu-item-desc { font-size: 0.98rem; }
  .menu-allergen-notice { font-size: 0.82rem; padding: 0.4rem 0.8rem 0; }
  .menu-tab { font-size: 0.95rem; }
}

/* ═══ SMALL PHONES (iPhone SE, 375px and below) ═══ */
@media (max-width: 375px) {
  html { font-size: 16px; }
  .page-wrapper { padding: 0.75rem 0.5rem 0.75rem; }
  header { margin-bottom: 0.3rem; }
  .spread { max-width: calc(100vw - 0.5rem); gap: 0.4rem; row-gap: 1.8rem; padding-top: 1.2rem; margin-bottom: 0.5rem; }
  .spread .tarot-card { min-width: 0; width: calc(33.33% - 0.35rem); }
  .tarot-card .card-label { font-size: 0.58rem; }
  .spread { row-gap: 2rem; }
  .flying-card .card-back { padding: 1rem 0.8rem; }
  .back-header { font-size: 1rem; }
  .gallery-card { width: 180px; }
  .footer-ctas { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .footer-ctas .footer-cta { flex: 0 0 auto; width: 100%; }
}

/* ═══ TABLET (fills gap between mobile and desktop) ═══ */
@media (min-width: 481px) and (max-width: 767px) {
  .page-wrapper { padding: 2rem 1.5rem; }
  .spread {
    max-width: 600px;
    gap: 1rem;
    flex-wrap: nowrap;
    margin-bottom: 2rem;
  }
  .spread .tarot-card {
    width: 16%;
    min-width: unset;
    flex: 1 1 0;
  }
  .gallery-card { width: 220px; }
  /* Events mobile */
  .event-image-wrap { max-height: 220px; }
}

/* ═══ DESKTOP ═══ */
@media (min-width: 768px) {
  .page-wrapper { padding: 3rem 2rem; }
  header { margin-bottom: 2.5rem; }
  .logo-svg { width: clamp(320px, 32vw, 520px); }
  .tagline { font-size: 1.2rem; }

  .spread {
    max-width: 960px;
    gap: 1.5rem;
    flex-wrap: nowrap;
    margin-bottom: 2.5rem;
  }
  .spread .tarot-card {
    width: 16%;
    min-width: unset;
    flex: 1 1 0;
  }
}

@media (min-width: 1200px) {
  html { font-size: 19px; }
  .spread { max-width: 1100px; gap: 1.8rem; }
}

@media (min-width: 1600px) {
  .spread { max-width: 1250px; gap: 2rem; }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .quotes-track { animation: none !important; }
  .particle { display: none; }
}

/* ═══ KEYBOARD FOCUS ═══ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ═══ FOCUS TRAPPING ═══ */
[inert] {
  pointer-events: none;
  user-select: none;
}
