/* Card Party Haven - midnight house-party social casino landing. */

:root {
  --cph-ink: oklch(0.18 0.01 45);
  --cph-night: oklch(0.16 0.04 15);
  --cph-wine: oklch(0.32 0.08 15);
  --cph-plum: oklch(0.28 0.06 340);
  --cph-amber: oklch(0.78 0.14 75);
  --cph-honey: oklch(0.72 0.12 65);
  --cph-ember: oklch(0.62 0.18 35);
  --cph-rose: oklch(0.55 0.14 10);
  --cph-cream: oklch(0.96 0.02 85);
  --cph-paper: oklch(0.94 0.015 80);
  --cph-surface: oklch(0.98 0.012 85);
  --cph-blush: oklch(0.92 0.03 55);
  --cph-dust: oklch(0.90 0.02 320);
  --cph-muted: oklch(0.48 0.02 50);
  --cph-line: oklch(0.18 0.01 45 / 0.14);
  --cph-on-dark: oklch(0.96 0.02 85);
  --cph-on-dark-muted: oklch(0.96 0.02 85 / 0.82);
  --cph-body: "Manrope", Arial, sans-serif;
  --cph-display: "Young Serif", Georgia, serif;
  --cph-type-display: clamp(3.5rem, 8vw + 1rem, 7.5rem);
  --cph-type-headline: clamp(2rem, 3vw + 1rem, 3.25rem);
  --cph-type-title: clamp(1.25rem, 1vw + 1rem, 1.6rem);
  --cph-tilt-x: 0deg;
  --cph-tilt-y: 0deg;
  --cph-tilt-lift: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cph-paper);
  color: var(--cph-ink);
  font-family: var(--cph-body);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--cph-ember); outline-offset: 3px; }

.cph-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  padding: .78rem 1.15rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.cph-btn:hover { transform: translateY(-2px); }
.cph-btn-solid {
  border-color: var(--cph-ember);
  background: var(--cph-ember);
  color: var(--cph-cream);
  box-shadow: 0 18px 48px oklch(0.62 0.18 35 / 0.28);
}
.cph-btn-solid:hover {
  background: oklch(0.54 0.16 32);
  border-color: oklch(0.54 0.16 32);
}
.cph-btn-line {
  border-color: oklch(0.96 0.02 85 / 0.54);
  background: oklch(0.16 0.04 15 / 0.72);
  color: var(--cph-on-dark);
}
.cph-btn-line:hover { background: oklch(0.22 0.05 15); }

.cph-agegate[hidden],
.cph-cookies[hidden] { display: none; }
.cph-agegate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, oklch(0.16 0.04 15 / 0.96), oklch(0.28 0.06 340 / 0.9)),
    var(--cph-night);
}
.cph-agegate-card {
  width: min(34rem, 100%);
  border: 1px solid oklch(0.96 0.02 85 / 0.18);
  border-radius: 8px;
  background: var(--cph-cream);
  padding: 2rem;
  box-shadow: 0 34px 90px oklch(0.16 0.04 15 / 0.38);
}
.cph-agegate-label,
.cph-section-intro p,
.cph-room-table {
  margin: 0 0 .65rem;
  color: var(--cph-wine);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}
