/* Cinzel and Cinzel Decorative: SIL OFL 1.1, Natanael Gama / The Cinzel Project.
   Source Sans 3: SIL OFL 1.1, Adobe. Files live in /fonts. */
@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/cinzel-decorative-400.woff2?v=20261019-7") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/cinzel-decorative-700.woff2?v=20261019-7") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-600.woff2?v=20261019-7") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-700.woff2?v=20261019-7") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-400.woff2?v=20261019-7") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-600.woff2?v=20261019-7") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-700.woff2?v=20261019-7") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #f7f1e6;
  --muted: #e4d5c0;
  --quiet: #cbbba4;
  --navy: #07060c;
  --navy-2: #141018;
  --panel: rgba(16, 12, 18, 0.88);
  --gold: #e4b15a;
  --gold-2: #f6e3b8;
  --gold-deep: #8d5a18;
  --wine: #8d3142;
  --felt: #143d2c;
  --line: rgba(228, 177, 90, 0.46);
  --display: "Cinzel Decorative", "Cinzel", Palatino, Georgia, serif;
  --title: "Cinzel", Palatino, Georgia, serif;
  --text: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  --header: 4.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; scroll-behavior: smooth; }
html:not(.age-ok), html:not(.age-ok) body { overflow: hidden; }
html, body { margin: 0; max-width: 100%; }
body {
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(228, 177, 90, 0.16), transparent 60%),
    radial-gradient(700px 380px at 100% 8%, rgba(141, 49, 66, 0.16), transparent 55%),
    var(--navy);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); }
a:hover { color: #fff; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 0.35em;
  letter-spacing: 0.03em;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 0.4em; }
h3 { font-size: 1.35rem; margin: 0 0 0.35em; }
p { margin: 0 0 0.85em; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }

.hero h1, .room-intro h1, .page-hero h1, .age-card h2 { color: var(--gold-2); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1, .room-intro h1, .page-hero h1, .age-card h2 {
    background-image: linear-gradient(100deg, #a8742c 0%, #f8e7c0 22%, #fffaf0 38%, #e4b15a 52%, #fff6df 68%, #c8923a 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.45));
  }
}
.hero h1, .room-intro h1 {
  animation: shimmer 7s linear infinite;
}

.skip-link {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  background: var(--gold);
  color: #1a1208;
  padding: 0.55rem 0.85rem;
  z-index: 80;
  min-height: 44px;
}
.skip-link:focus { top: 0.6rem; }

.wrap { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }
.kicker {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-family: var(--title);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65), 0 0 12px rgba(228, 177, 90, 0.35);
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 6, 12, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.site-header::after {
  content: "";
  display: block;
  height: 12px;
  background:
    radial-gradient(circle at 8px 6px, #fff6d4 0 2.5px, #e4b15a 3.5px, rgba(90, 50, 10, 0.2) 5px, transparent 6px) 0 0 / 22px 12px repeat-x;
  animation: chase 1.8s linear infinite;
  pointer-events: none;
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
  min-width: 0;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(228, 177, 90, 0.18), 0 0 16px rgba(228, 177, 90, 0.35);
  flex: 0 0 auto;
}
.brand strong {
  display: block;
  font-family: var(--title);
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.brand small {
  display: block;
  color: var(--quiet);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.2rem; align-items: center; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-nav a:hover { border-color: var(--line); color: var(--gold-2); }
.site-nav a[aria-current="page"] {
  color: #1a1208;
  background: var(--gold);
  font-weight: 700;
}
button.button.menu-toggle { display: none; }

.credit-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.2rem 0.4rem 0.2rem 0.8rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 244, 214, 0.18), transparent 55%),
    rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 196, 0.18), 0 0 18px rgba(228, 177, 90, 0.18);
  min-height: 44px;
}
.credit-pill b {
  font-family: var(--title);
  font-variant-numeric: tabular-nums;
  color: var(--gold-2);
  letter-spacing: 0.04em;
}
.credit-pill span { color: var(--quiet); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }

.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  touch-action: manipulation;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.button.primary {
  background: linear-gradient(180deg, #f3ddb0, #e4b15a 45%, #b8862f);
  color: #1c1308;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 18px rgba(0, 0, 0, 0.28);
}
.button.primary:hover { background: linear-gradient(180deg, #fff6df, #f0cc86 50%, #c9973d); }
.button.ghost { border-color: var(--line); color: var(--ink); background: rgba(0, 0, 0, 0.2); }
.button.ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.button.small { min-height: 44px; padding: 0.4rem 0.85rem; }
.button:active { transform: scale(0.97); }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1rem 0; justify-content: center; }

.hero { padding: 1.6rem 0 0.4rem; }
.hero-stage { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-stage .lede { margin-inline: auto; }
.hero-frame {
  position: relative;
  width: min(920px, 100%);
  margin: 0.4rem auto 1.2rem;
  border-radius: 1.3rem;
  overflow: hidden;
  border: 1px solid rgba(246, 227, 184, 0.45);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 236, 196, 0.2);
}
.hero-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-frame .light-chase { position: absolute; left: 0.7rem; right: 0.7rem; top: 0.55rem; }

.light-chase {
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 8px 7px, #fff8e4 0 2.5px, #e8c27a 3.4px, rgba(40, 22, 6, 0.35) 5px, transparent 6.5px) 0 0 / 22px 14px repeat-x;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}
.light-chase::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 220, 0.95), transparent);
  animation: sweep 2.4s linear infinite;
}

.phrase-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 46rem;
}
.phrase-row li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  color: var(--gold-2);
  background: rgba(8, 6, 12, 0.72);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.chapter-nav {
  position: sticky;
  top: calc(var(--header) + 12px);
  z-index: 15;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  max-width: 100%;
  padding: 0.55rem 0;
  background: rgba(7, 6, 12, 0.94);
  border-bottom: 1px solid rgba(228, 177, 90, 0.22);
}
.chapter-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chapter-nav a:hover { border-color: var(--line); color: var(--gold-2); }

.section { padding: 3.2rem 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 1.4rem; }
.section-head .lede, .section-head p { margin-inline: auto; }

