:root {
  color-scheme: dark;
  --bg: #101018;
  --panel: #191923;
  --border: #303040;
  --text: #faf8ff;
  --muted: #b8b6c9;
  --accent: #c8b5ff;
  font-family: "Heebo", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid #dbcfff; outline-offset: 4px; }
h1, h2, p { margin: 0; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--border); background: #14141d; }
.header-inner, .top-nav, .brand, .section-head, .room-actions, .footer { display: flex; align-items: center; }
.header-inner { min-height: 72px; justify-content: space-between; gap: 12px; }
.top-nav { gap: clamp(10px, 2vw, 28px); font-size: .92rem; }
.brand { gap: 8px; font-size: 1.45rem; font-weight: 800; white-space: nowrap; }
.accent, .room-heading a, .form-panel > a { color: var(--accent); }
.mark { display: grid; place-items: center; width: 32px; aspect-ratio: 1; border-radius: 11px; background: #ad8dff; }
.mark i { border-block: 6px solid transparent; border-left: 9px solid #161121; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 11px; background: #232330; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.button.primary { background: var(--accent); border-color: transparent; color: #1d1434; }
.button:hover:not(:disabled) { filter: brightness(1.12); }
.button:disabled { opacity: .65; cursor: default; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: 310px; margin-block: 32px 40px; padding: clamp(24px, 5vw, 64px); border: 1px solid #403252; border-radius: 24px; background: radial-gradient(ellipse at 12% 50%, #4a286a, transparent 58%), #21192f; }
.hero-content { z-index: 1; }
.hero h1 { font-size: clamp(2.65rem, 7vw, 5.3rem); letter-spacing: -.06em; line-height: 1.08; }
.hero h1 span { color: #cfb8ff; }
.hero p { color: #e2d9ef; margin-block: 13px 24px; }
.hero-art { position: absolute; left: 3%; top: 0; width: 39%; height: 100%; display: grid; place-items: center; pointer-events: none; }
.orb { display: grid; place-items: center; width: 48%; aspect-ratio: 1; border-radius: 33%; transform: rotate(-13deg); background: linear-gradient(140deg,#e0bdff,#8760eb 60%,#4d37aa); box-shadow: 0 18px 65px #a755ff69, inset 0 1px 2px #fff9; }
.orb span { border-block: clamp(10px, 2.8vw, 32px) solid transparent; border-left: clamp(17px, 4vw, 48px) solid #fff; margin-left: 5%; }
.orbit { position: absolute; width: 84%; aspect-ratio: 2; border: 1px solid #dcc0ff55; border-radius: 50%; transform: rotate(-24deg); z-index: -1; }
.rooms { margin-block: 30px 48px; }
.section-head { justify-content: space-between; gap: 12px; }
.section-head :is(h1,h2), .room-heading h1 { font-size: clamp(1.65rem, 4vw, 2.4rem); }
.muted { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px 22px; }
.filters a { padding: 7px 15px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; font-size: .92rem; }
.filters [aria-current] { background: var(--accent); color: #1d1434; border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.card, .panel { border: 1px solid var(--border); background: var(--panel); border-radius: 16px; }
.card { overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cover { --glow: #9665eb; --shade: #382051; position: relative; display: grid; place-items: center; aspect-ratio: 16/10; background: repeating-radial-gradient(circle at 50% 64%, transparent 0 20px, #fff1 21px 22px), radial-gradient(ellipse at 50% 62%, var(--glow), var(--shade) 69%); }
.cover.teal { --glow: #4ab79f; --shade: #153d3c; }
.cover.rose { --glow: #d068a2; --shade: #542746; }
.cover.blue { --glow: #698bef; --shade: #252a60; }
.cover.amber { --glow: #bd8258; --shade: #49322e; }
.status { position: absolute; inset: 9px 9px auto auto; background: #14111de8; color: #fff; border-radius: 7px; padding: 3px 7px; font-size: .72rem; }
.cover-play { display: inline-grid; place-items: center; width: 42px; aspect-ratio: 1; border-radius: 50%; background: #171024a6; color: #fff; font-size: .85rem; }
.card-info { display: grid; gap: 1px; padding: 10px 12px; }
.card-info span { color: var(--muted); font-size: .83rem; }
.room-heading { margin-block: 26px 16px; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, 32%); gap: 18px; margin-bottom: 34px; }
.player { aspect-ratio: 16/9; border-radius: 16px; text-align: center; }
.player p { margin-top: 8px; color: white; }
.room-actions { gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.verified { color: var(--accent); margin-inline-end: auto; font-size: .85rem; }
.chat { display: flex; flex-direction: column; min-height: 260px; overflow: hidden; }
.chat h2 { font-size: 1.05rem; padding: 14px; border-bottom: 1px solid var(--border); }
.chat-body { display: grid; align-content: start; gap: 8px; flex: 1; padding: 12px; }
.chat-message { display: block; background: #222232; border-radius: 8px; padding: 8px; }
.chat-message b { color: var(--accent); }
.tip { background: #392b1e; color: #ffe0a9; }
.chat-entry { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--border); }
input { min-width: 0; width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #12121b; color: var(--text); font: inherit; }
.form-panel, .dashboard { padding: clamp(18px, 4vw, 32px); margin-block: 36px; }
.form-panel { max-width: 460px; margin-inline: auto; }
.form-panel form, .form-panel label { display: grid; gap: 8px; }
.form-panel form { margin-block: 16px; gap: 14px; }
.form-panel h1, .dashboard h1 { margin-bottom: 10px; }
.form-panel > .button { margin-top: 12px; }
.error { color: #ffb6c6; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 10px; }
.dashboard-grid > div { border: 1px solid var(--border); border-radius: 12px; padding: 15px; }
.dashboard-grid h2 { font-size: 1rem; }
.footer { min-height: 70px; justify-content: space-between; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
@media (max-width: 950px) {
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 60px; }
  .top-nav > a:first-child { display: none; }
  .top-nav .button { padding-inline: 10px; }
  .hero { min-height: 235px; margin-block: 18px 26px; }
  .hero-art { width: 46%; left: 0; opacity: .48; }
  .hero p { max-width: 220px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .room-layout { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