.cph-hero-kicker {
  margin: 0 0 .65rem;
  color: var(--cph-amber);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cph-agegate-card h2 {
  margin: 0 0 .8rem;
  font-family: var(--cph-display);
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  line-height: 1.12;
}
.cph-agegate-copy { margin: 0 0 1.25rem; color: var(--cph-muted); }
.cph-agegate-leave {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-left: .85rem;
  color: var(--cph-muted);
  font-size: .92rem;
}

.cph-cookies {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  width: min(36rem, calc(100% - 2rem));
  gap: 1rem;
  align-items: center;
  border-radius: 8px;
  background: oklch(0.20 0.02 40);
  color: var(--cph-cream);
  padding: .75rem .85rem;
  box-shadow: 0 20px 60px oklch(0.16 0.04 15 / 0.28);
}
.cph-cookies p { flex: 1; margin: 0; font-size: .82rem; line-height: 1.35; }
.cph-cookies a { color: var(--cph-amber); }
.cph-cookies .cph-btn { min-height: 40px; color: var(--cph-cream); }
.cph-cookies .cph-btn:hover { background: var(--cph-cream); color: var(--cph-ink); }

.cph-masthead,
.cph-pill {
  position: absolute;
  left: 50%;
  z-index: 20;
  width: min(1160px, calc(100% - 32px));
  transform: translateX(-50%);
}
.cph-inner .cph-masthead,
.cph-inner .cph-pill {
  position: sticky;
  transform: none;
  left: auto;
  right: auto;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: max(16px, calc((100vw - 1160px) / 2));
  padding-right: max(16px, calc((100vw - 1160px) / 2));
}
.cph-inner .cph-masthead {
  top: 0;
  background: var(--cph-paper);
  border-bottom: 1px solid var(--cph-line);
  color: var(--cph-ink);
  padding-top: 14px;
  padding-bottom: 10px;
}
.cph-inner .cph-pill {
  top: 0;
  background: var(--cph-paper);
  border-bottom: 1px solid var(--cph-line);
  padding-top: 0;
  padding-bottom: 10px;
  margin-top: -1px;
}
.cph-inner .cph-brand { color: var(--cph-ink); }
.cph-inner .cph-brand-word-sm,
.cph-inner .cph-brand-word { color: var(--cph-ink); }
.cph-inner .cph-masthead-meta span {
  border-color: var(--cph-line);
  background: var(--cph-surface);
  color: var(--cph-ink);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 700;
}
.cph-inner .cph-pill a {
  color: var(--cph-ink);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 700;
}
.cph-inner .cph-pill a:hover { background: var(--cph-blush); }
.cph-masthead {
  top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--cph-on-dark);
}
.cph-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--cph-on-dark);
  text-decoration: none;
}
.cph-brand-word {
  font-family: var(--cph-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}
.cph-brand-word-sm { font-size: 1.45rem; color: var(--cph-on-dark); }
.cph-brand-logo {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
}
.cph-masthead-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: .55rem;
}
.cph-masthead-meta span,
.cph-coins {
  border: 1px solid oklch(0.96 0.02 85 / 0.24);
  border-radius: 999px;
  background: oklch(0.16 0.04 15 / 0.88);
  color: var(--cph-on-dark);
  padding: .45rem .72rem;
  font-size: .76rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}

.cph-pill {
  top: 76px;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: .45rem;
}
.cph-pill a {
  min-height: 38px;
  border-radius: 8px;
  color: oklch(0.96 0.02 85 / 0.9);
  font-size: .78rem;
  font-weight: 700;
  padding: .55rem .75rem;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
}
.cph-pill a:hover { background: oklch(0.22 0.05 15); }
.cph-coins {
  background: var(--cph-honey);
  color: oklch(0.22 0.03 35);
}

.cph-main { width: 100%; margin: 0; }
.cph-main section[id] { scroll-margin-top: 5rem; }
.cph-inner .cph-main section[id] { scroll-margin-top: 7rem; }

