:root {
  --bg: #0a0a0f; --panel: #14141c; --borde: #262633;
  --oro: #f0b90b; --txt: #f3f4f6; --suave: #9ca3af; --error: #f87171;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt);
  font-family: 'Segoe UI', system-ui, sans-serif; }

.centro { max-width: 440px; margin: 0 auto; padding: 56px 16px; }
h1 { margin: 0 0 24px; font-size: 1.6rem; color: var(--oro); }
.meta { color: var(--suave); font-size: .875rem; }
.error { min-height: 1.4em; margin: 12px 0 0; color: var(--error); }
.aviso { min-height: 1.4em; margin: 0 0 12px; color: var(--oro); }

input, button { font: inherit; border-radius: 8px; border: 1px solid var(--borde); }
input { width: 100%; padding: 12px 14px; background: var(--panel); color: var(--txt); }
input:focus { outline: 2px solid var(--oro); outline-offset: -1px; }
button { padding: 12px 18px; cursor: pointer; background: var(--oro); color: #0a0a0f; font-weight: 600; border-color: var(--oro); }
button:hover:not(:disabled) { filter: brightness(1.1); }
button:disabled { cursor: not-allowed; opacity: .45; }
button.sec { background: transparent; color: var(--suave); border-color: var(--borde); margin-top: 24px; }
#formClave { display: flex; gap: 10px; }
#formClave input { flex: 1; }

#pcs { display: grid; gap: 10px; }
.pc { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  background: var(--panel); color: var(--txt); border-color: var(--borde); font-weight: 400; text-align: left; }
.pc:hover:not(:disabled) { border-color: var(--oro); filter: none; }
.pc .nombre { font-weight: 600; overflow-wrap: anywhere; }

#sesion { display: flex; flex-direction: column; height: 100%; }
.barra { height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: var(--panel); border-bottom: 1px solid var(--borde); }
.barra button { margin-left: auto; padding: 6px 14px; background: #dc2626; border-color: #dc2626; color: #fff; }
.lienzo { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
canvas { display: block; max-width: 100vw; max-height: calc(100vh - 44px); background: #000; }
.estado { position: absolute; margin: 0; color: var(--suave); }
