/* Yaari Special website — glassmorphism over a moving colour field.
   Tokens on :root; dark is the default look, light follows the OS. */

:root {
  --brand: #a910f0;
  --brand-2: #ff4fa3;
  --brand-3: #4f7bff;

  --bg: #12041f;
  --bg-2: #1f0838;
  --text: #f7f0ff;
  --text-2: rgba(247, 240, 255, 0.72);
  --text-3: rgba(247, 240, 255, 0.5);

  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.35);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);

  --blob-opacity: 0.55;
  --radius: 22px;
  --radius-sm: 14px;
  --gutter: 16px;
  --maxw: 1120px;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5ecff;
    --bg-2: #ffe9f5;
    --text: #1d0b2e;
    --text-2: rgba(29, 11, 46, 0.72);
    --text-3: rgba(29, 11, 46, 0.5);
    --glass: rgba(255, 255, 255, 0.45);
    --glass-strong: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-highlight: rgba(255, 255, 255, 0.9);
    --shadow: 0 20px 50px -24px rgba(90, 20, 140, 0.35);
    --blob-opacity: 0.45;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* ── Background colour field ───────────────────────────────────────── */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute;
  width: 55vmax; height: 55vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--blob-opacity);
  animation: drift 28s ease-in-out infinite alternate;
}
.blob-a { background: var(--brand);   top: -20vmax; left: -15vmax; }
.blob-b { background: var(--brand-2); bottom: -25vmax; right: -15vmax; animation-delay: -9s; }
.blob-c { background: var(--brand-3); top: 30%; left: 45%; width: 35vmax; height: 35vmax; animation-delay: -18s; opacity: calc(var(--blob-opacity) * 0.7); }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ── Glass primitive ───────────────────────────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-highlight);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

/* ── Top bar ───────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 12px; z-index: 10;
  margin: 12px auto 0;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 14px;
  border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { border-radius: 9px; }
.brand strong { font-weight: 800; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 30px -10px var(--brand);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  color: var(--text);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
}
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* ── Layout ────────────────────────────────────────────────────────── */
main {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 60vh;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.grad {
  background: linear-gradient(90deg, #fff 0%, #f3c6ff 40%, #ffb3d9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .grad {
    background-image: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  }
}

/* ── Discovery: search hero + "Happening … in …" ───────────────────── */
.discover-hero { padding: 48px 0 24px; text-align: center; }
.discover-hero h1 {
  margin: 0 auto 10px; max-width: 760px;
  font-size: clamp(32px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800;
  text-wrap: balance;
}
.discover-hero p { margin: 0 auto 26px; max-width: 520px; color: var(--text-2); font-size: 17px; line-height: 1.5; }

.search {
  display: flex; align-items: center; gap: 14px;
  max-width: 760px; margin: 0 auto; padding: 0 24px;
  height: 64px; border-radius: 999px; cursor: text;
}
.search svg { flex: none; width: 22px; height: 22px; color: var(--text-2); }
.search input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: none; background: none;
  font: inherit; font-size: 18px; font-weight: 500; color: var(--text);
}
.search input::placeholder { color: var(--text-3); }
.search:focus-within { border-color: var(--brand-2); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--brand-2) 25%, transparent); }
.search input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); cursor: pointer; }
.skeleton-line { height: 64px; animation: pulse 1.4s ease-in-out infinite; }