.cph-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--cph-on-dark);
  background: var(--cph-night);
}
.cph-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(115deg, oklch(0.96 0.02 85 / 0.08) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, oklch(0.55 0.14 10 / 0.22), transparent 42%, oklch(0.78 0.14 75 / 0.18));
  mix-blend-mode: screen;
  opacity: .62;
  pointer-events: none;
}
.cph-hero-media,
.cph-hero-media img,
.cph-hero-wash {
  position: absolute;
  inset: 0;
}
.cph-hero-media { z-index: -2; }
.cph-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 54%;
}
.cph-hero-wash {
  background:
    linear-gradient(90deg, oklch(0.16 0.04 15 / 0.96) 0%, oklch(0.16 0.04 15 / 0.72) 33%, oklch(0.16 0.04 15 / 0.12) 68%),
    linear-gradient(180deg, oklch(0.16 0.04 15 / 0.7) 0%, oklch(0.16 0.04 15 / 0.04) 44%, oklch(0.16 0.04 15 / 0.9) 100%);
}
.cph-hero-inner {
  display: grid;
  flex: 1;
  width: min(1160px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: end;
  align-content: end;
  margin: 0 auto;
  padding: clamp(7rem, 10vw, 10.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.cph-hero-copy { max-width: 730px; }
.cph-party-strip {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 1px;
  margin-bottom: 1rem;
  border: 1px solid oklch(0.96 0.02 85 / 0.2);
  border-radius: 8px;
  background: oklch(0.16 0.04 15 / 0.88);
  overflow: hidden;
}
.cph-party-strip span {
  background: oklch(0.20 0.04 15);
  color: var(--cph-amber);
  padding: .5rem .68rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}
.cph-hero-head {
  margin: 0 0 1rem;
  font-family: var(--cph-display);
  font-size: var(--cph-type-display);
  line-height: .88;
  text-shadow: 0 16px 44px oklch(0.16 0.04 15 / 0.38);
}
.cph-hero-head span { display: block; }
.cph-hero-head span:last-child {
  color: var(--cph-amber);
  text-shadow:
    0 0 22px oklch(0.78 0.14 75 / 0.38),
    0 16px 44px oklch(0.16 0.04 15 / 0.38);
}
.cph-hero-deck {
  max-width: 68ch;
  margin: 0 0 .75rem;
  color: var(--cph-on-dark-muted);
  font-size: clamp(1rem, 1vw + .85rem, 1.28rem);
  font-weight: 700;
  line-height: 1.55;
}
.cph-hero-note {
  max-width: 68ch;
  margin: 0 0 1.4rem;
  color: var(--cph-amber);
  font-size: .95rem;
  font-weight: 800;
}
.cph-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.cph-hero-ticket {
  align-self: end;
  position: relative;
  z-index: 2;
  border: 1px solid oklch(0.18 0.01 45 / 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cph-cream), oklch(0.93 0.03 70));
  color: var(--cph-ink);
  padding: 1.15rem;
  box-shadow: 0 22px 54px oklch(0.16 0.04 15 / 0.28);
  transform: rotate(-2deg);
}
.cph-hero-ticket span {
  display: block;
  color: var(--cph-rose);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}
.cph-hero-ticket b {
  display: block;
  margin: .3rem 0;
  color: var(--cph-wine);
  font-family: var(--cph-display);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
}
.cph-hero-ticket p { margin: 0 0 .8rem; font-weight: 900; }
.cph-hero-ticket ul {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: .8rem 0 0;
  border-top: 1px dashed var(--cph-line);
  list-style: none;
}
.cph-hero-ticket li {
  color: var(--cph-muted);
  font-size: .86rem;
  font-weight: 800;
}
.cph-card-burst {
  position: absolute;
  right: max(1rem, calc((100vw - 1160px) / 2 + 210px));
  bottom: 14rem;
  z-index: 1;
  display: flex;
  width: 200px;
  height: 150px;
  align-items: end;
  justify-content: center;
  pointer-events: none;
  animation: cph-float 4.8s ease-in-out infinite;
}
.cph-card-burst span {
  display: grid;
  width: 74px;
  height: 106px;
  place-items: center;
  border: 1px solid oklch(0.96 0.02 85 / 0.55);
  border-radius: 8px;
  background: var(--cph-cream);
  color: var(--cph-ink);
  font-family: var(--cph-display);
  font-size: 2.2rem;
  font-weight: 400;
  box-shadow: 0 22px 48px oklch(0.16 0.04 15 / 0.24);
}
.cph-card-burst span:nth-child(1) { transform: rotate(-16deg) translateX(18px); }
.cph-card-burst span:nth-child(2) {
  color: var(--cph-ember);
  transform: translateY(-22px);
}
.cph-card-burst span:nth-child(3) { transform: rotate(15deg) translateX(-18px); }

@keyframes cph-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cph-card-burst { animation: none; }
  .cph-btn,
  .cph-room-card { transition: none; }
}

.cph-why,
.cph-trust,
.cph-lobby,
.cph-game,
.cph-legal {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5rem 0;
}
.cph-section-intro {
  display: grid;
  grid-template-columns: 170px minmax(0, 780px);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
.cph-section-intro p { padding-top: .45rem; }
.cph-section-intro h2 {
  margin: 0;
  font-family: var(--cph-display);
  font-size: var(--cph-type-headline);
  line-height: 1.05;
}
.cph-section-intro-compact { margin-bottom: 1.3rem; }

.cph-why-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.cph-why-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 8px;
  padding: 1.35rem 1.25rem 1.3rem;
  background: var(--cph-surface);
  border: 1px solid var(--cph-line);
  box-shadow: 0 16px 40px oklch(0.18 0.01 45 / 0.06);
}
.cph-why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}
.cph-why-num {
  position: absolute;
  right: .65rem;
  bottom: -.2rem;
  z-index: 0;
  font-family: var(--cph-display);
  font-size: clamp(3.25rem, 5.5vw, 4.75rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}
.cph-why-glyph {
  position: relative;
  z-index: 1;
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: .75rem;
  color: var(--cph-wine);
}
.cph-why-card--night {
  background: linear-gradient(145deg, var(--cph-wine), oklch(0.20 0.05 15) 58%, var(--cph-plum));
  color: var(--cph-on-dark);
  border-color: oklch(0.96 0.02 85 / 0.12);
}
.cph-why-card--night::before {
  background:
    radial-gradient(circle at 88% 18%, oklch(0.78 0.14 75 / 0.22), transparent 42%),
    repeating-linear-gradient(115deg, oklch(0.96 0.02 85 / 0.06) 0 1px, transparent 1px 24px);
}
.cph-why-card--night .cph-why-glyph { color: var(--cph-amber); }
.cph-why-card--night .cph-why-num { color: oklch(0.96 0.02 85 / 0.14); }
.cph-why-card--blush {
  background: var(--cph-blush);
}
.cph-why-card--blush::before {
  background:
    radial-gradient(circle at 12% 88%, oklch(0.62 0.18 35 / 0.12), transparent 48%),
    radial-gradient(circle, oklch(0.18 0.01 45 / 0.05) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}
.cph-why-card--blush .cph-why-glyph { color: var(--cph-ember); }
.cph-why-card--blush .cph-why-num { color: oklch(0.32 0.08 15 / 0.1); }
.cph-why-card--lavender {
  background: oklch(0.91 0.04 45);
}
.cph-why-card--lavender::before {
  background:
    linear-gradient(90deg, oklch(0.18 0.01 45 / 0.04) 1px, transparent 1px),
    linear-gradient(oklch(0.18 0.01 45 / 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.cph-why-card--lavender .cph-why-glyph { color: oklch(0.42 0.06 340); }
.cph-why-card--lavender .cph-why-num { color: oklch(0.32 0.08 15 / 0.1); }
.cph-why-card--rose {
  background: var(--cph-dust);
}
.cph-why-card--rose::before {
  background:
    radial-gradient(circle at 92% 8%, oklch(0.55 0.14 10 / 0.16), transparent 40%),
    repeating-conic-gradient(from 45deg, oklch(0.18 0.01 45 / 0.035) 0 25%, transparent 0 50%);
  background-size: auto, 28px 28px;
}
.cph-why-card--rose .cph-why-glyph { color: var(--cph-rose); }
.cph-why-card--rose .cph-why-num { color: oklch(0.32 0.08 15 / 0.1); }
.cph-why-cols h3,
.cph-room-card-meta h3,
.cph-legal h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 .5rem;
  font-family: var(--cph-display);
  font-size: var(--cph-type-title);
  line-height: 1.15;
}
.cph-why-cols p,
.cph-room-provider,
.cph-game-blurb,
.cph-legal p,
.cph-legal li {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 36ch;
  color: var(--cph-muted);
}
.cph-why-card--night p { color: oklch(0.96 0.02 85 / 0.78); }

.cph-trust {
  width: 100%;
  max-width: none;
  background:
    linear-gradient(110deg, oklch(0.20 0.02 40) 0%, oklch(0.20 0.02 40) 46%, oklch(0.28 0.06 340) 46%, oklch(0.20 0.02 40) 74%),
    var(--cph-ink);
  color: var(--cph-on-dark);
  padding: 4.5rem max(16px, calc((100vw - 1160px) / 2));
}
.cph-trust .cph-section-intro h2 { color: var(--cph-on-dark); }
.cph-trust .cph-section-intro p { color: var(--cph-amber); }
.cph-trust-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  border: 1px solid oklch(0.96 0.02 85 / 0.14);
  border-radius: 8px;
  background: oklch(0.20 0.02 40 / 0.55);
  padding: 1.4rem 1.6rem;
}
.cph-trust-copy {
  max-width: 68ch;
  margin: 0;
  color: var(--cph-on-dark-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}
.cph-trust-copy a {
  color: var(--cph-amber);
  font-weight: 900;
}
.cph-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.cph-partners img {
  width: auto;
  height: 30px;
  max-width: 8.5rem;
}

/* Lobby: uniform room grid */
.cph-lobby-stage {
  overflow: hidden;
}
.cph-room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}
.cph-room-card {
  --cph-tilt-x: 0deg;
  --cph-tilt-y: 0deg;
  --cph-tilt-lift: 0px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--cph-line);
  border-radius: 8px;
  background: var(--cph-surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 40px oklch(0.16 0.04 15 / 0.08);
  transform: perspective(720px) rotateY(var(--cph-tilt-y)) rotateX(var(--cph-tilt-x)) translateY(var(--cph-tilt-lift));
  transition: box-shadow .25s, transform .25s;
}
.cph-room-card:hover {
  --cph-tilt-lift: -5px;
  box-shadow: 0 28px 70px oklch(0.18 0.01 45 / 0.22);
}
.cph-room-card-art {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--cph-night);
  overflow: hidden;
}
.cph-room-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cph-room-card-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1.25rem;
}
.cph-room-card-meta h3 {
  margin: .25rem 0 .4rem;
  overflow-wrap: anywhere;
}
.cph-room-card-meta .cph-room-table {
  margin-bottom: .35rem;
  font-size: .82rem;
}
.cph-room-card-meta .cph-room-provider {
  margin-bottom: auto;
  padding-bottom: .75rem;
  font-size: .88rem;
}
.cph-room-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  margin-top: auto;
  border: 1px solid oklch(0.32 0.08 15 / 0.24);
  border-radius: 999px;
  color: var(--cph-wine);
  padding: .35rem .85rem;
  font-size: .84rem;
  font-weight: 800;
}
.cph-room-card:hover .cph-room-cta {
  background: var(--cph-wine);
  color: var(--cph-cream);
}

