/* Remote Studio web (espectador, pensado para celular) — branding Dimelo Fvcu */
@font-face { font-family: "Drip"; src: url("assets/RubikWetPaint-Regular.ttf") format("truetype"); font-display: block; }

:root {
  --bg: #07060b; --panel: #100d18; --panel-2: #171224; --line: #241c38; --line-2: #33294f;
  --text: #eeeaf8; --muted: #9a92b4; --accent: #9d6bff; --accent-hi: #c6a8ff;
  --glow: rgba(157,107,255,.5); --glow-soft: rgba(157,107,255,.18); --warn: #ffb547; --danger: #ff4d6d;
  --font: -apple-system, "Segoe UI", system-ui, Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; color: var(--text); font: 15px/1.45 var(--font); }
body {
  background: radial-gradient(700px 420px at 80% -10%, rgba(120,70,255,.18), transparent 70%), var(--bg);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.hidden { display: none !important; }
button, input, select { font: inherit; color: inherit; }

.drip { font-family: "Drip", var(--font); font-weight: 400; }
.neon { color: #e9ddff; text-shadow: 0 0 4px rgba(198,168,255,.9), 0 0 14px var(--glow), 0 0 32px rgba(157,107,255,.35); }
.sight { color: var(--accent-hi); filter: drop-shadow(0 0 6px var(--glow)); }

/* ---------- Entrar ---------- */
.join { max-width: 420px; margin: 0 auto; padding: 28px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { margin: 0; font-size: 44px; line-height: .95; }
.sub { color: var(--muted); margin: 0 0 4px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field select { color: var(--text); font-size: 16px; background: #0b0912; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-soft); }
.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-align: center; font-size: 22px !important; }
.note { color: var(--warn); min-height: 20px; margin: 0; }
.privacy { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.privacy a { color: var(--accent-hi); }
.made { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .1em; margin-top: 8px; }
.made b { color: var(--accent-hi); }

.btn { border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.btn.primary { background: linear-gradient(180deg, #a77bff, #8455f0); border-color: #b08cff; color: #fff; font-weight: 700; box-shadow: 0 0 18px rgba(157,107,255,.35); }
.btn.big { padding: 15px; font-size: 17px; }
.btn.danger { border-color: rgba(255,77,109,.5); color: #ffb3c1; background: rgba(255,77,109,.08); }
.btn:disabled { opacity: .5; }

/* ---------- Sala ---------- */
.room { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.stage { position: relative; background: #000; width: 100%; aspect-ratio: 16 / 9; max-height: 70vh; overflow: hidden; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
.fs { position: absolute; right: 8px; bottom: 8px; z-index: 5; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(157,107,255,.6); background: rgba(14,8,22,.7); color: #e9ddff; font-size: 18px; }

.speakers { position: absolute; z-index: 3; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.spk { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(10,7,16,.72); border: 1px solid rgba(157,107,255,.25);
  font-size: 12px; font-weight: 600; opacity: .45; transition: opacity .15s, box-shadow .15s; max-width: 46vw; }
.spk .av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 11px; color: #fff; background: linear-gradient(160deg, #a77bff, #5b2fd1); }
.spk .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spk.on { opacity: 1; border-color: rgba(157,107,255,.9); box-shadow: 0 0 12px rgba(157,107,255,.45); }
.spk.on .av { box-shadow: 0 0 0 2px #c6a8ff, 0 0 10px rgba(157,107,255,.9); }
.spk.muted .nm::after { content: " 🔇"; font-size: 10px; }

.net-banner { position: absolute; z-index: 6; left: 50%; top: 8px; transform: translateX(-50%); width: max-content; max-width: 88%; padding: 6px 12px; border-radius: 10px; font-size: 12px; text-align: center;
  background: rgba(40,24,6,.9); border: 1px solid rgba(255,181,71,.7); color: #ffe2b0; pointer-events: none; }
.net-banner.good { background: rgba(14,8,22,.9); border-color: rgba(157,107,255,.8); color: #e9ddff; }

.controls { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mic { flex: 1 1 160px; padding: 14px; font-weight: 700; font-size: 16px; border-color: var(--accent); color: #fff; background: rgba(157,107,255,.25); }
.mic.off { border-color: rgba(255,77,109,.6); background: rgba(255,77,109,.14); color: #ffc2cd; }
.sliders { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; }
.sliders label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sliders span { width: 44px; }
.sliders input { flex: 1; accent-color: var(--accent); }

.people { padding: 12px; }
.people-h { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.status { margin-left: auto; letter-spacing: 0; text-transform: none; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(157,107,255,.16); color: var(--accent-hi); }
.person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #0b0912; margin-bottom: 8px; }
.person .nm { flex: 1; }
.person .role { font-size: 11px; color: var(--muted); }
.person .dot { width: 9px; height: 9px; border-radius: 50%; background: #2a2340; }
.person .dot.on { background: var(--accent-hi); box-shadow: 0 0 8px var(--accent); }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 12px;
  background: #1b1529; border: 1px solid var(--line-2); transition: opacity .2s, transform .2s; max-width: 88%; text-align: center; z-index: 10; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Celular acostado: video más grande */
@media (orientation: landscape) and (max-height: 520px) {
  .room { flex-direction: row; }
  .stage { aspect-ratio: auto; height: 100vh; height: 100dvh; max-height: none; flex: 1; }
  .controls { flex-direction: column; align-items: stretch; width: 230px; border-bottom: 0; border-left: 1px solid var(--line); }
  .people { display: none; }
}
/* PC: centrado */
@media (min-width: 900px) {
  .room { max-width: 1100px; margin: 0 auto; }
  .stage { border-radius: 0 0 14px 14px; }
}
