/* ============================================================================
   "Soundwave" — Gig Poster · Konser / Music category (Kundangan)
   assets/css/styles.css

   Design language: night-club neon poster. Deep purple night, halftone dot
   texture, electric lime / hot pink / cyan accents, heavy display type,
   spinning vinyl, marquee ticker. Mobile-first; 100dvh app shell with
   internally-scrolling panels.

   Customize: edit the :root palette, the --font-display stack, and the
   section blocks below. Everything is plain CSS — no build step.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Palette — tune these to re-theme the whole poster */
  --bg-0:   #0b0617;            /* page night */
  --bg-1:   #150b2c;            /* panel night */
  --ink:    #f7f2ff;            /* headline ink */
  --muted:  #a89ec4;            /* secondary text */
  --lime:   #d9ff3f;            /* accent: electric lime */
  --pink:   #ff2e88;            /* accent: hot pink */
  --cyan:   #27e0ff;            /* accent: electric cyan */
  --yellow: #ffd23d;            /* accent: sun yellow */
  --purple: #7c3aed;            /* accent: deep purple */
  --line:   rgba(255, 255, 255, .14);

  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold",
                  "Franklin Gothic Bold", "Arial Black", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius: 16px;
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;               /* the .app shell owns the viewport */
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .btn, .kicker, .flash-badge, .count-cell span, .stub-title,
.lineup-rank, .artist-time, .artist-name, .closing-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .01em;
}

p { overflow-wrap: break-word; }

/* Accessible focus */
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  border-radius: 4px;
}
.panel h1:focus, .panel h2:focus, .panel h3:focus { outline: none; }

/* ── App shell (single-viewport) ─────────────────────────────────────────── */
.app {
  position: relative;
  height: 100vh;                  /* fallback for older browsers */
  height: 100dvh;                 /* real mobile viewport */
  overflow: hidden;
}

.stage { position: absolute; inset: 0; }

.panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;               /* ONLY the active panel scrolls */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .32s ease, transform .32s ease, visibility .32s ease;
  background:
    radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.4px) 0 0 / 18px 18px,
    radial-gradient(circle at 15% 12%, rgba(255, 46, 136, .16), transparent 42%),
    radial-gradient(circle at 88% 88%, rgba(39, 224, 255, .14), transparent 44%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
}
.panel::-webkit-scrollbar { width: 6px; }
.panel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 3px; }

.panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 2;
}

.panel-inner {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(20px, 4.5vh, 44px) clamp(18px, 5vw, 30px) 196px; /* bottom clears marquee + nav */
}

/* ── Buttons & chips ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--pink);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 46, 136, .35);
}
.btn-primary:hover { background: #ff4d9d; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn-block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1.5px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .06);
}
.chip .star { color: var(--lime); }
.chip-date  { border-color: var(--pink); }
.chip-venue { border-color: var(--cyan); }
.chip-time  { border-color: var(--yellow); }

/* ── Cover ────────────────────────────────────────────────────────────────── */
.cover-wrap {
  position: relative;
  z-index: 1;                   /* sits above the optional .cover-photo */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;      /* fallback for older browsers */
  justify-content: safe center; /* never clip the top when the cover overflows */
  text-align: center;
  gap: 22px;
  min-height: 100%;
}

/* Optional photo backdrop behind the whole cover. Delete the .cover-photo
   block in index.html to return to the pure-typography cover. */
.cover-photo,
.cover-photo img,
.cover-photo-shade { pointer-events: none; } /* decorative — never block cover CTAs */
.cover-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-0);
}
.cover-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 6, 23, .78) 0%,
    rgba(11, 6, 23, .32) 32%,
    rgba(11, 6, 23, .46) 68%,
    rgba(11, 6, 23, .9) 100%);
}

.cover-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.event-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.event-brand b { color: var(--pink); }

.flash-badge {
  font-size: 12px;
  letter-spacing: .1em;
  padding: 7px 12px;
  background: var(--pink);
  color: #fff;
  border: 2px solid #fff;
  transform: rotate(4deg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .45);
  white-space: nowrap;
}

.guest-greeting {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: -6px 0 0;
  text-shadow: 0 2px 14px rgba(255, 210, 61, .35);
}

