/* 702 casino world — DOM layer. The canvas is presentation; every word lives here.
   Palette: gold/cream, orange #EA7237, gold #EDC876, on near-black plum. */
:root {
  --cream: #f3e9d2;
  --gold: #edc876;
  --orange: #ea7237;
  --ink: #120a10;
  --panel: rgba(18, 10, 16, 0.82);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #17101a;
  color: var(--cream);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Poster (tier 0) sits where the canvas will be; JS fades it out when the
   scene is live, and it stays for static / reduced-motion / no-WebGL. */
#poster {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(120% 90% at 50% 20%, #3a1626 0%, #1c0f1c 55%, #0d070d 100%);
}
#poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
#poster.gone { opacity: 0; pointer-events: none; transition: opacity 0.9s ease; }

#scene { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 5;
  background: var(--gold); color: var(--ink); padding: 0.5rem 0.9rem;
  border-radius: 0 0 8px 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 0; }

main { position: relative; z-index: 1; pointer-events: none; /* clicks fall through to the world; controls opt back in below */ }
.chapter {
  min-height: 150vh; /* scroll room = travel time between camera stops */
  display: flex; align-items: flex-end;
  padding: 4rem 1.25rem 12vh;
  pointer-events: none; /* clicks fall through to the world; controls opt back in */
}
.chapter:first-child { align-items: center; padding-bottom: 4rem; }
.panel {
  /* No card, no box: the words sit directly on the floor of the space.
     The default panel styling is banned (Michael, 2026-12-01/02). */
  max-width: 34rem;
}
.panel a, .panel button, .panel input, .panel textarea, .panel label { pointer-events: auto; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.12; margin: 0.2rem 0 0.8rem; color: var(--gold); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 0.6rem; color: var(--gold); }
.kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--orange); margin: 0; }
.hint { color: var(--gold); font-size: 0.95rem; }
.result { font-weight: 600; color: var(--gold); min-height: 1.6em; }
.services, .steps { padding-left: 1.2rem; }
.services li, .steps li { margin: 0.45rem 0; }
button {
  background: var(--orange); color: #fff; border: 0; border-radius: 999px;
  padding: 0.65rem 1.4rem; font: inherit; font-weight: 700; cursor: pointer;
}
button:hover, button:focus-visible { background: #f4834a; }
button:disabled { opacity: 0.55; cursor: wait; }
a { color: var(--gold); }
form { display: grid; gap: 0.7rem; margin-top: 0.8rem; }
label { display: grid; gap: 0.3rem; font-size: 0.95rem; }
input, textarea {
  font: inherit; color: var(--ink); background: var(--cream);
  border: 2px solid transparent; border-radius: 8px; padding: 0.5rem 0.7rem;
}
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.tier-note {
  position: fixed; right: 0.8rem; bottom: 0.6rem; z-index: 4;
  font-size: 0.78rem; color: rgba(243, 233, 210, 0.75);
  background: rgba(18, 10, 16, 0.6); padding: 0.2rem 0.6rem; border-radius: 6px;
}
@media (max-width: 640px) {
  .chapter { padding: 3rem 0.8rem 10vh; }
}
