/* ============================================================
   VergeTickets.com — Kashpacks 420 Field Day
   Dark festival stage · bokeh glow · confetti accents
   ============================================================ */

:root {
  /* Night-stage backgrounds */
  --ink-950: #0d0722;
  --ink-900: #140b2e;
  --ink-800: #1c1044;
  --ink-700: #2d1b69;

  /* Logo-pulled accents */
  --blue: #2e7cf6;
  --blue-soft: #6aa5ff;
  --orange: #ff7a29;
  --pink: #e9408a;
  --purple: #7c3aed;
  --gold: #ffc94d;
  --green: #3ddc84;

  --text: #f4f1ff;
  --text-dim: #b9b0d9;
  --text-faint: #8d83b5;

  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);

  --grad-cta: linear-gradient(100deg, var(--orange) 0%, var(--pink) 55%, var(--purple) 115%);
  --grad-cool: linear-gradient(100deg, var(--blue) 0%, var(--purple) 100%);
  --grad-text: linear-gradient(95deg, #6aa5ff 0%, #ff9a4d 45%, #ff5fa8 75%, #b07cff 100%);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --shadow-glow-warm: 0 10px 40px -8px rgba(233, 64, 138, 0.45), 0 4px 18px -6px rgba(255, 122, 41, 0.4);
  --shadow-glow-cool: 0 10px 44px -10px rgba(46, 124, 246, 0.5);
  --header-h: 72px;
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Clip (not hidden: hidden would break position:sticky) — the tilted
     poster card and its glow ring overflow the right edge, which widens
     the mobile layout viewport and cuts off position:fixed elements. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--ink-950);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: 0.2px;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue-soft);
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid rgba(106, 165, 255, 0.9);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(233, 64, 138, 0.55);
  color: #fff;
}

section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Night-sky backdrop: gradient + bokeh ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(124, 58, 237, 0.38), transparent 62%),
    radial-gradient(900px 640px at -12% 22%, rgba(46, 124, 246, 0.28), transparent 60%),
    radial-gradient(1000px 800px at 55% 118%, rgba(233, 64, 138, 0.2), transparent 58%),
    linear-gradient(178deg, var(--ink-900) 0%, var(--ink-950) 42%, #120a2c 78%, var(--ink-900) 100%);
}

/* soft bokeh dots */
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 130px at 12% 16%, rgba(46, 124, 246, 0.16), transparent 70%),
    radial-gradient(circle 90px at 84% 12%, rgba(255, 122, 41, 0.15), transparent 70%),
    radial-gradient(circle 70px at 70% 34%, rgba(233, 64, 138, 0.13), transparent 70%),
    radial-gradient(circle 110px at 20% 68%, rgba(124, 58, 237, 0.16), transparent 70%),
    radial-gradient(circle 60px at 92% 58%, rgba(46, 124, 246, 0.14), transparent 70%),
    radial-gradient(circle 95px at 45% 88%, rgba(255, 201, 77, 0.08), transparent 70%),
    radial-gradient(circle 55px at 6% 42%, rgba(255, 122, 41, 0.1), transparent 70%);
}

/* tiny starfield sparkle */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1.5px at 22% 24%, rgba(255, 255, 255, 0.5) 99%, transparent),
    radial-gradient(circle 1px at 68% 18%, rgba(255, 255, 255, 0.4) 99%, transparent),
    radial-gradient(circle 1.5px at 84% 42%, rgba(255, 255, 255, 0.35) 99%, transparent),
    radial-gradient(circle 1px at 38% 56%, rgba(255, 255, 255, 0.4) 99%, transparent),
    radial-gradient(circle 1.5px at 12% 78%, rgba(255, 255, 255, 0.3) 99%, transparent),
    radial-gradient(circle 1px at 56% 84%, rgba(255, 255, 255, 0.35) 99%, transparent),
    radial-gradient(circle 1px at 92% 74%, rgba(255, 255, 255, 0.4) 99%, transparent);
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--grad-cta);
  box-shadow: var(--shadow-glow-warm);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 16px 52px -8px rgba(233, 64, 138, 0.6), 0 6px 24px -6px rgba(255, 122, 41, 0.55);
  filter: saturate(1.12);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  filter: grayscale(0.2);
}