.filter-bar { display: flex; justify-content: center; padding: 4px 0 28px; }
.filter-pill {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 8px;
  padding: 10px 22px; border-radius: 999px;
  font-size: 17px; font-weight: 600; color: var(--text-2);
}
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap::after {
  content: ""; position: absolute; right: 2px; top: 50%;
  width: 7px; height: 7px; margin-top: -6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); pointer-events: none; color: var(--text);
}
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  border: 0; background: none; outline: none; cursor: pointer;
  padding: 4px 20px 4px 2px; border-radius: 8px;
  font: inherit; font-weight: 800; color: var(--text);
}
.select-wrap select:focus-visible { box-shadow: 0 0 0 2px var(--brand-2); }
.select-wrap option { color: #1d0b2e; background: #fff; }
.select-probe { position: absolute; visibility: hidden; white-space: pre; font-weight: 800; }

@media (max-width: 560px) {
  .discover-hero { padding: 32px 0 18px; }
  .search { height: 56px; padding: 0 18px; }
  .search input { font-size: 16px; }
  .filter-pill { font-size: 15px; padding: 8px 16px; gap: 2px 6px; }
  .grid.posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .poster-body { padding: 10px 12px 12px; gap: 4px; }
  .poster-title { font-size: 15px; }
  .poster-meta, .host { font-size: 12px; }
  .host-dot { width: 18px; height: 18px; font-size: 10px; }
  .poster-foot .muted { display: none; }
  .badge { top: 8px; padding: 4px 8px; font-size: 11px; }
  .badge-left { left: 8px; } .badge-right { right: 8px; }
}

/* ── Poster cards ──────────────────────────────────────────────────── */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  padding-bottom: 40px;
}
.poster {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.poster:hover { transform: translateY(-4px); }
.poster:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.poster-media { position: relative; aspect-ratio: 4 / 5; background: var(--glass-strong); }
.poster-media img { width: 100%; height: 100%; object-fit: cover; }
.poster-media .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 26px; font-weight: 800; line-height: 1.1; text-align: center;
}
.badge {
  position: absolute; top: 12px;
  padding: 6px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(20, 5, 35, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.badge-left { left: 12px; }
.badge-right { right: 12px; }
.poster-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.host { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.host-dot {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.poster-title {
  margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.poster-meta { font-size: 13px; font-weight: 700; color: #ffb3dc; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .poster-meta { color: var(--brand); }
}
.poster-foot {
  margin-top: auto; padding-top: 6px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px;
}
.poster-foot .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { font-weight: 800; color: var(--text); font-size: 15px; white-space: nowrap; }
.muted { color: var(--text-3); }

/* ── States ────────────────────────────────────────────────────────── */
.state {
  margin: 32px auto; max-width: 520px;
  padding: 36px 28px; border-radius: var(--radius);
  text-align: center;
}
.state h2 { margin: 0 0 8px; font-size: 22px; }
.state p { margin: 0 0 20px; color: var(--text-2); line-height: 1.55; }
.skeleton { background: var(--glass); border-radius: var(--radius); aspect-ratio: 4 / 6.2; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

/* ── Detail page ───────────────────────────────────────────────────── */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 22px 4px 14px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.back:hover { color: var(--text); }
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-top .btn { margin: 8px 4px 0; }

.detail { display: grid; gap: 22px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: start; }
  .aside { position: sticky; top: 92px; }
}

.gallery { border-radius: var(--radius); overflow: hidden; padding: 0; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img, .gallery-track .placeholder {
  flex: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start;
}
.gallery-track .placeholder { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.dots { display: flex; gap: 6px; justify-content: center; padding: 12px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); transition: all 0.2s; }
.dots span.on { width: 20px; border-radius: 4px; background: var(--text); }

.panel { border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.detail h1 { margin: 6px 0 8px; font-size: clamp(28px, 5vw, 42px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.detail .tagline { margin: 0 0 18px; color: var(--text-2); font-size: 17px; line-height: 1.5; }

.facts { display: grid; gap: 12px; margin: 0; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact-icon {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
}
.fact-icon svg { width: 18px; height: 18px; }
.fact dt { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.fact dd { margin: 2px 0 0; font-weight: 600; line-height: 1.4; }
.fact dd a { color: inherit; }

.prose { color: var(--text-2); line-height: 1.65; font-size: 16px; white-space: pre-line; overflow-wrap: anywhere; }
.panel h2 { margin: 0 0 10px; font-size: 18px; font-weight: 800; }

.tiers { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.tier {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--glass-border);
}
.tier[data-off="true"] { opacity: 0.55; }
.tier-name { font-weight: 700; }
.tier-note { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.tier-price { font-weight: 800; font-size: 17px; white-space: nowrap; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--text-3); line-height: 1.5; text-align: center; }

.footer { text-align: center; padding: 24px var(--gutter) 40px; color: var(--text-3); font-size: 13px; }

/* Phones: the ticket panel sits below the content, so keep a buy bar in reach. */
.buybar {
  position: fixed; left: var(--gutter); right: var(--gutter);
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
}
.buybar .price { font-size: 17px; }
.buybar .btn { padding: 12px 20px; font-size: 15px; }
body.has-buybar .footer { padding-bottom: 110px; }
@media (min-width: 900px) {
  .buybar { display: none; }
  body.has-buybar .footer { padding-bottom: 40px; }
}

/* ── Header account ────────────────────────────────────────────────── */
.top-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 420px) { .hide-narrow { display: none; } }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 240px; padding: 14px; border-radius: var(--radius-sm);
  background: var(--glass-strong);
}
.menu-who { margin: 0 0 10px; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }

.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.link {
  background: none; border: 0; padding: 0; font: inherit; font-size: 14px;
  color: var(--text-2); text-decoration: underline; cursor: pointer;
}
.fine a { color: var(--text-2); }

/* ── Booking sheet (<dialog>) ─────────────────────────────────────── */
.sheet {
  width: min(460px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 0; border-radius: var(--radius);
  color: var(--text);
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
}
.sheet::backdrop {
  background: rgba(10, 2, 20, 0.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.sheet-body { padding: 28px 24px 24px; }
.sheet h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.sheet-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.sheet-sub { margin: 0 0 18px; color: var(--text-2); line-height: 1.55; }
.sheet-close {
  position: sticky; float: right; top: 12px; margin: 12px 12px 0 0;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: var(--glass-strong);
  color: var(--text); font-size: 20px; line-height: 1; cursor: pointer;
}

.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-3); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--glass-border); }

.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border);
  outline: none;
}
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 30%, transparent); }
.form-error { margin: 0; min-height: 0; color: #ff8fa3; font-size: 14px; line-height: 1.45; }
.form-error:empty { display: none; }
.form-error a { color: inherit; }
.form .link { justify-self: center; }
.test-note {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 12px;
  font-size: 13px; background: rgba(255, 196, 0, 0.14); border: 1px solid rgba(255, 196, 0, 0.4);
}

.tier-pick { display: grid; gap: 10px; margin: 16px 0; }
.tier-option { display: block; cursor: pointer; }
.tier-option input { position: absolute; opacity: 0; pointer-events: none; }
.tier-option-body {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: border-color 0.15s, background 0.15s;
}
.tier-option-body > span:first-child { display: grid; }
.tier-option input:checked + .tier-option-body {
  border-color: var(--brand-2);
  background: color-mix(in srgb, var(--brand) 22%, transparent);
}
.tier-option input:focus-visible + .tier-option-body { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.qty-row, .total-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; font-weight: 600; }
.total-row { border-top: 1px solid var(--glass-border); margin-bottom: 12px; }
.total-row strong { font-size: 20px; }
.stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); }
.stepper button {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  font-size: 20px; color: var(--text); background: var(--glass-strong); cursor: pointer;
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { min-width: 32px; text-align: center; font-weight: 800; font-size: 17px; }

.spinner {
  width: 44px; height: 44px; margin: 8px auto 18px; border-radius: 50%;
  border: 4px solid var(--glass-border); border-top-color: var(--brand-2);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sheet:has(.spinner) h2, .sheet:has(.spinner) .sheet-sub,
.sheet:has(.result-icon) h2 { text-align: center; }
.result-icon {
  width: 60px; height: 60px; margin: 4px auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
}
.result-icon.ok { background: linear-gradient(135deg, #22c55e, #16a34a); border: 0; }
.result-icon.bad { background: linear-gradient(135deg, #f43f5e, #e11d48); border: 0; }
.codes { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.codes code {
  display: inline-block; padding: 6px 10px; border-radius: 8px;
  font-size: 14px; background: var(--glass-strong); border: 1px solid var(--glass-border);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .form-error { color: #c8163f; }
}

/* ── Installed web app ─────────────────────────────────────────────── */
.offline-note {
  margin: 0 auto 20px; max-width: 520px; padding: 10px 16px; border-radius: 999px;
  text-align: center; font-size: 14px; color: var(--text-2);
}
/* Launched from the home screen: clear the notch/home indicator, and don't
   offer "Get the app" inside something that already is one. */
.standalone .topbar { top: max(12px, env(safe-area-inset-top)); margin-top: max(12px, env(safe-area-inset-top)); }
.standalone #get-app { display: none; }
.standalone .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
