:root {
  --bg: #070504;
  --ink: #f3e6d4;
  --muted: #b7a08a;
  --wine: #7a1f2b;
  --gold: #c4a574;
  --line: rgba(196, 165, 116, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Syne, sans-serif;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  z-index: 8;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  background: radial-gradient(ellipse at 20% 0%, rgba(122, 31, 43, 0.28), transparent 45%),
              radial-gradient(ellipse at 90% 80%, rgba(196, 165, 116, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.top, main { position: relative; z-index: 1; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 8vw 0;
}

.mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 6px 10px;
}

main { padding: 48px 8vw 80px; max-width: 920px; }

h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.92;
  max-width: 12ch;
}

.lede {
  margin-top: 22px;
  color: var(--muted);
  max-width: 38ch;
  font-size: 0.95rem;
  line-height: 1.5;
}

.meta {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.lots { margin-top: 48px; display: grid; gap: 12px; }

.lot {
  border: 1px solid var(--line);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
}

.lot.selected { border-color: var(--gold); }

.lot h2 { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; font-weight: 500; }
.lot .price { font-size: 1.1rem; color: var(--gold); align-self: center; }
.lot .rest { grid-column: 1 / -1; font-size: 0.75rem; color: var(--muted); }

form {
  margin-top: 36px;
  display: grid;
  gap: 14px;
  max-width: 420px;
}

label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

input {
  width: 100%;
  margin-top: 6px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: Syne, sans-serif;
  font-size: 1rem;
  padding: 8px 0;
  outline: none;
}

input:focus { border-color: var(--gold); }

button.cta {
  margin-top: 10px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-family: Syne, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 18px;
  cursor: pointer;
}

button.cta:disabled { opacity: 0.4; cursor: not-allowed; }

.err { color: #e07a7a; font-size: 0.85rem; }

.ticket {
  margin-top: 24px;
  border: 1px solid var(--line);
  padding: 28px;
}

.ticket h2 { font-family: "Cormorant Garamond", serif; font-size: 2.2rem; }
.ticket .code { margin: 12px 0; letter-spacing: 0.28em; color: var(--gold); font-size: 1.1rem; }
#qr { margin: 18px 0; background: #fff; padding: 10px; width: max-content; }

.nav-mini { margin-top: 40px; font-size: 0.75rem; }
.nav-mini a { color: var(--gold); }

.staff { max-width: 420px; }
.staff h1 { font-size: 2.4rem; }

#reader {
  margin: 18px 0;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

#reader video { width: 100% !important; }

.flash {
  min-height: 1.4em;
  font-size: 1rem;
  margin: 12px 0;
}
.flash.ok { color: #8fd4a4; }
.flash.bad { color: #e07a7a; }
.flash.warn { color: var(--gold); }