.chapter {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: center;
  padding: 2.6rem 0;
  border-top: 1px solid rgba(228, 177, 90, 0.18);
}
.chapter.flip { grid-template-columns: 0.95fr 1.05fr; }
.chapter.flip .chapter-copy { order: 2; }
.chapter-index {
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 0.85;
  margin: 0;
  color: rgba(246, 227, 184, 0.42);
}
.frame {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(243, 221, 176, 0.35);
  min-height: 220px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.frame.portrait img, .frame.tall img { aspect-ratio: 3 / 4; }
.frame.four img { aspect-ratio: 4 / 3; }
.caption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  margin: 0;
  padding: 0.3rem 0.6rem;
  background: rgba(8, 6, 12, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.room-grid.rooms-four { perspective: 1200px; }
.room-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(180deg, rgba(228, 177, 90, 0.08), transparent 28%),
    var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.room-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room-card div { padding: 1rem 1rem 1.15rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.room-card p { color: var(--muted); }
.room-card .button { margin-top: 0.45rem; }
.room-card:active { transform: scale(0.985); }

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
}
.note-list { padding-left: 1.1rem; }
.note-list li { margin: 0.4rem 0; }

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 7rem;
  background:
    linear-gradient(180deg, rgba(228, 177, 90, 0.05), transparent 80px),
    #08060c;
  text-align: left;
}
.site-footer::before {
  content: "";
  display: block;
  height: 10px;
  margin: -2.4rem 0 1.6rem;
  background: radial-gradient(circle at 8px 5px, #fff6d4 0 2px, #e4b15a 3px, transparent 5px) 0 0 / 20px 10px repeat-x;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 1.2rem 1.4rem;
}
.footer-grid a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  margin: 0;
}
.footer-grid a:hover { color: var(--gold-2); }
.footer-grid h2 { font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; }
.compliance {
  margin-top: 1.4rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(228, 177, 90, 0.07);
}
.compliance strong { display: block; margin-bottom: 0.45rem; color: var(--gold-2); letter-spacing: 0.02em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1rem;
  color: var(--quiet);
  font-size: 0.95rem;
}

#age-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(6, 5, 10, 0.78), rgba(6, 5, 10, 0.9)),
    url("../assets/room-night.jpg?v=20261019-7") center/cover;
}
html.age-ok #age-gate { display: none; }
.age-card {
  width: min(560px, 100%);
  background: rgba(12, 9, 16, 0.94);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  padding: 1.35rem 1.3rem 1.2rem;
  box-shadow: var(--shadow), 0 0 0 6px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: rise-in 0.45s var(--ease) both;
}
.age-card .actions { justify-content: center; }
.age-card p { color: var(--muted); }
.age-mark {
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto 0.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold-2);
  font-family: var(--display);
  font-size: 1.25rem;
  box-shadow: 0 0 18px rgba(228, 177, 90, 0.35), inset 0 0 12px rgba(228, 177, 90, 0.2);
}
#cookie-bar {
  position: fixed;
  z-index: 30;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  width: min(820px, calc(100% - 1.6rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: rgba(14, 11, 18, 0.96);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
#cookie-bar p { margin: 0; flex: 1 1 16rem; }
html:not(.age-ok) #cookie-bar { display: none; }
#pause-banner {
  background: #3d2418;
  color: var(--gold-2);
  text-align: center;
  padding: 0.65rem 1rem;
  margin: 0;
}

.prose { width: min(42rem, 100%); margin-inline: auto; text-align: left; }
.prose h1, .page-hero h1 { text-align: center; }
.prose .kicker, .page-hero .kicker { text-align: center; }
.page-hero { padding: 2.2rem 0 0.2rem; text-align: center; }
.page-hero .lede { margin-inline: auto; }
.page-hero .frame { margin-top: 1rem; text-align: left; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin-top: 1.7rem; text-align: left; }
.prose p, .prose li { text-align: left; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; max-width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.55rem; text-align: left; vertical-align: top; }
.prose th { background: rgba(228, 177, 90, 0.12); color: var(--gold-2); }
.prose a { overflow-wrap: anywhere; }

.room-intro { text-align: center; padding: 1.5rem 0 0.2rem; }
.room-intro .lede { margin-inline: auto; }
.room-intro .key-still {
  width: min(420px, 100%);
  margin: 0 auto 1rem;
}
.room-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  padding-top: 1.2rem;
}
.play-shell {
  margin: 0.6rem auto 2.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 236, 196, 0.05), transparent 30%),
    rgba(10, 8, 14, 0.82);
  box-shadow: var(--shadow);
  animation: rise-in 0.5s var(--ease) both;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}
.amount-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.6rem;
  margin: 0;
}
.amount-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--quiet);
}
.amount {
  min-width: 3.2rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: var(--title);
  font-size: 1.55rem;
  color: var(--gold-2);
  line-height: 1.1;
}
.msg { min-height: 3rem; color: var(--gold-2); text-align: center; }
.reel-stage { position: relative; width: min(920px, 100%); margin-inline: auto; }
.reel-stage canvas { width: 100%; height: auto; border-radius: 0.45rem; display: block; }
#reels { background: #1a120c; }
#lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; background: transparent; }
dialog {
  width: min(640px, calc(100% - 2rem));
  max-height: min(80dvh, 720px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #16131c;
  color: var(--ink);
  padding: 1rem 1.1rem 1.1rem;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.66); }
