:root {
  --bg: #0a1018;
  --bg-raise: #121a26;
  --bg-card: #17202e;
  --ink: #f3f6fb;
  --muted: #a8b3c4;
  --faint: #6d7a8d;
  --line: #243044;
  --teal: #2ee6c0;
  --teal-dim: #1aa888;
  --gold: #f0b429;
  --grad: linear-gradient(90deg, #2ee6c0 0%, #5ee0c8 55%, #f0b429 100%);
  --danger: #ff6b7a;
  --ok: #2ee6c0;
  --radius: 14px;
  --header-h: 74px;
  --font: "Plus Jakarta Sans", "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(1000px 480px at 0% -10%, rgba(46, 230, 192, 0.1), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(240, 180, 41, 0.07), transparent 50%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #111;
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(10, 16, 24, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--gold);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.wordmark {
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.05em;
  line-height: 1;
}
.wordmark .cams { color: var(--ink); }
.wordmark .free { color: var(--teal); }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.nav a, .nav-drop > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border: 0;
  background: none;
}
.nav a:hover, .nav-drop > summary:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(46, 230, 192, 0.08);
}
.nav a[aria-current="page"] { color: var(--teal); }
.nav-drop { position: relative; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}
.nav-drop .menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  display: none;
  z-index: 30;
}
.nav-drop[open] .menu { display: grid; }
.nav-drop .menu a {
  border-radius: 8px;
  padding: 8px 10px;
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  color: #06221b;
  background: var(--teal);
  box-shadow: 0 0 0 1px rgba(46, 230, 192, 0.35);
}
.btn-primary:hover { background: #5aefce; }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn-lg { padding: 13px 22px; font-size: 1rem; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  margin: 4px auto;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
main { padding-bottom: 80px; }

.hero { padding: 56px 0 28px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.hero h1, .prose-block h2, .section-head h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 16px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); max-width: 20ch; }
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 64ch;
  margin: 0 0 22px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.fine {
  color: var(--faint);
  font-size: 0.82rem;
  margin: 10px 0 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 16px;
}
.section-head h2 { font-size: 1.45rem; margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }

.prose-block {
  max-width: 72ch;
  margin: 36px 0;
}
.prose-block h2 { font-size: 1.4rem; }
.prose-block p { color: var(--muted); margin: 0 0 14px; }
.prose-block p strong { color: var(--ink); font-weight: 650; }
.prose-block ul, .prose-block ol {
  color: var(--muted);
  padding-left: 1.2em;
  margin: 0 0 16px;
}
.prose-block li { margin: 0 0 8px; }
.prose-block a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--teal-dim);
  text-underline-offset: 3px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.info-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}
.info-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.info-card a { color: var(--teal); text-decoration: none; font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

.live-panel {
  background: rgba(18, 26, 38, 0.75);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.live-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(46, 230, 192, 0.16);
  display: inline-block;
  margin-right: 8px;
}
.rooms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.room {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #0c141e;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.room:hover { border-color: var(--teal-dim); }
.room-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #15202e;
  overflow: hidden;
}
.room-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.room-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--ink);
}
.pill-live { color: #b8ffef; }
.pill-private { color: #1a1404; background: var(--gold); }
.room-meta { padding: 9px 10px 11px; }
.room-name {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-sub {
  color: var(--faint);
  font-size: 0.75rem;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-viewers { color: var(--muted); font-size: 0.75rem; margin-top: 4px; }

.rooms-empty, .rooms-error, .rooms-loading {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

.cta-band {
  margin: 48px 0 10px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(46, 230, 192, 0.12), transparent 60%),
    var(--bg-raise);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-band h2 { margin: 0 0 8px; font-size: 1.4rem; letter-spacing: -0.04em; }
.cta-band p { margin: 0; color: var(--muted); max-width: 54ch; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.site-footer h2 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.footer-note {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--faint);
  font-size: 0.8rem;
}
.footer-note p { margin: 0 0 8px; }

.age-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 8, 14, 0.82);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-gate.is-open { display: flex; }
.age-card {
  width: min(460px, 100%);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  text-align: center;
  box-shadow: inset 0 3px 0 var(--gold);
}
.age-card img { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 16px; }
.age-card h2 { margin: 0 0 10px; letter-spacing: -0.04em; }
.age-card p { color: var(--muted); margin: 0 0 18px; }
.age-actions { display: flex; flex-direction: column; gap: 10px; }
.age-actions .btn { width: 100%; }

.legal h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 40px 0 8px; letter-spacing: -0.04em; }
.legal .prose-block { margin-top: 18px; }

@media (max-width: 980px) {
  .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .nav { display: none; }
  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(10, 16, 24, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    gap: 4px;
  }
  .nav-drop .menu { position: static; display: grid; border: 0; background: transparent; padding: 0 0 0 10px; }
  .nav-toggle { display: inline-block; }
  .header-tools .btn-primary { display: none; }
}
@media (max-width: 640px) {
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .wordmark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
