:root {
  --bg: #100c08;
  --bg-2: #1a140e;
  --ink: #f4ead6;
  --muted: #b7a48a;
  --gold: #d4b06a;
  --gold-2: #f0d7a3;
  --line: rgba(212, 176, 106, 0.22);
  --danger: #c45c3e;
  --ok: #7ea36a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Figtree", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(212, 176, 106, 0.12), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(90, 50, 20, 0.35), transparent 45%),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0.01em;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: white; }

.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 80px; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.brand small {
  display: block;
  font-family: "Figtree", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.nav { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 14px; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; margin: 0 0 10px; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; }
.lede { color: var(--muted); font-size: 18px; max-width: 42rem; line-height: 1.55; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn, button.btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #ead19a, #c9a25a);
  color: #2a1c0a;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}
.btn.ghost, button.ghost {
  background: transparent;
  color: var(--gold-2);
  border-color: var(--line);
}
.btn.danger { background: var(--danger); border-color: var(--danger); color: white; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.ticket-preview {
  background: linear-gradient(180deg, #2a2118, #17120d);
  border: 1px solid var(--gold);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ticket-preview img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ticket-preview .pad { padding: 18px 20px 22px; }
.ticket-preview .kicker {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.grid { display: grid; gap: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.benefit-card {
  display: block;
  color: inherit;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.benefit-card img { width: 100%; height: 150px; object-fit: cover; }
.benefit-card .pad { padding: 14px 16px 16px; }
.meta { color: var(--muted); font-size: 13px; }

label { display: block; font-size: 13px; color: var(--gold); margin: 0 0 6px; }
input, textarea {
  width: 100%;
  background: #0c0907;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  margin-bottom: 14px;
}
textarea { min-height: 110px; resize: vertical; }

.qr-poster {
  text-align: center;
  background: #f7f1e4;
  color: #1a140c;
  border-radius: 28px;
  padding: 28px 20px;
}
.qr-poster img { width: min(280px, 70vw); height: auto; }
.qr-poster p { margin: 8px 0 0; font-size: 13px; word-break: break-all; }

.pass {
  width: min(390px, 100%);
  margin: 0 auto;
  background: #17120d;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(240, 215, 163, 0.35);
  box-shadow: var(--shadow);
  transform-origin: center top;
  transition: opacity 0.6s ease, transform 0.7s ease, filter 0.6s ease;
}
.pass.vanish { opacity: 0; transform: translateY(-18px) scale(0.96); filter: blur(8px); pointer-events: none; }
.pass img.hero { width: 100%; height: 190px; object-fit: cover; }
.pass .body { padding: 18px 18px 8px; }
.pass .name { font-family: "Fraunces", serif; font-size: 28px; line-height: 1.1; }
.pass .desc { color: var(--muted); line-height: 1.45; margin: 8px 0 14px; }
.pass .row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); padding: 12px 0; font-size: 13px; }
.pass .row span { color: var(--gold); display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.pass .qrbox {
  margin: 8px 12px 16px;
  background: #f7f1e4;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  color: #1a140c;
}
.pass .qrbox img { width: 210px; height: 210px; }
.pass .qrbox strong { display: block; letter-spacing: 0.18em; font-size: 12px; margin-bottom: 6px; }

.wallet-row { display: flex; flex-direction: column; gap: 10px; width: min(390px, 100%); margin: 18px auto 0; }
.gone {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.gone h1 { font-size: 36px; color: var(--ink); }
.error { color: var(--danger); margin-bottom: 12px; }
.ok { color: var(--ok); }

#reader { width: min(420px, 100%); margin: 12px auto 0; overflow: hidden; border-radius: 16px; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .top { align-items: flex-start; flex-direction: column; }
}

@media print {
  body { background: white; color: black; }
  .top, .no-print { display: none !important; }
  .qr-poster { box-shadow: none; }
}