/* spinner inside buttons */
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  flex: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13, 7, 34, 0.66);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(46, 124, 246, 0.35), rgba(124, 58, 237, 0.35) 55%, rgba(233, 64, 138, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 14px rgba(46, 124, 246, 0.35);
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-word .w1 {
  background: linear-gradient(95deg, #4b96ff, #2e7cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-word .w2 {
  background: linear-gradient(95deg, #ff9a3d, #e9408a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-word .w3 {
  color: var(--purple);
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  overflow: visible;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 201, 77, 0.08);
  border: 1px solid rgba(255, 201, 77, 0.28);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 .line-brand {
  display: block;
  color: var(--text);
  text-shadow: 0 4px 30px rgba(46, 124, 246, 0.35);
}

.hero h1 .line-event {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 22px rgba(233, 64, 138, 0.35));
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 26px;
}

.hero-tagline .leaf {
  color: var(--green);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 9px 16px;
  backdrop-filter: blur(6px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* --- Poster card --- */
.hero-poster {
  position: relative;
  justify-self: center;
  max-width: 420px;
  width: 100%;
}

.poster-card {
  position: relative;
  transform: rotate(2.75deg);
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(140deg, rgba(46, 124, 246, 0.8), rgba(124, 58, 237, 0.8) 40%, rgba(233, 64, 138, 0.85) 75%, rgba(255, 122, 41, 0.9));
  box-shadow:
    0 30px 80px -18px rgba(124, 58, 237, 0.55),
    0 12px 40px -12px rgba(233, 64, 138, 0.5);
  transition: transform 0.35s ease;
}

.poster-card:hover {
  transform: rotate(0.5deg) translateY(-4px);
}

.poster-card img {
  border-radius: calc(var(--radius-lg) - 8px);
  width: 100%;
}

/* glow ring behind poster */
.hero-poster::before {
  content: "";
  position: absolute;
  inset: -12% -14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(233, 64, 138, 0.28), rgba(124, 58, 237, 0.16) 55%, transparent 75%);
  filter: blur(6px);
}

/* --- Hero confetti sprinkles (CSS only, tasteful) --- */
.confetti-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-field i {
  position: absolute;
  display: block;
  border-radius: 2px;
  opacity: 0.75;
  animation: confetti-drift 7s ease-in-out infinite;
}

.confetti-field i:nth-child(1) { width: 10px; height: 14px; background: var(--pink);   top: 14%; left: 6%;  transform: rotate(18deg);  animation-delay: 0s; }
.confetti-field i:nth-child(2) { width: 8px;  height: 8px;  background: var(--gold);   top: 8%;  left: 44%; border-radius: 50%;        animation-delay: 1.2s; }
.confetti-field i:nth-child(3) { width: 12px; height: 9px;  background: var(--blue);   top: 22%; left: 88%; transform: rotate(-24deg); animation-delay: 0.6s; }
.confetti-field i:nth-child(4) { width: 7px;  height: 12px; background: var(--orange); top: 62%; left: 3%;  transform: rotate(40deg);  animation-delay: 2s; }
.confetti-field i:nth-child(5) { width: 9px;  height: 9px;  background: var(--purple); top: 76%; left: 52%; border-radius: 50%;        animation-delay: 2.8s; }
.confetti-field i:nth-child(6) { width: 11px; height: 8px;  background: var(--green);  top: 48%; left: 95%; transform: rotate(12deg);  animation-delay: 1.8s; }
.confetti-field i:nth-child(7) { width: 6px;  height: 11px; background: var(--gold);   top: 86%; left: 24%; transform: rotate(-30deg); animation-delay: 3.4s; }

@keyframes confetti-drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50%      { translate: 6px -18px; rotate: 28deg; }
}

/* ---------- Section headings ---------- */
.section {
  padding: clamp(48px, 7vw, 88px) 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(32px, 4.5vw, 52px);
}

.section-head .kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

/* ---------- Video section ---------- */
.video-frame {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(135deg, rgba(46, 124, 246, 0.75), rgba(124, 58, 237, 0.7) 45%, rgba(233, 64, 138, 0.75));
  box-shadow:
    0 26px 90px -18px rgba(46, 124, 246, 0.5),
    0 10px 44px -14px rgba(124, 58, 237, 0.55);
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(46, 124, 246, 0.22), transparent 72%);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: calc(var(--radius-lg) - 8px);
  background: #000;
}

/* ---------- Schedule ---------- */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--purple) 35%, var(--pink) 70%, var(--orange));
  opacity: 0.65;
}

.timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0 10px 66px;
  margin-bottom: 14px;
}

.timeline .dot {
  position: absolute;
  left: 18px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 3px solid var(--pink);
  box-shadow: 0 0 16px rgba(233, 64, 138, 0.7);
  flex: none;
}

.timeline li:nth-child(1) .dot { border-color: var(--blue);   box-shadow: 0 0 16px rgba(46, 124, 246, 0.7); }
.timeline li:nth-child(2) .dot { border-color: var(--purple); box-shadow: 0 0 16px rgba(124, 58, 237, 0.7); }
.timeline li:nth-child(3) .dot { border-color: var(--pink);   box-shadow: 0 0 16px rgba(233, 64, 138, 0.7); }
.timeline li:nth-child(4) .dot { border-color: var(--orange); box-shadow: 0 0 16px rgba(255, 122, 41, 0.7); }
.timeline li:nth-child(5) .dot { border-color: var(--gold);   box-shadow: 0 0 16px rgba(255, 201, 77, 0.7); }

.timeline .slot-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.timeline .slot-card:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.timeline .emoji {
  font-size: 1.7rem;
  flex: none;
}

.timeline .time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.6px;
  color: var(--gold);
  white-space: nowrap;
  min-width: 88px;
}

.timeline .title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
}

.extras {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.extras .chip {
  font-size: 1rem;
  padding: 11px 20px;
  background: linear-gradient(120deg, rgba(46, 124, 246, 0.14), rgba(233, 64, 138, 0.14));
  border-color: rgba(255, 255, 255, 0.14);
}

/* ---------- Buy section: ticket-stub card ---------- */
.buy-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 178, 43, 0.12);
  border: 1px solid rgba(255, 178, 43, 0.45);
  color: #ffd58a;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-weight: 500;
}

.banner[hidden] { display: none; }

.banner .dismiss {
  margin-left: auto;
  background: none;
  border: 0;
  color: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.banner .dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ticket-card {
  display: grid;
  grid-template-columns: 264px 1fr;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03) 60%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 90px -22px rgba(124, 58, 237, 0.55),
    0 10px 36px -14px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  overflow: hidden;
  position: relative;
}

