.panel {
  position: fixed; inset: 0; z-index: 15;
  display: grid; place-items: center; grid-template-rows: minmax(0, 1fr);
  padding: clamp(72px, 10vh, 96px) clamp(16px, 4vw, 48px) calc(var(--lens-bottom) + 84px);
}
.panel[hidden] { display: none; }
.panel__frame {
  position: relative; width: min(1100px, 100%); max-height: 100%; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 0 40px rgb(66 214 208 / .15), inset 0 0 60px rgb(37 37 107 / .5);
  backdrop-filter: blur(10px);
}
.panel__frame::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgb(66 214 208 / .035) 0 1px, transparent 1px 3px);
}
.panel__close {
  position: absolute; top: var(--space-3); right: var(--space-3); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--abyss); color: var(--cyan);
  font-size: 1.1rem; cursor: pointer;
}
.panel__body { overflow-y: auto; min-height: 0; padding: clamp(20px, 4vw, 48px); }

.tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgb(104 70 171 / .35); color: #D9C9FF; }
.tag[data-cat="Pedido de ajuda"] { background: rgb(216 180 90 / .2); color: var(--gold); }

/* Habitantes: ficha em HUD, mesmo desenho da caixa de transmissões */
.habs { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); }
.habs__stage { width: min(100%, 980px); }
.ficha { position: relative; border: 1px solid rgb(66 214 208 / .55); background: linear-gradient(180deg, rgb(8 13 43 / .92), rgb(8 13 43 / .8)); backdrop-filter: blur(8px); box-shadow: 0 0 24px rgb(66 214 208 / .22), inset 0 0 0 1px rgb(66 214 208 / .08); }
.ficha::before, .ficha::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid var(--cyan); filter: drop-shadow(var(--glow-cyan)); }
.ficha::before { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.ficha::after { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.ficha__head { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 1rem; border-bottom: 1px solid rgb(66 214 208 / .3); background: rgb(66 214 208 / .1); font: 700 .68rem/1 var(--font-hud); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.ficha__head span { color: var(--text-dim); font-weight: 500; white-space: nowrap; }
.ficha__main { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: clamp(16px, 3vw, 32px); padding: clamp(14px, 2.4vw, 26px); }
.ficha__foto { margin: 0; aspect-ratio: 2 / 3; align-self: start; }
.ficha__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ficha__reg { margin: 0; color: var(--gold); font: 700 .72rem/1 var(--font-hud); letter-spacing: .24em; text-transform: uppercase; }
.ficha__info h3 { margin: .4rem 0 0; font: 700 clamp(1.6rem, 3.4vw, 2.4rem)/1.1 var(--font-title); }
.ficha__role { margin: .35rem 0 0; color: var(--text); font-weight: 600; }
.ficha__dados { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin: var(--space-3) 0; }
.ficha__dados div { padding: .55rem .75rem; border: 1px solid var(--line); background: rgb(37 37 107 / .3); }
.ficha__dados dt, .ficha__lbl { margin: 0; color: var(--cyan); font: 700 .66rem/1 var(--font-hud); letter-spacing: .22em; text-transform: uppercase; }
.ficha__dados dd { margin: .35rem 0 0; font-weight: 600; }
.ficha__lbl--gold { margin-top: var(--space-3); color: var(--gold); }
.ficha__txt { margin: .35rem 0 0; color: var(--text); font-size: .95rem; }
.ficha__mural { display: inline-block; margin-top: var(--space-3); color: var(--gold); font: 700 .74rem/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.ficha__mural:hover, .ficha__mural:focus-visible { text-decoration: underline; }
.habs__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.habs .habs__btn { position: static; translate: none; font-size: .8rem; }

/* Mural */
/* Mural: transmissões da comunidade em cartões de HUD */
.mural { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); width: min(100%, 1040px); height: calc(100dvh - var(--lens-top) - var(--lens-bottom) - 190px); margin-inline: auto; }
.mural .map__hint { margin: 0; }
.mural__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.mural .mural__chip, .mural .mural__mode { position: static; translate: none; font-size: .78rem; }
.feed { list-style: none; margin: 0; padding: 4px 8px 4px 4px; width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); align-content: start; flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable;}
.feed::-webkit-scrollbar { width: 8px; }
.feed::-webkit-scrollbar-track { background: rgb(66 214 208 / .08); border-left: 1px solid rgb(66 214 208 / .3); }
.feed::-webkit-scrollbar-thumb { background: var(--cyan); border: 2px solid rgb(8 13 43); box-shadow: 0 0 8px var(--cyan); clip-path: polygon(0 3px, 3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%); }
.feed::-webkit-scrollbar-button { display: none; }
@supports (-moz-appearance: none) { .feed { scrollbar-width: thin; scrollbar-color: var(--cyan) rgb(66 214 208 / .08); } }
.msg { position: relative; border: 1px solid rgb(66 214 208 / .45); background: linear-gradient(180deg, rgb(8 13 43 / .92), rgb(8 13 43 / .8)); box-shadow: 0 0 18px rgb(66 214 208 / .15); }
.msg::before { content: ''; position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border: 2px solid var(--cyan); border-left: 0; border-bottom: 0; filter: drop-shadow(var(--glow-cyan)); }
.msg__head { display: flex; justify-content: space-between; align-items: center; padding: .45rem .8rem; border-bottom: 1px solid rgb(66 214 208 / .3); background: rgb(66 214 208 / .1); font: 700 .64rem/1 var(--font-hud); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.msg__head b { display: flex; align-items: center; gap: .5rem; }
.msg__head b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.msg[data-cat="Aviso"] .msg__head b::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.msg[data-cat="Pedido de ajuda"] .msg__head b { color: #FF9A9A; }
.msg[data-cat="Pedido de ajuda"] .msg__head b::before { background: #ff6b6b; box-shadow: 0 0 8px #ff6b6b; }
.msg[data-cat="Oferta"] .msg__head b::before { background: #7BE3A0; box-shadow: 0 0 8px #7BE3A0; }
.msg[data-cat="Amizade"] .msg__head b::before { background: #D9C9FF; box-shadow: 0 0 8px #D9C9FF; }
.msg__head time { color: var(--text-dim); font-weight: 500; }
.msg__body { display: grid; grid-template-columns: 40px 1fr; gap: .75rem; padding: .75rem .85rem .85rem; }
.post__avatar { width: 40px; height: 40px; border-radius: 0; object-fit: cover; object-position: 50% 22%; border: 1px solid var(--line); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); background: var(--deep); }
.msg__src { margin: 0; display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline; font: 700 .7rem/1.3 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; }
.msg__src strong { color: var(--gold); }
.msg__src span { color: var(--text-dim); font-weight: 500; }
/* Mural > Missões: tripulações de habitantes (projeto, estudo, mentoria, freelance) */
.mural__pane { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); width: 100%; flex: 1; min-height: 0; }
.mural__pane[hidden], .mis__bar[hidden], .mis__passos[hidden], .mis__feed[hidden] { display: none; }
.mural__modes { display: flex; gap: var(--space-2); }
.mural .mural__mode { font-size: .85rem; padding: .4rem 1.2rem; }
.mis__bar { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); width: 100%; box-sizing: border-box; padding: 0 16px 0 4px; }
.mis__acoes { display: flex; align-items: center; gap: var(--space-3); align-self: flex-end; }
.hintbar .mis__acoes { align-self: auto; }
.mis__nivel { color: var(--gold); font: 700 .74rem/1 var(--font-hud); letter-spacing: .2em; text-transform: uppercase; }
.mis__nova { height: auto; padding: .55rem 1.1rem; border-color: var(--gold); background: rgb(216 180 90 / .2); color: var(--gold); }
.mis__nova:hover, .mis__nova:focus-visible { background: rgb(216 180 90 / .4); color: #fff; }
.mis__passos { margin: 0; color: var(--text-dim); font: 600 .66rem/1.4 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.mis__passos b { color: var(--gold); }
.mis__passos i { color: var(--cyan); font-style: normal; margin: 0 .3rem; }
.mis { position: relative; display: flex; flex-direction: column; border: 1px solid rgb(66 214 208 / .45); background: linear-gradient(180deg, rgb(8 13 43 / .92), rgb(8 13 43 / .8)); box-shadow: 0 0 18px rgb(66 214 208 / .15); }
.mis::before, .mis::after { content: ''; position: absolute; width: 11px; height: 11px; border: 2px solid var(--cyan); filter: drop-shadow(var(--glow-cyan)); }
.mis::before { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.mis::after { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.mis__head { display: flex; justify-content: space-between; align-items: center; padding: .45rem .8rem; border-bottom: 1px solid rgb(66 214 208 / .3); background: rgb(66 214 208 / .1); font: 700 .62rem/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.mis__dif { display: inline-flex; align-items: center; gap: 3px; padding: .2rem .55rem; border: 1px solid currentColor; border-radius: 999px; }
.mis__dif i { width: 3px; height: 9px; background: currentColor; }
.mis[data-dif="Média"] .mis__dif { color: var(--gold); }
.mis[data-dif="Difícil"] .mis__dif { color: #FF8A8A; }
.mis__body { flex: 1; padding: .75rem .9rem; }
.mis__autor { display: flex; align-items: center; gap: .65rem; }
.mis__autor p { margin: 0; display: grid; font-size: .72rem; color: var(--text-dim); }
.mis__autor strong { color: var(--text); font-size: .85rem; }
.mis__av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 1px solid var(--line); background: var(--deep); flex: none; }
.mis__av--voce { display: inline-grid; place-items: center; background: var(--gold); color: var(--abyss); font: 700 .66rem/1 var(--font-hud); border-color: var(--gold); }
.mis__av--vaga { border: 1px dashed rgb(66 214 208 / .5); background: none; }
.mis__titulo { margin: .7rem 0 .35rem; font-size: 1rem; line-height: 1.25; text-transform: uppercase; }
.mis__texto { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--text-dim); }
.mis__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .65rem 0 0; }
.mis__tags span { padding: .15rem .6rem; border-radius: 999px; background: rgb(104 70 171 / .4); color: #D9C9FF; font-size: .68rem; font-weight: 600; }
.mis__foot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem .75rem; padding: .65rem .9rem; border-top: 1px solid rgb(66 214 208 / .3); }
.mis__crew { display: flex; align-items: center; gap: 3px; font: 700 .6rem/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.mis__crew .mis__av { width: 24px; height: 24px; margin-right: -2px; }
.mis__crew span:last-child { margin-left: .6rem; }
.mis__canais { display: flex; gap: 4px; justify-content: flex-end; }
.mis__canal { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; color: var(--text-dim); font: 700 .58rem/1 var(--font-hud); text-decoration: none; opacity: .55; }
.mis__canal.is-on { opacity: 1; color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.mis__rep { color: var(--gold); font: 700 .7rem/1 var(--font-hud); letter-spacing: .18em; }
.mis__btn { justify-self: end; padding: .5rem 1rem; border: 1px solid var(--gold); background: var(--gold); color: var(--abyss); font: 700 .76rem/1 var(--font-hud); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.mis__btn:hover:not(:disabled), .mis__btn:focus-visible { background: #fff; }
.mis__btn.is-on { background: rgb(66 214 208 / .2); border-color: var(--cyan); color: var(--cyan); }
.mis__btn:disabled { background: none; border-color: var(--line); color: var(--text-dim); cursor: default; opacity: .7; }
.mform { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: var(--space-4); width: 100%; flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: .9rem 1rem; border: 1px solid rgb(66 214 208 / .45); background: linear-gradient(180deg, rgb(8 13 43 / .92), rgb(8 13 43 / .8)); }
.mform[hidden] { display: none; }
.mform__campos { display: grid; gap: .7rem; align-content: start; }
.mform__trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.mform .vform__f span { color: var(--cyan); }
.mform input, .mform select, .mform textarea { display: block; width: 100%; box-sizing: border-box; padding: .5rem .6rem; border: 1px solid rgb(66 214 208 / .4); background: rgb(8 13 43 / .7); color: var(--text); font: 500 .85rem/1.4 var(--font-body); resize: none; }
.mform select option { background: #080D2B; color: var(--text); }
.mform input:focus-visible, .mform select:focus-visible, .mform textarea:focus-visible { outline: 0; border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.mform__btns { display: flex; align-items: center; gap: var(--space-3); }
.mform .vform__send { height: auto; padding: .6rem 1.2rem; border-color: var(--gold); background: rgb(216 180 90 / .2); color: var(--gold); }
.mform__cancel { padding: 0; border: 0; background: none; color: var(--text-dim); font: 700 .74rem/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.mform__cancel:hover, .mform__cancel:focus-visible { color: var(--text); text-decoration: underline; }
.mform__card { display: block; padding: 0; margin: .5rem 0 0; overflow: visible; max-height: none; }
.mform__previa { align-self: start; }

/* Fale com o Portal: conversa com o Náutilos IA (fundo plano, círculo pulsante) */
.portal { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); width: min(100%, 860px); height: calc(100dvh - var(--lens-top) - var(--lens-bottom) - 190px); margin-inline: auto; }
.portal .map__hint { margin: 0; }
.ia { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; flex: 1; min-height: 0; padding: 1rem 1.25rem 1.1rem; border: 1px solid rgb(66 214 208 / .45); background: #050918; box-shadow: 0 0 24px rgb(66 214 208 / .15); }
.ia::before, .ia::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid var(--cyan); filter: drop-shadow(var(--glow-cyan)); }
.ia::before { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.ia::after { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.ia__orb { --orb-a: #42D6D0; --orb-b: #D8FBF9; --lvl: 0; --size: clamp(110px, 24vh, 220px); position: relative; flex: 1; min-height: calc(var(--size) * 1.1); display: grid; place-items: center; width: 100%; }
.ia__core { position: relative; z-index: 1; width: var(--size); height: var(--size); border-radius: 50%; background: radial-gradient(circle at 36% 30%, var(--orb-b) 0, var(--orb-a) 38%, rgb(8 13 43 / .0) 72%); box-shadow: 0 0 calc(var(--size) * .35) var(--orb-a), inset 0 0 calc(var(--size) * .2) var(--orb-a); scale: calc(1 + var(--lvl) * .14); transition: scale .09s linear; animation: ia-breathe 4s ease-in-out infinite; }
.ia__ring { position: absolute; width: var(--size); height: var(--size); border-radius: 50%; border: 1.5px solid var(--orb-a); opacity: 0; animation: ia-ring 4s ease-out infinite; }
.ia__ring:nth-child(2) { animation-delay: 1.33s; }
.ia__ring:nth-child(3) { animation-delay: 2.66s; }
@keyframes ia-breathe { 50% { scale: 1.07; } }
@keyframes ia-ring { from { scale: .95; opacity: .55; } to { scale: 2.1; opacity: 0; } }
@keyframes ia-think { 0%, 100% { scale: .94; } 18% { scale: 1.1; } 32% { scale: .98; } 55% { scale: 1.14; } 70% { scale: 1; } }
@keyframes ia-halo { to { rotate: 360deg; } }
.ia__orb[data-state="listening"] { --orb-a: #D8B45A; --orb-b: #FFF3CF; }
.ia__orb[data-state="listening"] .ia__core { animation-duration: 1.8s; }
.ia__orb[data-state="listening"] .ia__ring { animation-duration: 2.4s; }
.ia__orb[data-state="thinking"] { --orb-a: #6846AB; --orb-b: #42D6D0; }
.ia__orb[data-state="thinking"] .ia__core { animation: ia-think .95s ease-in-out infinite; }
.ia__orb[data-state="thinking"] .ia__ring { animation-duration: 1.2s; }
.ia__orb[data-state="thinking"]::before { content: ''; position: absolute; width: calc(var(--size) * 1.35); height: calc(var(--size) * 1.35); border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, #42D6D0 80%, transparent); -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%, #000 68%, transparent 70%); mask: radial-gradient(circle, transparent 62%, #000 64%, #000 68%, transparent 70%); animation: ia-halo 1.6s linear infinite; }
.ia__orb[data-state="speaking"] .ia__core { animation: none; }
.ia__orb[data-state="speaking"] .ia__ring { animation-duration: 1.5s; }
@media (prefers-reduced-motion: reduce) { .ia__core, .ia__ring, .ia__orb::before { animation: none !important; } .ia__ring { opacity: .25; scale: 1.3; } }
.ia__status { margin: 0 0 .6rem; color: var(--text-dim); font: 700 .66rem/1 var(--font-hud); letter-spacing: .24em; text-transform: uppercase; }
.ia__status span { color: var(--cyan); }
.ia__chat { display: flex; flex-direction: column; align-items: center; width: 100%; }
.ia__chat[hidden], .ia__regform[hidden], .ia__reg[hidden] { display: none; }
.ia__log { width: 100%; max-height: clamp(5rem, 24vh, 11rem); min-height: 3.6rem; overflow-y: auto; display: grid; gap: .5rem; align-content: start; padding-right: 6px; scrollbar-width: none; }
.ia__msg { margin: 0; max-width: 86%; font-size: .9rem; line-height: 1.5; }
.ia__msg--ia { color: var(--text); }
.ia__msg--ia::before { content: 'NÁUTILOS ▸ '; color: var(--cyan); font: 700 .66rem/1 var(--font-hud); letter-spacing: .18em; }
.ia__msg--eu { justify-self: end; text-align: right; color: var(--text-dim); }
.ia__msg--eu::before { content: 'VOCÊ ▸ '; color: var(--gold); font: 700 .66rem/1 var(--font-hud); letter-spacing: .18em; }
.ia__sugestoes { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: .7rem 0 0; }
.ia__sugestoes[hidden] { display: none; }
.ia__sugestoes button { padding: .3rem .7rem; border: 1px solid var(--line); background: none; color: var(--text-dim); font: 600 .7rem/1 var(--font-hud); letter-spacing: .1em; cursor: pointer; }
.ia__sugestoes button:hover, .ia__sugestoes button:focus-visible { border-color: var(--cyan); color: var(--cyan); }
.ia__form { display: flex; width: 100%; margin-top: .8rem; border-bottom: 1px solid rgb(66 214 208 / .5); }
.ia__form:focus-within { border-bottom-color: var(--cyan); box-shadow: 0 8px 14px -10px var(--cyan); }
.ia__form input { flex: 1; padding: .6rem .2rem; border: 0; background: none; color: var(--text); font: 500 .95rem/1.4 var(--font-body); }
.ia__form input:focus-visible { outline: 0; }
.ia__form input::placeholder { color: var(--text-dim); opacity: .7; }
.ia__form button { padding: 0 .5rem; border: 0; background: none; color: var(--cyan); font-size: 1.1rem; cursor: pointer; }
.ia__form button:hover { color: #fff; }

/* Registro de novo habitante: botão e formulário em amarelo */
.ia__reg { margin: 0 0 .7rem; padding: .5rem 1.2rem; border: 1px solid var(--yellow); background: rgb(255 216 77 / .18); color: var(--yellow); font: 700 .76rem/1 var(--font-hud); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.ia__reg:hover, .ia__reg:focus-visible { background: rgb(255 216 77 / .38); color: #fff; box-shadow: 0 0 14px rgb(255 216 77 / .5); }
.ia.is-reg { --size-reg: 72px; }
.portal.is-reg .ia { flex: 0 1 auto; }
.portal.is-reg .ia__regform { flex: 0 1 auto; }
.ia.is-reg .ia__orb { --size: var(--size-reg); min-height: calc(var(--size) * 1.5); flex: none; }
.ia__regform { width: 100%; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: .6rem .2rem 0; }
.ia__regtitulo { margin: 0 0 .7rem; color: var(--yellow); font: 700 .74rem/1 var(--font-hud); letter-spacing: .24em; text-transform: uppercase; text-align: center; }
.ia__regcampos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .9rem; }
.ia__regfull { grid-column: 1 / -1; }
.ia__regform .vform__f span { color: var(--yellow); }
.ia__regform input, .ia__regform select { display: block; width: 100%; box-sizing: border-box; padding: .5rem .6rem; border: 1px solid rgb(255 216 77 / .4); background: rgb(8 13 43 / .7); color: var(--text); font: 500 .88rem/1.4 var(--font-body); }
.ia__regform select option { background: #080D2B; color: var(--text); }
.ia__regform input:focus-visible, .ia__regform select:focus-visible { outline: 0; border-color: var(--yellow); box-shadow: 0 0 10px rgb(255 216 77 / .45); }
.ia__regform [aria-invalid="true"] { border-color: #FF6B6B; }
.ia__err { display: block; min-height: 1.1em; margin-top: .2rem; color: #FF9A9A; font-size: .74rem; font-style: normal; }
.ia__regbtns { display: flex; justify-content: center; align-items: center; gap: var(--space-4); margin-top: .5rem; }
.ia__regbtns .vform__send { height: auto; padding: .6rem 1.3rem; }
.ia__retry { justify-self: start; padding: .4rem .9rem; border: 1px solid var(--yellow); background: none; color: var(--yellow); font: 700 .7rem/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.ia__retry:hover, .ia__retry:focus-visible { background: rgb(255 216 77 / .25); color: #fff; }
.ia__orb[data-state="erro"] { --orb-a: #FF6B6B; --orb-b: #FFE0E0; }
.ia__orb[data-state="erro"] .ia__core { animation-duration: 1.2s; }
.ia__orb[data-state="erro"] .ia__ring { animation-duration: 1.4s; }

/* Visitantes (FIAP NEXT): mesmo modelo, em amarelo */
.mural .mural__chip[data-cat="Visitantes"] { color: var(--yellow); border-color: rgb(255 216 77 / .55); }
.mural .mural__chip[data-cat="Visitantes"]:hover, .mural .mural__chip[data-cat="Visitantes"]:focus-visible, .mural .mural__chip[data-cat="Visitantes"].is-active { background: rgb(255 216 77 / .22); border-color: var(--yellow); color: #fff; box-shadow: 0 0 14px rgb(255 216 77 / .55); }
.msg[data-cat="Visitantes"] { border-color: rgb(255 216 77 / .55); box-shadow: 0 0 18px rgb(255 216 77 / .15); }
.msg[data-cat="Visitantes"]::before { border-color: var(--yellow); filter: drop-shadow(0 0 6px rgb(255 216 77 / .7)); }
.msg[data-cat="Visitantes"] .msg__head { border-bottom-color: rgb(255 216 77 / .35); background: rgb(255 216 77 / .1); color: var(--yellow); }
.msg[data-cat="Visitantes"] .msg__head b::before { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.msg[data-cat="Visitantes"] .msg__src strong { color: var(--yellow); }
.msg[data-cat="Visitantes"] .post__avatar { border-color: rgb(255 216 77 / .5); filter: sepia(1) saturate(3) hue-rotate(-5deg); }
.vform { width: 100%; padding: .7rem .85rem .4rem; border: 1px solid rgb(255 216 77 / .55); background: linear-gradient(180deg, rgb(8 13 43 / .92), rgb(8 13 43 / .8)); }
.vform[hidden] { display: none; }
.vform__row { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 170px) 1fr auto; gap: .75rem; align-items: end; }
.vform__f span { display: block; margin-bottom: .3rem; color: var(--yellow); font: 700 .62rem/1 var(--font-hud); letter-spacing: .22em; text-transform: uppercase; }
.vform input, .vform select, .vform textarea { display: block; width: 100%; height: 3.2rem; box-sizing: border-box; padding: .45rem .6rem; border: 1px solid rgb(255 216 77 / .4); background: rgb(8 13 43 / .7); color: var(--text); font: 500 .88rem/1.4 var(--font-body); resize: none; }
.vform select option { background: #080D2B; color: var(--text); }
.vform input:focus-visible, .vform select:focus-visible, .vform textarea:focus-visible { outline: 0; border-color: var(--yellow); box-shadow: 0 0 10px rgb(255 216 77 / .45); }
.vform__send { height: 3.2rem; padding: 0 1.3rem; border: 1px solid var(--yellow); background: rgb(255 216 77 / .2); color: var(--yellow); font: 700 .78rem/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.vform__send:hover, .vform__send:focus-visible { background: rgb(255 216 77 / .4); color: #fff; }
.vform__err { min-height: 1.1em; margin: .3rem 0 0; color: #FF9A9A; font-size: .78rem; }
.msg__text { margin: .4rem 0 0; font-size: .86rem; line-height: 1.5; color: var(--text); }
.feed__empty { color: var(--text-dim); }

/* Fale com o Portal */
.form__hint { margin: 0; font-size: .8rem; color: var(--text-dim); }
.form__success { max-width: 640px; padding: var(--space-5); text-align: center; border: 1px solid var(--cyan); border-radius: var(--radius); background: rgb(66 214 208 / .08); }
.form__success:focus { outline: none; }

/* O Mundo: só o holograma, sem moldura de página */
.panel--bare { padding: calc(var(--lens-top) + 84px) clamp(16px, 4vw, 56px) calc(var(--lens-bottom) + 84px); }
.panel--bare .panel__frame { width: 100%; max-height: none; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.panel--bare .panel__frame::before { display: none; }
.panel--bare .panel__body { padding: 0; overflow: visible; }
.panel--bare .panel__close { top: auto; bottom: -6px; right: 0; width: auto; height: auto; padding: .45rem .9rem; border-radius: 0; border: 1px solid var(--line); background: rgb(8 13 43 / .78); color: var(--cyan); font: 700 .78rem/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.panel--bare .panel__close::before { content: 'Voltar '; }
.hintbar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(max-content, 1fr); align-items: center; width: 100%; }
.holo .hintbar { width: min(100%, calc((100dvh - var(--lens-top) - var(--lens-bottom) - 250px) * 16 / 9)); }
.habs .hintbar { width: min(100%, 980px); }
.hintbar .map__hint { margin: 0; grid-column: 2; }
.hintbar__right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--space-4); }
.hintbar .panel__close { position: static; }
.modo-recados .mis__acoes, .mis-form-open .mis__acoes { display: none; }
.holo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); }
.map-stage { position: relative; width: min(100%, calc((100dvh - var(--lens-top) - var(--lens-bottom) - 250px) * 16 / 9)); }
.map { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid rgb(66 214 208 / .28); box-shadow: inset 0 0 60px rgb(66 214 208 / .12), 0 0 30px rgb(66 214 208 / .12); }
.map__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; pointer-events: none; }
.map__node { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); translate: -50% -50%; padding: .35rem .7rem; border: 1px solid var(--line); background: rgb(8 13 43 / .78); color: var(--cyan); font: 700 clamp(.58rem, 1.05vw, .85rem)/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; cursor: pointer; backdrop-filter: blur(4px); clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); transition: background .2s, color .2s, border-color .2s; }
.map__node:hover, .map__node:focus-visible, .map__node.is-active { background: rgb(66 214 208 / .25); border-color: var(--cyan); color: #fff; box-shadow: var(--glow-cyan); }
.map__node.is-closed { color: #FF9A9A; border-color: rgb(255 107 107 / .6); }
.map__node.is-closed:hover, .map__node.is-closed:focus-visible, .map__node.is-closed.is-active { background: rgb(255 107 107 / .25); border-color: #FF6B6B; color: #fff; box-shadow: 0 0 14px rgb(255 107 107 / .6); }

/* caixa de texto do setor: mesmo desenho da caixa de transmissões do HUD */
.map__card { position: absolute; top: 50%; translate: 0 -50%; width: min(380px, 34%); z-index: 3; border: 1px solid rgb(66 214 208 / .55); background: linear-gradient(180deg, rgb(8 13 43 / .92), rgb(8 13 43 / .8)); backdrop-filter: blur(8px); box-shadow: 0 0 24px rgb(66 214 208 / .22), inset 0 0 0 1px rgb(66 214 208 / .08); }
.map__card::before, .map__card::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid var(--cyan); filter: drop-shadow(var(--glow-cyan)); }
.map__card::before { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.map__card::after { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.map__card[hidden] { display: none; }
.map__card .hud__msg-head { display: flex; justify-content: space-between; align-items: center; padding: .5rem .85rem; border-bottom: 1px solid rgb(66 214 208 / .3); background: rgb(66 214 208 / .1); font: 700 .66rem/1 var(--font-hud); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.map__card .hud__msg-head b { display: flex; align-items: center; gap: .55rem; }
.map__card .hud__msg-head b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: blink 1.4s infinite; }
.map__card[data-tipo="alerta"] .hud__msg-head b::before { background: #ff6b6b; box-shadow: 0 0 8px #ff6b6b; }
.map__card[data-tipo="alerta"] .tx__src b { color: #FF9A9A; text-shadow: 0 0 10px rgb(255 107 107 / .5); }
.map__card .hud__msg-head span { color: var(--text-dim); font-weight: 500; }
.map__card-body { padding: .8rem .95rem .5rem; }
.map__card .tx__text { min-height: 0; }
.map__card-close { margin-left: auto; padding: 0; border: 0; background: none; color: var(--gold); font: 700 .72rem/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.map__card-close:hover, .map__card-close:focus-visible { text-decoration: underline; }
.map__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; color: var(--text-dim); font: 600 .72rem/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; }
.map__hint { margin: 0 0 var(--space-2); text-align: center; color: var(--cyan); font: 700 .78rem/1 var(--font-hud); letter-spacing: .24em; text-transform: uppercase; text-shadow: var(--glow-cyan); }
.map__hint::before { content: "▸ "; animation: map-blink 1.2s steps(2) infinite; }
@keyframes map-blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .map__hint::before { animation: none; } }
.map__legend li { display: flex; align-items: center; gap: .5rem; }
.map__key { display: inline-block; width: 26px; height: 4px; border-radius: 2px; background: var(--cyan); box-shadow: var(--glow-cyan); }
.map__key--anel { background: var(--gold); box-shadow: none; }
.map__key--fechada { background: repeating-linear-gradient(90deg, #FF6B6B 0 6px, transparent 6px 9px); box-shadow: none; }
.map__key--setor { width: 14px; height: 14px; border-radius: 4px; background: rgb(255 107 107 / .25); border: 1px solid #FF6B6B; box-shadow: none; }

/* Os Cinco Oceanos: dados na caixa do mapa e quiz (horóscopo dos oceanos) */
.oc__dados { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin: .6rem 0 0; }
.oc__dados div { padding: .35rem .5rem; border: 1px solid var(--line); background: rgb(37 37 107 / .3); }
.oc__dados dt { color: var(--cyan); font: 700 .6rem/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; }
.oc__dados dd { margin: .25rem 0 0; font-size: .78rem; font-weight: 600; line-height: 1.3; }
.oc__curio { margin: .6rem 0 0; font-size: .82rem; line-height: 1.45; }
.oc__curio b { margin-right: .35rem; color: var(--gold); font: 700 .62rem/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; }
.map-stage[hidden], .quiz[hidden] { display: none; }
.quiz { width: min(100%, calc((100dvh - var(--lens-top) - var(--lens-bottom) - 250px) * 16 / 9)); }
.quiz__main { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: clamp(16px, 3vw, 32px); padding: clamp(14px, 2.4vw, 26px); }
.quiz__q { margin: .4rem 0 1rem; font: 700 clamp(1.2rem, 2.4vw, 1.8rem)/1.2 var(--font-title); }
.quiz__q:focus { outline: none; }
.quiz__opcoes { display: grid; gap: .5rem; }
.quiz__op { padding: .65rem .9rem; border: 1px solid var(--line); background: rgb(8 13 43 / .7); color: var(--text); font: 600 .92rem/1.35 var(--font-body); text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.quiz__op:hover, .quiz__op:focus-visible { border-color: var(--cyan); background: rgb(66 214 208 / .18); box-shadow: var(--glow-cyan); }
.quiz__acoes { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-3); }
.quiz__qr { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 0; color: var(--text-dim); font: 700 .66rem/1 var(--font-hud); letter-spacing: .2em; text-transform: uppercase; }
.quiz__qr img, .quiz__qr-vago { width: clamp(120px, 14vw, 180px); aspect-ratio: 1; }
.quiz__qr img { padding: 6px; background: #fff; }
.quiz__qr-vago { display: grid; place-items: center; border: 1px dashed var(--line); }

@media (max-width: 767px) {
  .panel { padding: 52px 0 calc(var(--lens-bottom) + 58px); }
  .panel__frame { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .map__node { padding: .2rem .35rem; letter-spacing: .06em; }
  .ficha__main { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; }
  .ficha__head { font-size: .56rem; letter-spacing: .12em; }
  .ficha__head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ficha__dados { margin: 8px 0; }
  .ficha__dados div { padding: .35rem .5rem; }
  .ficha__dados dd { font-size: .78rem; margin-top: .25rem; }
  .ficha__info h3 { font-size: 1.3rem; }
  .ficha__role { font-size: .78rem; }
  .ficha__lbl--gold { margin-top: 8px; }
  .ficha__mural { margin-top: 8px; font-size: .66rem; }
  .ficha__txt { font-size: .76rem; line-height: 1.4; }
  .habs { justify-content: flex-start; gap: var(--space-2); }
  .hintbar, .holo .hintbar, .habs .hintbar { width: 100%; grid-template-columns: 1fr auto; gap: .5rem; }
  .hintbar .map__hint { grid-column: 1; text-align: left; font-size: .62rem; letter-spacing: .14em; }
  .hintbar__right { grid-column: 2; }
  .habs__btn { font-size: .62rem; padding: .3rem .5rem; }
  .mural .mural__chip { font-size: .62rem; padding: .3rem .5rem; }
  .feed { grid-template-columns: 1fr; }
  .mural { height: calc(100dvh - var(--lens-top) - var(--lens-bottom) - 170px); }
  .vform__row { grid-template-columns: 1fr; }
  .mform { grid-template-columns: 1fr; }
  .portal { height: calc(100dvh - var(--lens-top) - var(--lens-bottom) - 170px); }
  .ia { padding: .7rem .8rem .8rem; }
  .ia__regcampos { grid-template-columns: 1fr; gap: .4rem; }
  .ia.is-reg { --size-reg: 48px; }
  .ia__orb { --size: clamp(80px, 16vh, 130px); }
  .mform__trio { grid-template-columns: 1fr 1fr; }
  .mis__foot { grid-template-columns: 1fr; }
  .mis__btn, .mis__canais { justify-self: start; }
  .panel--bare { padding: calc(var(--lens-top) + 66px) 8px calc(var(--lens-bottom) + 64px); }
  .map-stage { width: 100%; }
  .map__card { position: fixed; top: auto; bottom: calc(var(--lens-bottom) + 66px); left: 10px !important; right: 10px !important; translate: 0 0; width: auto; }
  .map__card .tx__text { font-size: .82rem; }
  .is-panel-open .hud__brand { display: none; }
  .quiz { max-height: calc(100dvh - var(--lens-top) - var(--lens-bottom) - 190px); overflow-y: auto; }
  .quiz__main { grid-template-columns: 1fr; }
  .quiz__qr { display: none; }
  .quiz__op { font-size: .82rem; padding: .5rem .7rem; }
}
