:root {
  --bg: #071a13;
  --bg-deep: #04100b;
  --cream: #f1e8d4;
  --gold: #c7a467;
  --gold-hi: #e9d4a0;
  --gold-lo: #8a6c3e;
  --muted: #b9a97e;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { background: var(--bg-deep); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 50% 18%, #0f3326 0%, transparent 70%),
    linear-gradient(180deg, #0b2a1f 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

.poster {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Intro text ---------- */
.intro {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(40px, 7vh, 80px) 20px 0;
  animation: rise 1.3s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.mark {
  display: block;
  width: clamp(112px, 12vw, 160px);
  height: auto;
  margin: 0 auto clamp(28px, 5vh, 52px);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
}

.headline {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 7.4vw, 96px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}

.wordmark {
  margin: clamp(22px, 3.5vh, 36px) 0 0;
  font-family: var(--serif);
  text-transform: uppercase;
  line-height: 1;
}
.wordmark span { display: block; }
.wm-velvet {
  font-weight: 600;
  font-size: clamp(42px, 6.2vw, 82px);
  letter-spacing: 0.08em;
  padding-left: 0.08em;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 50%, var(--gold-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wm-holdem {
  margin-top: 6px;
  font-weight: 600;
  font-size: clamp(20px, 2.9vw, 38px);
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  color: var(--gold);
  opacity: .9;
}

.tagline {
  margin: clamp(22px, 3.5vh, 34px) 0 0;
  font-size: clamp(18px, 2.2vw, 27px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #e9e3d6;
}

.beta {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.beta span { opacity: .7; letter-spacing: 0; padding: 0 .35em; }

/* ---------- Scene ---------- */
.scene {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin-top: clamp(-60px, -4vw, -10px);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
  animation: fade 1.8s .3s ease both;
}
.scene svg { display: block; width: 100%; height: auto; }
@keyframes fade { from { opacity: 0; } }

.dealer { animation: breathe 6s ease-in-out infinite; transform-origin: 750px 360px; }
@keyframes breathe { 50% { transform: translateY(-2px); } }

/* ---------- Footer ---------- */
.foot {
  padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  color: rgba(241, 232, 212, .42);
  letter-spacing: .04em;
}
.foot p { margin: 4px 0; }
.foot .fine { font-size: 11px; }

/* ---------- 404 ---------- */
.notfound .intro { margin: auto 0; padding-bottom: 40px; }
.notfound a {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 26px;
  border: 1px solid rgba(199, 164, 103, .5);
  border-radius: 999px;
  color: var(--gold-hi);
  text-decoration: none;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: 12px;
}
.notfound a:hover { background: rgba(199, 164, 103, .1); }

@media (max-width: 600px) {
  .scene { overflow: hidden; }
  .scene svg { width: 140%; margin-left: -20%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