/* perforation notches (cut-outs) at the stub divider — desktop */
@media (min-width: 761px) {
  .ticket-card {
    -webkit-mask:
      radial-gradient(circle 15px at 264px 0, transparent 14px, #000 15px),
      radial-gradient(circle 15px at 264px 100%, transparent 14px, #000 15px);
    -webkit-mask-composite: source-in;
    mask:
      radial-gradient(circle 15px at 264px 0, transparent 14px, #000 15px),
      radial-gradient(circle 15px at 264px 100%, transparent 14px, #000 15px);
    mask-composite: intersect;
  }
}

.ticket-stub {
  position: relative;
  padding: 34px 28px;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(46, 124, 246, 0.35), transparent 55%),
    radial-gradient(150% 130% at 100% 100%, rgba(233, 64, 138, 0.3), transparent 60%),
    rgba(124, 58, 237, 0.14);
  border-right: 2px dashed rgba(255, 255, 255, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.ticket-stub .admit {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.price-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-big small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 0.4px;
}

.stub-meta {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* decorative barcode */
.barcode {
  height: 44px;
  border-radius: 6px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.75) 0 2px,
    transparent 2px 5px,
    rgba(255, 255, 255, 0.75) 5px 6px,
    transparent 6px 11px,
    rgba(255, 255, 255, 0.75) 11px 14px,
    transparent 14px 17px
  );
  opacity: 0.5;
}

.ticket-body {
  padding: 34px clamp(24px, 4vw, 42px);
}

.ticket-body h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.ticket-body .sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* API-down note */
.api-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #ffd58a;
  background: rgba(255, 178, 43, 0.1);
  border: 1px solid rgba(255, 178, 43, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
}

.api-note[hidden] { display: none; }

/* quantity + total row */
.qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.stepper button {
  width: 52px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1;
}

.stepper button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper input {
  width: 74px;
  border: 0;
  border-inline: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  padding: 12px 6px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.total-box {
  margin-left: auto;
  text-align: right;
}

.total-box .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--text);
}

/* "$20 tickets + Service fee (4.5%) $0.90" under the total — hidden by the
   buy widget on free tiers and when the fee is 0. */
.total-box .total-breakdown {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

.total-box .total-breakdown[hidden] {
  display: none;
}

/* form fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.form-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder {
  color: var(--text-faint);
}

.form-field input:focus {
  outline: none;
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(46, 124, 246, 0.28);
}

.form-field input[aria-invalid="true"] {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(233, 64, 138, 0.22);
}

.field-error {
  display: block;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #ff8fbe;
  margin-top: 6px;
}

.form-error {
  color: #ff8fbe;
  background: rgba(233, 64, 138, 0.1);
  border: 1px solid rgba(233, 64, 138, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-weight: 500;
}

.form-error[hidden] { display: none; }

.btn-checkout {
  width: 100%;
  font-size: 1.2rem;
  padding: 18px 32px;
}

/* Populated by js/applepay.js, and only on Apple Pay capable devices —
   stays hidden everywhere else, so the checkout button is unaffected. */
.applepay-container {
  margin-top: 12px;
}

.applepay-container apple-pay-button {
  display: block;
  width: 100%;
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 56px;
  --apple-pay-button-border-radius: 999px;
}

.secure-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-faint);
  margin: 16px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 44px 0 120px; /* bottom padding clears the mobile buy bar */
  text-align: center;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-wordmark .w1 {
  background: linear-gradient(95deg, #4b96ff, #2e7cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-wordmark .w2 {
  background: linear-gradient(95deg, #ff9a3d, #e9408a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-wordmark .w3 {
  color: var(--purple);
  font-size: 1.1rem;
}

.site-footer .tagline {
  color: var(--text-dim);
  margin: 10px 0 6px;
}

.site-footer .powered {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin: 0;
}

@media (min-width: 761px) {
  .site-footer {
    padding-bottom: 44px;
  }
}

/* ---------- Sticky mobile buy bar ---------- */
.mobile-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 7, 34, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-buybar .btn {
  width: 100%;
  font-size: 1.1rem;
}

.mobile-buybar.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 761px) {
  .mobile-buybar {
    display: none;
  }
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .confetti-field i {
    animation: none;
  }

  .btn,
  .poster-card,
  .timeline .slot-card {
    transition: none;
  }
}

/* ============================================================
   success.html
   ============================================================ */
.success-main {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(40px, 7vw, 80px) 0;
}

.status-card {
  width: min(680px, 92vw);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03) 60%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px -22px rgba(124, 58, 237, 0.5);
  backdrop-filter: blur(12px);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.state[hidden] { display: none; }

.big-spinner {
  width: 54px;
  height: 54px;
  margin: 8px auto 22px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--pink);
  border-right-color: var(--purple);
  animation: spin 0.9s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .big-spinner {
    animation-duration: 2.4s;
  }
}

.state h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.state h1.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.state .lead {
  color: var(--text-dim);
  font-size: 1.05rem;
}

.order-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.order-summary .chip {
  font-size: 1rem;
}

.tickets-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
  text-align: left;
}

.ticket-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 3px dashed rgba(255, 201, 77, 0.6);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.ticket-row .t-emoji {
  font-size: 1.6rem;
}

.ticket-row .t-info {
  flex: 1;
  min-width: 140px;
}

.ticket-row .t-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
}

.ticket-row .t-holder {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.email-note {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

/* confetti canvas (JS burst) */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

/* ============================================================
   Multi-event: More Events grid (index), event.html detail page,
   ticket-tier picker (shared buy widget)
   ============================================================ */

/* Classes like .btn/.chip/.section set an explicit display which would
   defeat the hidden attribute — make [hidden] always win. */
[hidden] {
  display: none !important;
}

/* ---------- More Events grid (index) ---------- */
.event-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.event-grid > li {
  display: flex;
}

.event-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03) 60%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 54px -20px rgba(124, 58, 237, 0.45);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 26px 70px -20px rgba(233, 64, 138, 0.5);
}

.event-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(46, 124, 246, 0.45), transparent 60%),
    radial-gradient(130% 130% at 100% 100%, rgba(233, 64, 138, 0.4), transparent 62%),
    linear-gradient(135deg, var(--ink-800), var(--ink-700));
}