dialog .button { margin-top: 0.4rem; }

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.help-grid article, .faq details {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}
.faq details { margin: 0.6rem 0; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.contact-grid a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  overflow-wrap: anywhere;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.contact-grid a:hover { border-color: var(--gold); }
.contact-grid a:active { transform: scale(0.98); }

html.motion .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(16px);
}
.reveal { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.room-card.reveal:nth-child(2) { transition-delay: 0.05s; }
.room-card.reveal:nth-child(3) { transition-delay: 0.1s; }
.room-card.reveal:nth-child(4) { transition-delay: 0.15s; }

@keyframes shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}
@keyframes chase {
  from { background-position: 0 0; }
  to { background-position: 22px 0; }
}
@keyframes sweep {
  from { transform: translateX(-130%); }
  to { transform: translateX(430%); }
}
@keyframes rise-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cabinet {
  position: relative;
  margin: 0.2rem auto 0.4rem;
  padding: 0.85rem 0.75rem 0.9rem;
  border-radius: 1.35rem 1.35rem 0.7rem 0.7rem;
  background:
    linear-gradient(180deg, rgba(255, 236, 196, 0.08), transparent 18%),
    url("../assets/cabinet-marquee.jpg?v=20261019-7") center 18% / cover,
    #2a1c12;
  border: 10px solid #3c2918;
  box-shadow:
    inset 0 0 0 3px rgba(228, 177, 90, 0.75),
    inset 0 0 40px rgba(0, 0, 0, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.4);
}
.cabinet-name {
  margin: 0.15rem 0 0.55rem;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  text-shadow: 0 2px 0 #1a1008, 0 0 12px rgba(228, 177, 90, 0.45);
}
.cabinet .light-chase { margin-bottom: 0.35rem; }
.cabinet.is-live .light-chase::after { animation-duration: 0.7s; }
.reel-stage.has-win #lines { animation: linepulse 0.7s ease-in-out 3; }
@keyframes linepulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.rules-panel {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(8, 6, 12, 0.55);
  color: var(--muted);
}
.rules-panel h2 { font-size: 1.15rem; color: var(--gold-2); }
.scroll-hint { display: none; text-align: center; color: var(--quiet); font-size: 0.9rem; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .room-card:hover {
    transform: translateY(-8px) rotateX(3deg) rotateY(-2deg);
    border-color: var(--gold);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4), 0 0 22px rgba(228, 177, 90, 0.22);
  }
  .frame:hover { transform: translateY(-4px); }
  .contact-grid a:hover { transform: translateY(-3px); }
}

@media (max-width: 900px) {
  button.button.menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.4rem 0.8rem 0.8rem;
    background: #120f18;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; }
  .site-nav a { width: 100%; }
  .chapter, .chapter.flip, .split, .room-top, .footer-grid, .contact-grid, .help-grid { grid-template-columns: 1fr; }
  .chapter.flip .chapter-copy { order: 0; }
  .credit-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chapter-nav { top: calc(var(--header) + 12px); }
}
@media (max-width: 760px) {
  .play-shell { padding-bottom: 9.5rem; }
  .controls {
    position: fixed;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.55rem;
    z-index: 18;
    margin: 0;
    padding: 0.55rem;
    background: rgba(10, 8, 14, 0.96);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  }
  html.cookie-open .controls { bottom: 8.4rem; }
  html:not(.age-ok) .controls { display: none; }
  .controls .button { flex: 1 1 calc(50% - 0.5rem); }
  .controls .button.primary { flex: 1 1 100%; }
  .amount-wrap { flex: 0 0 auto; }
}
@media (max-width: 700px) {
  .room-grid, .card-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .brand strong { font-size: 0.92rem; }
  h1 { font-size: clamp(2.05rem, 10vw, 3rem); }
  .wrap { width: min(1080px, calc(100% - 1.25rem)); }
}
@media (max-width: 380px) {
  .brand strong { max-width: 7.5rem; }
  .credit-pill { padding-left: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.motion .reveal:not(.is-in),
  .reveal { opacity: 1; transform: none; }
  .hero h1, .room-intro h1, .page-hero h1, .age-card h2, .gold-text {
    animation: none;
    background: none;
    color: var(--gold-2);
    filter: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
  }
}
