*{margin:0;padding:0;box-sizing:border-box}

html,body{
  width:100%;
  height:100%;
  background:#000;
  overflow:hidden;
  color:#fff;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* ===== VIDEO ===== */
#video-layer{
  position:fixed;
  inset:0;
  background:#000;
  z-index:1;
}

.v{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  object-fit:cover;        /* fullscreen real */
  background:#000;
  opacity:0;
  transition:opacity 1s ease, transform .25s ease;
}

.v.active{ opacity:1 }

/* ===== UI LAYER ===== */
#ui-layer{
  position:fixed;
  inset:0;
  z-index:10;
  pointer-events:auto;     /* IMPORTANTE: la UI es clickeable */
}

/* ===== START OVERLAY ===== */
#startOverlay{
  position:fixed;
  inset:0;
  z-index:100;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
}

#startOverlay .panel{
  text-align:center;
}

#startOverlay button{
  margin-top:12px;
  padding:10px 16px;
  border-radius:999px;
  border:none;
  background:#3b82f6;
  color:#fff;
  font-weight:700;
}

/* ===== TOP BAR ===== */
#topbar{
  position:fixed;
  top:0; left:0; right:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px;
  background:linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
}

#status{
  font-weight:600;
}

#status .dot{ color:#4ade80; margin-right:6px }

.btn{
  padding:8px 12px;
  border-radius:999px;
  border:none;
  background:rgba(255,255,255,.15);
  color:#fff;
  cursor:pointer;
}

.btn.wide{ width:100% }

/* ===== SIDE MENU ===== */
#sideMenu{
  position:fixed;
  top:0; right:0;
  width:280px;
  height:100%;
  background:rgba(0,0,0,.85);
  backdrop-filter: blur(10px);
  padding:16px;
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 20;              /* 🔥 clave */
}

#sideMenu.open{
  transform: translateX(0%);
}


#sideMenu h2{
  margin-bottom:12px;
}

.setting{
  margin-bottom:14px;
}

.setting label{
  display:block;
  margin-bottom:6px;
  opacity:.9;
}

.setting input[type=range], .setting select{
  width:100%;
}

.mini{
  font-size:12px;
  opacity:.8;
}

/* ===== BOTTOM INPUT ===== */
#bottom{
  position:fixed;
  left:0; right:0; bottom:0;
  padding:14px;
}

#inputWrap{
  max-width:720px;
  margin:0 auto;
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:999px;
  background:rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}

#msg{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  color:#fff;
  font-size:16px;
}

#send{
  padding:10px 16px;
  border:none;
  border-radius:999px;
  background:#3b82f6;
  color:#fff;
  font-weight:800;
}