.event-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-initials {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(233, 64, 138, 0.4));
}

.event-price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--grad-cta);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: var(--shadow-glow-warm);
}

.event-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 22px 24px;
}

.event-card-body h3 {
  font-size: 1.35rem;
  margin: 0;
}

.event-card-date {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
}

.event-card-venue {
  font-size: 0.85rem;
  padding: 7px 13px;
}

.event-card-cta {
  margin-top: auto;
  align-self: stretch;
}

.event-card:hover .event-card-cta {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

/* ---------- event.html: loading / not-found states ---------- */
.page-state {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 64px 0;
  text-align: center;
  color: var(--text-dim);
}

/* hero without a poster (event.html): single centered column */
.hero--no-poster .container {
  grid-template-columns: 1fr;
  text-align: center;
}

.hero--no-poster .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--no-poster .chips,
.hero--no-poster .hero-cta {
  justify-content: center;
}

/* ---------- ticket-tier picker (only shown for 2+ ticket types) ---------- */
.tier-picker {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
  min-width: 0;
}

.tier-picker legend {
  padding: 0;
}

.tier-list {
  display: grid;
  gap: 12px;
}

.tier-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tier-option:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.tier-option:focus-within {
  outline: 3px solid rgba(106, 165, 255, 0.9);
  outline-offset: 3px;
}

.tier-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tier-option.is-selected {
  border-color: transparent;
  background:
    linear-gradient(160deg, rgba(38, 22, 84, 0.94), rgba(30, 17, 70, 0.9)) padding-box,
    var(--grad-cta) border-box;
  box-shadow: 0 8px 30px -10px rgba(233, 64, 138, 0.45);
}

.tier-dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tier-option.is-selected .tier-dot {
  border-color: var(--pink);
  background: radial-gradient(circle at center, var(--pink) 0 45%, transparent 52%);
  box-shadow: 0 0 12px rgba(233, 64, 138, 0.7);
}

.tier-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tier-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
}

.tier-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.tier-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

.tier-option.is-selected .tier-price {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Past Events (index): quieter, desaturated memory cards ---------- */
.section-head .kicker-muted {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--text-faint);
}

.past-grid {
  max-width: 880px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.event-card--past {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02) 60%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px -22px rgba(0, 0, 0, 0.65);
}

.event-card--past:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 48px -22px rgba(0, 0, 0, 0.7);
}

.event-card--past .event-thumb img,
.event-card--past .event-initials {
  filter: grayscale(0.85) brightness(0.75);
  transition: filter 0.25s ease;
}

/* dark wash over the artwork so past posters read as memories */
.event-card--past .event-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 7, 34, 0.45);
}

.event-card--past:hover .event-thumb img,
.event-card--past:hover .event-initials {
  filter: grayscale(0.45) brightness(0.85);
}

.event-card--past .event-card-body {
  gap: 6px;
  padding: 16px 18px 18px;
}

.event-card--past .event-card-body h3 {
  font-size: 1.15rem;
  color: var(--text-dim);
}

