:root {
  --bg: #05080e;
  --panel: rgba(10, 16, 26, 0.9);
  --line: rgba(140, 185, 230, 0.24);
  --text: #dbe7f3;
  --muted: #a9b9cb;
  --soft: #cfdae6;
  --ok: #35d07f;
  --warn: #f2b33d;
  --crit: #ff4d5e;
  --rf: #3ec8ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 13px/1.4 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
#cena { position: fixed; inset: 0; }
body.cena3d::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 75% 70% at 45% 50%, transparent 55%, rgba(0,0,0,.55)); }
.mono { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; }
.vidro { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(10px); }

header { position: fixed; top: 16px; left: 16px; z-index: 5; pointer-events: none; }
header h1 { margin: 0; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
header h1 span { color: var(--rf); }
header p { margin: 2px 0 0; color: var(--soft); font-size: 12.5px; text-shadow: 0 1px 4px #000; }
header .aviso { display: inline-block; margin-top: 6px; padding: 2px 8px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 11.5px; color: var(--soft); background: rgba(0,0,0,.6); }
header a.voltar { pointer-events: auto; display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 11.5px; color: var(--soft); background: rgba(0,0,0,.6); text-decoration: none; }
header a.voltar:hover { color: var(--rf); border-color: var(--rf); }

.linha { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; gap: 8px; }
.ponto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--ok); }
.ponto.warn { background: var(--warn); } .ponto.crit { background: var(--crit); box-shadow: 0 0 8px var(--crit); }
.barra { flex: 1; height: 6px; margin: 0 10px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--rf); transition: width .4s, background .4s; }

.btn-prim { background: var(--crit); color: #fff; border: 0; padding: 11px 18px; border-radius: 9px; font: inherit;
  font-weight: 700; letter-spacing: .05em; cursor: pointer; box-shadow: 0 6px 24px rgba(255,77,94,.3); }
.btn-prim:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn-sec { background: var(--panel); color: var(--text); border: 1px solid var(--line); padding: 11px 16px;
  border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; }
.btn-sec:hover { border-color: var(--rf); }

#legenda { position: fixed; left: 50%; bottom: 128px; transform: translateX(-50%); z-index: 6; max-width: min(820px, calc(100vw - 720px));
  text-align: center; font-size: 17px; line-height: 1.45; padding: 10px 18px; border-radius: 10px; background: rgba(3,6,11,.88);
  border: 1px solid var(--line); opacity: 0; transition: opacity .5s; pointer-events: none; }
#legenda.on { opacity: 1; }
#legenda b { color: var(--rf); font-weight: 650; }

#rotulos { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.rotulo { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; background: rgba(5,9,15,.85); border: 1px solid var(--line); }
.rotulo.hover { color: #fff; border-color: var(--rf); background: rgba(20, 70, 100, .92); box-shadow: 0 0 12px rgba(62,200,255,.45); }

@keyframes entra { from { opacity: 0; transform: translateX(12px); } }
@keyframes aparece { from { opacity: 0; } }
.tela { position: fixed; inset: 0; z-index: 9; display: none; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(5,8,14,.84), rgba(5,8,14,.97)); }
.tela.on { display: flex; animation: aparece .7s ease-out; }
.tela > div { max-width: 940px; text-align: center; padding: 24px; }

@media (max-width: 1100px) { #legenda { max-width: calc(100vw - 32px); bottom: 180px; } }
@media (max-width: 900px) { header p, header .aviso { display: none; } }
