:root {
  --night: #0a1018;
  --deep: #1a5b92;
  --bright: #3da1bc;
  --paper: #f4f1ea;
  --ink: #141c26;
  --muted: #5c6b7a;
  --line: rgba(20, 28, 38, 0.12);
  --cream: #f3e6c4;
  --card: #fffcf7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(61, 161, 188, 0.18), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: Outfit, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 28px;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: Fraunces, serif;
  font-size: 26px;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.brand span { color: var(--deep); }
.top nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
#wallet { margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
#wallet {
  border: 0;
  background: var(--night);
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}
main { width: min(1120px, calc(100% - 40px)); margin: 28px auto 64px; }
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 14px;
}
.hero h1, .page h1, .event h1 {
  font-family: Fraunces, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.95;
  margin: 0 0 12px;
}
.lead { max-width: 46rem; color: var(--muted); margin: 0 0 22px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chips button, .ghost, .solid {
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
}
.chips button[aria-pressed="true"], .solid {
  background: var(--deep);
  color: white;
  border-color: var(--deep);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  display: grid;
  gap: 8px;
  text-decoration: none;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 100%;
}
.card img, .poster {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--night);
  display: block;
}
.card div, .pad { padding: 0 14px 14px; }
.card h2, .venue-card h2 { font-size: 22px; margin: 8px 0 0; font-family: Fraunces, serif; font-weight: 560; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }
.price { font-weight: 600; }
.layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
}
.steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 10px 12px; border-radius: 12px; background: #f7f4ee; }
.status { min-height: 1.3em; color: var(--deep); }
.ticket {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  margin-bottom: 12px;
}
.ticket img { width: 92px; height: 112px; object-fit: cover; border-radius: 10px; }
.ticket.staff, .ticket.plain { display: block; }
a.ghost { text-decoration: none; display: inline-block; }
#camera { width: 100%; max-height: 240px; border-radius: 16px; background: var(--night); }
.ticket.staff > img { width: 100%; height: 180px; margin-bottom: 8px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 8px; margin: 8px 0; }
.metric { margin: 0; background: #f7f4ee; border-radius: 12px; padding: 8px 10px; }
.metric b { display: block; font-family: Fraunces, serif; font-size: 22px; color: var(--ink); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.warn { color: #8a4b12; }
@media (max-width: 800px) {
  .top { flex-wrap: wrap; }
  .layout { grid-template-columns: 1fr; }
  .top nav { order: 3; width: 100%; }
}