.event-card--past .event-card-date {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- "Ended" pills (hero + past cards) ---------- */
.ended-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

.hero-ended {
  margin: -2px 0 18px;
}

.event-ended-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  font-size: 0.68rem;
  letter-spacing: 1.8px;
  padding: 5px 11px;
  background: rgba(13, 7, 34, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ---------- event.html past mode: "event ended" card ---------- */
.ended-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03) 60%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px -22px rgba(124, 58, 237, 0.45);
  backdrop-filter: blur(12px);
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
}

.ended-card p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.ended-card .ended-emoji {
  font-size: 2.7rem;
  line-height: 1;
  margin: 0 0 12px;
}

.ended-card h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .event-card,
  .tier-option,
  .tier-dot {
    transition: none;
  }

  .event-card--past .event-thumb img,
  .event-card--past .event-initials {
    transition: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-poster {
    order: -1;
    max-width: 340px;
  }

  .chips,
  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .brand-badge {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .brand-word {
    font-size: 1.15rem;
  }

  .ticket-card {
    grid-template-columns: 1fr;
  }

  .ticket-stub {
    border-right: 0;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.28);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 24px;
  }

  .ticket-stub .admit {
    width: 100%;
  }

  .price-big {
    font-size: 2.6rem;
  }

  .stub-meta {
    margin-left: auto;
    text-align: right;
  }

  .barcode {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .qty-row {
    gap: 16px;
  }

  .total-box {
    margin-left: auto;
  }

  .timeline::before {
    left: 21px;
  }

  .timeline li {
    padding-left: 52px;
    gap: 12px;
  }

  .timeline .dot {
    left: 12px;
    width: 18px;
    height: 18px;
  }

  .timeline .slot-card {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 14px 16px;
  }

  .timeline .time {
    min-width: 0;
  }

  .timeline .title {
    width: 100%;
    font-size: 1.05rem;
  }

  .video-frame {
    padding: 7px;
    border-radius: 20px;
  }

  .video-frame iframe {
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.35rem;
  }

  .btn {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* ---------- Event Gallery (index): same card language as More Events ---------- */
.gallery-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-grid > li {
  display: flex;
}

.gallery-item {
  position: relative;
  flex: 1;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(46, 124, 246, 0.45), transparent 60%),
    radial-gradient(130% 130% at 100% 100%, rgba(233, 64, 138, 0.4), transparent 62%),
    linear-gradient(135deg, var(--ink-800), var(--ink-700));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 54px -20px rgba(124, 58, 237, 0.45);
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 26px 70px -20px rgba(233, 64, 138, 0.5);
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(106, 165, 255, 0.9);
  outline-offset: 3px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 7, 34, 0.55) 100%);
  opacity: 0.85;
}

.gallery-item__label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox.is-open {
  animation: galleryFadeIn 0.22s ease;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 7, 34, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0;
  cursor: zoom-out;
}

.gallery-lightbox__stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(920px, 100%);
  max-height: min(84vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: galleryPopIn 0.28s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.gallery-lightbox__stage img {
  max-width: 100%;
  max-height: min(72vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px -22px rgba(124, 58, 237, 0.55), 0 10px 40px -8px rgba(233, 64, 138, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.gallery-lightbox__stage figcaption {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-dim);
  text-align: center;
  max-width: 36ch;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-lightbox__close {
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
}

.gallery-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
  font-family: var(--font-display);
}

.gallery-lightbox__prev { left: max(10px, env(safe-area-inset-left)); }
.gallery-lightbox__next { right: max(10px, env(safe-area-inset-right)); }

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.gallery-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.gallery-lightbox__close:hover {
  transform: scale(1.06);
}

@keyframes galleryFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes galleryPopIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-item {
    border-radius: var(--radius-sm);
  }

  .gallery-item__label {
    font-size: 0.72rem;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .gallery-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .gallery-lightbox__stage img {
    max-height: min(64vh, 720px);
    border-radius: var(--radius-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item img,
  .gallery-lightbox.is-open,
  .gallery-lightbox__stage {
    animation: none;
    transition: none;
  }

  .gallery-item:hover,
  .gallery-item:hover img {
    transform: none;
  }
}
