/* PARTY HUB — shared neon theme (site + mini app) */
:root {
  --bg: #07041a;
  --bg-2: #0f0830;
  --surface: rgba(28, 16, 74, 0.55);
  --surface-solid: #170d42;
  --line: rgba(160, 140, 255, 0.22);
  --text: #f4f1ff;
  --muted: #b4abdc;
  --violet: #8b5cf6;
  --purple: #b14cff;
  --magenta: #ff4fd8;
  --blue: #3b6cff;
  --cyan: #59e1ff;
  --grad: linear-gradient(120deg, #3b6cff 0%, #8b5cf6 45%, #ff4fd8 100%);
  --radius: 18px;
  --font-display: 'Unbounded', 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Marck Script', 'Brush Script MT', cursive;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

/* animated stage-light background */
.stage-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% -5%, rgba(170, 150, 255, 0.55), transparent 70%),
    radial-gradient(40% 35% at 10% 20%, rgba(59, 108, 255, 0.35), transparent 70%),
    radial-gradient(40% 35% at 90% 25%, rgba(255, 79, 216, 0.28), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(97, 40, 200, 0.5), transparent 70%),
    linear-gradient(180deg, #120a3a 0%, var(--bg) 55%);
}
.stage-bg .beam {
  position: absolute; top: -20%; width: 18vw; height: 120%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255,255,255,0.5), rgba(180,150,255,0.12) 45%, transparent 80%);
  transform-origin: top center; opacity: 0.32; will-change: transform;
  animation: sweep 9s ease-in-out infinite alternate;
}
.stage-bg .beam:nth-child(1) { left: 8%;  --a: -22deg; --b: 8deg;  animation-duration: 11s; }
.stage-bg .beam:nth-child(2) { left: 38%; --a: 14deg;  --b: -12deg; animation-duration: 8s; }
.stage-bg .beam:nth-child(3) { left: 64%; --a: -10deg; --b: 18deg; animation-duration: 10s; }
.stage-bg .beam:nth-child(4) { left: 86%; --a: 20deg;  --b: -6deg; animation-duration: 12s; }
@keyframes sweep { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }
.stage-bg svg.web { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; }
.stage-bg .grain {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) { .stage-bg .beam { animation: none; } }

/* type */
.script { font-family: var(--font-script); color: #e9dcff; text-shadow: 0 0 18px rgba(200, 160, 255, 0.7); }
.display {
  font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em; line-height: 0.95; text-transform: uppercase;
  color: #fff; text-shadow: 0 0 12px rgba(255,255,255,0.45), 0 0 40px rgba(139, 92, 246, 0.8);
}
.eyebrow { font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.8rem; color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: var(--h); padding: 0 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; text-decoration: none;
  color: #fff; background: var(--grad); box-shadow: 0 8px 30px -8px rgba(177, 76, 255, 0.8), inset 0 0 0 1px rgba(255,255,255,0.18);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 38px -8px rgba(255, 79, 216, 0.9), inset 0 0 0 1px rgba(255,255,255,0.3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(0.7) brightness(0.7); cursor: not-allowed; transform: none; }
.btn-ghost { background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(200,180,255,0.5); }
.btn-sm { --h: 38px; padding: 0 1em; font-size: 0.75rem; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* cards & glass */
.glass {
  background: rgba(24, 14, 66, 0.82); border: 1px solid var(--line); border-radius: var(--radius);
}
.neon-line { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent); box-shadow: 0 0 12px var(--violet); }

.chip {
  display: inline-flex; align-items: center; gap: 0.35em; padding: 0.3em 0.75em; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(139, 92, 246, 0.18); border: 1px solid rgba(139, 92, 246, 0.45); color: #e3d8ff;
}
.chip.hot { background: rgba(255, 79, 216, 0.16); border-color: rgba(255, 79, 216, 0.5); color: #ffd3f4; }

/* forms */
.field { display: grid; gap: 6px; }
.field > label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(10, 6, 34, 0.7); border: 1px solid var(--line);
}
textarea.input { padding: 12px 14px; min-height: 80px; resize: vertical; }

/* ticket type picker */
.tt-list { display: grid; gap: 10px; }
.tt {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 14px 16px; border-radius: 14px; cursor: pointer; border: 1px solid var(--line); background: rgba(10, 6, 34, 0.55);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.tt input { position: absolute; opacity: 0; pointer-events: none; }
.tt b { font-size: 1rem; }
.tt small { color: var(--muted); grid-column: 1; }
.tt .price { grid-row: 1 / span 2; grid-column: 2; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.tt:has(input:checked) { border-color: var(--magenta); background: rgba(139, 92, 246, 0.18); box-shadow: 0 0 0 1px var(--magenta), 0 0 24px -6px var(--magenta); }
.tt.soldout { opacity: 0.45; cursor: not-allowed; }

.qty { justify-self: start; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: rgba(255,255,255,0.06); color: #fff; font-size: 1.3rem; cursor: pointer; }
.qty button:hover { background: rgba(255,255,255,0.12); }
.qty output { min-width: 44px; text-align: center; font-weight: 700; font-size: 1.1rem; }

.error-msg { color: #ff9ad5; font-size: 0.9rem; min-height: 1.2em; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
