:root {
  --bg: #070709;
  --bg2: #101014;
  --card: #16161c;
  --line: rgba(255,255,255,.08);
  --gold: #e0b84c;
  --gold2: #f0d78c;
  --gold-dim: rgba(224,184,76,.16);
  --text: #f4f1ea;
  --muted: #9a9588;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(224,184,76,.12), transparent 50%),
    radial-gradient(800px 400px at 100% 0%, rgba(90,60,20,.18), transparent 45%),
    var(--bg);
  color: var(--text);
}
a { color: var(--gold); text-decoration: none; }
button, input, textarea { font-family: inherit; }
.shell { max-width: 1120px; margin: 0 auto; padding: 0 20px 80px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 8px; gap: 16px; }
.brand { font-family: "Playfair Display", serif; font-size: 28px; color: var(--text); }
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { border: 0; cursor: pointer; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1406; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-danger { background: #3a1515; color: #ffd4d0; border: 1px solid #5c2020; }
.hero { padding: 48px 0 24px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
h1, h2, h3 { font-family: "Playfair Display", serif; margin: 8px 0 12px; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 560px; }
.hero-card, .card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.kpi b { display: block; color: var(--gold); font-size: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.muted { color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 12px; }
label { font-size: 13px; color: var(--muted); font-weight: 600; }
input, textarea {
  width: 100%; background: #0d0d11; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.check input { width: auto; margin-top: 3px; }
.error { background: #2a1212; color: #ffc7c2; border: 1px solid #5a2020; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.auth-wrap { max-width: 440px; margin: 40px auto; }
.narrow { max-width: 640px; margin: 32px auto; }
.drop { border: 1px dashed rgba(224,184,76,.35); border-radius: 18px; padding: 28px; text-align: center; background: var(--gold-dim); cursor: pointer; }
.progress { height: 8px; background: #2a2a32; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.room { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; padding-top: 12px; }
.player-wrap { background: #000; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); position: relative; min-height: 220px; }
.player-wrap video { width: 100%; max-height: 62vh; display: block; background: #000; }
.player-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.65); color: var(--gold2); border: 1px solid rgba(224,184,76,.35);
  border-radius: 999px; padding: 12px 18px; font-weight: 700; pointer-events: none;
}
.player-empty { min-height: 280px; display: grid; place-items: center; color: var(--muted); padding: 24px; text-align: center; }
.toolbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.code-pill { letter-spacing: .2em; background: var(--gold-dim); color: var(--gold2); border-radius: 999px; padding: 8px 12px; font-weight: 800; }
.side { display: flex; flex-direction: column; gap: 12px; }
.member { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-top: 8px; }
.tag { font-size: 11px; color: var(--gold); border: 1px solid rgba(224,184,76,.3); border-radius: 99px; padding: 2px 8px; }
.chat { display: flex; flex-direction: column; height: 360px; }
.chat-log { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.msg { font-size: 13px; line-height: 1.4; }
.msg b { color: var(--gold2); }
.chat-form { display: flex; gap: 8px; margin-top: 8px; }
.chat-form input { flex: 1; }
footer.note { margin-top: 56px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 18px; }
.hidden { display: none !important; }
@media (max-width: 860px) {
  .hero, .grid3, .room { grid-template-columns: 1fr; }
  .chat { height: 260px; }
}
