:root {
  --bg: #070706;
  --bg-2: #0e0d0b;
  --ink: #e8e0d4;
  --muted: #8a8278;
  --dim: #5c574f;
  --line: rgba(184, 149, 108, 0.28);
  --gold: #b8956c;
  --gold-2: #d4bc93;
  --gold-dim: #7a6244;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --display: "Cinzel", "Cormorant Garamond", serif;
  --sans: "Outfit", "Avenir Next", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.01em;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

.frame {
  pointer-events: none;
  position: fixed;
  inset: 14px;
  z-index: 30;
  border: 1px solid var(--line);
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 28px 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.mark {
  font-family: var(--display);
  letter-spacing: 0.38em;
  color: var(--gold-2);
  font-weight: 500;
}

.notice {
  position: relative;
  z-index: 20;
  max-width: 62rem;
  margin: 1.6rem auto 1.1rem;
  padding: 0 28px;
  text-align: center;
}

.notice .kicker {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.notice p {
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.55;
  font-weight: 400;
  color: #cfc6b8;
  max-width: 46rem;
}

.notice a {
  color: var(--gold-2);
  border-bottom: 1px solid rgba(212, 188, 147, 0.35);
}

.legal {
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--dim);
  max-width: 44rem;
}

.stage {
  position: relative;
  z-index: 10;
  width: min(96vw, 1280px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  min-height: 280px;
  background: #000;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.86) contrast(1.05);
}

.veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.78) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.18) 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.stage.ready .veil { opacity: 0.72; }

.fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.fallback[hidden] { display: none; }

.fallback span {
  font-family: var(--display);
  letter-spacing: 0.46em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold-2);
}

.below {
  position: relative;
  z-index: 20;
  width: min(96vw, 720px);
  margin: 1.6rem auto 3.5rem;
  text-align: center;
  padding: 0 20px;
}

.rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.15rem;
  opacity: 0.7;
}

.game-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 0.35rem;
}

.meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.price {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 1.15rem;
}

.was {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--dim);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.now {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold-2);
}

.cta {
  appearance: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-2);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta:hover {
  background: var(--gold);
  color: #140f0a;
}

.cta.ghost {
  border-color: var(--line);
  color: var(--muted);
  margin-top: 0.7rem;
}

.cta.ghost:hover {
  background: transparent;
  color: var(--gold-2);
  border-color: var(--gold);
}

.download {
  display: none;
  margin-top: 0.4rem;
}

.download.show { display: block; }

.fine {
  margin-top: 1.1rem;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open { display: flex; }

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  background: #100e0c;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px 26px 24px;
}

.sheet h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold-2);
  margin: 0 0 0.35rem;
}

.sheet .sub {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  letter-spacing: 0;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem;
}

.tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.7rem 0.4rem;
  cursor: pointer;
}

.tab.on {
  border-color: var(--gold);
  color: var(--gold-2);
}

.pay-frame {
  width: 100%;
  min-height: 520px;
  border: 0;
  background: #fff;
}

.stripe-slot {
  min-height: 80px;
  display: grid;
  place-items: center;
}

.ln {
  text-align: center;
  padding: 0.4rem 0 0.2rem;
}

.ln .addr {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: var(--gold-2);
  word-break: break-all;
}

.qr {
  width: 196px;
  height: 196px;
  margin: 1rem auto;
  background: #fff;
  padding: 8px;
}

.qr img { width: 100%; height: 100%; display: block; }

.home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
}

.home h1 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  font-size: clamp(18px, 3vw, 28px);
  color: var(--gold-2);
  margin: 0 0 0.8rem;
}

.home p {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

@media (max-width: 700px) {
  .frame { inset: 8px; }
  .topbar { padding: 16px 16px 0; }
  .notice { padding: 0 16px; }
  .stage { width: 100%; max-height: 58vh; border-radius: 0; }
  .pay-frame { min-height: 460px; }
}