@media (min-width: 981px) {
  .cph-room-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.cph-game-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--cph-line);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.cph-back {
  color: var(--cph-wine);
  font-weight: 900;
  text-decoration: none;
}
.cph-game-title {
  margin: 0;
  font-family: var(--cph-display);
  font-size: var(--cph-type-headline);
  line-height: 1;
}
.cph-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--cph-line);
  border-radius: 8px;
  background: var(--cph-night);
  aspect-ratio: 16 / 10;
}
.cph-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cph-game-blurb { margin-top: 1rem; }

.cph-legal {
  max-width: 860px;
  padding-top: 2rem;
}
.cph-inner .cph-legal { padding-top: 1rem; }
.cph-legal h1 {
  margin: 0 0 .4rem;
  font-family: var(--cph-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: .98;
}
.cph-legal-updated {
  margin: 0 0 2rem;
  color: var(--cph-wine);
  font-weight: 900;
}
.cph-legal h2 {
  border-top: 1px solid var(--cph-line);
  padding-top: 1.45rem;
  margin-top: 2rem;
  font-size: 1.35rem;
}
.cph-legal code {
  border-radius: 6px;
  background: var(--cph-surface);
  padding: .12rem .32rem;
}

.cph-footer {
  background:
    linear-gradient(135deg, oklch(0.32 0.08 15 / 0.95), oklch(0.20 0.02 40 / 0.98)),
    var(--cph-ink);
  color: var(--cph-cream);
  padding: 3rem 1.5rem 1.5rem;
}
.cph-footer-grid {
  display: grid;
  width: min(1160px, 100%);
  grid-template-columns: minmax(0, 1.6fr) minmax(10rem, .75fr) minmax(0, 1.2fr);
  gap: 2rem;
  margin: 0 auto;
}
.cph-footer-brand p,
.cph-footer-rg p,
.cph-footer-fine {
  color: oklch(0.96 0.02 85 / 0.72);
  font-size: .9rem;
}
.cph-footer-addr { font-style: italic; }
.cph-footer-links {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.cph-footer-links a {
  color: var(--cph-cream);
  font-size: .9rem;
  font-weight: 900;
  text-decoration: none;
}
.cph-footer-links a:hover,
.cph-footer-rg a { color: var(--cph-amber); }
.cph-agebadge {
  display: inline-flex;
  min-width: 3rem;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cph-honey);
  border-radius: 999px;
  color: var(--cph-honey);
  font-weight: 900;
}
.cph-footer .cph-partners { margin-top: 1rem; }
.cph-footer-fine {
  width: min(1160px, 100%);
  margin: 1.6rem auto 0;
}

@media (max-width: 980px) {
  .cph-hero {
    min-height: min(82svh, 760px);
  }
  .cph-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    padding-top: clamp(6.75rem, 11vw, 9.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
  }
  .cph-hero-ticket { max-width: 360px; }
  .cph-card-burst {
    right: 2rem;
    bottom: 12rem;
    opacity: .55;
  }
  .cph-section-intro {
    grid-template-columns: 1fr;
    gap: .3rem;
  }
  .cph-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cph-masthead {
    top: 12px;
    display: flex;
    justify-items: stretch;
  }
  .cph-brand-word { font-size: 1.25rem; }
  .cph-masthead-meta { display: none; }
  .cph-pill {
    top: 62px;
    display: flex;
    justify-content: start;
    gap: .35rem;
    overflow-x: auto;
    padding-bottom: .2rem;
  }
  .cph-pill a {
    flex: 0 0 auto;
    background: oklch(0.16 0.04 15 / 0.88);
    font-size: .72rem;
  }
  .cph-coins { display: none; }
  .cph-hero {
    display: block;
    min-height: auto;
  }
  .cph-hero-inner {
    flex: none;
    width: min(100% - 24px, 1160px);
    min-height: auto;
    align-items: start;
    align-content: start;
    padding-top: clamp(6.5rem, 18vw, 7.75rem);
    padding-bottom: 2.5rem;
  }
  .cph-party-strip { display: none; }
  .cph-hero-actions { gap: .65rem; }
  .cph-hero-actions,
  .cph-agegate-card .cph-btn,
  .cph-btn { width: 100%; }
  .cph-agegate-leave { margin-left: 0; margin-top: .5rem; }
  .cph-hero-ticket,
  .cph-card-burst { display: none; }
  .cph-why,
  .cph-trust,
  .cph-lobby,
  .cph-game,
  .cph-legal {
    width: min(100% - 24px, 1160px);
    padding: 3.5rem 0;
  }
  .cph-why-cols,
  .cph-footer-grid,
  .cph-trust-row {
    grid-template-columns: 1fr;
  }
  .cph-trust {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  .cph-room-card-meta h3 { font-size: 1.05rem; }
  .cph-game-bar { display: grid; }
  .cph-frame { aspect-ratio: 4 / 5; }
  .cph-inner .cph-legal { padding-top: .5rem; }
  .cph-cookies {
    right: .5rem;
    bottom: .5rem;
    display: flex;
    width: calc(100% - 1rem);
    gap: .55rem;
    padding: .55rem;
  }
  .cph-cookies p {
    font-size: .68rem;
    line-height: 1.25;
  }
  .cph-cookies .cph-btn {
    width: auto;
    min-height: 32px;
    padding: .35rem .65rem;
    font-size: .72rem;
  }
}
