﻿@font-face { font-family: "Orbitron"; src: url(fonts/orbitron.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url(fonts/rajdhani-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url(fonts/rajdhani-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url(fonts/rajdhani-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url(fonts/rajdhani-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --fundo: #020814; --fundo2: #06172a; --painel: rgba(10, 31, 51, 0.72); --painel-solido: #0a1f33;
  --ciano: #40c8ff; --ciano-claro: #a8ecff; --ciano-escuro: #1a5f8c; --azul: #2f7bff;
  --linha: rgba(64, 200, 255, 0.16); --linha-forte: rgba(64, 200, 255, 0.34);
  --texto: #e2f4ff; --fraco: #7fa9c8; --ambar: #ffae40; --vermelho: #ff5a5a; --verde: #4dffc3; --violeta: #9a83ff;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
  --raio: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--fundo); color: var(--texto); overflow: hidden; overscroll-behavior: none; }
body {
  font-family: "Rajdhani", system-ui, sans-serif; font-weight: 500; font-size: 17px; line-height: 1.35;
  -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  background:
    radial-gradient(120% 60% at 50% 32%, rgba(47, 123, 255, 0.14), transparent 60%),
    radial-gradient(90% 50% at 50% 110%, rgba(64, 200, 255, 0.08), transparent 70%),
    linear-gradient(180deg, #030b1a 0%, var(--fundo) 55%, #01050d 100%);
}
/* grade técnica bem sutil */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(64, 200, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(64, 200, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(80% 60% at 50% 35%, #000 20%, transparent 75%);
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
input, select, textarea { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fraco { color: var(--fraco); }
.pequeno { font-size: 14px; }
.marca { font-family: "Orbitron", sans-serif; font-weight: 800; letter-spacing: 0.32em; font-size: 15px; color: var(--ciano-claro); text-shadow: 0 0 14px rgba(64, 200, 255, 0.55); padding-left: 0.32em; }

.tela { position: fixed; inset: 0; display: flex; flex-direction: column; padding: calc(var(--st) + 6px) calc(var(--sr) + 16px) calc(var(--sb) + 10px) calc(var(--sl) + 16px); }

/* ---------- abertura ---------- */
#abertura { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; gap: 26px; background: var(--fundo); transition: opacity 0.6s ease, visibility 0.6s; }
#abertura.sair { opacity: 0; visibility: hidden; }
.abertura-orbe { width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #e8f8ff 0%, #7fd8ff 12%, #2f7bff 38%, rgba(26, 95, 140, 0.35) 62%, transparent 70%);
  box-shadow: 0 0 60px rgba(64, 200, 255, 0.45), inset 0 0 30px rgba(168, 236, 255, 0.4);
  animation: respira 2.2s ease-in-out infinite; }
.abertura-nome { font-family: "Orbitron", sans-serif; font-weight: 800; font-size: 30px; letter-spacing: 0.5em; padding-left: 0.5em; color: var(--ciano-claro); text-shadow: 0 0 22px rgba(64, 200, 255, 0.7); animation: aparece 1s ease both 0.15s; }
@keyframes respira { 0%, 100% { transform: scale(0.94); opacity: 0.85; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes aparece { from { opacity: 0; letter-spacing: 0.9em; } to { opacity: 1; } }

/* ---------- PIN ---------- */
#tela-pin { align-items: center; justify-content: space-between; text-align: center; padding-top: calc(var(--st) + 30px); }
.pin-topo { display: grid; justify-items: center; gap: 8px; }
.pin-topo p { margin: 0; }
#pin-titulo { font-size: 22px; font-weight: 600; margin-top: 14px !important; }
.pin-cadeado { width: 34px; height: 34px; color: var(--ciano); filter: drop-shadow(0 0 8px rgba(64, 200, 255, 0.6)); }
.pin-pontos { display: flex; gap: 14px; min-height: 18px; justify-content: center; }
.pin-pontos i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ciano-escuro); transition: all 0.15s; }
.pin-pontos i.cheio { background: var(--ciano); border-color: var(--ciano); box-shadow: 0 0 10px var(--ciano); }
.pin-erro { color: var(--vermelho); min-height: 22px; margin: 4px 0; font-weight: 600; }
.pin-erro.balanca { animation: balanca 0.4s; }
@keyframes balanca { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.teclado-pin { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 26px; justify-content: center; }
.teclado-pin button { width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--linha-forte); background: rgba(10, 31, 51, 0.5); font-family: "Orbitron"; font-size: 26px; font-weight: 500; transition: background 0.12s, transform 0.12s; }
.teclado-pin button:active { background: rgba(64, 200, 255, 0.22); transform: scale(0.94); }
.teclado-pin button.sem-borda { border-color: transparent; background: none; }
.teclado-pin .ic { width: 28px; height: 28px; }

.botao-primario { width: 100%; max-width: 360px; height: 54px; border-radius: 16px; font-family: "Orbitron"; font-weight: 700; letter-spacing: 0.14em; font-size: 15px; color: #021022;
  background: linear-gradient(180deg, #7fdcff, #40c8ff); box-shadow: 0 6px 24px rgba(64, 200, 255, 0.35); transition: opacity 0.2s; }
.botao-primario:disabled { opacity: 0.3; box-shadow: none; }

/* ---------- principal ---------- */
#tela-principal { padding-bottom: 0; }
.topo { display: flex; align-items: center; gap: 10px; height: 48px; flex: none; }
.topo .marca { flex: 1; }
.topo-acoes { display: flex; gap: 6px; }
.icone-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--ciano-claro); transition: background 0.15s, transform 0.15s; }
.icone-btn:active { background: rgba(64, 200, 255, 0.14); transform: scale(0.94); }
.estado { display: flex; align-items: center; gap: 7px; font-family: "Orbitron"; font-size: 10.5px; letter-spacing: 0.2em; color: var(--fraco); padding: 6px 10px; border: 1px solid var(--linha); border-radius: 99px; background: rgba(6, 23, 42, 0.6); transition: color 0.3s; }
.estado .ponto { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.estado[data-e="ouvindo"] { color: var(--ciano-claro); }
.estado[data-e="pensando"] { color: var(--violeta); }
.estado[data-e="falando"] { color: var(--ciano); }
.estado[data-e="executando"] { color: var(--verde); }
.estado[data-e="ouvindo"] .ponto, .estado[data-e="pensando"] .ponto { animation: pisca 1s infinite; }
@keyframes pisca { 50% { opacity: 0.3; } }

.palco { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: flex 0.4s; }
.esfera-caixa { position: relative; width: min(90vw, 50vh, 400px); aspect-ratio: 1; margin-bottom: 4px; transition: width 0.45s cubic-bezier(.2,.8,.2,1); }
#esfera { width: 100%; height: 100%; display: block; cursor: pointer; }
.esfera-css { display: none; }
.sem-webgl #esfera { position: absolute; inset: 0; opacity: 0; }
.sem-webgl .esfera-css { display: block; position: absolute; inset: 20%; border-radius: 50%; transform: scale(var(--pulso, 1));
  background: radial-gradient(circle, #e8f8ff 0%, #7fd8ff 14%, #2f7bff 42%, rgba(26, 95, 140, 0.25) 66%, transparent 72%); box-shadow: 0 0 70px rgba(64, 200, 255, 0.4); pointer-events: none; }
.dica { margin: 0; font-size: 15px; color: var(--fraco); letter-spacing: 0.04em; transition: opacity 0.3s; }
.voce { margin: 6px 0 0; font-size: 16px; color: var(--fraco); font-style: italic; max-width: 92%; min-height: 0; }
.resposta { margin: 6px 0 0; font-size: 20px; font-weight: 600; max-width: 94%; line-height: 1.3; color: var(--texto); }
.voce:empty, .resposta:empty { display: none; }

/* quando há cartões, a esfera encolhe para dar espaço */
body.com-cartoes .palco { flex: 0 0 auto; padding-top: 2px; }
body.com-cartoes .esfera-caixa { width: min(44vw, 24vh, 190px); }
body.com-cartoes .dica { display: none; }
body.com-cartoes .resposta { font-size: 18px; }

/* ---------- cartões ---------- */
.cartoes { flex: 0 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 12px; padding: 4px 0 12px; scrollbar-width: none; mask-image: linear-gradient(180deg, transparent, #000 10px, #000 calc(100% - 14px), transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 10px, #000 calc(100% - 14px), transparent); }
.cartoes::-webkit-scrollbar { display: none; }
body.com-cartoes .cartoes { flex: 1 1 auto; }
.cartao { position: relative; background: var(--painel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: entra 0.35s cubic-bezier(.2,.8,.2,1) both; -webkit-user-select: text; user-select: text; }
.cartao::before { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(64, 200, 255, 0.7), transparent); }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }
.cartao-topo { display: flex; align-items: center; gap: 8px; font-family: "Orbitron"; font-size: 10.5px; letter-spacing: 0.22em; color: var(--ciano); margin-bottom: 8px; text-transform: uppercase; }
.cartao-topo .ic { width: 16px; height: 16px; }
.cartao-topo .fechar { margin-left: auto; color: var(--fraco); width: 28px; height: 28px; display: grid; place-items: center; }
.cartao-topo .fechar .ic { width: 16px; height: 16px; }
.md p { margin: 0 0 8px; } .md p:last-child { margin-bottom: 0; }
.md strong { color: var(--ciano-claro); font-weight: 700; }
.md ul, .md ol { margin: 4px 0 8px; padding-left: 20px; } .md li { margin: 3px 0; }
.md li::marker { color: var(--ciano); }
.md h4 { margin: 10px 0 4px; font-size: 16px; color: var(--ciano-claro); }
.fontes { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--linha); }
.fontes a { color: var(--fraco); font-size: 14px; text-decoration: none; display: flex; gap: 6px; align-items: center; overflow: hidden; }
.fontes a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fontes .ic { width: 14px; height: 14px; color: var(--ciano); }

.clima-agora { display: flex; align-items: center; gap: 14px; }
.clima-agora .ic { width: 54px; height: 54px; color: var(--ciano-claro); stroke-width: 1.2; filter: drop-shadow(0 0 10px rgba(64, 200, 255, 0.5)); }
.clima-temp { font-family: "Orbitron"; font-size: 40px; font-weight: 600; line-height: 1; }
.clima-temp small { font-size: 18px; color: var(--fraco); }
.clima-desc { color: var(--fraco); font-size: 15px; }
.clima-dias { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin-top: 12px; }
.clima-dia { text-align: center; padding: 8px 4px; border-radius: 12px; background: rgba(2, 8, 20, 0.45); font-size: 14px; }
.clima-dia .ic { width: 22px; height: 22px; color: var(--ciano); margin: 4px auto; display: block; }
.clima-dia b { font-weight: 700; } .clima-dia .min { color: var(--fraco); }
.clima-dia .chuva { color: var(--ciano); font-size: 12px; }

.tvs-lista { display: grid; gap: 8px; }
.tv-linha { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(2, 8, 20, 0.45); }
.tv-linha .ic { color: var(--fraco); }
.tv-linha.ligada .ic { color: var(--verde); filter: drop-shadow(0 0 6px rgba(77, 255, 195, 0.6)); }
.tv-linha div { display: grid; } .tv-linha small { color: var(--fraco); font-size: 14px; }

.acao-abrir { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--linha-forte); color: var(--ciano-claro); font-weight: 600; font-size: 17px; background: rgba(64, 200, 255, 0.08); }
.acao-abrir:active { background: rgba(64, 200, 255, 0.2); }

/* ---------- base / entrada ---------- */
.base { flex: none; padding: 6px 0 calc(var(--sb) + 10px); position: relative; }
.entrada { display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 26px; border: 1px solid var(--linha-forte); background: rgba(6, 23, 42, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 0 0 1px rgba(2, 8, 20, 0.6), 0 10px 30px rgba(0, 0, 0, 0.35); }
.entrada:focus-within { border-color: rgba(64, 200, 255, 0.6); box-shadow: 0 0 0 3px rgba(64, 200, 255, 0.12); }
#texto { flex: 1; min-height: 44px; max-height: 140px; resize: none; border: 0; outline: 0; background: none; padding: 11px 0; font-size: 18px; line-height: 22px; }
#texto::placeholder { color: rgba(127, 169, 200, 0.7); }
.entrada .mic { color: var(--ciano-claro); }
.entrada .enviar { background: linear-gradient(180deg, #7fdcff, #40c8ff); color: #021022; border-radius: 50%; }
.entrada .enviar .ic { stroke-width: 2.2; }
.entrada.vazia .enviar { display: none; }
.entrada:not(.vazia) .mic { display: none; }
body.so-teclado .entrada .mic { display: none; }
/* enquanto o Boss fala, o botão Parar ocupa o lugar do microfone/enviar */
.parar-fala { flex: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 12px; border-radius: 22px; background: rgba(255, 90, 90, 0.16); border: 1px solid rgba(255, 90, 90, 0.55); color: #ffd0d0; font-weight: 700; font-size: 16px; animation: entra 0.2s both; }
.parar-fala .ic { width: 16px; height: 16px; fill: currentColor; }
body.falando .entrada .mic, body.falando .entrada .enviar { display: none; }

/* ---------- folhas (painéis de baixo) ---------- */
.folha { position: fixed; inset: 0; z-index: 20; }
.folha-fundo { position: absolute; inset: 0; background: rgba(1, 4, 10, 0.6); animation: fade 0.25s both; }
@keyframes fade { from { opacity: 0; } }
.folha-corpo { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - var(--st) - 20px); display: flex; flex-direction: column; background: linear-gradient(180deg, #0b2238, #061526); border-top: 1px solid var(--linha-forte); border-radius: 24px 24px 0 0; padding: 8px calc(var(--sr) + 16px) calc(var(--sb) + 16px) calc(var(--sl) + 16px); animation: sobe 0.32s cubic-bezier(.2,.8,.2,1) both; }
.folha-corpo.alta { height: calc(100% - var(--st) - 30px); }
@keyframes sobe { from { transform: translateY(100%); } }
.folha.saindo .folha-corpo { transform: translateY(100%); transition: transform 0.25s ease-in; }
.folha.saindo .folha-fundo { opacity: 0; transition: opacity 0.25s; }
.folha-alca { width: 40px; height: 5px; border-radius: 3px; background: rgba(127, 169, 200, 0.4); margin: 0 auto 6px; }
.folha-topo { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.folha-topo h2 { flex: 1; margin: 0; font-family: "Orbitron"; font-size: 15px; letter-spacing: 0.2em; font-weight: 700; color: var(--ciano-claro); }
.rolagem { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; padding-bottom: 20px; }
.rolagem h3 { font-family: "Orbitron"; font-size: 11px; letter-spacing: 0.24em; color: var(--ciano); margin: 22px 0 10px; font-weight: 600; text-transform: uppercase; }
.rolagem h3:first-child { margin-top: 4px; }

.seletor { display: flex; padding: 4px; border-radius: 14px; background: rgba(2, 8, 20, 0.6); border: 1px solid var(--linha); margin-bottom: 12px; }
.seletor button { flex: 1; height: 38px; border-radius: 10px; font-weight: 600; color: var(--fraco); transition: all 0.2s; }
.seletor button.ativo { background: rgba(64, 200, 255, 0.16); color: var(--ciano-claro); box-shadow: inset 0 0 0 1px rgba(64, 200, 255, 0.4); }

.campo { display: grid; gap: 6px; margin-bottom: 14px; }
.campo > span { display: flex; justify-content: space-between; color: var(--fraco); font-size: 15px; }
.campo > span b { color: var(--ciano-claro); }
.campo.linha { grid-template-columns: 1fr auto; align-items: center; }
.campo.linha > span { display: grid; color: var(--texto); font-size: 17px; }
.campo.linha small { color: var(--fraco); font-size: 13px; }
.campo select, .campo input[type="text"] { height: 46px; border-radius: 12px; border: 1px solid var(--linha-forte); background: rgba(2, 8, 20, 0.6); padding: 0 12px; outline: 0; font-size: 17px; -webkit-appearance: none; appearance: none; }
.campo select { background-image: linear-gradient(45deg, transparent 50%, var(--ciano) 50%), linear-gradient(135deg, var(--ciano) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: none; margin: 0; padding: 0 2px; }
.campo { min-width: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ciano), var(--ciano-escuro)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #dff6ff; box-shadow: 0 0 12px rgba(64, 200, 255, 0.8); }
.chave { -webkit-appearance: none; appearance: none; width: 52px; height: 32px; border-radius: 16px; background: rgba(127, 169, 200, 0.25); position: relative; transition: background 0.2s; margin: 0; }
.chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.chave:checked { background: var(--ciano); } .chave:checked::after { transform: translateX(20px); }
.botao-sec { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--linha-forte); color: var(--ciano-claro); font-weight: 600; font-size: 17px; margin-bottom: 10px; background: rgba(64, 200, 255, 0.06); }
.botao-sec:active { background: rgba(64, 200, 255, 0.16); }
.botao-sec.perigo { color: #ffb3b3; border-color: rgba(255, 90, 90, 0.4); background: rgba(255, 90, 90, 0.06); }
.memoria { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.memoria li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(2, 8, 20, 0.5); border: 1px solid var(--linha); }
.memoria li span { flex: 1; } .memoria li button { color: var(--fraco); width: 36px; height: 36px; display: grid; place-items: center; }
.memoria li button .ic { width: 18px; height: 18px; }

/* ---------- controle das TVs ---------- */
.tv-status { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(2, 8, 20, 0.5); color: var(--fraco); font-size: 15px; margin-bottom: 14px; }
.tv-status .led { width: 8px; height: 8px; border-radius: 50%; background: var(--fraco); flex: none; }
.tv-status.ligada .led { background: var(--verde); box-shadow: 0 0 8px var(--verde); }
.controle { display: grid; gap: 14px; }
.linha-ctrl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.linha-ctrl.tres { grid-template-columns: 64px 1fr 64px; align-items: center; }
.ctrl { height: 54px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--linha); background: rgba(10, 31, 51, 0.7); color: var(--ciano-claro); font-family: "Orbitron"; font-size: 14px; transition: transform 0.1s, background 0.1s; }
.ctrl:active, .dpad button:active, .apps-tv button:active { transform: scale(0.94); background: rgba(64, 200, 255, 0.22); }
.ctrl.power { color: #ff8a8a; border-color: rgba(255, 90, 90, 0.35); }
.ctrl.enviando { animation: pisca 0.6s infinite; }
.pilula { display: grid; grid-template-rows: 56px auto 56px; justify-items: center; align-items: center; border-radius: 22px; border: 1px solid var(--linha); background: rgba(10, 31, 51, 0.7); font-family: "Orbitron"; font-size: 10px; letter-spacing: 0.12em; color: var(--fraco); padding: 2px 0; }
.pilula .ctrl { border: 0; background: none; width: 100%; height: 56px; }
.dpad { position: relative; width: min(190px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; border: 1px solid var(--linha); background: radial-gradient(circle, rgba(10, 31, 51, 0.9) 34%, rgba(10, 31, 51, 0.6) 35%); }
.dpad button { position: absolute; display: grid; place-items: center; color: var(--ciano-claro); border-radius: 50%; width: 33%; height: 33%; }
.d-cima { top: 2%; left: 33.5%; } .d-baixo { bottom: 2%; left: 33.5%; } .d-esq { left: 2%; top: 33.5%; } .d-dir { right: 2%; top: 33.5%; }
.d-ok { left: 33.5%; top: 33.5%; font-family: "Orbitron"; font-weight: 700; font-size: 14px; border: 1px solid var(--linha-forte) !important; background: rgba(64, 200, 255, 0.1) !important; }
.apps-tv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.apps-tv button { height: 44px; border-radius: 12px; border: 1px solid var(--linha); background: rgba(2, 8, 20, 0.55); font-weight: 600; font-size: 14px; color: var(--texto); transition: transform 0.1s; }
.numero-tv { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.numero-tv input { height: 46px; border-radius: 12px; border: 1px solid var(--linha-forte); background: rgba(2, 8, 20, 0.6); padding: 0 12px; outline: 0; font-size: 18px; min-width: 0; }
.numero-tv button { padding: 0 16px; border-radius: 12px; border: 1px solid var(--linha-forte); color: var(--ciano-claro); font-weight: 600; }

/* ---------- aviso flutuante ---------- */
.aviso { position: fixed; left: 50%; top: calc(var(--st) + 56px); transform: translateX(-50%); z-index: 40; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 14px; background: rgba(10, 31, 51, 0.95); border: 1px solid var(--linha-forte); font-weight: 600; font-size: 15px; text-align: center; animation: entra 0.25s both; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.aviso.erro { border-color: rgba(255, 90, 90, 0.5); color: #ffd0d0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
@media (min-height: 760px) { .teclado-pin { gap: 20px 28px; } }
