@font-face {
  font-family: Bungee;
  src: url("/fonts/Bungee-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: ShareTechMono;
  src: url("/fonts/ShareTechMono-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url("/fonts/PlayfairDisplay-Regular.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #140018;
  --paper: #fff4d6;
  --gold: #ffe566;
  --pink: #ff2bd6;
  --cyan: #00f0ff;
  --lime: #39ff14;
  --hot: #ff4d00;
  --chrome: #e8e8f0;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--paper);
  font-family: ShareTechMono, ui-monospace, monospace;
  background:
    radial-gradient(circle at 20% 10%, #5b0066 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, #004e6b 0%, transparent 42%),
    linear-gradient(160deg, #1a0024, #050008 55%, #00151c);
  overflow-x: hidden;
}

.aurora {
  position: fixed; inset: -20%;
  background: conic-gradient(from 90deg, #ff2bd655, #ffe56633, #00f0ff44, #39ff1433, #ff2bd655);
  filter: blur(80px); opacity: .35;
  animation: hue 12s linear infinite;
  pointer-events: none; z-index: 0;
}
.scan {
  position: fixed; inset: 0;
  background: repeating-linear-gradient(to bottom, #0000 0 2px, #0003 2px 3px);
  pointer-events: none; z-index: 1;
}
@keyframes hue { to { filter: blur(80px) hue-rotate(360deg); } }

.top {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.4rem; gap: 1rem;
}
.brand {
  font-family: Bungee, Impact, sans-serif;
  color: var(--gold); text-decoration: none; letter-spacing: .08em;
  text-shadow: 0 0 12px var(--pink), 3px 3px 0 #000;
}
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a {
  color: var(--cyan); text-decoration: none; font-size: .85rem;
}
nav a[aria-current="page"], nav a:hover { color: var(--gold); }
.spin-chip {
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: .08em;
  border: 2px solid var(--gold);
  padding: .2rem .45rem;
  box-shadow: 0 0 10px #ffe56666;
}

.spin-meter {
  margin: 0.9rem auto 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: #050005;
  border: 3px solid var(--gold);
  box-shadow: 0 0 18px #ff2bd655, inset 0 0 20px #0008;
  border-radius: 12px;
  padding: 0.65rem 1.1rem 0.75rem;
}
.spin-meter-label {
  color: var(--lime);
  letter-spacing: 0.22em;
  font-size: 0.68rem;
}
.spin-meter-digits {
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(1.8rem, 7vw, 3.2rem);
  color: var(--gold);
  letter-spacing: 0.12em;
  text-shadow: 0 0 16px var(--pink), 3px 3px 0 #000;
  line-height: 1;
}
.spin-meter-digits.pop { animation: jack 0.45s ease; }

.stage { position: relative; z-index: 2; max-width: 920px; margin: 0 auto; padding: 0 1rem 4rem; text-align: center; }
.eyebrow {
  color: var(--lime); letter-spacing: .28em; font-size: .72rem;
  animation: blink 1.4s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .35; } }

.marquee {
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(1.1rem, 4vw, 2.1rem);
  color: var(--gold);
  text-shadow: 0 0 18px var(--pink), 4px 4px 0 #000;
  display: flex; justify-content: center; align-items: center; gap: .5rem;
  flex-wrap: wrap;
}
.bulb {
  width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--hot); box-shadow: 0 0 10px var(--hot);
  animation: pop 1s infinite alternate;
}
.bulb:nth-child(2) { animation-delay: .15s; background: var(--lime); }
.bulb:nth-child(3) { animation-delay: .3s; background: var(--cyan); }
.bulb:nth-child(5) { animation-delay: .45s; background: var(--pink); }
.bulb:nth-child(6) { animation-delay: .6s; background: var(--gold); }
@keyframes pop { from { transform: scale(.7); opacity: .4; } to { transform: scale(1.2); } }

.cabinet {
  margin: 1.5rem auto 0;
  max-width: 100%;
  min-width: 0;
  background: linear-gradient(#3a1030, #120016 40%, #1a0a00);
  border: 6px solid var(--gold);
  box-shadow:
    0 0 0 6px #2a0018,
    0 0 40px #ff2bd688,
    inset 0 0 40px #0008;
  border-radius: 28px;
  padding: 1.2rem 1.2rem 1.6rem;
  position: relative;
}
.cabinet-chrome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-width: 0;
}
.reels {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem;
  min-width: 0;
  background: #050005; padding: .7rem; border-radius: 14px;
  border: 3px solid var(--chrome);
}
.reel {
  height: 140px; overflow: hidden; border-radius: 8px; min-width: 0;
  background: #fffdf2; color: #111;
  box-shadow: inset 0 20px 20px #0003, inset 0 -20px 20px #0003;
}
.strip { display: flex; flex-direction: column; }
.strip span {
  height: 140px; display: grid; place-items: center;
  font-family: Bungee, Impact, sans-serif; font-size: clamp(1.1rem, 3vw, 1.8rem);
  border-bottom: 1px dashed #0002;
}
.strip.spinning { animation: reel 0.28s linear infinite; }
@keyframes reel { to { transform: translateY(-50%); } }

.lever {
  appearance: none; background: none; border: 0; cursor: pointer;
  width: 72px; display: grid; justify-items: center; gap: .3rem; color: var(--gold);
}
.lever .knob {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--hot) 40%, #7a0000);
  box-shadow: 0 0 18px var(--hot);
}
.lever .arm { width: 10px; height: 70px; background: linear-gradient(#eee, #888); border-radius: 8px; }
.lever.pulled .arm { height: 36px; }
.lever.pulled .knob { transform: translateY(20px); }

.ticket {
  margin-top: 1.2rem; text-align: left;
  background: #fff4d6; color: #1a0018;
  padding: 1rem; border-radius: 12px;
  box-shadow: 8px 8px 0 #000;
  transform: rotate(-.4deg);
}
.ticket label, .ticket h2 { font-family: Bungee, Impact, sans-serif; font-size: .95rem; }
.ticket textarea, .ticket input {
  width: 100%; margin: .4rem 0 0.8rem;
  border: 3px dashed #1a0018; background: #fff; color: #110014;
  font: inherit; padding: .6rem; border-radius: 8px;
}
.ticket-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.spin-btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: Bungee, Impact, sans-serif;
  background: var(--pink); color: #fff;
  padding: .75rem 1.2rem; border-radius: 999px;
  box-shadow: 0 0 0 3px #000, 0 0 20px var(--pink);
  text-decoration: none; display: inline-block;
}
.spin-btn:hover { background: var(--hot); transform: scale(1.04); }
.spin-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.tier-chip {
  margin: 0; color: #1a0018; background: var(--gold);
  padding: .35rem .7rem; border-radius: 999px; font-size: .75rem;
}

.payout {
  margin-top: 1.2rem; text-align: left;
  min-width: 0;
  background: #050008; border: 3px solid var(--cyan);
  border-radius: 14px; padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 0 24px #00f0ff55;
}
.payout.jackpot { animation: jack 0.8s ease; }
@keyframes jack {
  0%, 100% { box-shadow: 0 0 24px #00f0ff55; }
  40% { box-shadow: 0 0 80px var(--gold); transform: scale(1.02); }
}
.payout-label { color: var(--cyan); letter-spacing: .2em; margin: 0 0 .75rem; }
.answer {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.7;
  font-size: 1.02rem;
  color: #fff8e8;
}
.answer p { margin: 0 0 0.95rem; }
.answer p:last-child { margin-bottom: 0; }
.answer strong { color: var(--gold); }
.answer em { color: var(--cyan); }
.answer code {
  color: var(--lime);
  background: #120018;
  padding: 0.05em 0.35em;
  border-radius: 4px;
}
.answer h3 {
  font-family: Bungee, Impact, sans-serif;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin: 1.15rem 0 0.4rem;
  text-shadow: 0 0 10px var(--pink);
}
.answer ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}
.answer li { margin: 0.4rem 0; padding-left: 0.2rem; }
.answer li::marker { color: var(--pink); }
.clock { margin-top: 1rem; text-align: center; }
.digits {
  font-family: Bungee, Impact, sans-serif;
  font-size: clamp(2rem, 8vw, 4rem);
  color: var(--gold);
  text-shadow: 0 0 20px var(--pink);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.04); filter: hue-rotate(40deg); } }

.fineprint { opacity: .75; font-size: .8rem; max-width: 46rem; margin: 1.4rem auto 0; }
.prose { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 1.2rem 4rem; }
.prose h1, .prose h2 { font-family: Bungee, Impact, sans-serif; color: var(--gold); text-shadow: 3px 3px 0 #000; }
.prose a { color: var(--cyan); }

.page-about {
  color: #f3ead6;
  font-family: Playfair, "Iowan Old Style", Georgia, serif;
  background:
    radial-gradient(1200px 700px at 10% -10%, #2a1020 0%, transparent 55%),
    #0b0709;
}
.page-about .aurora,
.page-about .scan { display: none; }
.page-about .top {
  border-bottom: 1px solid #3a2a28;
  padding: 1.4rem 8vw 1.1rem;
}
.page-about .brand {
  text-shadow: none;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}
.page-about nav a {
  font-family: ShareTechMono, ui-monospace, monospace;
  color: #c4b49a;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-about nav a[aria-current="page"],
.page-about nav a:hover { color: var(--gold); }
.page-about .spin-chip {
  font-family: ShareTechMono, ui-monospace, monospace;
  box-shadow: none;
  border-color: #5a4638;
  color: #e6d3a5;
}

.essay {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  margin: 0 auto;
  padding: 4.5rem 1.4rem 7rem;
}
.essay .plate {
  margin: 0 0 1.6rem;
  font-family: ShareTechMono, ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b08960;
}
.essay h1 {
  margin: 0 0 1.8rem;
  font-family: Playfair, Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #f7e7c2;
  text-wrap: balance;
}
.essay .lede {
  font-size: 1.35rem;
  line-height: 1.45;
  color: #f0ddb4;
  margin: 0 0 2rem;
}
.essay p {
  margin: 0 0 1.15rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #e8dcc8;
}
.essay a {
  color: #e6c57a;
  text-decoration: none;
  border-bottom: 1px solid #8a6a36;
}
.essay a:hover { color: var(--gold); }
.essay h2 {
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid #3d2c26;
  font-family: Playfair, Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #f2d59a;
}
.essay .pull {
  margin: 2.4rem 0;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid #c9a15b;
}
.essay .pull blockquote {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.35;
  color: #f6e2b4;
  font-style: italic;
}
.colophon {
  margin-top: 3.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid #3d2c26;
}
.colophon .sign {
  font-family: Playfair, Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #f2d59a;
  margin-bottom: 0.7rem;
}
.colophon p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #b9a890;
  margin: 0 0 0.35rem;
}
.colophon a {
  color: #e6c57a;
  text-decoration: none;
  border-bottom: 1px solid #8a6a36;
}
.colophon a:hover { color: var(--gold); }

.essay ul {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  color: #e8dcc8;
}
.essay li { margin: 0.4rem 0; line-height: 1.55; }
.essay li::marker { color: #c9a15b; }

.legal-shell {
  display: grid;
  grid-template-columns: 15rem minmax(0, 38rem);
  justify-content: center;
  gap: 3rem;
  padding: 0 1.4rem 4rem;
}
.legal-rail {
  position: sticky;
  top: 1.4rem;
  align-self: start;
  padding: 4.5rem 0 2rem;
}
.legal-rail .plate { margin-bottom: 1.1rem; }
.legal-rail nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.legal-rail a {
  font-family: ShareTechMono, ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b9a890;
  text-decoration: none;
  line-height: 1.35;
}
.legal-rail a:hover { color: var(--gold); }
.legal-body { padding-top: 4.5rem; margin: 0; }
.page-legal .legal-body section[id] { scroll-margin-top: 1.25rem; }
.page-legal .legal-body > section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 1.4rem;
}

.site-foot {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 1.4rem 1rem 2rem;
  font-family: ShareTechMono, ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7a90;
}
.site-foot a { color: #c4b49a; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.page-about .site-foot { color: #8a7460; }
.page-about .site-foot a { color: #b9a890; }

.tickets { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 1.5rem 0; }
.price-card {
  background: #1a0020; border: 4px solid var(--chrome); border-radius: 16px;
  padding: 1rem; box-shadow: 8px 8px 0 #000;
}
.price-card.hot { border-color: var(--pink); }
.price-card.coveted { border-color: var(--gold); transform: rotate(.6deg); }
.amount { font-family: Bungee, Impact, sans-serif; font-size: 2.2rem; margin: .2rem 0; color: var(--lime); }
.amount span { font-size: .9rem; color: var(--paper); }
.notice { color: var(--gold); min-height: 1.2em; }
.account-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2rem 0 0;
  text-align: left;
}
.account-grid[hidden],
.seat-card[hidden] {
  display: none !important;
}
.page-account .prose { max-width: 52rem; text-align: center; }
.page-account .prose > p:not(.eyebrow):not(.notice) {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  color: #f3ead6;
  line-height: 1.55;
}
.page-account .prose h1 {
  font-size: clamp(1.35rem, 4.2vw, 2.15rem);
  line-height: 1.2;
  text-wrap: balance;
}
.seat-card {
  background: #120018;
  border: 3px solid var(--chrome);
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 6px 6px 0 #000, 0 0 28px #0008;
  text-align: left;
}
.seat-card.enter { border-color: var(--cyan); box-shadow: 6px 6px 0 #000, 0 0 22px #00f0ff33; }
.seat-card.take { border-color: var(--gold); box-shadow: 6px 6px 0 #000, 0 0 22px #ffe56633; }
.seat-card.seated {
  max-width: 28rem;
  margin: 2rem auto 0;
  border-color: var(--pink);
}
.seat-kicker {
  margin: 0 0 0.35rem;
  font-family: ShareTechMono, ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}
.seat-card h2 {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 #000;
}
.seat-card label {
  display: block;
  font-family: ShareTechMono, ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4b49a;
  margin: 0 0 0.35rem;
}
.seat-card input {
  width: 100%;
  margin: 0 0 1rem;
  border: 2px solid #7a5580;
  background: #1c0824;
  color: var(--paper);
  font: inherit;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
}
.seat-card input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #ffe56633;
}
.seat-card .spin-btn {
  width: 100%;
  text-align: center;
  margin-top: 0.15rem;
}
.seat-email {
  margin: 0.85rem 0 1.1rem;
  color: var(--cyan);
  word-break: break-word;
}
.seat-card.seated .ticket-row {
  flex-direction: column;
  align-items: stretch;
}
.seat-card.seated .spin-btn,
.seat-card.seated .ghost-btn {
  width: 100%;
  text-align: center;
}
.page-account .notice { margin-top: 1.2rem; }
.ghost-btn {
  appearance: none; background: transparent; color: var(--cyan);
  border: 2px solid var(--cyan); border-radius: 999px; padding: .6rem 1rem;
  font-family: Bungee, Impact, sans-serif; cursor: pointer;
}
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 5; }

.page-house .prose { max-width: 72rem; text-align: left; }
.page-house .prose h1 { margin: 0 0 0.6rem; }
.house-lead { color: #f3ead6; line-height: 1.5; max-width: 40rem; }
.house-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.85rem;
  margin: 1.4rem 0 1.6rem;
}
.house-tile {
  background: #120018;
  border: 2px solid #5a3a60;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  text-align: left;
}
.house-tile p {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4b49a;
}
.house-tile strong {
  display: block;
  margin: 0.35rem 0 0.2rem;
  font-family: Bungee, Impact, sans-serif;
  font-size: 1.15rem;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
}
.house-tile span { color: #9ad; font-size: 0.78rem; }
.house-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.house-wide { margin-top: 1.25rem; }
.house-bar {
  display: grid;
  grid-template-columns: 7.5rem 1fr 3rem;
  gap: 0.55rem;
  align-items: center;
  margin: 0.45rem 0;
  font-size: 0.78rem;
}
.house-bar i {
  display: block;
  height: 0.55rem;
  background: var(--pink);
  box-shadow: 0 0 10px #ff2bd655;
  border-radius: 99px;
}
.house-bar em { font-style: normal; color: var(--gold); text-align: right; }
.house-table-wrap { overflow-x: auto; }
.house-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.house-table th, .house-table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid #3a2440;
  text-align: left;
  vertical-align: top;
}
.house-table th { color: var(--cyan); font-weight: 400; letter-spacing: 0.06em; }
.house-empty, .house-list { color: #e8dcc8; }
.house-list { padding-left: 1.1rem; }
.page-house code { color: var(--lime); }
.page-house .top .ghost-btn { padding: 0.35rem 0.7rem; font-size: 0.7rem; }

@media (max-width: 720px) {
  .house-split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .legal-shell { grid-template-columns: 1fr; gap: 0; }
  .legal-rail { position: static; padding: 1.5rem 0 0; }
  .legal-rail nav { flex-direction: row; flex-wrap: wrap; gap: 0.55rem 0.9rem; }
  .legal-body { padding-top: 1.2rem; }
}
@media (max-width: 720px) {
  .cabinet-chrome { grid-template-columns: 1fr; }
  .lever { flex-direction: row; width: 100%; grid-template-columns: auto 1fr auto; align-items: center; }
  .lever .arm { width: 80px; height: 10px; }
  .reel { height: 96px; }
  .strip span { height: 96px; font-size: 1rem; }
  .top { flex-direction: column; }
  .account-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora, .eyebrow, .bulb, .strip.spinning, .digits { animation: none; }
}