.hero { position: relative; z-index: 1; }

.sunburst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 135%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .07) 0deg 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 72%);
          mask: radial-gradient(closest-side, #000 30%, transparent 72%);
  z-index: -1;
  animation: spin-slow 60s linear infinite;
  pointer-events: none; /* decorative */
}
.sunburst-sm { width: 190%; }

.burst-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170%;
  max-width: none;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: .85;
  /* decorative — must never block the cover CTAs below */
  pointer-events: none;
}

.cover-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.artist-name {
  margin: 0;
  font-size: clamp(3.2rem, 17vw, 9.5rem);
  line-height: .92;
  letter-spacing: -.01em;
  color: var(--ink);
  text-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}

.hero-sub {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.hero-sub .outline { -webkit-text-stroke-color: var(--pink); }

/* Spinning vinyl record */
.vinyl {
  position: relative;
  width: min(38vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #191433 0 7%, #0a0714 8% 100%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .1);
  animation: spin-slow 9s linear infinite;
  pointer-events: none; /* decorative */
}
.vinyl-grooves {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px);
}
.vinyl-label {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: conic-gradient(from 40deg, var(--pink), var(--purple), var(--cyan), var(--pink));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6px;
}
.vinyl-label-text {
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .06em;
  line-height: 1.15;
  transform: rotate(-18deg);
}
.vinyl-label::after {
  content: "";
  position: absolute;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0a0714;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }
.sunburst, .sunburst-sm { animation-name: spin-burst; }
@keyframes spin-burst { to { transform: translate(-50%, -50%) rotate(360deg); } }

.when-where {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cover-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.swipe-hint {
  margin: 0;
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Marquee ticker (fixed to viewport bottom) ───────────────────────────── */
.marquee {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0;
  z-index: 8;
  overflow: hidden;
  background: var(--lime);
  color: #101010;
  border-block: 3px solid #101010;
  transform: rotate(-1.1deg) scale(1.03);
  transform-origin: center;
  box-shadow: 0 -12px 34px rgba(0, 0, 0, .4);
  padding: 9px 0 calc(9px + env(safe-area-inset-bottom, 0px));
  /* decorative ticker — never intercept clicks meant for panels below */
  pointer-events: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.marquee-item {
  padding: 0 0.25em;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: .1em;
  font-size: 13px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Panel headers ────────────────────────────────────────────────────────── */
.panel-head { margin-bottom: 26px; }

.kicker {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--lime);
  border: 1.5px solid rgba(217, 255, 63, .4);
  border-radius: 999px;
}

.panel-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  line-height: 1.04;
}

.panel-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}

/* ── Lineup ───────────────────────────────────────────────────────────────── */
.lineup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lineup-artist {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  transition: border-color .15s ease, transform .15s ease;
}
.lineup-artist:hover { border-color: var(--cyan); transform: translateX(4px); }

.lineup-rank {
  min-width: 46px;
  text-align: center;
  font-size: 26px;
  color: var(--pink);
}

.lineup-info { flex: 1; min-width: 0; }
.lineup-info .artist-name {
  font-size: 19px;
  margin: 0 0 4px;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artist-stage {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.artist-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--ink);
}
.tag:nth-child(2n) { background: var(--cyan); color: #0c0c12; }

.artist-time {
  font-size: 17px;
  color: var(--yellow);
  white-space: nowrap;
}

/* Decorative equalizer bars */
.soundwave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 48px;
  margin: 28px 0 4px;
}
.soundwave i {
  width: 6px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(var(--cyan), var(--pink));
  animation: eq 1s ease-in-out infinite alternate;
}
.soundwave i:nth-child(4n)  { height: 12px; }
.soundwave i:nth-child(3n+1){ height: 40px; }
.soundwave i:nth-child(5n)  { height: 26px; }
.soundwave i:nth-child(2n)  { animation-delay: .25s; }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

.fine-print {
  margin: 22px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* ── Details / meta list ──────────────────────────────────────────────────── */
.meta-list {
  margin: 0;
  display: grid;
  gap: 10px;
}
.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.meta-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}
.meta-value { font-size: 15px; font-weight: 600; text-align: right; }

/* Ticket stub with punched notches */
.ticket-stub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 22px;
  border: 2px dashed rgba(255, 255, 255, .3);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 46, 136, .12), rgba(39, 224, 255, .08)),
    var(--bg-1);
  -webkit-mask:
    radial-gradient(circle 10px at 0 50%, transparent 9px, #000 10px) left,
    radial-gradient(circle 10px at 100% 50%, transparent 9px, #000 10px) right;
  -webkit-mask-size: 51% 100%;
  -webkit-mask-repeat: no-repeat;
  mask:
    radial-gradient(circle 10px at 0 50%, transparent 9px, #000 10px) left,
    radial-gradient(circle 10px at 100% 50%, transparent 9px, #000 10px) right;
  mask-size: 51% 100%;
  mask-repeat: no-repeat;
}
.stub-body { flex: 1; min-width: 220px; }
.stub-top {
  display: block;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 6px;
}
.stub-title {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stub-sub { font-size: 13px; color: var(--muted); }

/* ── Gallery (optional photo panel) ───────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item--wide { grid-column: 1 / -1; }
.gallery-item--wide img { aspect-ratio: 16 / 9; }
.gallery-item:hover img { transform: scale(1.05); }
/* Lone trailing tile (odd photo count on the 2-column mobile grid):
   span the full width at 16:9 instead of dangling in a half-width cell. */
@media (max-width: 559px) {
  .gallery-grid > .gallery-item:last-child:nth-child(2n+1) {
    grid-column: 1 / -1;
  }
  .gallery-grid > .gallery-item:last-child:nth-child(2n+1) img {
    aspect-ratio: 16 / 9;
  }
}
.gallery-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
}
.gallery-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(11, 6, 23, .74);
  border: 1px solid rgba(255, 255, 255, .38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
}
@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  /* Lone trailing tile (4th/7th/… photo on the 3-column grid):
     span the full width at 16:9 instead of leaving a gap. */
  .gallery-grid > .gallery-item:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
  }
  .gallery-grid > .gallery-item:last-child:nth-child(3n+1) img {
    aspect-ratio: 16 / 9;
  }
}

/* ── Clickable photos (gallery links, flyer, cover backdrop) ──────────────── */
.gallery-link {
  display: block;
  position: relative;
  cursor: zoom-in;
}
.gallery-link::after {
  content: "⛶";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(11, 6, 23, .6);
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--lime);
  font-size: 13px;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-link::after,
.gallery-link:focus-visible::after { opacity: 1; }

/* Official flyer / banner — lets guests confirm this is the right event */
.event-flyer { margin: 0 0 30px; text-align: center; }
.event-flyer__link {
  display: inline-block;
  position: relative;
  cursor: zoom-in;
  transform: rotate(-1.2deg);
  transition: transform .2s ease;
}
.event-flyer__link:hover { transform: rotate(0deg) scale(1.02); }
.event-flyer__img {
  display: block;
  width: min(74vw, 340px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, .4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.event-flyer figcaption { margin-top: 12px; }

/* Cover backdrop viewer button (hidden by main.js when no cover photo) */
.cover-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  background: rgba(15, 9, 30, .55);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .15s ease, color .15s ease;
}
.cover-photo-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.cover-photo-btn__icon { color: var(--cyan); font-size: 14px; line-height: 1; }

/* ── Optional video feature (URL embed) ───────────────────────────────────── */
.video-feature { margin-top: 34px; text-align: center; }
.video-feature[hidden] { display: none; }
.video-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-1);
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.video-poster { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.video-frame:hover .video-poster { transform: scale(1.04); }
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 6, 23, .1), rgba(11, 6, 23, .45));
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid #fff;
  box-shadow: 0 0 0 12px rgba(255, 46, 136, .25), 0 12px 30px rgba(0, 0, 0, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-42%, -50%);
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.video-frame:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 0 16px rgba(255, 46, 136, .3), 0 12px 30px rgba(0, 0, 0, .45);
}
.video-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 6, 23, .7);
  border: 1px solid rgba(255, 255, 255, .4);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.video-open {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1.5px dashed rgba(39, 224, 255, .5);
  padding-bottom: 2px;
}
.video-open:hover { color: var(--lime); border-color: var(--lime); }

/* ── Optional free page (repeatable note blocks) ─────────────────────────── */
.free-blocks {
  display: grid;
  gap: 14px;
}
.free-block {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.free-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.12;
  color: var(--lime);
}
.free-content {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
.free-content:last-child { margin-bottom: 0; }
.free-figure { margin: 0; }
.free-link {
  display: block;
  position: relative;
  cursor: zoom-in;
}
.free-link::after {
  content: "⛶";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(11, 6, 23, .6);
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--lime);
  font-size: 13px;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.free-link:hover::after,
.free-link:focus-visible::after { opacity: 1; }
.free-img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: transform .35s ease;
}
.free-link:hover .free-img { transform: scale(1.01); }
.free-cap {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ── Powered-by brand strip (full-width footer line) ─────────────────────── */
.powered-by {
  width: 100%;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.powered-by p { margin: 0; }
.powered-by span { color: var(--cyan); }

/* ── Zoomable lightbox ────────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 60; }
.lightbox[hidden] { display: none; }
body.lightbox-open .panel.is-active { overflow: hidden; }
.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 10, .94);
  animation: menu-fade .2s ease;
}
.lightbox__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(64px + env(safe-area-inset-top, 0px)) 18px 92px;
}
.lightbox__figure { margin: 0; max-width: 96vw; user-select: none; -webkit-user-select: none; }
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  cursor: zoom-in;
  touch-action: none;
  transform: translate(0, 0) scale(1);
  transition: transform .18s ease;
  will-change: transform;
}
.lightbox.is-zoomed .lightbox__img { cursor: grab; transition: none; }
.lightbox.is-zoomed .lightbox__img:active { cursor: grabbing; }
.lightbox__cap { text-align: center; margin-top: 12px; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .07);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--pink); color: var(--pink); }
.lightbox__close { top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: calc(12px + env(safe-area-inset-left, 0px)); }
.lightbox__nav--next { right: calc(12px + env(safe-area-inset-right, 0px)); }
.lightbox__nav[hidden] { display: none; }
.lightbox__zoom {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 9, 30, .82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox__zoom button {
  min-width: 40px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.lightbox__zoom button:hover { border-color: var(--lime); color: var(--lime); }
@media (max-height: 700px) {
  .lightbox__img { max-height: 60vh; }
}

/* ── Video player modal ───────────────────────────────────────────────────── */
.video-modal { position: fixed; inset: 0; z-index: 70; }
.video-modal[hidden] { display: none; }
.video-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 10, .94);
  animation: menu-fade .2s ease;
}
.video-modal__box {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(64px + env(safe-area-inset-top, 0px)) 16px calc(40px + env(safe-area-inset-bottom, 0px));
}
.video-modal__player {
  width: min(100%, 880px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.video-modal__frame { display: block; width: 100%; height: 100%; border: 0; }
.video-modal__close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: calc(14px + env(safe-area-inset-right, 0px));
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .07);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.video-modal__close:hover { border-color: var(--pink); color: var(--pink); }

/* ── RSVP ─────────────────────────────────────────────────────────────────── */
.rsvp-form-display {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-group label small { text-transform: none; letter-spacing: 0; font-weight: 500; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(10, 6, 20, .55);
  color: var(--ink);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(39, 224, 255, .18);
}
input::placeholder, textarea::placeholder { color: rgba(247, 242, 255, .32); }

select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.error {
  display: block;
  color: #ff6b9d;
  font-size: 12px;
  margin-top: 6px;
  min-height: 1em;
}

.form-hint {
  margin: -4px 0 16px;
  font-size: 12px;
  color: var(--muted);
}
.form-hint em { color: var(--cyan); font-style: normal; font-weight: 700; }

.rsvp-note {
  display: none;
  margin: -6px 0 14px;
  font-size: 13px;
  font-weight: 700;
}
.rsvp-note-yes { color: var(--lime); }
.rsvp-note-no  { color: var(--yellow); }
.rsvp-form-display.is-declining .rsvp-note-yes { display: none; }
.rsvp-form-display.is-declining .rsvp-note-no  { display: block; }
.rsvp-form-display.is-declining .form-group--guests { opacity: .45; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 14px; }
}

.loading {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 10px;
}

/* RSVP deadline countdown */
.rsvp-countdown {
  text-align: center;
  margin: 0 0 22px;
}
.countdown-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.countdown-cells { display: flex; justify-content: center; gap: 10px; }
.count-cell {
  min-width: 66px;
  padding: 12px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}
.count-cell span {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  color: var(--lime);
}
.count-cell small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Guestbook (styling the platform-injected markup) ─────────────────────── */
.guestbook-body .guestbook-form {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
#guestbookForm { margin: 0; }
#guestbookForm .form-group label { margin-bottom: 8px; }
#guestbookForm input, #guestbookForm textarea { margin-bottom: 0; }

.guestbook-chapta {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

/* Injected form uses utility classes — match the theme */
.d-flex { display: flex; justify-content: center; }
.badge-pill { border-radius: 999px; }
.bg-kundangan { background: var(--pink); border-color: #fff; color: #fff; box-shadow: 0 10px 24px rgba(255, 46, 136, .35); }
.bg-kundangan:hover { background: #ff4d9d; }
.text-white { color: #fff; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.mt-2 { margin-top: .5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.d-inline-flex { display: inline-flex; }
.ph { vertical-align: middle; }

.guestbook-wrap {
  display: block;
  border-top-color: var(--line) !important;
  margin-top: 22px !important;
}
.guestbook-entry {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.guestbook-entry:last-child { border-bottom: 0; }
.guestbook-entry h5 {
  margin: 0 0 4px;
  font-size: 16px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.guestbook-entry p { margin: 0 0 4px; color: #d9d3ec; }
.guestbook-entry small { color: var(--muted); font-size: 12px; }

.loading-guestbook {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 10px;
}
.more-guestbook-wrap { text-align: center; margin-top: 16px; }
#load-more {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
#load-more:hover { border-color: var(--cyan); color: var(--cyan); }

/* Platform "thank you / closed" state injected into #rsvp-form */
.thank-you-message h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--lime);
}
.thank-you-message p { color: var(--ink); }
.thank-you-message small { color: var(--muted); }

/* ── Closing ──────────────────────────────────────────────────────────────── */
.closing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  min-height: 100%;
}
.closing .sunburst { z-index: -1; }
.closing-title {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.04;
}
.closing-title .outline { -webkit-text-stroke-color: var(--lime); }
.closing-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.socials {
  margin: 0;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--muted);
}

.closing-footer { margin-top: 26px; }
.closing-footer .fine-print { margin-top: 4px; }
.footer-brand {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ── Floating text navigation (toolbar + slide-in menu) ───────────────────── */
.panel-nav {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 24px);
  padding: 7px;
  border-radius: 999px;
  background: rgba(15, 9, 30, .8);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.nav-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.nav-arrow:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.nav-arrow:active { transform: translateY(1px) scale(.98); }
.nav-arrow:disabled { opacity: .3; cursor: default; }
.nav-arrow-icon { font-size: 18px; line-height: 1; }

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--lime);
  background: rgba(217, 255, 63, .08);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  max-width: 46vw;
  transition: background .15s ease, border-color .15s ease;
}
.nav-status:hover { background: rgba(217, 255, 63, .16); border-color: var(--lime); }
.nav-status-menu { color: var(--lime); font-size: 14px; line-height: 1; }
.nav-status-count { color: var(--lime); white-space: nowrap; }
.nav-status-sep { opacity: .55; margin: 0 3px; }
.nav-status-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 26vw;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Narrow phones: stack the status pill on its own row so every label stays
   readable and every button keeps a comfortable tap target. */
@media (max-width: 400px) {
  .panel-nav { flex-wrap: wrap; gap: 4px; max-width: calc(100vw - 16px); }
  .nav-status { order: -1; width: 100%; justify-content: center; max-width: none; }
  .nav-arrow { flex: 1; justify-content: center; }
  .panel-inner { padding-bottom: 220px; }
}

/* ── Slide-in menu ────────────────────────────────────────────────────────── */
.panel-menu { position: fixed; inset: 0; z-index: 50; }
.panel-menu[hidden] { display: none; }
.panel-menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 12, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: menu-fade .25s ease;
}
.panel-menu__sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 340px);
  display: flex;
  flex-direction: column;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 18px calc(22px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #1a0f33, #0e0720);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
  overflow-y: auto;
  animation: menu-slide .28s cubic-bezier(.22, .9, .34, 1);
}
@keyframes menu-fade { from { opacity: 0; } }
@keyframes menu-slide { from { transform: translateX(48px); opacity: 0; } }
.panel-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-menu__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.panel-menu__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}
.panel-menu__close:hover { border-color: var(--pink); color: var(--pink); }
.panel-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.panel-menu__list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.panel-menu__list button:hover { background: rgba(255, 255, 255, .08); border-color: var(--cyan); }
.panel-menu__list button.is-current { background: rgba(217, 255, 63, .1); border-color: var(--lime); color: var(--lime); }
.panel-menu__num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--pink);
  min-width: 26px;
}
.panel-menu__list button.is-current .panel-menu__num { color: var(--lime); }
.panel-menu__hint {
  margin: 18px 0 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Small / short screens ────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .chip { font-size: 12px; padding: 8px 12px; }
  .cover-wrap { gap: 16px; }
  .vinyl { width: 34vw; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .cover-wrap { gap: 12px; }
  .vinyl { display: none; }
  .artist-name { font-size: clamp(2.6rem, 14vh, 5rem); }
  .panel-inner { padding-bottom: 152px; }
}

/* Short viewports: compress the cover so its CTAs clear the floating
   marquee + nav instead of sliding underneath them (where the nav
   would swallow the clicks). */
@media (max-height: 820px) {
  .cover-wrap { gap: 12px; }
  .artist-name { font-size: clamp(2.6rem, 12vw, 5rem); }
  .hero-sub { margin-top: 8px; font-size: 13px; }
  .vinyl { width: min(24vw, 110px); }
  .chip { padding: 8px 13px; font-size: 12.5px; }
  .cover-cta .btn { padding: 12px 18px; font-size: 14px; }
  .swipe-hint { display: none; }
}
@media (max-height: 680px) {
  .cover-wrap { gap: 10px; }
  .artist-name { font-size: clamp(2.4rem, 10.5vw, 4rem); }
  .vinyl { width: min(21vw, 88px); }
}
@media (max-height: 580px) {
  .artist-name { font-size: clamp(2rem, 9.5vw, 3.2rem); }
  .vinyl { display: none; }
  .hero-sub { display: none; }
}

/* ── Reduced motion: honour user preference ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .panel { transform: none; }
  .lineup-artist:hover { transform: none; }
  .gallery-item:hover img { transform: none; }
}

/* ── Print: turn the shell into a flowable poster ─────────────────────────── */
@media print {
  :root { color-scheme: light; }
  @page { size: A4 portrait; margin: 10mm; }

  body { background: #fff !important; overflow: visible; }
  .app { height: auto; overflow: visible; }
  .stage { position: static; }

  .panel {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
    overflow: visible;
    height: auto;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 16px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff !important;
  }
  .panel.is-active { z-index: auto; }
  .panel-inner { max-width: none; padding: 18px; }

  .panel-nav, .panel-menu, .lightbox, .video-modal, .marquee, .vinyl, .sunburst,
  .swipe-hint, .soundwave, .cover-photo, .cover-photo-btn, .video-feature, .powered-by { display: none !important; }
  .gallery-link::after { content: none; }
  .event-flyer__img { border-color: #999 !important; }

  * { color: #111 !important; text-shadow: none !important; -webkit-text-stroke-color: #111 !important; }
  .outline { color: transparent; -webkit-text-stroke: 1.4px #111; }

  .btn, #load-more {
    background: #fff !important;
    border-color: #111 !important;
    color: #111 !important;
    box-shadow: none !important;
  }
  .chip, .meta-item, .lineup-artist, .ticket-stub, .rsvp-form-display, .guestbook-body .guestbook-form,
  .gallery-item, .gallery-chip, .free-block {
    background: #f4f4f4 !important;
    border-color: #999 !important;
  }
  .cover-wrap, .closing { min-height: auto; justify-content: flex-start; }
  input, select, textarea { background: #fff !important; border-color: #666 !important; color: #111 !important; }
}
