:root {
  color-scheme: dark;
  --ink: #f5f2ff;
  --muted: #aaa8c3;
  --panel: rgba(22, 22, 46, 0.84);
  --panel-strong: #1c1c3a;
  --line: rgba(190, 184, 255, 0.16);
  --violet: #8f78ff;
  --cyan: #66e4f2;
  --ember: #ff7048;
  --gold: #ffd166;
  --green: #86e384;
}

/* Salão de Comando 0.29 — navegação gamer, legível e sem ícones de fonte */
.hub-view .hub-rail {
  width: min(1040px, calc(100% - 28px));
  height: 100px;
  grid-template-columns: 94px minmax(0, 1fr) 94px;
  border-radius: 12px;
  border-color: rgba(105, 231, 255, .34);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 18px);
  background:
    linear-gradient(90deg, rgba(255, 119, 64, .12), transparent 14%, transparent 86%, rgba(105, 231, 255, .08)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(12, 28, 52, .98), rgba(3, 9, 20, .99));
  box-shadow: 0 24px 80px rgba(0,0,0,.65), 0 0 32px rgba(38, 187, 224, .08), inset 0 1px rgba(255,255,255,.12);
}
.hub-view .hub-brand,
.hub-view .hub-exit { position: relative; }
.hub-view .hub-brand::after,
.hub-view .hub-exit::before {
  position: absolute;
  top: 9px;
  width: 3px;
  height: 15px;
  background: #6ee7f5;
  box-shadow: 0 23px #6ee7f5, 0 46px #6ee7f5;
  content: "";
  opacity: .45;
}
.hub-view .hub-brand::after { right: -2px; }
.hub-view .hub-exit::before { left: -2px; }
.hub-view .hub-brand-logo {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 0 14px rgba(255, 108, 47, .42));
}
.hub-view .hub-rail nav {
  gap: 8px;
  padding: 9px 11px;
}
.hub-view .hub-rail nav button,
.hub-view .hub-exit {
  overflow: hidden;
  gap: 4px;
  border-radius: 8px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.hub-view .hub-rail nav button::before {
  position: absolute;
  top: 7px;
  left: 8px;
  color: rgba(145, 177, 202, .55);
  font: 800 .42rem/1 ui-monospace, monospace;
  letter-spacing: .08em;
  content: "0";
}
.hub-view .hub-rail nav button:nth-child(1)::before { content: "01"; }
.hub-view .hub-rail nav button:nth-child(2)::before { content: "02"; }
.hub-view .hub-rail nav button:nth-child(3)::before { content: "03"; }
.hub-view .hub-rail nav button:nth-child(4)::before { content: "04"; }
.hub-view .hub-rail nav button:nth-child(5)::before { content: "05"; }
.hub-view .hub-rail nav button:nth-child(6)::before { content: "06"; }
.hub-view .hub-nav-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(125, 179, 209, .26);
  border-radius: 5px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: linear-gradient(145deg, rgba(63, 105, 137, .2), rgba(5, 13, 26, .55));
  box-shadow: inset 0 0 12px rgba(105, 231, 255, .04);
}
.hub-view .hub-nav-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hub-view .hub-nav-icon .hub-icon-fill { fill: currentColor; stroke: none; }
.hub-view .hub-rail nav button small,
.hub-view .hub-exit small {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .59rem;
  letter-spacing: .12em;
}
.hub-view .hub-rail nav button:hover {
  border-color: rgba(105,231,255,.42);
  background: linear-gradient(180deg, rgba(25, 104, 139, .34), rgba(4, 23, 39, .62));
  transform: translateY(-2px);
}
.hub-view .hub-rail nav button.active {
  color: #fff7e7;
  border-color: rgba(255, 187, 103, .7);
  background:
    linear-gradient(90deg, rgba(255,255,255,.13), transparent 30%),
    linear-gradient(155deg, #ff9448, #df4d27 72%);
  box-shadow: 0 10px 28px rgba(255, 91, 39, .34), inset 0 1px rgba(255,255,255,.38);
}
.hub-view .hub-rail nav button.active::before { color: rgba(39, 11, 4, .62); }
.hub-view .hub-rail nav button.active .hub-nav-icon {
  color: #fff9ea;
  border-color: rgba(255,255,255,.42);
  background: rgba(40, 9, 3, .24);
  box-shadow: 0 0 18px rgba(255, 219, 161, .23), inset 0 0 12px rgba(255,255,255,.08);
}
.hub-view .hub-rail nav button.active small { color: #fff9ea; text-shadow: 0 1px 2px rgba(74, 13, 0, .55); }

@media (max-width: 900px) {
  .hub-view .hub-rail {
    bottom: 0;
    width: 100%;
    height: 78px;
    grid-template-columns: 1fr;
    border-radius: 0;
    clip-path: none;
  }
  .hub-view .hub-rail nav { gap: 3px; padding: 5px 4px 7px; }
  .hub-view .hub-rail nav button { padding: 5px 1px; clip-path: none; }
  .hub-view .hub-rail nav button::before { display: none; }
  .hub-view .hub-nav-icon { width: 29px; height: 29px; clip-path: none; }
  .hub-view .hub-nav-icon svg { width: 19px; height: 19px; }
  .hub-view .hub-rail nav button small { font-size: .46rem; letter-spacing: .035em; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(107, 77, 196, 0.34), transparent 36rem),
    radial-gradient(circle at 88% 18%, rgba(41, 140, 160, 0.22), transparent 32rem),
    #0c0d1d;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 48px) 24px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.telemetry {
  display: flex;
  gap: 10px;
}

.wind-card,
.weather-card,
.room-card {
  min-width: 156px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(102, 228, 242, 0.13), rgba(143, 120, 255, 0.08));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.weather-card {
  min-width: 210px;
  background: linear-gradient(145deg, rgba(143, 120, 255, 0.16), rgba(72, 100, 186, 0.08));
}

.room-card {
  display: block;
  min-width: 180px;
  cursor: pointer;
  background: linear-gradient(145deg, rgba(255, 112, 72, 0.12), rgba(143, 120, 255, 0.08));
}

.room-card select {
  display: block;
  width: 100%;
  margin: 3px 0 2px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #ffd166;
  font-size: 0.82rem;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.room-card option {
  color: #f5f2ff;
  background: #1c1c3a;
}

.wind-card span,
.wind-card small,
.weather-card span,
.weather-card small,
.room-card span,
.room-card small {
  display: block;
}

.wind-card span,
.weather-card span,
.room-card span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.wind-card strong,
.weather-card strong {
  display: block;
  margin: 2px 0;
  color: var(--cyan);
  font-size: 1.45rem;
}

.wind-card small {
  color: #8f8cae;
}

.weather-card strong {
  overflow: hidden;
  color: #b9a9ff;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-card small {
  color: #8f8cae;
}

.room-card small {
  color: #8f8cae;
}

.online-card {
  min-width: 146px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(63, 219, 210, 0.15), rgba(45, 66, 133, 0.13));
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease;
}

.online-card:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 228, 242, 0.45);
}

.online-card span,
.online-card strong,
.online-card small {
  display: block;
}

.online-card span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.online-card strong {
  margin: 3px 0 1px;
  color: var(--cyan);
  font-size: 0.86rem;
}

.online-card small {
  color: #8f8cae;
}

#onlineStatusDot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #716f87;
  box-shadow: 0 0 9px currentColor;
}

#onlineStatusDot.connected {
  color: var(--green);
  background: var(--green);
}

#onlineStatusDot.connecting {
  color: var(--gold);
  background: var(--gold);
}

.game-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(185, 179, 255, 0.2);
  border-radius: 26px;
  background: #15172d;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.08);
}

/* Garante troca de view mesmo se o UA tratar [hidden] de forma inconsistente */
.site-experience[hidden],
#gameView[hidden],
#landingView[hidden],
#hubView[hidden] {
  display: none !important;
}

/* Só enquanto o laboratório está ativo — removido ao voltar ao hub/landing */
body.portal-game-active .site-experience {
  display: none !important;
}

body.portal-game-active #gameView {
  display: block !important;
}

body.portal-game-active #gameView[hidden] {
  display: none !important;
}

/* Tela cheia do navegador ao iniciar o jogo */
html.game-fullscreen,
html:fullscreen,
html:-webkit-full-screen {
  background: #0c0d1d;
}

/* Em combate: trava scroll do body para a arena usar 100% da viewport */
body:has(.lobby-modal.combat-live:not([hidden])) {
  overflow: hidden !important;
}

html.game-fullscreen body,
html:fullscreen body,
html:-webkit-full-screen body {
  min-height: 100%;
  height: 100%;
  overflow: auto;
  background: #0c0d1d;
}

html.game-fullscreen .app-shell,
html:fullscreen .app-shell,
html:-webkit-full-screen .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 14px clamp(12px, 2vw, 28px) 18px;
}

html.game-fullscreen .game-frame,
html:fullscreen .game-frame,
html:-webkit-full-screen .game-frame {
  border-radius: 14px;
}

html.game-fullscreen .game-frame canvas,
html:fullscreen .game-frame canvas,
html:-webkit-full-screen .game-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 210px);
  object-fit: contain;
}

html.game-fullscreen .lobby-modal,
html:fullscreen .lobby-modal,
html:-webkit-full-screen .lobby-modal {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
}

#gameView:fullscreen,
#gameView:-webkit-full-screen {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 14px clamp(12px, 2vw, 28px) 18px;
  background:
    radial-gradient(circle at 15% 0%, rgba(107, 77, 196, 0.34), transparent 36rem),
    radial-gradient(circle at 88% 18%, rgba(41, 140, 160, 0.22), transparent 32rem),
    #0c0d1d;
  overflow: auto;
}

#gameView:fullscreen .game-frame canvas,
#gameView:-webkit-full-screen .game-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 210px);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.canvas-status {
  position: absolute;
  right: 18px;
  bottom: 17px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.7rem, 1.3vw, 0.88rem);
  font-weight: 700;
  pointer-events: none;
  text-shadow: 0 1px 7px #090a18;
}

.control-deck {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(130px, 0.7fr) minmax(390px, 2.25fr) minmax(170px, 0.8fr);
  gap: 14px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  backdrop-filter: blur(22px);
}

.control-group {
  padding: 8px 10px;
}

.control-group label,
.ammo-picker legend {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.control-group output {
  float: right;
  color: var(--ink);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  margin: 17px 0 2px;
  accent-color: var(--violet);
  cursor: pointer;
}

.ammo-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 5px 0 0;
  border: 0;
}

.ammo-picker legend {
  padding: 0 0 6px;
}

.ammo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.ammo:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.075);
}

.ammo.active {
  border-color: rgba(143, 120, 255, 0.58);
  background: rgba(143, 120, 255, 0.13);
}

.ammo strong,
.ammo small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ammo strong {
  font-size: 0.79rem;
}

.ammo small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.67rem;
}

.ammo-icon {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 14px currentColor;
}

.ember-icon {
  color: var(--ember);
  border-radius: 50% 50% 50% 15%;
  background: var(--ember);
  transform: rotate(-35deg);
}

.prism-icon {
  color: var(--cyan);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  transform: rotate(45deg) scale(0.78);
}

.seed-icon {
  color: var(--green);
  border-radius: 70% 20% 70% 20%;
  background: var(--green);
}

.actions {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 7px;
}

.primary-action,
.secondary-action {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  color: #171025;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  box-shadow: 0 8px 22px rgba(255, 112, 72, 0.2);
}

.primary-action:disabled {
  cursor: not-allowed;
  filter: grayscale(0.65);
  opacity: 0.55;
}

kbd {
  padding: 3px 6px;
  border: 1px solid rgba(25, 16, 35, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.33);
  font-size: 0.64rem;
}

.secondary-action {
  padding: 6px;
  color: var(--muted);
  background: transparent;
}

.secondary-action:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 4px 0;
  color: #85829f;
  font-size: 0.75rem;
}

footer p {
  margin: 0;
}

footer strong {
  color: #b9b5cf;
}

.lobby-modal[hidden],
.active-room-state[hidden],
.empty-room-state[hidden],
.match-start-notice[hidden],
.online-match-arena[hidden],
#startMatchButton[hidden] {
  display: none;
}

.lobby-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lobby-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 5, 18, 0.78);
  backdrop-filter: blur(14px);
}

.lobby-panel {
  position: relative;
  overflow: hidden;
  width: min(1160px, 100%);
  min-height: min(760px, calc(100vh - 48px));
  border: 1px solid rgba(152, 184, 255, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 0%, rgba(67, 222, 232, 0.12), transparent 30rem),
    radial-gradient(circle at 0% 100%, rgba(143, 120, 255, 0.16), transparent 32rem),
    #101329;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.56), inset 0 1px rgba(255, 255, 255, 0.06);
}

.lobby-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.lobby-header h2 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.lobby-header p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.lobby-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 1.5rem;
}

.lobby-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  min-height: 635px;
}

.lobby-sidebar {
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(7, 10, 28, 0.35);
}

.lobby-field > span:first-child,
.create-room-card > strong,
.room-browser-heading strong {
  display: block;
  margin-bottom: 8px;
  color: #a5a1bd;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inline-field {
  display: flex;
  gap: 7px;
}

.lobby-panel input,
.lobby-panel select {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(185, 179, 255, 0.18);
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
}

.lobby-panel input:focus,
.lobby-panel select:focus {
  border-color: rgba(102, 228, 242, 0.62);
  box-shadow: 0 0 0 3px rgba(102, 228, 242, 0.08);
}

.lobby-panel select option {
  background: #1c1c3a;
}

.inline-field input {
  flex: 1;
}

.lobby-panel button {
  border: 1px solid rgba(185, 179, 255, 0.16);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 800;
}

.lobby-panel button:hover:not(:disabled) {
  border-color: rgba(102, 228, 242, 0.46);
  background: rgba(102, 228, 242, 0.09);
}

.lobby-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

#saveNicknameButton {
  padding: 9px 11px;
}

.mount-picker-label {
  display: block;
  margin: 10px 0 6px;
  color: #6fddea;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#onlineMountInput { width: 100%; }

.mount-picker {
  display: grid;
  gap: 8px;
  --mount-accent: #69e7ff;
}

.mount-picker-selected {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--mount-accent) 45%, transparent);
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--mount-accent) 22%, transparent), transparent 55%),
    rgba(4, 10, 24, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mount-picker-preview {
  display: block;
  width: 92px;
  height: 68px;
  object-fit: contain;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 60%, rgba(105, 231, 255, 0.12), rgba(2, 6, 16, 0.95));
  box-shadow: 0 0 18px color-mix(in srgb, var(--mount-accent) 18%, transparent);
}

.mount-picker-selected-copy {
  min-width: 0;
}

.mount-picker-selected-copy strong {
  display: block;
  color: #f4f7ff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.mount-picker-selected-copy small {
  display: block;
  margin-top: 2px;
  color: var(--mount-accent);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mount-picker-selected-copy p {
  margin: 5px 0 0;
  color: #9aa7bf;
  font-size: 0.66rem;
  line-height: 1.35;
}

.mount-picker-selected-copy em {
  display: block;
  margin-top: 5px;
  color: color-mix(in srgb, var(--mount-accent) 76%, #ffffff);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.3;
}

.mount-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.mount-picker-card {
  display: grid;
  gap: 3px;
  justify-items: center;
  min-height: 0;
  padding: 5px 4px 6px;
  border: 1px solid rgba(130, 200, 240, 0.16);
  border-radius: 10px;
  color: #dce7f5;
  background: rgba(5, 12, 28, 0.9);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.mount-picker-card img {
  display: block;
  width: 100%;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 70%, rgba(105, 231, 255, 0.1), rgba(2, 6, 16, 0.92));
  pointer-events: none;
}

.mount-picker-card-name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #e8eef8;
  font-size: 0.52rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mount-picker-card-role {
  display: block;
  color: #7f93ad;
  font-size: 0.48rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.mount-picker-card:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--mount-accent) 55%, transparent);
  transform: translateY(-1px);
  background: rgba(8, 18, 38, 0.96);
}

.mount-picker-card.is-selected {
  border-color: color-mix(in srgb, var(--mount-accent) 80%, #fff 10%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mount-accent) 35%, transparent), 0 8px 20px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--mount-accent) 18%, transparent), transparent 70%),
    rgba(8, 18, 38, 0.98);
}

.mount-picker-card.is-selected .mount-picker-card-role {
  color: var(--mount-accent);
}

.mount-picker.is-locked {
  opacity: 0.72;
}

.mount-picker.is-locked .mount-picker-card {
  cursor: not-allowed;
}

.mount-picker-card:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

@media (max-width: 760px) {
  .mount-picker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mount-picker-selected {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .mount-picker-preview {
    width: 76px;
    height: 58px;
  }
}

.create-room-card {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(143, 120, 255, 0.065);
}

.create-room-card > strong {
  margin-bottom: 0;
}

.create-room-card select {
  flex: 1;
}

.lobby-primary {
  padding: 10px 15px;
  color: #11152c !important;
  border: 0 !important;
  background: linear-gradient(135deg, var(--cyan), #8f78ff) !important;
  box-shadow: 0 8px 22px rgba(72, 203, 224, 0.13);
}

.room-browser-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.room-browser-heading strong {
  margin: 0;
}

.room-browser-heading button {
  width: 31px;
  height: 31px;
}

.room-list {
  display: grid;
  gap: 7px;
  max-height: 310px;
  margin-top: 9px;
  overflow: auto;
}

.room-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  width: 100%;
  padding: 11px !important;
  text-align: left;
}

.room-entry strong,
.room-entry small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-entry small {
  color: var(--muted);
  font-weight: 600;
}

.room-entry .room-count {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--cyan);
  font-size: 0.76rem;
}

.room-list-empty {
  padding: 24px 10px;
  color: #77758e;
  font-size: 0.79rem;
  text-align: center;
}

.room-stage {
  position: relative;
  padding: 28px;
}

.empty-room-state {
  display: grid;
  place-items: center;
  align-content: center;
  height: 100%;
  text-align: center;
}

.empty-room-state h3 {
  margin: 22px 0 8px;
  font-size: 1.35rem;
}

.empty-room-state p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.orbit-mark {
  position: relative;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(102, 228, 242, 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(102, 228, 242, 0.08), 0 0 35px rgba(143, 120, 255, 0.1);
}

.orbit-mark::before,
.orbit-mark::after {
  position: absolute;
  content: "";
  inset: 14px -13px;
  border: 1px solid rgba(143, 120, 255, 0.32);
  border-radius: 50%;
  transform: rotate(35deg);
}

.orbit-mark::after {
  inset: 30px -22px;
  transform: rotate(-28deg);
}

.orbit-mark span {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
}

.active-room-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.active-room-heading h3 {
  margin: 8px 0 4px;
  font-size: 1.55rem;
}

.active-room-heading p {
  margin: 0;
  color: var(--muted);
}

.room-code {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(102, 228, 242, 0.24);
  border-radius: 7px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.danger-quiet {
  padding: 8px 12px;
  color: #ff9a88 !important;
}

.online-teams {
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  gap: 10px;
  align-items: stretch;
  margin-top: 26px;
}

.online-team {
  min-height: 325px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.online-team > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.online-team > header button {
  padding: 5px 9px;
  font-size: 0.68rem;
}

.brasa-team > header span {
  color: #ff9271;
}

.nox-team > header span {
  color: #79e9f2;
}

.online-team-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.online-player,
.online-player-empty {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.online-player.self {
  border-color: rgba(255, 209, 102, 0.34);
}

.online-player.disconnected {
  border-color: rgba(255, 209, 102, 0.2);
  opacity: 0.62;
}

.online-player.disconnected .player-orb {
  filter: grayscale(0.7);
}

.online-player.abandoned {
  border-color: rgba(255, 112, 72, 0.24);
  opacity: 0.46;
}

.online-player.abandoned .ready-state {
  color: #ff9b82;
}

.online-player-empty {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  grid-template-columns: none;
  gap: 0;
  padding: 10px 16px 10px 18px;
  color: #66647b;
  border-style: dashed;
  font-size: 0.73rem;
  letter-spacing: 0.01em;
}

.lobby-speech-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  z-index: 5;
  max-width: min(220px, 70vw);
  padding: 6px 10px;
  border: 1px solid rgba(105, 231, 255, 0.35);
  border-radius: 8px;
  color: #f4f0ff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  background: rgba(10, 14, 30, 0.96);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, 4px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.lobby-speech-bubble.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.lobby-speech-bubble::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: rgba(10, 14, 30, 0.96);
  content: "";
}

.brasa-team .lobby-speech-bubble {
  border-color: rgba(255, 112, 72, 0.45);
}

.nox-team .lobby-speech-bubble {
  border-color: rgba(105, 231, 255, 0.45);
}

.player-orb {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: #0d1126;
  background: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
}

.player-orb.mount-portrait {
  overflow: hidden;
  border: 1px solid rgba(105, 231, 255, 0.28);
  border-radius: 7px;
  background: radial-gradient(circle, rgba(105, 231, 255, 0.13), rgba(4, 9, 24, 0.9));
}

.mount-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.3);
}

.online-player strong,
.online-player small {
  display: block;
}

.online-player strong {
  overflow: hidden;
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-player small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.ready-state {
  color: #77758e;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ready-state.ready {
  color: var(--green);
}

.versus-mark {
  display: grid;
  place-items: center;
  color: #817d9b;
  font-size: 1.4rem;
  font-weight: 300;
}

.lobby-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.lobby-actions p {
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.lobby-actions button {
  padding: 10px 16px;
}

.match-start-notice {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(129, 230, 130, 0.3);
  border-radius: 13px;
  color: #c9f8cc;
  background: rgba(129, 230, 130, 0.08);
  font-size: 0.78rem;
}

.active-room-state.match-live .online-teams,
.active-room-state.match-live .match-start-notice,
.active-room-state.match-live .lobby-actions {
  display: none;
}

.online-match-arena {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(102, 228, 242, 0.24);
  border-radius: 18px;
  background: rgba(5, 8, 25, 0.72);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.05);
}

.online-match-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.online-match-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.online-match-heading strong {
  font-size: 0.8rem;
}

.online-match-heading > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.online-match-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.leave-match-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 112, 72, 0.55);
  border-radius: 999px;
  color: #ffd0c2;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(120, 28, 24, 0.92), rgba(70, 14, 18, 0.96));
  box-shadow: 0 0 0 1px rgba(255, 112, 72, 0.12), 0 8px 22px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  white-space: nowrap;
}

.leave-match-button:hover {
  color: #fff4ef;
  border-color: rgba(255, 150, 120, 0.85);
  background: linear-gradient(180deg, rgba(160, 40, 32, 0.96), rgba(90, 18, 20, 0.98));
  filter: brightness(1.06);
}

.leave-match-button:active {
  transform: translateY(1px);
}

.live-badge {
  padding: 4px 7px;
  border: 1px solid rgba(129, 230, 130, 0.32);
  border-radius: 999px;
  color: var(--green);
  background: rgba(129, 230, 130, 0.08);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.online-match-canvas {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #10162e;
}

.online-post-match {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(260px, 1.35fr) minmax(190px, 0.85fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 15% 20%, rgba(143, 120, 255, 0.16), transparent 36%), rgba(9, 12, 34, 0.96);
}

.online-post-match[hidden] {
  display: none;
}

.post-match-result span {
  color: var(--cyan);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.post-match-result h4 {
  margin: 6px 0 4px;
  font-size: 1.25rem;
}

.post-match-result p,
.post-match-action p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.post-match-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.post-match-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 3px solid #69e7ff;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.post-match-player.team-0 {
  border-left-color: #ff7048;
}

.post-match-player.eliminated {
  opacity: 0.52;
}

.post-match-player strong,
.post-match-player small {
  display: block;
}

.post-match-player strong {
  font-size: 0.7rem;
}

.post-match-player small,
.post-match-player > span {
  color: var(--muted);
  font-size: 0.6rem;
}

.post-match-player > span {
  text-align: right;
  white-space: nowrap;
}

.post-match-action {
  display: grid;
  gap: 9px;
}

.post-match-action button {
  min-height: 40px;
}

.online-match-arena.post-match .online-match-controls,
.online-match-arena.post-match .authoritative-note {
  display: none;
}

.online-match-controls {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) 138px 104px auto;
  gap: 12px;
  align-items: end;
  padding: 13px 14px 10px;
}

.online-move-field { display: grid; gap: 7px; }
.online-move-field > span { display: flex; justify-content: space-between; color: #aaa6c1; font-size: .65rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.online-move-field output { color: var(--cyan); }
.online-move-field > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.online-move-field button { min-height: 35px; padding: 5px; border-color: rgba(105,231,255,.28); color: var(--cyan); background: rgba(9,20,43,.82); }

/* Combate: tela cheia real (não card/modal encolhido) */
.lobby-modal.combat-live {
  padding: 0 !important;
  place-items: stretch;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  background: #050914;
}

.lobby-modal.combat-live .lobby-backdrop {
  display: none;
}

.lobby-modal.combat-live .lobby-panel {
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #050914 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lobby-modal.combat-live .lobby-panel::before {
  display: none;
}

.lobby-modal.combat-live .lobby-header {
  display: none;
}

.lobby-modal.combat-live .lobby-layout {
  display: flex !important;
  flex: 1 1 auto;
  grid-template-columns: none;
  grid-template-rows: none;
  height: 100% !important;
  min-height: 0;
  overflow: hidden;
}

.lobby-modal.combat-live .lobby-sidebar {
  display: none !important;
}

.lobby-modal.combat-live .room-stage {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #050914;
}

.lobby-modal.combat-live .active-room-state {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: #050914 !important;
  box-shadow: none !important;
  backdrop-filter: none;
  overflow: hidden;
}

/* Barra fina de status (sair fica só no header da arena — 1 botão) */
.lobby-modal.combat-live .active-room-heading {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid rgba(105, 231, 255, 0.14);
  background: linear-gradient(180deg, rgba(6, 12, 28, 0.96), rgba(5, 9, 20, 0.92));
}

.lobby-modal.combat-live .active-room-heading #leaveRoomButton,
.lobby-modal.combat-live #leaveRoomButton {
  display: none !important;
}

.lobby-modal.combat-live .active-room-heading > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  min-width: 0;
}

.lobby-modal.combat-live .active-room-heading h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.lobby-modal.combat-live .active-room-heading p,
.lobby-modal.combat-live .active-room-heading .room-code {
  margin: 0;
  font-size: 0.68rem;
  opacity: 0.78;
}

.lobby-modal.combat-live .online-match-arena {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: #050914 !important;
  box-shadow: none !important;
}

.lobby-modal.combat-live .online-match-heading {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: rgba(4, 10, 24, 0.88);
}

.lobby-modal.combat-live .leave-match-button {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.74rem;
}

/* Botão de sair sempre legível no topo da partida */
.lobby-modal.combat-live .active-room-heading .leave-match-button {
  flex-shrink: 0;
}

.lobby-modal.combat-live .online-match-canvas {
  flex: 1 1 auto;
  align-self: center;
  width: min(100vw, calc((100dvh - 196px) * 16 / 9));
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 196px);
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0a1024;
  border-bottom: 1px solid rgba(105, 231, 255, 0.1);
}

.lobby-modal.combat-live .online-match-controls {
  flex: 0 0 auto;
  grid-template-columns: minmax(100px, 1.1fr) minmax(100px, 1.1fr) minmax(110px, 0.9fr) 96px auto;
  gap: 10px;
  padding: 10px 14px 8px;
  background: linear-gradient(180deg, rgba(6, 12, 28, 0.94), rgba(4, 8, 18, 0.98));
  border-top: 1px solid rgba(105, 231, 255, 0.1);
}

.lobby-modal.combat-live .online-controls-hint {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 14px 6px;
  font-size: 0.62rem;
  opacity: 0.7;
  background: rgba(4, 8, 18, 0.98);
}

.lobby-modal.combat-live .authoritative-note {
  display: none;
}

.lobby-modal.combat-live .online-post-match {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.lobby-modal.combat-live .lobby-toast {
  top: 56px;
  right: 16px;
}

@media (max-width: 760px) {
  .lobby-modal.combat-live .online-match-canvas {
    min-height: min(42dvh, calc(100dvh - 280px));
  }
  .lobby-modal.combat-live .online-match-controls {
    grid-template-columns: 1fr 1fr;
  }
  .lobby-modal.combat-live .online-fire-button {
    grid-column: 1 / -1;
  }
}

.online-match-controls label {
  display: grid;
  gap: 7px;
}

.online-match-controls label > span {
  display: flex;
  justify-content: space-between;
  color: #aaa6c1;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.online-match-controls output {
  color: var(--cyan);
}

.online-match-controls input[type="range"] {
  width: 100%;
  padding: 0;
  accent-color: var(--cyan);
  box-shadow: none;
}

.online-match-controls select {
  width: 100%;
  padding: 8px 9px;
}

.online-fire-button {
  min-height: 38px;
  padding: 8px 18px;
  border: 0 !important;
  color: #10142a !important;
  background: linear-gradient(135deg, #66e4f2, #a18aff) !important;
  box-shadow: 0 8px 25px rgba(102, 228, 242, 0.18);
}

.online-pulse-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 180, 90, 0.45) !important;
  border-radius: 8px;
  color: #ffd9a8 !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(40, 22, 8, 0.88) !important;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}

.online-pulse-button:hover:not(:disabled) {
  background: rgba(70, 36, 12, 0.95) !important;
  box-shadow: 0 0 18px rgba(255, 160, 60, 0.22);
}

.online-pulse-button.armed {
  color: #1a1008 !important;
  border-color: rgba(255, 200, 100, 0.9) !important;
  background: linear-gradient(135deg, #ffb347, #ff7048) !important;
  box-shadow: 0 0 22px rgba(255, 140, 60, 0.35);
}

.online-pulse-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.online-controls-hint {
  margin: 0;
  padding: 2px 14px 8px;
  color: #8a90a8;
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.online-controls-hint kbd {
  display: inline-block;
  min-width: 1.35em;
  margin: 0 1px;
  padding: 1px 5px;
  border: 1px solid rgba(105, 231, 255, 0.22);
  border-radius: 3px;
  color: var(--cyan);
  font: 700 0.65rem ui-monospace, monospace;
  background: rgba(9, 20, 43, 0.85);
}

.authoritative-note {
  margin: 0;
  padding: 0 14px 12px;
  color: #74728c;
  font-size: 0.64rem;
  text-align: center;
}

/* Contagem regressiva pós-formação (bots/host pronto) */
.match-countdown-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px solid rgba(102, 228, 242, 0.28);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(102, 228, 242, 0.1), rgba(143, 120, 255, 0.08)),
    rgba(8, 14, 28, 0.92);
}

.match-countdown-banner[hidden] {
  display: none !important;
}

.match-countdown-label {
  color: var(--cyan);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.match-countdown-banner strong {
  justify-self: center;
  min-width: 2.4ch;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 24px rgba(102, 228, 242, 0.35);
}

.match-countdown-hint {
  justify-self: end;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

/* —— Chat integrado ao salão (barra da expedição) —— */
.room-chat {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 16px;
  border: 1px solid rgba(105, 231, 255, 0.14);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(10, 18, 34, 0.94), rgba(7, 12, 24, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.room-chat[hidden] {
  display: none !important;
}

.room-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(105, 231, 255, 0.1);
  background: rgba(105, 231, 255, 0.04);
}

.room-chat-header > div { min-width: 0; }

.room-chat-header span {
  display: block;
  color: var(--cyan);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.room-chat-header strong {
  display: block;
  margin-top: 2px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.room-chat-header button {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(105, 231, 255, 0.18);
  border-radius: 3px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.room-chat-header button:hover {
  color: var(--ink);
  border-color: rgba(102, 228, 242, 0.4);
  background: rgba(102, 228, 242, 0.08);
}

.room-chat.collapsed .room-chat-body { display: none; }
.room-chat.collapsed .room-chat-header { border-bottom: 0; }

.room-chat-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.room-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
  max-height: 150px;
  padding: 10px 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(105, 231, 255, 0.3) transparent;
}

.room-chat-messages:empty::before {
  content: "Canal da tripulação — combine a formação e a mira.";
  color: #6a7188;
  font-size: 0.72rem;
  line-height: 1.45;
}

.room-chat-line {
  display: grid;
  gap: 1px;
  padding: 5px 8px 5px 10px;
  border-left: 2px solid rgba(190, 184, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.room-chat-line.team-brasa { border-left-color: rgba(255, 112, 72, 0.7); }
.room-chat-line.team-nox { border-left-color: rgba(102, 228, 242, 0.7); }
.room-chat-line.self { background: rgba(143, 120, 255, 0.08); }

.room-chat-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.room-chat-meta strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-chat-line.team-brasa .room-chat-meta strong { color: #ffb39a; }
.room-chat-line.team-nox .room-chat-meta strong { color: #9aeff8; }

.room-chat-meta time {
  flex: 0 0 auto;
  color: #6a6884;
  font-size: 0.56rem;
  font-variant-numeric: tabular-nums;
}

.room-chat-line p {
  margin: 0;
  color: #d4d8ea;
  font-size: 0.76rem;
  line-height: 1.4;
  word-break: break-word;
}

.room-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(105, 231, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.room-chat-form input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(105, 231, 255, 0.16);
  border-radius: 3px;
  color: var(--ink);
  background: rgba(6, 12, 24, 0.88);
  outline: none;
}

.room-chat-form input::placeholder { color: #6a7188; }

.room-chat-form input:focus {
  border-color: rgba(102, 228, 242, 0.45);
  box-shadow: 0 0 0 2px rgba(102, 228, 242, 0.1);
}

.room-chat-form button {
  flex: 0 0 auto;
  min-width: 76px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
  color: #071018;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--cyan), #7ad0ff);
  cursor: pointer;
}

.room-chat-form button:hover { filter: brightness(1.06); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.room-chat-heading { min-width: 0; }
.room-chat-eyebrow { display: block; }
.room-chat-title { display: block; }

.room-chat-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: #071018;
  font-size: 0.62rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff9a6b, #ff6b5a);
  box-shadow: 0 0 12px rgba(255, 107, 90, 0.35);
}

.room-chat-unread[hidden] { display: none !important; }

/*
 * Chat de combate: montado no <body> (.room-chat--combat).
 * Canto inferior esquerdo, acima da barra — NUNCA no centro da arena.
 * IMPORTANTE: .collapsed deve esconder o body com !important
 * (o flex do painel expandido não pode vencer o recolhido).
 */
.room-chat.room-chat--combat {
  position: fixed !important;
  left: max(12px, env(safe-area-inset-left, 0px)) !important;
  right: auto !important;
  top: auto !important;
  bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 88px)) !important;
  z-index: 12000 !important;
  width: min(320px, calc(100vw - 24px)) !important;
  max-width: min(320px, calc(100vw - 24px)) !important;
  max-height: min(28dvh, 220px) !important;
  margin: 0 !important;
  transform: none !important;
  border: 1px solid rgba(120, 210, 245, 0.28) !important;
  border-radius: 14px !important;
  background: rgba(5, 10, 22, 0.94) !important;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  pointer-events: auto !important;
}

/* Pílula compacta no canto — só header, sem oval gigante */
.room-chat.room-chat--combat.collapsed {
  width: auto !important;
  max-width: min(160px, calc(100vw - 24px)) !important;
  max-height: none !important;
  height: auto !important;
  border-radius: 999px !important;
  background: rgba(7, 12, 26, 0.95) !important;
}

/* CRÍTICO: body some no recolhido (spec mais alta que o flex do expandido) */
.room-chat.room-chat--combat.collapsed .room-chat-body {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
}

.room-chat.room-chat--combat.collapsed .room-chat-header {
  padding: 7px 8px 7px 14px;
  border-bottom: 0;
  background: transparent;
  gap: 6px;
}

.room-chat.room-chat--combat.collapsed .room-chat-eyebrow {
  display: none !important;
}

.room-chat.room-chat--combat.collapsed .room-chat-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.room-chat.room-chat--combat.collapsed .room-chat-header button {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border-color: rgba(105, 231, 255, 0.3);
  color: #9ef0ff;
  background: rgba(105, 231, 255, 0.12);
}

.room-chat.room-chat--combat:not(.collapsed) .room-chat-header {
  flex: 0 0 auto;
  padding: 7px 10px;
  background: linear-gradient(180deg, rgba(105, 231, 255, 0.1), transparent);
  border-bottom: 1px solid rgba(105, 231, 255, 0.12);
}

.room-chat.room-chat--combat:not(.collapsed) .room-chat-eyebrow {
  font-size: 0.46rem;
  letter-spacing: 0.12em;
}

.room-chat.room-chat--combat:not(.collapsed) .room-chat-title {
  margin-top: 1px;
  font-size: 0.78rem;
}

.room-chat.room-chat--combat:not(.collapsed) .room-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.room-chat.room-chat--combat:not(.collapsed) .room-chat-messages {
  flex: 1 1 auto;
  min-height: 56px !important;
  max-height: none !important;
  height: min(110px, 14dvh);
  padding: 6px 10px;
  gap: 4px;
  overflow-y: auto;
}

.room-chat.room-chat--combat .room-chat-messages:empty::before {
  content: "Nenhuma mensagem ainda.";
  font-size: 0.68rem;
}

.room-chat.room-chat--combat .room-chat-line {
  padding: 3px 7px 4px 8px;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.03);
}

.room-chat.room-chat--combat .room-chat-line p {
  font-size: 0.7rem;
  line-height: 1.32;
}

.room-chat.room-chat--combat:not(.collapsed) .room-chat-form {
  flex: 0 0 auto;
  gap: 6px;
  padding: 6px 10px 8px;
  border-top: 1px solid rgba(105, 231, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.room-chat.room-chat--combat .room-chat-form input {
  height: 32px;
  border-radius: 10px;
  font-size: 0.74rem;
}

.room-chat.room-chat--combat .room-chat-form button {
  min-width: 58px;
  height: 32px;
  border-radius: 10px;
  font-size: 0.62rem;
}

/* Esconde qualquer chat residual dentro do modal em combate */
.lobby-modal.combat-live .active-room-state > .room-chat:not(.room-chat--combat) {
  display: none !important;
}

@media (max-width: 760px) {
  .match-countdown-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .match-countdown-hint { justify-self: center; }
  .room-chat-messages {
    min-height: 72px;
    max-height: 120px;
  }

  .room-chat.room-chat--combat {
    left: 8px !important;
    width: min(100vw - 16px, 300px) !important;
    max-width: calc(100vw - 16px) !important;
    bottom: max(118px, calc(env(safe-area-inset-bottom, 0px) + 118px)) !important;
    max-height: min(26dvh, 200px) !important;
  }

  .room-chat.room-chat--combat:not(.collapsed) .room-chat-messages {
    height: min(90px, 12dvh);
  }
}

.lobby-toast {
  position: absolute;
  top: 112px;
  right: 24px;
  max-width: 380px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: transparent;
  background: transparent;
  pointer-events: none;
  transition: all 160ms ease;
}

.lobby-toast.visible {
  color: #ffe1d9;
  border-color: rgba(255, 112, 72, 0.35);
  background: rgba(55, 22, 34, 0.94);
}

.lobby-toast.visible.success {
  color: #d7ffda;
  border-color: rgba(129, 230, 130, 0.35);
  background: rgba(18, 53, 44, 0.96);
}

body.lobby-open {
  overflow: hidden;
}

@media (max-width: 1000px) {
  .control-deck {
    grid-template-columns: 1fr 1fr;
  }

  .ammo-picker {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr;
  }

  .lobby-layout {
    grid-template-columns: 285px 1fr;
  }

  .online-teams {
    grid-template-columns: 1fr;
  }

  .versus-mark {
    height: 24px;
  }

  .online-match-controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 18px 10px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .wind-card {
    min-width: 140px;
  }

  .weather-card {
    min-width: 0;
    flex: 1;
  }

  .telemetry {
    flex-wrap: wrap;
  }

  .room-card {
    min-width: 190px;
    flex: 1;
  }

  .online-card {
    flex: 1;
  }

  .lobby-modal {
    padding: 0;
  }

  .lobby-panel {
    min-height: 100vh;
    border-radius: 0;
  }

  .lobby-layout {
    display: block;
  }

  .lobby-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .room-stage {
    padding: 20px 14px;
  }

  .online-match-heading,
  .online-match-heading > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .online-match-controls {
    grid-template-columns: 1fr;
  }

  .control-deck {
    grid-template-columns: 1fr;
  }

  .ammo-picker {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .actions {
    grid-column: 1;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 6px;
  }
}

/* Portal público e hub de produto */

.site-experience {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(42, 154, 198, 0.1), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(99, 71, 188, 0.12), transparent 34rem),
    #070b18;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1500px, 100%);
  min-height: 82px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(192, 218, 255, 0.11);
  overflow: visible;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  max-width: min(280px, 48vw);
  padding: 4px 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  overflow: visible;
}

.brand-lockup .brand-logo,
.brand-logo {
  display: block;
  width: min(210px, 44vw);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 10px rgba(255, 120, 40, 0.28));
}

.brand-logo-lg {
  display: block;
  width: min(240px, 70%);
  height: auto;
  margin-bottom: 12px;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 4px 16px rgba(255, 120, 40, 0.3));
}

.hub-brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: transparent !important;
  box-shadow: 0 0 18px rgba(255, 140, 40, 0.25);
}

.hero-logo-title {
  margin: 0 0 8px;
  line-height: 0;
  background: transparent;
}

.hero-logo {
  display: block;
  width: min(720px, 92%);
  height: auto;
  max-height: min(300px, 42vh);
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  /* sombra só no desenho, sem caixa preta */
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
  overflow: visible;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}

.brand-lockup small {
  margin-top: 3px;
  color: #77849f;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

/* Fallback sigil (legado) */
.brand-sigil {
  position: relative;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(255, 140, 50, 0.45);
  border-radius: 50%;
  box-shadow: inset 0 0 13px rgba(255, 140, 50, 0.16), 0 0 18px rgba(255, 120, 40, 0.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 180, 60, 0.35), transparent 55%),
    #0c101c;
}

.brand-sigil::before,
.brand-sigil::after {
  position: absolute;
  content: "";
  width: 43px;
  height: 15px;
  border: 1px solid rgba(255, 150, 50, 0.45);
  border-radius: 50%;
  transform: rotate(28deg);
}

.brand-sigil::after {
  transform: rotate(-28deg);
}

.brand-sigil i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffb347;
  box-shadow: 0 0 13px #ff9a40;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 38px);
}

.site-nav button,
.quiet-site-action {
  padding: 8px 2px;
  border: 0;
  color: #9ba8bf;
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav button:hover,
.quiet-site-action:hover {
  color: var(--cyan);
}

.site-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.bright-site-action {
  padding: 11px 18px;
  border: 1px solid rgba(105, 231, 255, 0.4);
  border-radius: 4px;
  color: #dffcff;
  background: rgba(105, 231, 255, 0.08);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bright-site-action:hover {
  background: rgba(105, 231, 255, 0.16);
  box-shadow: 0 0 24px rgba(105, 231, 255, 0.09);
}

.landing-view {
  overflow: hidden;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.84fr) minmax(520px, 1.16fr);
  align-items: center;
  min-height: min(930px, 100vh);
  max-width: 1600px;
  margin: 0 auto;
  padding: 110px clamp(24px, 5vw, 88px) 72px;
}

.hero-section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 180px;
  background: linear-gradient(transparent, #070b18 86%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 650px;
}

.portal-eyebrow {
  margin: 0 0 16px;
  color: #66dbe9;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.portal-eyebrow i,
.live-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 6vw, 6.9rem);
  font-weight: 500;
  line-height: 0.91;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-copy h1 em {
  color: #79e9f2;
  font-weight: 400;
  text-shadow: 0 0 34px rgba(105, 231, 255, 0.16);
}

.hero-lead {
  max-width: 575px;
  margin: 27px 0 0;
  color: #abb5c9;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions,
.play-banner-actions {
  display: flex;
  gap: 12px;
  margin-top: 31px;
}

.portal-primary,
.portal-secondary {
  min-height: 48px;
  padding: 0 21px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 900;
}

.portal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid #72e8f2;
  color: #07131e;
  background: linear-gradient(135deg, #8cf4f4, #70c7ed);
  box-shadow: 0 13px 38px rgba(54, 198, 222, 0.17);
}

.portal-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.portal-secondary {
  border: 1px solid rgba(190, 204, 235, 0.22);
  color: #d8dfed;
  background: rgba(255, 255, 255, 0.035);
}

.portal-secondary:hover {
  border-color: rgba(105, 231, 255, 0.4);
  background: rgba(105, 231, 255, 0.07);
}

.hero-proof {
  display: flex;
  gap: 28px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(177, 199, 234, 0.12);
  color: #77849c;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-proof b {
  margin-right: 6px;
  color: #cfeef2;
  font-size: 0.85rem;
}

.hero-art {
  position: absolute;
  z-index: 2;
  top: 83px;
  right: max(-310px, calc((100vw - 1600px) / -2 - 90px));
  bottom: 40px;
  width: min(1080px, 72vw);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 17%, #000 82%, transparent 100%);
}

.hero-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #070b18 0%, transparent 26%, transparent 78%, #070b18 100%), linear-gradient(0deg, #070b18 0%, transparent 33%);
  content: "";
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
  opacity: 0.9;
  filter: saturate(0.92) contrast(1.08);
}

.hero-art-glow {
  position: absolute;
  z-index: -1;
  inset: 25% 12%;
  border-radius: 50%;
  background: rgba(46, 176, 219, 0.24);
  filter: blur(110px);
}

.hero-mount-card {
  position: absolute;
  z-index: 4;
  right: 22%;
  bottom: 105px;
  padding: 14px 18px;
  border-left: 2px solid var(--cyan);
  background: rgba(6, 12, 26, 0.72);
  backdrop-filter: blur(14px);
}

.hero-mount-card span,
.hero-mount-card strong,
.hero-mount-card small {
  display: block;
}

.hero-mount-card span {
  color: var(--cyan);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero-mount-card strong {
  margin-top: 5px;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.hero-mount-card small {
  margin-top: 3px;
  color: #8995aa;
}

.hero-atmosphere span {
  position: absolute;
  z-index: 1;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 4px white, 160px 90px #69e7ff, 370px -70px white, 710px 155px #8f78ff, 980px -30px white, 1120px 220px #69e7ff, 450px 350px white, 850px 490px #69e7ff;
  opacity: 0.6;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-atmosphere span:nth-child(1) { top: 19%; left: 8%; }
.hero-atmosphere span:nth-child(2) { top: 44%; left: 23%; transform: scale(0.6); }
.hero-atmosphere span:nth-child(3) { top: 70%; left: 2%; transform: scale(0.8); }

.scroll-cue {
  position: absolute;
  z-index: 6;
  bottom: 30px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #667188;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 28px;
  height: 1px;
  background: #617085;
}

.portal-section {
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
  padding: 105px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.6fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading h2,
.mount-showcase h2,
.final-cta h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-heading > p {
  margin: 0;
  color: #929db2;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.feature-card {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(166, 194, 235, 0.14);
  background: linear-gradient(145deg, rgba(18, 31, 55, 0.72), rgba(9, 14, 31, 0.88));
}

.feature-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(6, 10, 23, 0.92));
  content: "";
}

.feature-number {
  color: #5f6b81;
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
}

.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 2;
}

.feature-card h3 {
  margin: 245px 0 8px;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.feature-card p {
  margin: 0;
  color: #8e99ad;
  font-size: 0.86rem;
  line-height: 1.65;
}

.weather-orbit,
.terrain-slice,
.team-orbits {
  position: absolute;
  top: 55px;
  left: 50%;
  width: 210px;
  height: 210px;
  transform: translateX(-50%);
}

.weather-orbit {
  border: 1px solid rgba(105, 231, 255, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 65px rgba(105, 231, 255, 0.07), 0 0 50px rgba(105, 231, 255, 0.05);
}

.weather-orbit::before,
.weather-orbit::after {
  position: absolute;
  content: "";
  inset: 25px -32px;
  border: 1px solid rgba(143, 120, 255, 0.25);
  border-radius: 50%;
  transform: rotate(25deg);
}

.weather-orbit::after { transform: rotate(-25deg); }
.weather-orbit i { position: absolute; inset: 84px; border-radius: 50%; background: #72e6ef; box-shadow: 0 0 45px #60bbdf; }

.terrain-slice {
  top: 84px;
  width: 250px;
  height: 150px;
  border-bottom: 2px solid #5ed9ed;
  border-radius: 45% 56% 25% 35%;
  box-shadow: 0 14px 35px rgba(68, 194, 222, 0.1);
  transform: translateX(-50%) rotate(-4deg);
}

.terrain-slice::before {
  position: absolute;
  inset: 35px 0 0;
  border-radius: 50% 40% 0 0;
  background: linear-gradient(rgba(84, 95, 150, 0.38), transparent), repeating-linear-gradient(135deg, transparent 0 12px, rgba(105, 231, 255, 0.06) 13px 14px);
  content: "";
}

.terrain-slice i { position: absolute; bottom: 45px; width: 18px; height: 18px; border-radius: 50%; background: #ee704f; box-shadow: 0 0 13px #ee704f; }
.terrain-slice i:nth-child(1) { left: 38px; }
.terrain-slice i:nth-child(2) { left: 113px; bottom: 17px; background: #69e7ff; }
.terrain-slice i:nth-child(3) { right: 34px; bottom: 60px; background: #987aff; }

.team-orbits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; place-items: center; padding: 24px; }
.team-orbits::before { position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(105,231,255,.35), transparent); content: ""; }
.team-orbits i { width: 53px; height: 53px; border: 1px solid #ff805d; border-radius: 50%; background: radial-gradient(circle, #ff9c60 0 8%, rgba(255,112,72,.18) 10%, transparent 58%); box-shadow: 0 0 25px rgba(255,112,72,.12); }
.team-orbits i:nth-child(even) { border-color: #69e7ff; background: radial-gradient(circle, #69e7ff 0 8%, rgba(105,231,255,.18) 10%, transparent 58%); box-shadow: 0 0 25px rgba(105,231,255,.12); }

.mounts-section {
  width: 100%;
  padding: 110px max(24px, calc((100% - 1340px) / 2));
  border-top: 1px solid rgba(159, 187, 227, 0.1);
  border-bottom: 1px solid rgba(159, 187, 227, 0.1);
  background: radial-gradient(circle at 68% 40%, rgba(62, 148, 191, 0.14), transparent 32rem), linear-gradient(90deg, #080d1a, #0b1324, #080d1a);
}

.mount-showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  align-items: center;
}

.mount-showcase-copy > p:not(.portal-eyebrow) {
  max-width: 560px;
  margin: 24px 0;
  color: #929db2;
  line-height: 1.8;
}

.mount-showcase ul {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: #bac5d7;
  font-size: 0.85rem;
}

.mount-showcase li span { margin-right: 8px; color: var(--cyan); }

.text-link {
  padding: 8px 0;
  border: 0;
  color: #74e5ee;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.text-link b { margin-left: 8px; }

.mount-preview-stack {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 470px;
  align-content: center;
}

.mount-preview-stack::before {
  position: absolute;
  z-index: 0;
  inset: -30px;
  background: url("../assets/concepts/tatu-fornalha/concept-v1.png") center / cover;
  opacity: 0.25;
  filter: saturate(0.7);
  mask-image: radial-gradient(ellipse, #000 12%, transparent 68%);
  content: "";
}

.mount-preview {
  position: relative;
  z-index: 1;
  width: min(390px, 80%);
  margin-left: auto;
  padding: 22px;
  border: 1px solid rgba(166, 194, 235, 0.15);
  background: rgba(7, 13, 29, 0.76);
  backdrop-filter: blur(12px);
}

.mount-preview.active { margin-right: 13%; border-left: 2px solid var(--cyan); }
.mount-preview:not(.active) { opacity: 0.72; transform: translateX(50px); }
.mount-role { color: var(--cyan); font-size: 0.55rem; font-weight: 900; letter-spacing: 0.14em; }
.mount-preview h3 { margin: 6px 0; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.mount-preview p { margin: 0 0 18px; color: #8792a7; font-size: 0.8rem; }
.mount-meter { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; color: #758098; font-size: 0.55rem; font-weight: 900; }
.mount-meter i { height: 3px; background: rgba(255,255,255,.08); }
.mount-meter b { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.compact-heading { grid-template-columns: 1fr auto; }
.mode-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 1px; background: rgba(147,173,215,.12); }
.mode-strip article { min-height: 265px; padding: 27px; background: #0a1020; }
.mode-strip article span { color: #738097; font-size: .55rem; font-weight: 900; letter-spacing: .15em; }
.mode-strip article strong { display: block; margin: 48px 0 16px; color: #dfe9f7; font-family: Georgia, serif; font-size: clamp(1.6rem,3vw,2.8rem); font-weight: 500; }
.mode-strip article p { margin: 0; color: #7e899d; font-size: .78rem; line-height: 1.6; }
.mode-strip .featured-mode { background: radial-gradient(circle at 50% 35%, rgba(105,231,255,.12), transparent 50%), #0d1728; }
.mode-strip .featured-mode strong { color: var(--cyan); }

.news-section { padding-top: 60px; }
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; }
.news-grid article { display: flex; flex-direction: column; min-height: 280px; padding: 26px; border: 1px solid rgba(166,194,235,.13); background: linear-gradient(145deg,rgba(20,33,57,.72),rgba(9,14,31,.88)); }
.news-grid .news-main { background: radial-gradient(circle at 90% 15%,rgba(105,231,255,.15),transparent 18rem),linear-gradient(145deg,rgba(20,44,64,.84),rgba(9,14,31,.9)); }
.news-grid span { color: var(--cyan); font-size: .55rem; font-weight: 900; letter-spacing: .13em; }
.news-grid h3 { margin: auto 0 9px; font-family: Georgia,serif; font-size: 1.55rem; font-weight: 500; }
.news-grid p { margin: 0; color: #8e99ad; font-size: .8rem; line-height: 1.6; }
.news-grid time { margin-top: 20px; color: #59667c; font-size: .56rem; font-weight: 850; }

.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; width: min(1340px,calc(100% - 48px)); margin: 50px auto 0; padding: 70px; border: 1px solid rgba(105,231,255,.2); background: radial-gradient(circle at 75% 50%,rgba(105,231,255,.13),transparent 24rem),#0a1222; }
.final-cta p:last-child { margin: 15px 0 0; color: #8794aa; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; width: min(1340px,calc(100% - 48px)); margin: 70px auto 0; padding: 26px 0 38px; border-top: 1px solid rgba(166,194,235,.12); }
.site-footer p { color: #5f6b80; font-size: .65rem; text-align: center; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 16px; }
.site-footer nav button { padding: 0; border: 0; color: #657188; background: transparent; cursor: pointer; font-size: .62rem; }

/* Hub */

.hub-view {
  display: grid;
  grid-template-columns: 82px 1fr;
  min-height: 100vh;
  background: radial-gradient(circle at 72% 0%, rgba(63, 151, 202, 0.12), transparent 32rem), #080d1a;
}

body[data-active-portal-view="hub"] .site-header {
  display: none;
}

.hub-view[hidden] { display: none; }

.hub-rail {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-rows: 84px 1fr auto;
  height: 100vh;
  border-right: 1px solid rgba(166, 194, 235, 0.12);
  background: rgba(6, 10, 22, 0.92);
}

.hub-brand { display: grid; place-items: center; border-bottom: 1px solid rgba(166,194,235,.1); }
.hub-rail nav { display: grid; align-content: center; gap: 7px; padding: 12px 8px; }
.hub-rail nav button,.hub-exit { display: grid; place-items: center; min-height: 58px; padding: 7px 3px; border: 1px solid transparent; border-radius: 5px; color: #65738a; background: transparent; cursor: pointer; }
.hub-rail nav button span { font-size: 1.1rem; }
.hub-rail nav button small { margin-top: 4px; font-size: .52rem; font-weight: 800; }
.hub-rail nav button.active,.hub-rail nav button:hover { color: var(--cyan); border-color: rgba(105,231,255,.16); background: rgba(105,231,255,.06); }
.hub-exit { min-height: 65px; border-top: 1px solid rgba(166,194,235,.1); border-radius: 0; font-size: 1.1rem; }

.hub-shell { min-width: 0; }
.hub-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 84px; padding: 12px clamp(22px,3.2vw,52px); border-bottom: 1px solid rgba(166,194,235,.11); background: rgba(8,13,27,.72); backdrop-filter: blur(18px); }
.hub-topbar p { margin: 0 0 4px; color: #6d7a91; font-size: .55rem; font-weight: 900; letter-spacing: .16em; }
.hub-topbar h1 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.hub-account-strip { display: flex; align-items: center; gap: 8px; }
.currency { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px; border: 1px solid rgba(166,194,235,.12); border-radius: 4px; color: #c6d1e1; background: rgba(255,255,255,.025); font-size: .72rem; }
.currency i,.crystal-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 9px var(--ember); }
.crystal-currency i,.crystal-dot { border-radius: 2px; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); transform: rotate(45deg); }
.profile-chip { display: flex; align-items: center; gap: 9px; min-width: 190px; min-height: 48px; margin-left: 8px; padding: 5px 10px; border: 1px solid rgba(166,194,235,.13); border-radius: 4px; color: #dce5f3; background: rgba(255,255,255,.025); cursor: pointer; text-align: left; }
.profile-chip > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(105,231,255,.3); border-radius: 50%; color: var(--cyan); background: rgba(105,231,255,.08); font-weight: 900; }
.profile-chip strong,.profile-chip small { display: block; }
.profile-chip strong { font-size: .72rem; }
.profile-chip small { margin-top: 2px; color: #6f7d93; font-size: .54rem; }
.profile-chip > i { width: 6px; height: 6px; margin-left: auto; border-right: 1px solid #67758c; border-bottom: 1px solid #67758c; transform: rotate(45deg); }

.hub-content { width: min(1500px,100%); margin: 0 auto; padding: clamp(22px,3.3vw,52px); }
.hub-panel[hidden] { display: none; }
.hub-dashboard-grid { display: grid; grid-template-columns: minmax(480px,1.6fr) minmax(310px,.8fr); gap: 16px; }
.hub-dashboard-grid > article { border: 1px solid rgba(166,194,235,.13); background: rgba(12,20,38,.78); }
.play-banner { position: relative; display: grid; grid-column: 1; grid-row: 1 / 3; min-height: 590px; overflow: hidden; padding: clamp(34px,4vw,66px); align-content: end; background: radial-gradient(circle at 68% 33%,rgba(77,194,223,.19),transparent 18rem),linear-gradient(145deg,#0c1d32,#0a1020 70%) !important; }
.play-banner > div:first-child { position: relative; z-index: 2; max-width: 570px; }
.live-status { display: inline-flex; align-items: center; margin-bottom: 90px; color: #96e8b5; font-size: .55rem; font-weight: 900; letter-spacing: .14em; }
.play-banner > div > p:not(.play-banner-copy) { margin: 0 0 9px; color: var(--cyan); font-size: .58rem; font-weight: 900; letter-spacing: .15em; }
.play-banner h2 { max-width: 570px; margin: 0; font-family: Georgia,serif; font-size: clamp(2.6rem,4.5vw,5rem); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.play-banner-copy { max-width: 480px; margin: 18px 0 0; color: #8795aa; line-height: 1.7; }
.play-orbital { position: absolute; top: 2%; right: -4%; width: 58%; aspect-ratio: 1; border: 1px solid rgba(105,231,255,.12); border-radius: 50%; box-shadow: inset 0 0 100px rgba(105,231,255,.05); }
.play-orbital::before,.play-orbital::after { position: absolute; content: ""; inset: 15% -12%; border: 1px solid rgba(143,120,255,.2); border-radius: 50%; transform: rotate(25deg); }
.play-orbital::after { transform: rotate(-25deg); }
.play-orbital span { position: absolute; inset: 42%; border-radius: 50%; background: #65d9e8; box-shadow: 0 0 70px 20px rgba(66,194,221,.28); }
.play-orbital i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #ff7955; box-shadow: 0 0 12px #ff7955; }
.play-orbital i:nth-of-type(1) { top: 15%; left: 27%; }
.play-orbital i:nth-of-type(2) { right: 6%; bottom: 35%; background: #9077ff; }
.play-orbital i:nth-of-type(3) { bottom: 4%; left: 32%; background: #69e7ff; }

.daily-card { padding: 24px; }
.daily-card header { display: flex; justify-content: space-between; padding: 0 0 17px; border-bottom: 1px solid rgba(166,194,235,.1); }
.daily-card header span,.daily-card header b { color: #77859b; font-size: .57rem; letter-spacing: .11em; }
.mission { display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; padding: 17px 0; border-bottom: 1px solid rgba(166,194,235,.08); }
.mission > i { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(105,231,255,.18); border-radius: 50%; color: var(--cyan); background: rgba(105,231,255,.05); font-style: normal; }
.mission strong,.mission small { display: block; }
.mission strong { font-size: .72rem; }
.mission small { margin: 4px 0 8px; color: #707e94; font-size: .56rem; }
.mission div > span { display: block; height: 3px; background: rgba(255,255,255,.08); }
.mission div > span b { display: block; height: 100%; background: var(--cyan); }
.mission em { color: #7e8ca1; font-size: .62rem; font-style: normal; }
.daily-card footer { display: flex; justify-content: space-between; padding: 17px 0 0; color: #6f7d92; font-size: .57rem; }
.daily-card footer strong { color: #ffc066; }

.season-card,.news-hub-card { padding: 24px; }
.season-card > span,.news-hub-card > span { color: var(--cyan); font-size: .54rem; font-weight: 900; letter-spacing: .13em; }
.season-card h3,.news-hub-card h3 { margin: 8px 0 5px; font-family: Georgia,serif; font-size: 1.35rem; font-weight: 500; }
.season-card > p,.news-hub-card > p { margin: 0; color: #748197; font-size: .66rem; line-height: 1.5; }
.season-level { display: flex; align-items: center; gap: 13px; margin: 18px 0; }
.season-level > strong { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(105,231,255,.28); border-radius: 50%; color: var(--cyan); }
.season-level > span { flex: 1; }
.season-level small,.season-level em { display: block; color: #69778d; font-size: .5rem; font-style: normal; }
.season-level i { display: block; height: 3px; margin: 6px 0; background: rgba(255,255,255,.08); }
.season-level i b { display: block; height: 100%; background: linear-gradient(90deg,var(--cyan),var(--violet)); }
.season-card button,.news-hub-card button { padding: 0; border: 0; color: #79e7ef; background: transparent; cursor: pointer; font-size: .65rem; font-weight: 850; }
.news-hub-card { background: radial-gradient(circle at 100% 0,rgba(143,120,255,.15),transparent 16rem),rgba(12,20,38,.78) !important; }

.panel-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.panel-intro p,.pass-hero p { margin: 0 0 8px; color: var(--cyan); font-size: .56rem; font-weight: 900; letter-spacing: .15em; }
.panel-intro h2,.pass-hero h2 { margin: 0 0 9px; font-family: Georgia,serif; font-size: clamp(2rem,3.5vw,3.5rem); font-weight: 500; letter-spacing: -.04em; }
.panel-intro div > span,.pass-hero div > span { color: #8491a6; font-size: .82rem; }
.prototype-badge { padding: 8px 11px; border: 1px solid rgba(105,231,255,.25); color: var(--cyan); background: rgba(105,231,255,.05); font-size: .52rem; font-weight: 900; letter-spacing: .12em; }
.prototype-badge.warning { color: #ffc46e; border-color: rgba(255,196,110,.28); background: rgba(255,196,110,.06); }

.queue-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.queue-card { min-height: 440px; padding: 27px; border: 1px solid rgba(166,194,235,.13); background: linear-gradient(145deg,rgba(15,26,47,.88),rgba(8,13,27,.95)); }
.queue-card.featured { background: radial-gradient(circle at 50% 30%,rgba(143,120,255,.15),transparent 17rem),linear-gradient(145deg,#111b35,#090e1d); }
.queue-card > span { color: var(--cyan); font-size: .55rem; font-weight: 900; letter-spacing: .14em; }
.queue-card > strong { display: block; margin: 70px 0 12px; color: #dce6f4; font-family: Georgia,serif; font-size: clamp(2.6rem,5vw,4.4rem); font-weight: 500; }
.queue-card h3 { margin: 0 0 8px; font-family: Georgia,serif; font-size: 1.3rem; font-weight: 500; }
.queue-card p { min-height: 64px; margin: 0 0 25px; color: #7c899e; font-size: .75rem; line-height: 1.65; }
.queue-card button { width: 100%; min-height: 44px; border: 1px solid rgba(166,194,235,.16); color: #c8d2e2; background: rgba(255,255,255,.03); cursor: pointer; font-weight: 850; }
.queue-card button:disabled { cursor: not-allowed; opacity: .45; }

.ranking-observatory { margin-top: 28px; padding: 26px; border: 1px solid rgba(105,231,255,.14); background: linear-gradient(145deg,rgba(6,18,35,.9),rgba(7,10,24,.96)); }
.ranking-observatory > header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.ranking-observatory > header span,.ranking-grid article > span { color: var(--cyan); font-size: .52rem; font-weight: 900; letter-spacing: .14em; }
.ranking-observatory > header h3 { margin: 5px 0 0; font: 500 1.8rem Georgia,serif; }
.ranking-observatory > header p { max-width: 430px; margin: 0; color: #75849a; font-size: .7rem; line-height: 1.6; text-align: right; }
.ranking-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.ranking-grid article { min-height: 180px; padding: 16px; border-top: 2px solid rgba(105,231,255,.34); background: radial-gradient(circle at 90% 0,rgba(143,120,255,.12),transparent 10rem),rgba(255,255,255,.025); }
.ranking-grid h4 { min-height: 38px; margin: 7px 0 15px; font: 500 1rem Georgia,serif; }
.ranking-grid ol { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.ranking-grid li { display: grid; grid-template-columns: 19px 1fr auto; gap: 6px; align-items: center; color: #b9c5d8; font-size: .62rem; counter-increment: rank; }
.ranking-grid li::before { color: #64758c; content: counter(rank,decimal-leading-zero); font: 700 .5rem ui-monospace,monospace; }
.ranking-grid li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-grid li em { color: #e6c878; font-style: normal; font-weight: 850; }

.journey-map { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; min-height: 520px; align-items: center; padding: 60px 2%; }
.journey-path { position: absolute; top: 50%; right: 7%; left: 7%; height: 2px; background: linear-gradient(90deg,var(--cyan) 0 34%,rgba(143,120,255,.28) 34%); }
.journey-node { position: relative; z-index: 2; min-height: 280px; padding: 22px; border: 1px solid rgba(166,194,235,.14); background: rgba(10,17,33,.94); }
.journey-node:nth-of-type(even) { transform: translateY(-45px); }
.journey-node:nth-of-type(odd) { transform: translateY(45px); }
.journey-node > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 50px; border: 1px solid rgba(105,231,255,.3); border-radius: 50%; color: var(--cyan); background: #09111f; font-size: .65rem; }
.journey-node small { color: #738198; font-size: .52rem; font-weight: 900; letter-spacing: .12em; }
.journey-node h3 { margin: 7px 0; font-family: Georgia,serif; font-size: 1.25rem; font-weight: 500; }
.journey-node p { margin: 0; color: #748197; font-size: .68rem; line-height: 1.5; }
.journey-node > b { position: absolute; top: 27px; right: 24px; color: var(--green); }
.journey-node button { margin-top: 20px; padding: 9px 13px; border: 1px solid rgba(105,231,255,.28); color: var(--cyan); background: rgba(105,231,255,.06); cursor: pointer; font-weight: 850; }
.journey-node.current { border-color: rgba(105,231,255,.32); box-shadow: 0 0 40px rgba(105,231,255,.05); }
.journey-node.locked { opacity: .48; }

.pass-hero { display: flex; align-items: flex-end; justify-content: space-between; min-height: 270px; padding: 40px; border: 1px solid rgba(166,194,235,.13); background: radial-gradient(circle at 78% 43%,rgba(105,231,255,.16),transparent 19rem),linear-gradient(135deg,#101d34,#090f20); }
.pass-status { text-align: center; }
.pass-status span,.pass-status strong,.pass-status small { display: block; }
.pass-status span { color: #76849a; font-size: .52rem; font-weight: 900; letter-spacing: .12em; }
.pass-status strong { color: var(--cyan); font-family: Georgia,serif; font-size: 5rem; font-weight: 500; line-height: 1; }
.pass-status small { color: #7b889d; font-size: .62rem; }
.pass-track-wrap { margin-top: 18px; padding: 24px; border: 1px solid rgba(166,194,235,.13); background: rgba(10,17,33,.8); }
.pass-track-heading,.store-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pass-track-heading span { color: #7b889e; font-size: .57rem; font-weight: 900; letter-spacing: .14em; }
.pass-track-heading button { border: 0; color: #ffc26d; background: transparent; cursor: pointer; font-size: .64rem; font-weight: 850; }
.pass-track { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
.pass-track article { position: relative; display: grid; min-height: 220px; padding: 16px; border: 1px solid rgba(166,194,235,.12); background: rgba(255,255,255,.025); text-align: center; }
.pass-track article > small { color: #66738a; text-align: left; }
.pass-track article > div { display: grid; place-items: center; width: 64px; height: 64px; margin: 10px auto; border: 1px solid rgba(105,231,255,.18); border-radius: 50%; color: var(--cyan); background: rgba(105,231,255,.06); font-size: 1.3rem; }
.pass-track article strong { font-size: .66rem; }
.pass-track article > span { align-self: end; color: #68758b; font-size: .48rem; font-weight: 900; letter-spacing: .1em; }
.pass-track article.premium { border-top: 2px solid #ffc26d; }
.pass-track article.premium > span { color: #ffc26d; }
.pass-track article.current { border-color: rgba(105,231,255,.38); box-shadow: 0 0 25px rgba(105,231,255,.06); }
.pass-track article.claimed::after { position: absolute; top: 11px; right: 11px; color: var(--green); content: "✓"; }
.fair-play-note { display: flex; gap: 15px; align-items: center; margin-top: 18px; padding: 18px 22px; border: 1px solid rgba(130,227,132,.18); background: rgba(130,227,132,.04); }
.fair-play-note > i { color: var(--green); font-size: 1.3rem; font-style: normal; }
.fair-play-note strong { font-size: .72rem; }
.fair-play-note p { margin: 4px 0 0; color: #76849a; font-size: .64rem; }

.store-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 300px; overflow: hidden; border: 1px solid rgba(166,194,235,.13); background: radial-gradient(circle at 78% 45%,rgba(105,231,255,.17),transparent 18rem),linear-gradient(135deg,#111e33,#090f20); }
.store-feature > div:first-child { align-self: center; padding: 42px; }
.store-feature span { color: var(--cyan); font-size: .55rem; font-weight: 900; letter-spacing: .14em; }
.store-feature h3 { margin: 10px 0; font-family: Georgia,serif; font-size: 2.4rem; font-weight: 500; }
.store-feature p { max-width: 560px; margin: 0 0 22px; color: #8592a7; font-size: .75rem; line-height: 1.65; }
.store-feature button { padding: 11px 15px; border: 1px solid rgba(105,231,255,.3); color: var(--cyan); background: rgba(105,231,255,.06); cursor: pointer; font-weight: 850; }
.store-art { position: relative; }
.store-art::before,.store-art::after { position: absolute; content: ""; top: 50%; left: 50%; border: 1px solid rgba(105,231,255,.25); border-radius: 50%; transform: translate(-50%,-50%) rotate(25deg); }
.store-art::before { width: 270px; height: 270px; box-shadow: inset 0 0 70px rgba(105,231,255,.08); }
.store-art::after { width: 330px; height: 120px; }
.store-art span { position: absolute; top: 50%; left: 50%; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle,#77e9f2 0 8%,#172c48 10% 55%,#070d19 58%); box-shadow: 0 0 65px rgba(105,231,255,.3); transform: translate(-50%,-50%); }
.store-heading { margin-top: 30px; }
.store-heading h3 { margin: 0; font-family: Georgia,serif; font-size: 1.4rem; font-weight: 500; }
.store-heading nav { display: flex; gap: 8px; }
.store-heading button { padding: 7px 10px; border: 1px solid transparent; color: #6f7c91; background: transparent; cursor: pointer; font-size: .6rem; }
.store-heading button.active { color: var(--cyan); border-color: rgba(105,231,255,.18); background: rgba(105,231,255,.05); }
.store-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.store-grid article { padding: 12px; border: 1px solid rgba(166,194,235,.13); background: rgba(10,17,33,.84); }
.store-item-art { position: relative; display: grid; place-items: center; height: 210px; margin-bottom: 15px; background: radial-gradient(circle,rgba(105,231,255,.12),transparent 55%),#0d1728; }
.store-item-art i { width: 76px; height: 76px; border: 11px double #4ec6dd; border-radius: 50%; box-shadow: 0 0 30px rgba(105,231,255,.18),inset 0 0 20px rgba(105,231,255,.3); }
.store-item-art.aurora { background: radial-gradient(circle,rgba(143,120,255,.2),transparent 55%),#101328; }
.store-item-art.aurora i { border-width: 3px; border-color: #a889ff; border-radius: 50% 10%; transform: rotate(45deg); }
.store-item-art.ember { background: radial-gradient(circle,rgba(255,112,72,.17),transparent 55%),#1b121c; }
.store-item-art.ember i { border-color: #ff7852; border-radius: 50% 50% 12% 50%; transform: rotate(45deg); }
.store-item-art.mastery i { border-color: #ffc15f; }
.store-grid article > span { color: #68758c; font-size: .48rem; font-weight: 900; letter-spacing: .11em; }
.store-grid h4 { margin: 6px 0 14px; font-family: Georgia,serif; font-size: 1rem; font-weight: 500; }
.store-grid button { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 36px; border: 1px solid rgba(166,194,235,.14); color: #c7d2e3; background: rgba(255,255,255,.03); cursor: pointer; font-weight: 850; }
.store-grid button:disabled { opacity: .55; }
.store-grid button .crystal-dot { display: inline-block; }

.collection-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.collection-card { padding: 15px; border: 1px solid rgba(166,194,235,.13); background: rgba(10,17,33,.84); }
.collection-card.selected { border-color: rgba(105,231,255,.3); }
.collection-silhouette { display: grid; place-items: center; height: 290px; margin-bottom: 18px; background: radial-gradient(circle,rgba(105,231,255,.15),transparent 50%),#0d1728; }
.collection-silhouette > i { position: relative; width: 130px; height: 90px; border: 3px solid #58d4e4; border-radius: 50% 48% 35% 45%; background: #172841; box-shadow: 0 0 32px rgba(105,231,255,.16); }
.collection-silhouette > i::before { position: absolute; right: -48px; top: 27px; width: 60px; height: 18px; background: #5bd7e5; content: ""; }
.collection-silhouette.golem { background: radial-gradient(circle,rgba(130,227,132,.13),transparent 50%),#101b22; }
.collection-silhouette.golem > i { border-color: #80d788; background: #203629; }
.collection-silhouette.golem > i::before { background: #80d788; }
.collection-silhouette.unknown > i { display: grid; place-items: center; border-color: #59667b; color: #69768b; background: #151c2a; font-size: 2rem; font-style: normal; }
.collection-silhouette.unknown > i::before { display: none; }
.collection-card > span { color: var(--cyan); font-size: .5rem; font-weight: 900; letter-spacing: .13em; }
.collection-card h3 { margin: 7px 0 3px; font-family: Georgia,serif; font-size: 1.3rem; font-weight: 500; }
.collection-card p { margin: 0 0 15px; color: #718096; font-size: .65rem; }
.collection-card > div:not(.collection-silhouette) { display: flex; align-items: center; gap: 9px; }
.collection-card > div:not(.collection-silhouette) > i { flex: 1; height: 3px; background: rgba(255,255,255,.08); }
.collection-card > div:not(.collection-silhouette) b { display: block; height: 100%; background: var(--cyan); }
.collection-card > div:not(.collection-silhouette) small { color: #66748a; font-size: .5rem; }
.collection-card > button { width: 100%; min-height: 39px; margin-top: 17px; border: 1px solid rgba(105,231,255,.2); color: var(--cyan); background: rgba(105,231,255,.05); cursor: pointer; font-weight: 850; }
.collection-card.locked { opacity: .5; }

/* Perfil local */

.profile-modal[hidden] { display: none; }
.profile-modal { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 22px; }
.profile-backdrop { position: absolute; inset: 0; border: 0; background: rgba(3,6,15,.84); backdrop-filter: blur(18px); }
.profile-dialog { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; width: min(900px,100%); border: 1px solid rgba(105,231,255,.22); background: #0a1120; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.profile-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 36px; height: 36px; border: 1px solid rgba(166,194,235,.16); color: #8592a8; background: rgba(255,255,255,.04); cursor: pointer; font-size: 1.3rem; }
.profile-dialog-art { display: flex; flex-direction: column; justify-content: flex-end; min-height: 580px; padding: 40px; background: radial-gradient(circle at 50% 28%,rgba(105,231,255,.16),transparent 14rem),linear-gradient(155deg,#10233a,#090e1c); }
.profile-dialog-art .brand-sigil { margin-bottom: auto; }
.profile-dialog-art p { margin: 0 0 8px; color: var(--cyan); font-size: .55rem; font-weight: 900; letter-spacing: .15em; }
.profile-dialog-art h2 { margin: 0 0 15px; font-family: Georgia,serif; font-size: 2.2rem; font-weight: 500; line-height: 1.05; }
.profile-dialog-art small { color: #7f8ca1; line-height: 1.6; }
.profile-form { display: grid; align-content: center; gap: 18px; padding: 48px; }
.profile-form h2 { margin: -10px 0 5px; font-family: Georgia,serif; font-size: 2rem; font-weight: 500; }
.profile-form > label:not(.profile-consent) { display: grid; gap: 7px; }
.profile-form label > span,.profile-form legend { color: #8996aa; font-size: .62rem; font-weight: 850; }
.profile-form input[type="text"],.profile-form input:not([type]) { width: 100%; padding: 13px; border: 1px solid rgba(166,194,235,.17); outline: 0; color: #e9f1fb; background: rgba(255,255,255,.035); }
.profile-form input:focus { border-color: rgba(105,231,255,.5); box-shadow: 0 0 0 3px rgba(105,231,255,.06); }
.profile-form fieldset { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; }
.profile-form legend { margin-bottom: 7px; }
.profile-form fieldset label { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(166,194,235,.12); cursor: pointer; }
.profile-form fieldset label:has(input:checked) { border-color: rgba(105,231,255,.34); background: rgba(105,231,255,.05); }
.profile-form fieldset b,.profile-form fieldset small { display: block; }
.profile-form fieldset b { color: #d9e3f0; font-size: .68rem; }
.profile-form fieldset small { margin-top: 2px; color: #69768c; font-size: .54rem; }
.profile-consent { display: flex; gap: 9px; align-items: flex-start; }
.profile-consent span { line-height: 1.5; }
.profile-security-note { margin: -8px 0 0; color: #647087; font-size: .55rem; line-height: 1.5; text-align: center; }
body.profile-open { overflow: hidden; }
.portal-toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 430px; padding: 13px 17px; border: 1px solid transparent; color: transparent; background: transparent; pointer-events: none; transform: translateY(18px); opacity: 0; transition: 160ms ease; }
.portal-toast.visible { color: #d8f9dc; border-color: rgba(130,227,132,.3); background: rgba(14,43,36,.96); transform: translateY(0); opacity: 1; }
.portal-toast.notice { color: #fff0c7; border-color: rgba(255,193,102,.3); background: rgba(48,37,22,.97); }
.portal-toast.error { color: #ffe0d8; border-color: rgba(255,112,72,.3); background: rgba(50,23,29,.97); }
.game-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 13px;
}

.back-to-hub,
.back-to-lab {
  margin: 0;
  padding: 0;
  border: 0;
  color: #7f8ca2;
  background: transparent;
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 800;
}

.back-to-hub:hover,
.back-to-lab:hover {
  color: var(--cyan);
}

.back-to-lab {
  color: var(--cyan);
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero-section { grid-template-columns: minmax(360px,.9fr) 1.1fr; }
  .hero-art { right: -360px; width: 1050px; }
  .feature-grid,.queue-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child,.queue-card:last-child { grid-column: 1 / -1; }
  .mode-strip { grid-template-columns: repeat(2,1fr); }
  .mount-showcase { gap: 30px; }
  .hub-dashboard-grid { grid-template-columns: 1fr; }
  .play-banner { grid-row: auto; min-height: 540px; }
  .journey-map { grid-template-columns: 1fr 1fr; }
  .journey-path { display: none; }
  .journey-node:nth-of-type(n) { transform: none; }
  .pass-track { grid-template-columns: repeat(3,1fr); }
  .store-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .site-header { min-height: 70px; padding: 0 16px; }
  .site-actions .quiet-site-action { display: none; }
  .bright-site-action { padding: 9px 11px; }
  .brand-lockup strong { font-size: .72rem; }
  .hero-section { display: block; min-height: 850px; padding: 130px 20px 70px; }
  .hero-copy { position: relative; z-index: 5; }
  .hero-copy h1 { font-size: clamp(3rem,14vw,4.5rem); }
  .hero-art { top: 270px; right: -340px; bottom: 0; width: 920px; opacity: .55; }
  .hero-art::after { background: linear-gradient(90deg,#070b18 0,transparent 35%,#070b18 100%),linear-gradient(0deg,#070b18 0,transparent 60%); }
  .hero-mount-card { display: none; }
  .hero-proof { flex-wrap: wrap; gap: 12px 20px; }
  .portal-section { width: calc(100% - 32px); padding: 72px 0; }
  .section-heading,.mount-showcase { grid-template-columns: 1fr; gap: 24px; }
  .feature-grid,.queue-grid,.news-grid,.collection-grid { grid-template-columns: 1fr; }
  .feature-card:last-child,.queue-card:last-child { grid-column: auto; }
  .mounts-section { padding: 72px 16px; }
  .mount-preview-stack { min-height: 390px; }
  .mount-preview { width: 92%; }
  .mode-strip { grid-template-columns: 1fr; }
  .news-grid article { min-height: 230px; }
  .final-cta { display: grid; width: calc(100% - 32px); padding: 35px 25px; }
  .site-footer { grid-template-columns: 1fr; width: calc(100% - 32px); }
  .site-footer p { text-align: left; }
  .site-footer nav { justify-content: flex-start; }
  .hub-view { grid-template-columns: 1fr; padding-bottom: 72px; }
  .hub-rail { position: fixed; top: auto; right: 0; bottom: 0; left: 0; display: block; height: 68px; border-top: 1px solid rgba(166,194,235,.14); border-right: 0; }
  .hub-brand,.hub-exit { display: none; }
  .hub-rail nav { display: grid; grid-template-columns: repeat(6,1fr); height: 100%; padding: 4px; }
  .hub-rail nav button { min-height: 56px; }
  .hub-topbar { align-items: flex-start; padding: 14px 16px; }
  .hub-topbar > div:first-child { display: none; }
  .hub-account-strip { width: 100%; }
  .currency { padding: 0 8px; }
  .profile-chip { min-width: 0; margin-left: auto; }
  .profile-chip > span:nth-child(2) { display: none; }
  .hub-content { padding: 20px 14px; }
  .play-banner { min-height: 590px; padding: 28px 22px; }
  .live-status { margin-bottom: 130px; }
  .play-orbital { top: 0; right: -28%; width: 100%; }
  .play-banner-actions,.hero-actions { align-items: stretch; flex-direction: column; }
  .panel-intro { display: grid; }
  .journey-map,.pass-track,.store-grid { grid-template-columns: 1fr; }
  .pass-hero,.store-feature { grid-template-columns: 1fr; }
  .pass-hero { display: grid; gap: 25px; padding: 27px; }
  .pass-status { text-align: left; }
  .store-feature > div:first-child { padding: 27px; }
  .store-art { min-height: 260px; }
  .profile-modal { padding: 0; }
  .profile-dialog { display: block; height: 100vh; overflow: auto; }
  .profile-dialog-art { min-height: 250px; padding: 28px; }
  .profile-dialog-art .brand-sigil { margin-bottom: 70px; }
  .profile-form { padding: 32px 24px; }
}

/* Direção visual 0.11 — key art cinematográfica e salão de expedição */

.site-experience {
  background:
    radial-gradient(circle at 10% 12%, rgba(36, 155, 211, 0.13), transparent 34rem),
    radial-gradient(circle at 88% 25%, rgba(103, 67, 202, 0.13), transparent 38rem),
    #050914;
}

.site-header {
  border-bottom-color: rgba(126, 208, 240, 0.12);
  background: linear-gradient(180deg, rgba(3, 8, 20, 0.94), rgba(4, 9, 21, 0.68));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.hero-section {
  display: block;
  max-width: none;
  min-height: min(960px, 100svh);
  padding: 0;
  isolation: isolate;
}

.hero-section::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 20, 0.98) 0%, rgba(3, 8, 20, 0.91) 23%, rgba(3, 8, 20, 0.42) 47%, rgba(3, 8, 20, 0.05) 73%),
    linear-gradient(180deg, rgba(3, 8, 20, 0.2) 45%, #050914 99%);
  content: "";
  pointer-events: none;
}

.hero-section::after {
  z-index: 3;
  height: 210px;
  background: linear-gradient(transparent, #050914 90%);
}

.hero-copy {
  display: flex;
  min-height: min(960px, 100svh);
  max-width: 750px;
  padding: 155px 0 110px max(26px, calc((100vw - 1440px) / 2 + 34px));
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 {
  max-width: 760px;
  color: #f7f8ff;
  font-size: clamp(4.2rem, 7.1vw, 7.7rem);
  line-height: 0.84;
  text-shadow: 0 10px 45px rgba(0, 0, 0, 0.46);
}

.hero-copy h1 em {
  color: #78e9f4;
  text-shadow: 0 0 42px rgba(81, 210, 239, 0.28);
}

.hero-lead {
  max-width: 580px;
  color: #b7c5d7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.hero-art {
  z-index: 1;
  inset: 0;
  width: 100%;
  overflow: hidden;
  mask-image: none;
}

.hero-art::after {
  background: linear-gradient(180deg, rgba(3, 8, 20, 0.08), rgba(3, 8, 20, 0.12) 65%, #050914 100%);
}

.hero-art img {
  object-position: center center;
  opacity: 1;
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.015);
  animation: hero-breathe 14s ease-in-out infinite alternate;
}

.hero-art-glow {
  z-index: 2;
  inset: 20% 8% 15% 50%;
  background: rgba(44, 190, 237, 0.13);
}

.hero-mount-card,
.hero-live-card {
  border: 1px solid rgba(119, 225, 246, 0.2);
  border-left: 2px solid var(--cyan);
  background: linear-gradient(135deg, rgba(5, 12, 28, 0.86), rgba(11, 24, 45, 0.66));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.hero-mount-card {
  right: max(32px, calc((100vw - 1440px) / 2 + 18px));
  bottom: 112px;
}

.hero-live-card {
  position: absolute;
  z-index: 4;
  top: 135px;
  right: max(32px, calc((100vw - 1440px) / 2 + 18px));
  min-width: 235px;
  padding: 15px 18px;
}

.hero-live-card span,
.hero-live-card strong,
.hero-live-card small { display: block; }
.hero-live-card span { color: #8df7bb; font-size: 0.52rem; font-weight: 900; letter-spacing: 0.14em; }
.hero-live-card span i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #82ec8c; box-shadow: 0 0 12px #82ec8c; }
.hero-live-card strong { margin-top: 7px; font-family: Georgia, serif; font-size: 1.05rem; font-weight: 500; }
.hero-live-card small { margin-top: 3px; color: #8393aa; }

.hero-world-lines {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-world-lines i {
  position: absolute;
  right: 17%;
  bottom: 8%;
  width: 520px;
  height: 190px;
  border: 1px solid rgba(109, 229, 246, 0.14);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero-world-lines i:last-child {
  right: 8%;
  bottom: 12%;
  width: 650px;
  transform: rotate(14deg);
}

.feature-card,
.mode-strip article,
.news-grid article {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.feature-card:hover,
.mode-strip article:hover,
.news-grid article:hover {
  border-color: rgba(103, 229, 243, 0.32);
  filter: brightness(1.08);
  transform: translateY(-5px);
}

.mounts-section {
  background:
    linear-gradient(90deg, rgba(5, 9, 20, 0.98), rgba(7, 16, 31, 0.84) 48%, rgba(5, 9, 20, 0.93)),
    url("../assets/keyart/landing-battle-v1.webp") center 68% / cover;
}

.lobby-modal {
  padding: 18px;
  place-items: stretch;
}

.lobby-backdrop {
  background: rgba(1, 4, 12, 0.88);
  backdrop-filter: blur(18px) saturate(0.75);
}

.lobby-panel {
  width: min(1500px, 100%);
  height: min(920px, calc(100vh - 36px));
  min-height: 720px;
  margin: auto;
  border-color: rgba(115, 215, 246, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(3, 8, 20, 0.9) 0, rgba(3, 8, 20, 0.68) 30%, rgba(3, 8, 20, 0.3) 65%, rgba(3, 8, 20, 0.58)),
    linear-gradient(0deg, rgba(3, 8, 20, 0.72), transparent 52%),
    url("../assets/keyart/lobby-expedition-hall-v1.webp") center / cover;
  box-shadow: 0 45px 130px rgba(0, 0, 0, 0.72), inset 0 1px rgba(255, 255, 255, 0.08);
}

.lobby-panel::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 1px solid rgba(105, 231, 255, 0.08);
  background: linear-gradient(90deg, transparent 49.9%, rgba(105, 231, 255, 0.08) 50%, transparent 50.1%);
  content: "";
  pointer-events: none;
}

.lobby-header,
.lobby-layout,
.lobby-toast { position: relative; z-index: 1; }

.lobby-header {
  min-height: 104px;
  padding: 23px 30px;
  align-items: center;
  border-bottom-color: rgba(126, 207, 238, 0.17);
  background: linear-gradient(90deg, rgba(3, 8, 20, 0.94), rgba(3, 8, 20, 0.66));
  backdrop-filter: blur(18px);
}

.lobby-header h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
}

.lobby-header-meta {
  display: flex;
  margin-left: auto;
  gap: 9px;
  align-items: center;
}

.lobby-header-meta span,
.lobby-header-meta b {
  padding: 9px 11px;
  border: 1px solid rgba(137, 208, 239, 0.16);
  color: #8597ae;
  background: rgba(7, 16, 34, 0.62);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.lobby-header-meta span { color: #9ff1ba; }
.lobby-header-meta i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #7bed91; box-shadow: 0 0 10px #7bed91; }
.lobby-close { margin-left: 16px; border-radius: 3px; }

.lobby-layout {
  grid-template-columns: 370px 1fr;
  height: calc(100% - 104px);
  min-height: 0;
}

.lobby-sidebar {
  overflow: auto;
  padding: 24px;
  border-right-color: rgba(126, 207, 238, 0.17);
  background: linear-gradient(180deg, rgba(3, 9, 22, 0.94), rgba(5, 12, 27, 0.84));
  backdrop-filter: blur(18px);
}

.lobby-sidebar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(128, 207, 239, 0.12);
}

.lobby-sidebar-title > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(105, 231, 255, 0.3);
  color: var(--cyan);
  font: 800 0.65rem ui-monospace, monospace;
  background: rgba(105, 231, 255, 0.06);
}

.lobby-sidebar-title small,
.lobby-sidebar-title strong { display: block; }
.lobby-sidebar-title small { color: #61ddeb; font-size: 0.5rem; letter-spacing: 0.15em; }
.lobby-sidebar-title strong { margin-top: 4px; font-family: Georgia, serif; font-size: 1rem; font-weight: 500; }

.create-room-card {
  border-color: rgba(105, 231, 255, 0.16);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(14, 42, 62, 0.72), rgba(12, 19, 39, 0.76));
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}

.lobby-panel input,
.lobby-panel select,
.lobby-panel button { border-radius: 3px; }

.room-entry {
  border-left: 2px solid transparent !important;
  background: rgba(14, 25, 45, 0.72) !important;
}
.room-entry:hover { border-left-color: var(--cyan) !important; }

.room-stage {
  overflow: auto;
  padding: 32px;
  background: radial-gradient(circle at 57% 45%, rgba(64, 202, 235, 0.07), transparent 30rem);
}

.empty-room-state {
  position: relative;
  max-width: 720px;
  min-height: 100%;
  padding: 50px;
  justify-items: start;
  align-content: end;
  text-align: left;
}

.empty-room-state::before {
  position: absolute;
  z-index: -1;
  right: -100px;
  bottom: -70px;
  left: -40px;
  height: 390px;
  background: radial-gradient(ellipse at 35% 75%, rgba(2, 7, 18, 0.96), rgba(2, 7, 18, 0.72) 48%, transparent 74%);
  content: "";
}

.empty-room-state .orbit-mark {
  width: 128px;
  height: 128px;
  margin-bottom: 12px;
  animation: lobby-pulse 3.2s ease-in-out infinite;
}

.empty-room-state h3 {
  max-width: 580px;
  margin: 8px 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.empty-room-state > p:not(.empty-room-kicker) {
  max-width: 600px;
  color: #a5b4c8;
}

.empty-room-kicker {
  margin: 0 !important;
  color: var(--cyan) !important;
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.lobby-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.lobby-mode-pills span {
  padding: 9px 12px;
  border: 1px solid rgba(120, 205, 238, 0.18);
  color: #8c9bb0;
  background: rgba(5, 13, 29, 0.76);
  font-size: 0.62rem;
}
.lobby-mode-pills b { margin-right: 6px; color: #d8f8fb; }

.active-room-state {
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(123, 208, 242, 0.14);
  background: rgba(3, 9, 22, 0.78);
  backdrop-filter: blur(16px);
}

.online-team {
  border-radius: 4px;
  background: linear-gradient(150deg, rgba(14, 28, 49, 0.9), rgba(7, 14, 29, 0.9));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.brasa-team { border-top: 2px solid rgba(255, 127, 85, 0.7); }
.nox-team { border-top: 2px solid rgba(105, 231, 255, 0.7); }
.online-player,
.online-player-empty { border-radius: 3px; background: rgba(255, 255, 255, 0.045); }

.online-match-arena {
  padding: 16px;
  border: 1px solid rgba(114, 215, 246, 0.22);
  background: rgba(3, 8, 19, 0.96);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

@keyframes hero-breathe {
  from { transform: scale(1.015); }
  to { transform: scale(1.045); }
}

@keyframes lobby-pulse {
  0%, 100% { box-shadow: inset 0 0 28px rgba(102, 228, 242, 0.08), 0 0 35px rgba(143, 120, 255, 0.1); }
  50% { box-shadow: inset 0 0 38px rgba(102, 228, 242, 0.16), 0 0 55px rgba(102, 228, 242, 0.18); }
}

@media (max-width: 1100px) {
  .hero-copy { padding-left: 34px; }
  .hero-section::before { background: linear-gradient(90deg, rgba(3,8,20,.97), rgba(3,8,20,.77) 42%, rgba(3,8,20,.12) 80%), linear-gradient(180deg, transparent 50%, #050914); }
  .hero-live-card { display: none; }
  .lobby-layout { grid-template-columns: 315px 1fr; }
  .empty-room-state { padding: 36px; }
}

@media (max-width: 760px) {
  .hero-section { min-height: 860px; }
  .hero-copy { min-height: 860px; padding: 120px 20px 80px; justify-content: flex-start; }
  .hero-copy h1 { font-size: clamp(3.5rem, 17vw, 5rem); line-height: 0.88; }
  .hero-section::before { background: linear-gradient(180deg, rgba(3,8,20,.88) 0, rgba(3,8,20,.4) 43%, rgba(3,8,20,.88) 73%, #050914 100%); }
  .hero-art { inset: 0; width: 100%; opacity: 1; }
  .hero-art img { object-position: 68% center; }
  .hero-art::after { background: linear-gradient(180deg, rgba(3,8,20,.1), rgba(3,8,20,.05) 55%, #050914 100%); }
  .hero-proof { margin-top: auto; padding-bottom: 25px; }
  .hero-world-lines,.hero-mount-card,.hero-live-card { display: none; }
  .lobby-modal { padding: 0; }
  .lobby-panel { height: 100svh; min-height: 100svh; overflow: auto; border: 0; border-radius: 0; background-position: 58% center; }
  .lobby-header { position: sticky; z-index: 4; top: 0; min-height: 86px; padding: 17px 16px; }
  .lobby-header h2 { font-size: 1.45rem; }
  .lobby-header-meta { display: none; }
  .lobby-layout { display: block; height: auto; }
  .lobby-sidebar { overflow: visible; padding: 18px 16px; border-right: 0; }
  .lobby-sidebar-title { margin-bottom: 16px; }
  .room-stage { min-height: 560px; padding: 0; }
  .empty-room-state { min-height: 560px; padding: 28px 20px 40px; }
  .empty-room-state .orbit-mark { width: 92px; height: 92px; }
  .empty-room-state .orbit-mark span { inset: 34px; }
  .empty-room-state h3 { font-size: 2.7rem; }
  .active-room-state { margin: 14px; padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img,
  .empty-room-state .orbit-mark { animation: none; }
  .feature-card,
  .mode-strip article,
  .news-grid article { transition: none; }
}

/* Direção visual 0.12 — campanha editorial e lobby como sala de jogo */

.site-header {
  min-height: 92px;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(2, 6, 16, 0.88), transparent);
  box-shadow: none;
  backdrop-filter: none;
}

.site-nav {
  padding: 7px 15px;
  border: 1px solid rgba(136, 208, 237, 0.11);
  background: rgba(3, 9, 21, 0.34);
  backdrop-filter: blur(12px);
}

.site-nav button { color: #b0bacb; }
.site-actions .quiet-site-action { display: none; }
.bright-site-action {
  min-width: 142px;
  min-height: 43px;
  border: 1px solid rgba(119, 231, 246, 0.7);
  color: #06111c;
  background: #77e7f2;
  box-shadow: 0 0 35px rgba(86, 213, 239, 0.14);
}
.bright-site-action:hover { color: #06111c; background: #9af3f7; }

.world-section {
  width: 100%;
  padding: 150px max(24px, calc((100% - 1340px) / 2));
}

.world-section .section-heading {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.55fr);
  margin-bottom: 58px;
}

.world-section .section-heading h2 { max-width: 850px; font-size: clamp(3rem, 5.2vw, 5.8rem); }

.feature-grid {
  min-height: 660px;
  padding: 380px 28px 28px;
  gap: 0;
  border: 1px solid rgba(120, 210, 241, 0.15);
  background:
    linear-gradient(180deg, rgba(4, 9, 20, 0.04), rgba(3, 8, 19, 0.1) 40%, rgba(3, 8, 19, 0.94) 78%),
    url("../assets/keyart/lobby-expedition-hall-v1.webp") center 38% / cover;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32);
}

.feature-card {
  min-height: 250px;
  padding: 27px 30px;
  border: 0;
  border-top: 1px solid rgba(126, 217, 244, 0.26);
  border-right: 1px solid rgba(126, 217, 244, 0.12);
  background: linear-gradient(180deg, rgba(8, 18, 35, 0.72), rgba(3, 9, 21, 0.94));
  clip-path: none;
  backdrop-filter: blur(15px);
}
.feature-card:last-child { border-right: 0; }
.feature-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(105, 231, 255, 0.6);
  content: "";
}
.feature-card::after { display: none; }
.feature-card h3 { margin: 75px 0 11px; font-size: 1.9rem; }
.feature-card p { max-width: 340px; color: #9fadc0; }
.feature-number { color: #7ce9f2; font-size: 0.68rem; letter-spacing: 0.16em; }
.weather-orbit,
.terrain-slice,
.team-orbits { display: none; }

.modes-section {
  width: 100%;
  padding-right: max(24px, calc((100% - 1340px) / 2));
  padding-left: max(24px, calc((100% - 1340px) / 2));
}

.mode-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(142, 201, 232, 0.14);
  background: transparent;
}

.mode-strip article {
  display: grid;
  grid-template-columns: 170px minmax(220px, 0.65fr) 1fr;
  min-height: 150px;
  padding: 28px 34px;
  align-items: center;
  border-bottom: 1px solid rgba(142, 201, 232, 0.14);
  background: transparent;
  clip-path: none;
}
.mode-strip article:hover { padding-left: 48px; background: linear-gradient(90deg, rgba(80, 207, 235, 0.12), transparent 72%); transform: none; }
.mode-strip article span { color: #6f8199; }
.mode-strip article strong { margin: 0; font-size: clamp(2.2rem, 4.4vw, 4.8rem); }
.mode-strip article p { max-width: 460px; font-size: 0.92rem; }
.mode-strip .featured-mode { background: linear-gradient(90deg, rgba(91, 218, 239, 0.08), transparent 70%); }

.news-grid article { border-radius: 0; }

.lobby-modal { padding: 0; }
.lobby-backdrop { display: none; }

.lobby-panel {
  width: 100vw;
  height: 100svh;
  min-height: 680px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(2, 7, 17, 0.14), rgba(2, 7, 17, 0.14) 50%, rgba(2, 7, 17, 0.72)),
    url("../assets/keyart/lobby-expedition-hall-v1.webp") center 42% / cover;
  box-shadow: none;
}

.lobby-panel::before {
  border: 0;
  background:
    linear-gradient(90deg, rgba(2, 7, 17, 0.24), transparent 25%, transparent 75%, rgba(2, 7, 17, 0.24)),
    radial-gradient(circle at 50% 42%, transparent 0 24%, rgba(2, 7, 17, 0.16) 55%, rgba(2, 7, 17, 0.5) 100%);
}

.lobby-header {
  min-height: 88px;
  padding: 15px 30px;
  border-bottom: 1px solid rgba(130, 211, 240, 0.14);
  background: linear-gradient(180deg, rgba(2, 7, 17, 0.92), rgba(2, 7, 17, 0.62));
}
.lobby-header .eyebrow { margin-bottom: 2px; }
.lobby-header h2 { font-size: 1.6rem; }
.lobby-header p:last-child { margin-top: 3px; }

.lobby-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(260px, 32vh);
  height: calc(100% - 88px);
  min-height: 0;
}

/* Seletor com fotos no dock do salão */
.lobby-sidebar .mount-picker-selected {
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 6px;
  gap: 8px;
}
.lobby-sidebar .mount-picker-preview {
  width: 72px;
  height: 54px;
}
.lobby-sidebar .mount-picker-selected-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lobby-sidebar .mount-picker-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  max-height: 120px;
  overflow: auto;
}
.lobby-sidebar .mount-picker-card {
  padding: 4px 3px 5px;
}
.lobby-sidebar .mount-picker-card img {
  height: 36px;
}

.room-stage {
  grid-row: 1;
  grid-column: 1;
  min-height: 0;
  padding: 28px 44px;
  overflow: auto;
  background: radial-gradient(circle at 50% 48%, rgba(63, 211, 242, 0.08), transparent 28rem);
}

.lobby-sidebar {
  display: grid;
  grid-row: 2;
  grid-column: 1;
  grid-template-columns: minmax(230px, 0.7fr) minmax(330px, 0.9fr) 170px minmax(280px, 1.25fr);
  gap: 16px;
  padding: 18px 28px;
  overflow: hidden;
  align-items: start;
  border-top: 1px solid rgba(119, 215, 243, 0.22);
  border-right: 0;
  background: linear-gradient(180deg, rgba(3, 9, 22, 0.94), rgba(2, 7, 17, 0.98));
  box-shadow: 0 -25px 70px rgba(0, 0, 0, 0.3);
}

.lobby-sidebar-title { display: none; }
.lobby-field,
.create-room-card,
.room-browser-heading,
.room-list { margin: 0; }
.lobby-field { grid-column: 1; }
.create-room-card { grid-column: 2; display: grid; grid-template-columns: 1fr 122px; gap: 7px; padding: 0; border: 0; background: transparent; clip-path: none; }
.create-room-card > strong { grid-column: 1 / -1; }
.create-room-card > input { grid-column: 1 / -1; }
.create-room-card .inline-field { grid-column: 1 / -1; }
.room-browser-heading { grid-column: 3; align-self: start; }
.room-list { grid-column: 4; display: flex; gap: 8px; max-height: 150px; overflow: auto; }
.room-entry { min-width: 220px; align-self: start; }
.room-list-empty { width: 100%; padding: 41px 10px; border: 1px dashed rgba(133, 194, 225, 0.13); }

.empty-room-state {
  max-width: none;
  min-height: 100%;
  padding: 20px 4vw 28px;
  place-items: center;
  align-content: center;
  text-align: center;
}
.empty-room-state::before {
  right: 8%;
  bottom: -10%;
  left: 8%;
  height: 420px;
  background: radial-gradient(ellipse, rgba(2, 7, 17, 0.74), transparent 68%);
}
.empty-room-state .orbit-mark { width: 150px; height: 150px; margin-bottom: 20px; }
.empty-room-state h3 { max-width: 780px; font-size: clamp(3rem, 5.2vw, 6rem); text-shadow: 0 8px 34px rgba(0, 0, 0, 0.66); }
.empty-room-state > p:not(.empty-room-kicker) { text-shadow: 0 2px 15px #020711; }
.lobby-mode-pills { justify-content: center; }

.active-room-state {
  max-width: 1180px;
  min-height: 100%;
  margin: 0 auto;
  padding: 22px 26px;
  border: 0;
  background: linear-gradient(180deg, rgba(3, 9, 22, 0.76), rgba(3, 9, 22, 0.9));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}
.active-room-heading { padding-bottom: 14px; border-bottom: 1px solid rgba(126, 210, 241, 0.13); }
.online-teams { margin-top: 17px; }
.online-team { min-height: 235px; }
.online-match-arena { margin: 0; }

@media (max-width: 1100px) {
  .feature-grid { padding-right: 16px; padding-left: 16px; }
  .mode-strip article { grid-template-columns: 135px minmax(190px, .75fr) 1fr; }
  .lobby-layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 255px; }
  .lobby-sidebar { grid-template-columns: minmax(200px, .7fr) minmax(300px, .9fr) 1fr; }
  .room-browser-heading { grid-column: 3; }
  .room-list { grid-column: 3; }
}

@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .site-nav { display: none; }
  .bright-site-action { min-width: 116px; min-height: 38px; }
  .world-section { padding: 95px 16px; }
  .world-section .section-heading { grid-template-columns: 1fr; }
  .feature-grid { display: block; min-height: 0; padding: 300px 12px 12px; background-position: 57% top; }
  .feature-card { min-height: 205px; border-right: 0; }
  .feature-card h3 { margin-top: 45px; }
  .mode-strip article { display: block; min-height: 190px; padding: 25px 20px; }
  .mode-strip article:hover { padding-left: 20px; }
  .mode-strip article strong { margin: 25px 0 12px; }
  .lobby-panel { height: 100svh; min-height: 100svh; overflow: auto; }
  .lobby-header { min-height: 78px; }
  .lobby-layout { display: flex; height: auto; flex-direction: column; }
  .room-stage { order: 1; min-height: 560px; padding: 0; }
  .lobby-sidebar { display: grid; order: 2; grid-template-columns: 1fr; gap: 17px; padding: 20px 16px 32px; overflow: visible; }
  .lobby-field,
  .create-room-card,
  .room-browser-heading,
  .room-list { grid-column: 1; }
  .room-list { max-height: 260px; }
  .empty-room-state { min-height: 560px; padding: 38px 20px; }
  .empty-room-state .orbit-mark { width: 105px; height: 105px; }
  .empty-room-state h3 { font-size: 3rem; }
  .active-room-state { margin: 12px; padding: 14px; }
}

/* Observatório 0.12 — lobby principal de jogo, sem dashboard lateral */

.hub-view {
  position: relative;
  display: block;
  min-height: 100svh;
  padding: 0;
  background: #030814;
}

.hub-shell { min-height: 100svh; }

.hub-topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  min-height: 94px;
  padding: 18px 34px 18px 40px;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 7, 18, 0.92), rgba(2, 7, 18, 0.34), transparent);
  backdrop-filter: none;
  pointer-events: none;
}
.hub-topbar > * { pointer-events: auto; }
.hub-topbar p { color: #78e4ee; }
.hub-topbar h1 { font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }

.hub-rail {
  position: fixed;
  z-index: 40;
  top: auto;
  right: auto;
  bottom: 16px;
  left: 50%;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 86px;
  align-items: stretch;
  width: min(960px, calc(100% - 24px));
  height: 92px;
  padding: 0;
  border: 1px solid rgba(130, 220, 245, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0, rgba(105, 231, 255, 0.12), transparent 16rem),
    linear-gradient(180deg, rgba(10, 22, 42, 0.96), rgba(3, 9, 20, 0.98));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(160, 230, 255, 0.12) inset;
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}
.hub-brand {
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid rgba(128, 208, 239, 0.14);
}
.hub-brand .brand-sigil {
  width: 38px;
  height: 38px;
  box-shadow: 0 0 22px rgba(105, 231, 255, 0.22);
}
.hub-rail nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  align-content: stretch;
  padding: 10px 10px;
}
.hub-rail nav button,
.hub-exit {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 0;
  height: 100%;
  padding: 8px 4px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #8b9cb2;
  background: transparent;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.hub-nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
}
.hub-nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.hub-rail nav button small,
.hub-exit small {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}
.hub-rail nav button:hover,
.hub-exit:hover {
  color: #d8f8ff;
  border-color: rgba(105, 231, 255, 0.16);
  background: rgba(105, 231, 255, 0.07);
}
.hub-rail nav button:hover .hub-nav-icon,
.hub-exit:hover .hub-nav-icon {
  background: rgba(105, 231, 255, 0.12);
}
.hub-rail nav button.active {
  color: #04131b;
  border-color: rgba(170, 245, 255, 0.55);
  background: linear-gradient(180deg, #9bf5ff 0%, #5ed8e8 100%);
  box-shadow:
    0 10px 28px rgba(94, 216, 232, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}
.hub-rail nav button.active .hub-nav-icon {
  color: #04131b;
  background: rgba(4, 19, 27, 0.12);
}
.hub-rail nav button.active small {
  color: #04131b;
  font-weight: 900;
}
.hub-rail nav button:focus-visible,
.hub-exit:focus-visible {
  outline: 2px solid #fff29a;
  outline-offset: 2px;
}
.hub-exit {
  border: 0;
  border-left: 1px solid rgba(128, 208, 239, 0.14);
  border-radius: 0 22px 22px 0;
  color: #9aabbf;
}
.hub-exit:hover {
  color: #ffd7a8;
  border-left-color: rgba(128, 208, 239, 0.14);
  background: linear-gradient(180deg, rgba(255, 170, 80, 0.1), rgba(255, 170, 80, 0.03));
}

.hub-content { width: 100%; margin: 0; padding: 0; }
.hub-panel[data-hub-panel="home"] { min-height: 100svh; }

.hub-dashboard-grid {
  position: relative;
  display: block;
  min-height: 100svh;
}

.hub-dashboard-grid > article { border: 0; }

.play-banner {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: 150px max(34px, calc((100vw - 1440px) / 2 + 46px)) 160px;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(2, 7, 18, 0.96), rgba(2, 7, 18, 0.72) 33%, rgba(2, 7, 18, 0.1) 69%),
    linear-gradient(180deg, rgba(2, 7, 18, 0.08), rgba(2, 7, 18, 0.1) 55%, #030814 100%),
    url("../assets/keyart/landing-battle-v1.webp") center / cover !important;
}

.play-banner::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 220px;
  background: linear-gradient(transparent, rgba(3, 8, 20, 0.92));
  content: "";
  pointer-events: none;
}

.play-banner > div:first-child { z-index: 3; max-width: 690px; }
.live-status { margin-bottom: 22px; }
.play-banner h2 { max-width: 720px; font-size: clamp(3.8rem, 6.4vw, 7.2rem); line-height: 0.88; text-shadow: 0 8px 38px rgba(0, 0, 0, 0.66); }
.play-banner-copy { max-width: 520px; color: #b0bdce; font-size: 1rem; }
.play-banner-actions { position: relative; z-index: 4; }
.play-orbital { display: none; }

.daily-card,
.news-hub-card { display: none; }

.season-card {
  position: absolute;
  z-index: 5;
  right: max(34px, calc((100vw - 1440px) / 2 + 38px));
  bottom: 128px;
  width: 330px;
  padding: 20px 22px;
  border: 1px solid rgba(124, 213, 242, 0.2) !important;
  border-top: 2px solid var(--cyan) !important;
  background: linear-gradient(145deg, rgba(6, 17, 34, 0.86), rgba(4, 10, 23, 0.94)) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}
.season-card h3 { font-size: 1.65rem; }

.hub-panel:not([data-hub-panel="home"]) {
  width: min(1440px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 135px clamp(22px, 4vw, 60px) 135px;
  background:
    radial-gradient(circle at 82% 0, rgba(55, 168, 214, 0.12), transparent 35rem),
    #07101e;
}

/* Página Jogar — cena de portais com hierarquia de modos */
.hub-panel[data-hub-panel="lobby"] {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #030814;
}

.play-lobby-scene {
  position: relative;
  min-height: 100svh;
  padding:
    118px max(22px, calc((100vw - 1440px) / 2 + 28px))
    150px;
  background:
    linear-gradient(180deg, rgba(2, 7, 18, 0.78) 0%, rgba(2, 7, 18, 0.55) 28%, rgba(3, 8, 20, 0.92) 72%, #030814 100%),
    linear-gradient(90deg, rgba(2, 7, 18, 0.88) 0%, rgba(2, 7, 18, 0.35) 48%, rgba(2, 7, 18, 0.72) 100%),
    url("../assets/keyart/lobby-expedition-hall-v1.webp") center 36% / cover;
}

.play-lobby-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 280px);
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
}

.play-lobby-copy .portal-eyebrow {
  margin-bottom: 14px;
}

.play-lobby-copy h2 {
  margin: 0;
  max-width: 12ch;
  font-family: Georgia, serif;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.play-lobby-lead {
  max-width: 52ch;
  margin: 16px 0 0;
  color: #c2cfdf;
  font-size: 1rem;
  line-height: 1.65;
}

.play-lobby-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.play-lobby-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(130, 210, 240, 0.18);
  border-radius: 999px;
  color: #d7e8f6;
  background: rgba(4, 14, 28, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.play-lobby-proof b {
  color: #7cebf4;
  font-size: 0.78rem;
  font-weight: 900;
}

.play-lobby-status {
  display: grid;
  gap: 6px;
  align-content: end;
  min-height: 132px;
  padding: 18px 20px;
  border: 1px solid rgba(124, 213, 242, 0.22);
  border-top: 2px solid var(--cyan);
  background: linear-gradient(145deg, rgba(6, 17, 34, 0.88), rgba(4, 10, 23, 0.94));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.play-lobby-status .live-status {
  margin: 0 0 4px;
}

.play-lobby-status strong {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.play-lobby-status small {
  color: #8092a8;
  font-size: 0.68rem;
  line-height: 1.45;
}

.hub-panel[data-hub-panel="lobby"] .queue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.hub-panel[data-hub-panel="lobby"] .queue-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 0;
  padding: 24px 24px 22px;
  overflow: hidden;
  border: 1px solid rgba(140, 200, 230, 0.16);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(10, 22, 42, 0.92), rgba(5, 12, 26, 0.96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.hub-panel[data-hub-panel="lobby"] .queue-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.queue-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(105, 231, 255, 0.22);
  border-radius: 999px;
  color: #8feaf3;
  background: rgba(105, 231, 255, 0.08);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.queue-tag.live {
  color: #9af0b8;
  border-color: rgba(110, 220, 150, 0.35);
  background: rgba(70, 180, 110, 0.12);
}

.queue-tag.soon {
  color: #ffd089;
  border-color: rgba(255, 196, 110, 0.28);
  background: rgba(255, 196, 110, 0.08);
}

.queue-format {
  color: #7d90a6;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.hub-panel[data-hub-panel="lobby"] .queue-scale {
  display: block;
  margin: 0 0 8px;
  color: #e8f4ff;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hub-panel[data-hub-panel="lobby"] .queue-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 1.28rem;
  font-weight: 500;
}

.hub-panel[data-hub-panel="lobby"] .queue-card > p {
  min-height: 0;
  margin: 0 0 16px;
  color: #8b9bb0;
  font-size: 0.78rem;
  line-height: 1.6;
}

.queue-bullets {
  display: grid;
  gap: 7px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.queue-bullets li {
  position: relative;
  padding-left: 16px;
  color: #a9bacd;
  font-size: 0.7rem;
  font-weight: 650;
}

.queue-bullets li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(105, 231, 255, 0.55);
  content: "";
}

.hub-panel[data-hub-panel="lobby"] .queue-card button {
  align-self: end;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 850;
}

.hub-panel[data-hub-panel="lobby"] .queue-card-live {
  border-color: rgba(105, 231, 255, 0.32);
  background:
    radial-gradient(circle at 90% 0, rgba(105, 231, 255, 0.16), transparent 18rem),
    linear-gradient(160deg, rgba(12, 32, 54, 0.95), rgba(5, 14, 28, 0.97));
  box-shadow: 0 22px 60px rgba(20, 80, 120, 0.28), 0 0 0 1px rgba(105, 231, 255, 0.08) inset;
}

.queue-card-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 231, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.hub-panel[data-hub-panel="lobby"] .queue-card-lab {
  background:
    radial-gradient(circle at 100% 100%, rgba(143, 120, 255, 0.12), transparent 16rem),
    linear-gradient(160deg, rgba(14, 20, 42, 0.94), rgba(6, 10, 24, 0.97));
}

.hub-panel[data-hub-panel="lobby"] .queue-card-ranked {
  opacity: 0.88;
}

.hub-panel[data-hub-panel="lobby"] .queue-card-ranked button:disabled {
  border-style: dashed;
  opacity: 0.7;
}

.hub-panel[data-hub-panel="lobby"] .ranking-observatory {
  margin-top: 0;
  padding: 24px;
  border: 1px solid rgba(124, 213, 242, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(5, 16, 32, 0.9), rgba(4, 10, 22, 0.95));
  backdrop-filter: blur(14px);
}

.hub-panel[data-hub-panel="lobby"] .ranking-observatory > header {
  align-items: flex-end;
  margin-bottom: 18px;
}

.hub-panel[data-hub-panel="lobby"] .ranking-observatory > header h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.hub-panel[data-hub-panel="lobby"] .ranking-grid article {
  border-radius: 12px;
  border: 1px solid rgba(130, 200, 230, 0.1);
  border-top: 2px solid rgba(105, 231, 255, 0.4);
  background: radial-gradient(circle at 90% 0, rgba(143, 120, 255, 0.1), transparent 10rem), rgba(255, 255, 255, 0.03);
}

.hub-panel[data-hub-panel="lobby"] .replay-library {
  margin-top: 18px;
  border-radius: 14px;
  border-color: rgba(255, 209, 102, 0.16);
}

@media (max-width: 1100px) {
  .hub-panel[data-hub-panel="lobby"] .queue-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hub-panel[data-hub-panel="lobby"] .queue-card-live {
    grid-column: 1 / -1;
  }
  .play-lobby-hero {
    grid-template-columns: 1fr;
  }
  .play-lobby-status {
    max-width: 360px;
  }
}

@media (max-width: 900px) {
  .hub-rail {
    bottom: 0;
    width: 100%;
    height: 76px;
    grid-template-columns: 1fr;
    border-radius: 18px 18px 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    transform: translateX(-50%);
  }
  .hub-brand,
  .hub-exit { display: none; }
  .hub-rail nav {
    height: 100%;
    gap: 3px;
    padding: 6px 6px 8px;
  }
  .hub-rail nav button {
    min-height: 0;
    padding: 6px 2px 8px;
    border-radius: 12px;
  }
  .hub-nav-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  .hub-nav-icon svg {
    width: 15px;
    height: 15px;
  }
  .hub-rail nav button small {
    font-size: 0.5rem;
    letter-spacing: 0.04em;
  }
  .hub-topbar { min-height: 78px; padding: 13px 16px; }
  .hub-topbar > div:first-child { display: block; }
  .hub-topbar h1 { font-size: 1.15rem; }
  .hub-topbar p { font-size: 0.46rem; }
  .currency { min-height: 36px; padding: 0 8px; }
  .profile-chip { min-width: 0; margin-left: 2px; }
  .profile-chip > span:nth-child(2) { display: none; }
  .play-banner { min-height: 100svh; padding: 120px 22px 125px; background-position: 66% center !important; }
  .play-banner::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(2,7,18,.25), rgba(2,7,18,.4) 45%, rgba(2,7,18,.96) 83%); content: ""; }
  .play-banner > div:first-child { z-index: 3; }
  .play-banner h2 { font-size: clamp(3rem, 12vw, 5rem); }
  .live-status { margin-bottom: 18px; }
  .season-card { display: none; }
  .hub-panel:not([data-hub-panel="home"]) { padding: 105px 14px 95px; }
  .play-lobby-scene { padding: 100px 14px 110px; background-position: 55% center; }
  .play-lobby-copy h2 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .hub-panel[data-hub-panel="lobby"] .queue-grid { grid-template-columns: 1fr; }
  .hub-panel[data-hub-panel="lobby"] .queue-card-live { grid-column: auto; }
  .hub-panel[data-hub-panel="lobby"] .ranking-grid { grid-template-columns: 1fr 1fr; }
  .hub-panel[data-hub-panel="lobby"] .replay-library { grid-template-columns: 1fr; }
}

/* Hero como tela-título, sem widgets de dashboard */

.hero-copy h1 span {
  display: block;
  margin-bottom: 9px;
  color: #f4f7ff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.34em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.hero-copy h1 em {
  display: block;
  color: #7cebf4;
  font-size: 1.27em;
  font-style: normal;
  letter-spacing: -0.08em;
  line-height: 0.8;
  text-transform: uppercase;
}

.hero-tagline {
  margin: 34px 0 0;
  color: #ebfbfc;
  font-size: clamp(0.76rem, 1vw, 0.96rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 18px #020711;
  text-transform: uppercase;
}

.hero-copy .hero-lead { max-width: 510px; margin-top: 14px; }
.hero-live-card,
.hero-mount-card,
.hero-world-lines { display: none; }

.hub-dashboard-grid .season-card { display: none; }

@media (max-width: 760px) {
  .hero-copy h1 { font-size: clamp(4rem, 19vw, 5.4rem); }
  .hero-copy h1 span { font-size: 0.3em; }
  .hero-copy h1 em { font-size: 1.05em; line-height: 0.84; }
  .hero-tagline { margin-top: 25px; font-size: 0.66rem; line-height: 1.55; }
}

/* Metajogo 0.13 — cenas de mundo em vez de páginas de catálogo */

.hub-panel[data-hub-panel="journey"],
.hub-panel[data-hub-panel="pass"],
.hub-panel[data-hub-panel="store"],
.hub-panel[data-hub-panel="collection"] {
  width: 100%;
  max-width: none;
}

.hub-panel[data-hub-panel="journey"] {
  background:
    linear-gradient(180deg, rgba(3, 8, 19, 0.7), rgba(3, 8, 19, 0.08) 22%, rgba(3, 8, 19, 0.14) 68%, #06101e 100%),
    url("../assets/metagame/journey-world-v1.webp") center top / cover;
}

.hub-panel[data-hub-panel="journey"] .panel-intro {
  position: relative;
  z-index: 3;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 0 25px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.72);
}

.hub-panel[data-hub-panel="journey"] .panel-intro h2 { font-size: clamp(3.5rem, 6vw, 6.5rem); }
.hub-panel[data-hub-panel="journey"] .panel-intro div > span { color: #c0ccda; }

.journey-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  min-height: 610px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 300px 0 25px;
  align-items: end;
}

.journey-map::before {
  position: absolute;
  right: -4vw;
  bottom: -30px;
  left: -4vw;
  height: 330px;
  background: linear-gradient(transparent, rgba(3, 9, 20, 0.94));
  content: "";
}

.journey-path {
  top: auto;
  right: 8%;
  bottom: 168px;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan) 0 38%, rgba(125, 234, 244, 0.24) 38% 100%);
  box-shadow: 0 0 14px rgba(105, 231, 255, 0.24);
}

.journey-node,
.journey-node:nth-of-type(even),
.journey-node:nth-of-type(odd) {
  min-height: 205px;
  padding: 18px;
  border: 1px solid rgba(135, 219, 245, 0.16);
  background: linear-gradient(155deg, rgba(7, 19, 36, 0.8), rgba(3, 9, 21, 0.94));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  transform: none;
}
.journey-node > span { width: 34px; height: 34px; margin-bottom: 30px; border-radius: 2px; }
.journey-node.current { border-top: 2px solid var(--cyan); transform: translateY(-18px); }
.journey-node h3 { font-size: 1.35rem; }

.hub-panel[data-hub-panel="pass"] {
  background: #040a16;
}

.pass-hero {
  position: relative;
  min-height: 650px;
  padding: 70px max(32px, calc((100% - 1340px) / 2));
  align-items: flex-end;
  border: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 19, 0.96), rgba(3, 8, 19, 0.74) 34%, rgba(3, 8, 19, 0.08) 70%),
    linear-gradient(180deg, rgba(3, 8, 19, 0.06), rgba(3, 8, 19, 0.1) 65%, #040a16 100%),
    url("../assets/metagame/season-aurora-v1.webp") center / cover;
}

.pass-hero > div:first-child { position: relative; z-index: 2; max-width: 570px; }
.pass-hero h2 { font-size: clamp(4rem, 7vw, 7rem); line-height: 0.85; text-shadow: 0 7px 36px rgba(0, 0, 0, 0.62); }
.pass-hero div > span { color: #bdc9db; font-size: 0.92rem; line-height: 1.7; }
.pass-status { position: relative; z-index: 2; min-width: 150px; padding: 18px; border-top: 2px solid var(--cyan); background: rgba(5, 14, 30, 0.78); backdrop-filter: blur(14px); }
.pass-track-wrap { max-width: 1340px; margin: 0 auto; border: 0; border-top: 1px solid rgba(128, 212, 241, 0.16); background: #060d1a; }
.pass-track article { min-height: 190px; background: linear-gradient(180deg, rgba(17, 32, 55, 0.76), rgba(7, 14, 29, 0.94)); }
.fair-play-note { max-width: 1292px; margin-right: auto; margin-left: auto; }

.hub-panel[data-hub-panel="store"] {
  background: #040a15;
}

.hub-panel[data-hub-panel="store"] .panel-intro {
  max-width: 1340px;
  margin-right: auto;
  margin-left: auto;
}

.store-feature {
  min-height: 610px;
  max-width: 1340px;
  margin: 0 auto;
  border: 1px solid rgba(130, 211, 240, 0.16);
  background:
    linear-gradient(90deg, rgba(3, 8, 19, 0.96), rgba(3, 8, 19, 0.76) 36%, rgba(3, 8, 19, 0.05) 70%),
    linear-gradient(180deg, transparent 58%, rgba(3, 8, 19, 0.82)),
    url("../assets/metagame/store-midnight-forge-v1.webp") center / cover;
}
.store-feature > div:first-child { position: relative; z-index: 2; align-self: end; padding: 58px; }
.store-feature h3 { font-size: clamp(3rem, 5vw, 5.6rem); line-height: 0.9; }
.store-feature p { color: #aebccd; font-size: 0.88rem; }
.store-art { display: none; }
.store-heading,
.store-grid { max-width: 1340px; margin-right: auto; margin-left: auto; }

.store-item-art { height: 245px; background-color: #081324; background-size: cover !important; }
.store-item-art i { display: none; }
.store-item-art.obsidian { background: url("../assets/metagame/store-midnight-forge-v1.webp") 79% 52% / 230% !important; }
.store-item-art.aurora { background: url("../assets/metagame/season-aurora-v1.webp") 22% 76% / 235% !important; }
.store-item-art.ember { background: url("../assets/metagame/store-midnight-forge-v1.webp") 42% 56% / 230% !important; }
.store-item-art.mastery { background: url("../assets/metagame/store-midnight-forge-v1.webp") 95% 63% / 250% !important; }
.store-grid article { background: linear-gradient(180deg, rgba(14, 27, 48, 0.86), rgba(5, 12, 25, 0.96)); }

.hub-panel[data-hub-panel="collection"] {
  position: relative;
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(3, 8, 19, 0.72), rgba(3, 8, 19, 0.04) 25%, rgba(3, 8, 19, 0.16) 62%, #040a15 100%),
    url("../assets/metagame/collection-sanctuary-v1.webp") center top / cover;
}

.hub-panel[data-hub-panel="collection"] .panel-intro {
  position: relative;
  z-index: 2;
  max-width: 1340px;
  margin: 0 auto;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.7);
}
.hub-panel[data-hub-panel="collection"] .panel-intro h2 { font-size: clamp(3.5rem, 6vw, 6.3rem); }

.collection-grid {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 470px auto 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.collection-card {
  min-height: 180px;
  padding: 16px;
  border-color: rgba(132, 214, 242, 0.16);
  background: linear-gradient(160deg, rgba(8, 21, 39, 0.82), rgba(4, 10, 22, 0.96));
  backdrop-filter: blur(14px);
}
.collection-card.selected { border-top: 2px solid var(--cyan); }
.collection-silhouette { height: 110px; background-size: cover !important; }
.collection-silhouette > i { display: none; }
.collection-silhouette.armadillo { background: radial-gradient(circle,rgba(255,112,72,.16),transparent 58%),url("../assets/characters/tatu-fornalha-battle-v1.webp") center 65% / 88% auto no-repeat,rgba(5,14,28,.86) !important; }
.collection-silhouette.golem { background: radial-gradient(circle,rgba(101,201,133,.16),transparent 58%),url("../assets/characters/golem-mangue-battle-v1.webp") center 65% / 86% auto no-repeat,rgba(5,14,28,.86) !important; }
.collection-silhouette.macaw { background: radial-gradient(circle,rgba(103,232,255,.17),transparent 58%),url("../assets/characters/arara-tempestade-battle-v1.webp") center 62% / 88% auto no-repeat,rgba(5,14,28,.86) !important; }
.collection-silhouette.capybara { background: radial-gradient(circle,rgba(213,140,255,.16),transparent 58%),url("../assets/characters/capivara-aurora-battle-v1.webp") center 62% / 92% auto no-repeat,rgba(5,14,28,.86) !important; }
.collection-silhouette.hummingbird { background: radial-gradient(circle at 50% 40%,rgba(158,240,196,.28),transparent 55%),linear-gradient(160deg,#0a1f1c,#06121a) !important; }
.collection-silhouette.hummingbird > i { display: block !important; width: 70px; height: 42px; border-color: #9ef0c4; border-radius: 60% 40% 55% 45%; background: linear-gradient(135deg,#1a4a3c,#9ef0c4); box-shadow: 0 0 28px rgba(158,240,196,.35); }
.collection-silhouette.hummingbird > i::before { right: -36px; top: 8px; width: 48px; height: 10px; background: #67e8ff; transform: rotate(-28deg); }
.collection-silhouette.toad { background: radial-gradient(circle at 50% 50%,rgba(123,201,111,.26),transparent 55%),linear-gradient(160deg,#122018,#0a1412) !important; }
.collection-silhouette.toad > i { display: block !important; width: 110px; height: 78px; border-color: #7bc96f; border-radius: 48% 48% 42% 42%; background: linear-gradient(180deg,#2a4a2c,#7bc96f); }
.collection-silhouette.toad > i::before { right: 18px; top: -8px; width: 28px; height: 22px; border-radius: 50%; background: #c8f07a; }
.collection-silhouette.spider { background: radial-gradient(circle at 50% 40%,rgba(201,168,255,.28),transparent 55%),linear-gradient(160deg,#16102a,#0a0c1a) !important; }
.collection-silhouette.spider > i { display: block !important; width: 88px; height: 56px; border-color: #c9a8ff; border-radius: 40%; background: linear-gradient(135deg,#2a1a48,#c9a8ff); }
.collection-silhouette.spider > i::before { right: -40px; top: 18px; width: 52px; height: 6px; background: #69e7ff; box-shadow: 0 -14px 0 #69e7ff, 0 14px 0 #69e7ff; }
.collection-silhouette.jaguar { background: radial-gradient(circle at 50% 45%,rgba(255,179,71,.28),transparent 55%),linear-gradient(160deg,#2a1810,#120c0a) !important; }
.collection-silhouette.jaguar > i { display: block !important; width: 120px; height: 58px; border-color: #ffb347; border-radius: 55% 45% 40% 50%; background: linear-gradient(135deg,#5a3018,#ffb347); }
.collection-silhouette.jaguar > i::before { right: -18px; top: 8px; width: 36px; height: 22px; border-radius: 40% 60% 50% 40%; background: #ff7048; }
.collection-silhouette.unknown { background: url("../assets/metagame/collection-sanctuary-v1.webp") 28% 50% / 310% !important; }
.mount-kit { display: block; margin: 4px 0 10px; color: #7f93a9; font-size: .58rem; font-weight: 750; letter-spacing: .04em; }

@media (max-width: 900px) {
  .hub-panel[data-hub-panel="journey"] .panel-intro h2,
  .hub-panel[data-hub-panel="collection"] .panel-intro h2 { font-size: 3.4rem; }
  .journey-map { grid-template-columns: 1fr 1fr; padding-top: 260px; }
  .journey-path { display: none; }
  .journey-node.current { transform: none; }
  .pass-hero { min-height: 700px; padding: 110px 20px 50px; background-position: 65% center; }
  .pass-hero::before { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,8,19,.1), rgba(3,8,19,.92) 78%); content: ""; }
  .pass-status { display: none; }
  .pass-track { grid-template-columns: repeat(2, 1fr); }
  .store-feature { min-height: 650px; background-position: 68% center; }
  .store-feature > div:first-child { padding: 35px 24px; }
  .store-grid { grid-template-columns: 1fr 1fr; }
  .ranking-grid { grid-template-columns: 1fr 1fr; }
  .collection-grid { grid-template-columns: 1fr 1fr; margin-top: 380px; }
}

@media (max-width: 560px) {
  .ranking-observatory > header { display: block; }
  .ranking-observatory > header p { margin-top: 10px; text-align: left; }
  .ranking-grid,.collection-grid { grid-template-columns: 1fr; }
  .journey-map { grid-template-columns: 1fr; padding-top: 230px; }
  .store-grid { grid-template-columns: 1fr; }
  .store-item-art { height: 280px; }
}

/* Apresentação de combate 0.19 — preferências locais, áudio e acessibilidade */
.presentation-card {
  min-width: 132px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 209, 102, .18);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 209, 102, .09), rgba(89, 72, 159, .1));
  cursor: pointer;
  text-align: left;
}
.presentation-card span,.presentation-card strong,.presentation-card small { display: block; }
.presentation-card span { color: #9996ad; font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.presentation-card strong { margin: 4px 0 2px; color: #ffe18a; font-size: .78rem; }
.presentation-card small { color: #858399; font-size: .63rem; }
.presentation-online-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(105, 231, 255, .24);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(7, 18, 38, .82);
  cursor: pointer;
}

.presentation-modal[hidden] { display: none; }
.presentation-modal { position: fixed; z-index: 180; inset: 0; display: grid; place-items: center; padding: 18px; }
.presentation-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(1, 5, 14, .8); backdrop-filter: blur(12px); }
.presentation-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 25px;
  border: 1px solid rgba(115, 223, 245, .25);
  background: radial-gradient(circle at 100% 0, rgba(143, 120, 255, .2), transparent 38%), linear-gradient(155deg, #0b1930, #050b18 72%);
  box-shadow: 0 35px 100px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 255, 255, .07);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.presentation-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.presentation-dialog > header p { margin: 0 0 5px; color: var(--cyan); font-size: .58rem; font-weight: 900; letter-spacing: .16em; }
.presentation-dialog h2 { margin: 0; font: 500 2.1rem Georgia, serif; }
.presentation-dialog > header > button { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; color: #c9d7e8; background: rgba(255,255,255,.04); cursor: pointer; }
.presentation-dialog > p { margin: 10px 0 20px; color: #899ab0; font-size: .75rem; line-height: 1.55; }
.presentation-switch,.presentation-volume { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 13px 2px; border-top: 1px solid rgba(155, 190, 226, .11); }
.presentation-switch span,.presentation-switch strong,.presentation-switch small,.presentation-volume span { display: block; }
.presentation-switch strong,.presentation-volume strong { color: #e9f5ff; font-size: .78rem; }
.presentation-switch small { margin-top: 4px; color: #77899f; font-size: .67rem; line-height: 1.4; }
.presentation-switch input { width: 42px; height: 22px; flex: 0 0 auto; accent-color: var(--cyan); }
.presentation-volume { display: grid; }
.presentation-volume > span { display: flex; justify-content: space-between; }
.presentation-volume output { color: var(--cyan); font-size: .72rem; font-weight: 900; }
.presentation-volume input { margin: 4px 0; accent-color: var(--cyan); }
.presentation-audio-note { display: block; margin-top: 15px; color: #65778e; font-size: .62rem; }

button:focus-visible,input:focus-visible,select:focus-visible { outline: 3px solid #fff29a; outline-offset: 3px; }
.presentation-high-contrast { --muted: #d7e3f2; --line: rgba(207, 236, 255, .42); }
.presentation-high-contrast canvas { outline: 2px solid rgba(255, 242, 154, .72); outline-offset: -2px; filter: contrast(1.08) saturate(1.08); }
.presentation-high-contrast .online-match-heading,.presentation-high-contrast .control-deck { border-color: rgba(255, 242, 154, .45); }
.presentation-reduced-motion * { scroll-behavior: auto !important; }
.presentation-reduced-motion .hero-art img,.presentation-reduced-motion .orbit-mark,.presentation-reduced-motion [class*="pulse"] { animation: none !important; transition-duration: .01ms !important; }

/* Criação de expedição 0.29 — configuração legível e autoritativa. */
.create-room-card { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; padding: 15px !important; border: 1px solid rgba(112, 222, 235, .2) !important; background: linear-gradient(145deg, rgba(10, 20, 39, .92), rgba(24, 20, 48, .88)) !important; clip-path: none !important; }
.create-room-title { display: flex; align-items: center; gap: 10px; }
.create-room-title > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(97, 221, 235, .45); border-radius: 8px; color: #61ddeb; font: 800 .65rem/1 system-ui; }
.create-room-title small,.create-room-title strong { display: block; }
.create-room-title small { color: #61ddeb; font: 800 .48rem/1 system-ui; letter-spacing: .14em; }
.create-room-title strong { margin-top: 4px; color: #fff; font: 800 .9rem/1.1 system-ui; }
.create-room-card > label,.create-room-config-grid label { display: grid; gap: 5px; color: rgba(222, 232, 255, .7); font: 750 .62rem/1.1 system-ui; letter-spacing: .04em; }
.create-room-card input,.create-room-card select { width: 100%; min-width: 0; }
.create-room-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.create-room-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.create-room-toggles label { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: rgba(235,240,255,.82); font: 700 .62rem/1.15 system-ui; }
.create-room-toggles input { width: auto; accent-color: #61ddeb; }
.create-room-submit { display: flex !important; justify-content: space-between; align-items: center; width: 100%; }
@media (max-width: 760px) { .create-room-config-grid,.create-room-toggles { grid-template-columns: 1fr; } }

@media (max-width: 1240px) {
  .presentation-card { display: none; }
}
@media (max-width: 600px) {
  .presentation-dialog { padding: 20px; }
  .presentation-dialog h2 { font-size: 1.7rem; }
  .presentation-switch { min-height: 62px; }
}

/* Arquivos de voo 0.20 — reconstrução visual de replay */
.replay-library { display: grid; grid-template-columns: 1fr minmax(290px,.8fr) minmax(250px,.75fr); gap: 24px; align-items: center; margin-top: 18px; padding: 22px; border: 1px solid rgba(255,209,102,.14); background: radial-gradient(circle at 100% 0,rgba(255,170,80,.08),transparent 20rem),rgba(4,12,27,.84); }
.replay-library > div:first-child > span { color: #f1c86e; font-size: .5rem; font-weight: 900; letter-spacing: .15em; }
.replay-library h3 { margin: 5px 0; font: 500 1.45rem Georgia,serif; }
.replay-library p { margin: 0; color: #72849a; font-size: .67rem; line-height: 1.5; }
#replayLookupForm { display: grid; gap: 7px; }
#replayLookupForm label { color: #7c8da2; font-size: .55rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
#replayLookupForm > div { display: grid; grid-template-columns: 1fr auto; }
#replayLookupForm input { min-width: 0; padding: 11px; border: 1px solid rgba(137,190,225,.2); color: #e7f2ff; background: rgba(2,8,20,.82); outline: 0; }
#replayLookupForm button { border: 0; padding: 0 15px; color: #071522; background: #75e5ef; cursor: pointer; font-size: .65rem; font-weight: 900; }
.recent-replay-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; max-height: 112px; overflow: auto; }
.recent-replay-list > small { grid-column: 1/-1; color: #66788e; font-size: .64rem; }
.recent-replay-list > small.error { color: #ff997c; }
.recent-replay-list button { min-width: 0; padding: 8px 9px; border: 1px solid rgba(130,194,225,.12); color: #dceaf8; background: rgba(255,255,255,.025); cursor: pointer; text-align: left; }
.recent-replay-list strong,.recent-replay-list button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-replay-list strong { font: 800 .58rem ui-monospace,monospace; }
.recent-replay-list button small { margin-top: 3px; color: #718398; font-size: .5rem; }

.replay-modal[hidden] { display: none; }
.replay-modal { position: fixed; z-index: 190; inset: 0; display: grid; place-items: center; padding: 18px; }
.replay-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(1,4,11,.91); backdrop-filter: blur(15px); }
.replay-dialog { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 270px; grid-template-rows: auto minmax(0,1fr) auto; width: min(1420px,100%); max-height: calc(100svh - 36px); overflow: hidden; border: 1px solid rgba(110,220,242,.25); background: #030a17; box-shadow: 0 40px 120px rgba(0,0,0,.72); }
.replay-dialog > header { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(151,194,229,.12); background: linear-gradient(90deg,rgba(9,27,48,.98),rgba(12,13,34,.98)); }
.replay-dialog > header p { margin: 0 0 3px; color: var(--cyan); font-size: .52rem; font-weight: 900; letter-spacing: .13em; }
.replay-dialog > header h2 { display: inline; margin: 0 14px 0 0; font: 500 1.55rem Georgia,serif; }
.replay-dialog > header div > span { color: #76899e; font-size: .62rem; }
.replay-dialog > header > button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: #d9e7f5; background: rgba(255,255,255,.04); cursor: pointer; }
.replay-stage { position: relative; min-height: 0; overflow: hidden; background: #081329; }
.replay-stage canvas { width: 100%; height: 100%; object-fit: contain; }
.replay-verified { position: absolute; top: 14px; right: 14px; padding: 7px 10px; border: 1px solid rgba(116,239,160,.35); color: #8ff1b0; background: rgba(4,24,20,.78); font-size: .52rem; font-weight: 900; letter-spacing: .1em; }
.replay-log { grid-row: 2/4; grid-column: 2; display: flex; flex-direction: column; min-height: 0; padding: 20px; border-left: 1px solid rgba(151,194,229,.12); background: linear-gradient(180deg,#071427,#040b18); }
.replay-log > strong { font: 500 1.15rem Georgia,serif; }
.replay-log > span { margin-top: 6px; color: #71849a; font-size: .64rem; line-height: 1.5; }
#replayTimeline { display: grid; gap: 5px; margin-top: 18px; overflow: auto; }
#replayTimeline button { display: grid; grid-template-columns: 27px 1fr; align-items: center; min-height: 42px; padding: 7px 9px; border: 1px solid rgba(146,190,224,.1); color: #8fa1b5; background: rgba(255,255,255,.02); cursor: pointer; text-align: left; }
#replayTimeline button.active { border-color: rgba(105,231,255,.45); color: #ebfaff; background: rgba(105,231,255,.08); }
#replayTimeline b { color: #5f758c; font: 700 .52rem ui-monospace,monospace; }
#replayTimeline span { font-size: .64rem; font-weight: 800; }
.replay-controls { display: grid; grid-template-columns: 42px auto 42px minmax(180px,1fr) 100px; gap: 9px; align-items: center; padding: 12px 15px; border-top: 1px solid rgba(151,194,229,.12); background: rgba(3,10,23,.98); }
.replay-controls > button { min-height: 40px; border: 1px solid rgba(110,206,235,.18); color: #b9d6e9; background: rgba(255,255,255,.025); cursor: pointer; }
.replay-controls > button:disabled { opacity: .35; }
.replay-controls .replay-play { min-width: 125px; color: #051420; background: linear-gradient(135deg,#69e7ff,#b19aff); font-size: .65rem; font-weight: 950; }
.replay-controls label { display: grid; gap: 4px; }
.replay-controls label > span { display: flex; justify-content: space-between; color: #75879d; font-size: .52rem; font-weight: 850; text-transform: uppercase; }
.replay-controls output { color: var(--cyan); }
.replay-controls input { margin: 3px 0; accent-color: var(--cyan); }
.replay-controls select { width: 100%; padding: 7px; border: 1px solid rgba(110,206,235,.15); color: #d9e8f5; background: #081426; }

@media (max-width: 900px) {
  .replay-library { grid-template-columns: 1fr; }
  .replay-dialog { display: block; max-height: calc(100svh - 16px); overflow: auto; }
  .replay-stage { min-height: 47vw; }
  .replay-log { min-height: 220px; border-top: 1px solid rgba(151,194,229,.12); border-left: 0; }
  .replay-controls { grid-template-columns: 38px 1fr 38px; }
  .replay-controls > label { grid-column: 1/-1; }
  .replay-speed { display: none !important; }
}

/* Playtest 0.22 — avaliação local e telemetria de replays */
#onlineFeedbackButton {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 209, 102, .28);
  color: #ffe7a8;
  background: rgba(255, 170, 64, .08);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 850;
}
#onlineFeedbackButton:hover { border-color: rgba(255, 209, 102, .5); background: rgba(255, 170, 64, .14); }

.playtest-feedback-dialog {
  width: min(560px, calc(100vw - 28px));
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 209, 102, .28);
  background: radial-gradient(circle at 100% 0, rgba(255, 170, 80, .16), transparent 42%), linear-gradient(155deg, #12182a, #070b16 72%);
  color: #e8f0fa;
  box-shadow: 0 35px 110px rgba(0, 0, 0, .68), inset 0 1px rgba(255, 255, 255, .06);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.playtest-feedback-dialog::backdrop {
  background: rgba(1, 4, 12, .82);
  backdrop-filter: blur(10px);
}
.playtest-feedback-dialog form { display: grid; gap: 14px; padding: 24px; }
.playtest-feedback-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.playtest-feedback-dialog header .eyebrow {
  display: block;
  margin: 0 0 6px;
  color: #f1c86e;
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.playtest-feedback-dialog h2 {
  margin: 0;
  font: 500 1.85rem Georgia, serif;
  line-height: 1.1;
}
.playtest-feedback-dialog header > button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  color: #d5e3f2;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}
.playtest-feedback-dialog > form > p {
  margin: 0;
  color: #8799ae;
  font-size: .72rem;
  line-height: 1.55;
}
.playtest-rating-grid {
  display: grid;
  gap: 10px;
}
.playtest-rating-grid label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, .7fr) 42px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  border-top: 1px solid rgba(155, 190, 226, .1);
  color: #d7e6f6;
  font-size: .72rem;
  font-weight: 700;
}
.playtest-rating-grid input[type="range"] {
  width: 100%;
  accent-color: #f1c86e;
}
.playtest-rating-grid output {
  color: #f1c86e;
  font-size: .68rem;
  font-weight: 900;
  text-align: right;
}
.playtest-notes {
  display: grid;
  gap: 7px;
  color: #7f92a8;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.playtest-notes textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px;
  border: 1px solid rgba(137, 190, 225, .18);
  color: #e7f2ff;
  background: rgba(2, 8, 20, .82);
  font: 500 .78rem/1.45 system-ui, sans-serif;
  resize: vertical;
  outline: 0;
}
.playtest-notes textarea:focus { border-color: rgba(241, 200, 110, .45); }
.playtest-feedback-status {
  min-height: 1.2em;
  margin: 0;
  color: #8eb0c8;
  font-size: .68rem;
}
.playtest-feedback-dialog footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}
.playtest-feedback-dialog footer > button[type="button"] {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(155, 190, 226, .2);
  color: #c9dbeb;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 800;
}
.playtest-feedback-dialog footer .portal-primary {
  min-height: 42px;
}

@media (max-width: 600px) {
  .playtest-feedback-dialog form { padding: 18px; }
  .playtest-feedback-dialog h2 { font-size: 1.45rem; }
  .playtest-rating-grid label {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .playtest-rating-grid input[type="range"] { grid-column: 1 / -1; }
  .playtest-rating-grid output { grid-column: 2; grid-row: 1; }
  .playtest-feedback-dialog footer { flex-direction: column-reverse; }
  .playtest-feedback-dialog footer > button { width: 100%; }
}

/* ============================================================
   LANDING AAA · Ballistics 0.26 — cores da logo (ember/gold/cyan)
   ============================================================ */
.lp-landing {
  --lp-bg: #05070f;
  --lp-panel: rgba(10, 14, 26, 0.82);
  --lp-ember: #ff6a3d;
  --lp-ember-hot: #ff8f4a;
  --lp-gold: #ffb347;
  --lp-cyan: #5ce8f5;
  --lp-blue: #4a9dff;
  --lp-red: #ff3d4f;
  --lp-silver: #eef1f8;
  --lp-muted: #9aa6bd;
  --lp-line: rgba(255, 140, 70, 0.22);
  background: var(--lp-bg);
  color: var(--lp-silver);
  overflow-x: hidden;
}

body[data-active-portal-view="landing"] {
  background:
    radial-gradient(ellipse 90% 60% at 70% 0%, rgba(255, 90, 40, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(60, 140, 255, 0.1), transparent 50%),
    #05070f;
}

/* Header accents */
.lp-header {
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.92), rgba(5, 8, 16, 0.35) 70%, transparent) !important;
  border-bottom: 0 !important;
  backdrop-filter: blur(16px);
}
.lp-nav button {
  color: #b8c2d6 !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.68rem !important;
}
.lp-nav button:hover { color: var(--lp-gold) !important; }
.lp-cta-header {
  background: linear-gradient(135deg, #ff7a3c, #ffb347) !important;
  color: #1a0c06 !important;
  border: 0 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 28px rgba(255, 120, 50, 0.35) !important;
}
.lp-cta-header:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 40px rgba(255, 140, 60, 0.5) !important;
}

.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--lp-gold);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.lp-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-ember);
  box-shadow: 0 0 12px var(--lp-ember);
  animation: lp-pulse 1.8s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* —— HERO —— */
.lp-hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  isolation: isolate;
}
.lp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.lp-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.05);
}
.lp-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 7, 14, 0.97) 0%, rgba(5, 7, 14, 0.88) 28%, rgba(5, 7, 14, 0.45) 52%, rgba(5, 7, 14, 0.2) 72%, rgba(5, 7, 14, 0.75) 100%),
    linear-gradient(180deg, rgba(5, 7, 14, 0.35) 0%, transparent 30%, rgba(5, 7, 14, 0.55) 78%, #05070f 100%),
    radial-gradient(ellipse 50% 40% at 30% 60%, rgba(255, 90, 40, 0.12), transparent 70%);
}
.lp-hero-embers {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(255, 180, 80, 0.7), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 100, 50, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 25%, rgba(92, 232, 245, 0.45), transparent),
    radial-gradient(1px 1px at 85% 55%, rgba(255, 180, 80, 0.4), transparent);
  opacity: 0.7;
  pointer-events: none;
  animation: lp-float 14s linear infinite;
}
@keyframes lp-float {
  from { transform: translateY(0); }
  to { transform: translateY(-18px); }
}

.lp-hero-inner {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 48px));
  margin: 0 auto 0 max(24px, calc((100vw - 1440px) / 2 + 36px));
  padding-right: 20px;
}
.lp-hero-logo {
  margin: 0 0 18px;
  line-height: 0;
}
.lp-hero-logo .hero-logo {
  width: min(640px, 100%);
  max-height: none;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 32px rgba(255, 100, 40, 0.25));
}
.lp-hero-tag {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #f4f6fb;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.lp-hero-tag em {
  font-style: normal;
  color: var(--lp-ember-hot);
  text-shadow: 0 0 28px rgba(255, 100, 40, 0.35);
}
.lp-hero-lead {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--lp-muted);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 4px;
  color: #1a0a04;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ff8a3c 0%, #ffb347 45%, #ff6a3d 100%);
  box-shadow:
    0 0 0 1px rgba(255, 200, 120, 0.35) inset,
    0 12px 40px rgba(255, 90, 30, 0.35);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.lp-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 0 0 1px rgba(255, 220, 150, 0.5) inset, 0 16px 48px rgba(255, 100, 40, 0.45);
}
.lp-btn-primary b {
  font-size: 1.1rem;
  opacity: 0.85;
}
.lp-btn-ghost {
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255, 160, 90, 0.35);
  border-radius: 4px;
  color: #ffd9b0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(20, 12, 8, 0.55);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.lp-btn-ghost:hover {
  border-color: rgba(255, 180, 100, 0.65);
  background: rgba(40, 20, 10, 0.7);
}
.lp-btn-text {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  color: var(--lp-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
}
.lp-btn-text:hover { color: var(--lp-cyan); }

.lp-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 140, 70, 0.18);
  padding-top: 22px;
}
.lp-hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
  padding: 0 22px 0 0;
  margin-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.lp-hero-stats li:last-child { border-right: 0; }
.lp-hero-stats strong {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(90deg, #fff, var(--lp-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-hero-stats span {
  color: var(--lp-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lp-scroll-hint {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 200, 150, 0.45);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  transform: translateX(-50%);
}
.lp-scroll-hint span {
  width: 1px;
  height: 36px;
  background: linear-gradient(transparent, rgba(255, 140, 60, 0.7));
  animation: lp-scroll 1.6s ease-in-out infinite;
}
@keyframes lp-scroll {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* —— SECTIONS —— */
.lp-section {
  position: relative;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 40px;
}
.lp-section-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.lp-section-head h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f7f8fc;
}
.lp-section-sub {
  margin: 0;
  color: var(--lp-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 560px;
}
.lp-section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.lp-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* Pillars */
.lp-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lp-pillar {
  position: relative;
  padding: 28px 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background:
    linear-gradient(165deg, rgba(255, 120, 50, 0.06), transparent 40%),
    var(--lp-panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: border-color .2s ease, transform .2s ease;
}
.lp-pillar:hover {
  border-color: rgba(255, 140, 70, 0.35);
  transform: translateY(-3px);
}
.lp-pillar-ember {
  border-color: rgba(255, 110, 50, 0.28);
  background:
    linear-gradient(165deg, rgba(255, 100, 40, 0.14), transparent 50%),
    var(--lp-panel);
}
.lp-pillar-icon {
  margin-bottom: 16px;
  color: var(--lp-ember-hot);
  font-size: 1.4rem;
  text-shadow: 0 0 18px rgba(255, 100, 40, 0.45);
}
.lp-pillar h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lp-pillar p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* How to */
.lp-howto {
  width: 100%;
  max-width: none;
  padding: 80px max(20px, calc((100% - 1280px) / 2));
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(255, 90, 40, 0.08), transparent 60%),
    linear-gradient(180deg, #080b16, #05070f);
  border-top: 1px solid rgba(255, 120, 50, 0.1);
  border-bottom: 1px solid rgba(255, 120, 50, 0.1);
}
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.lp-steps li {
  position: relative;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(8, 12, 22, 0.75);
}
.lp-step-n {
  display: block;
  margin-bottom: 14px;
  color: var(--lp-ember);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.lp-steps h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-family: Georgia, serif;
  font-weight: 500;
}
.lp-steps p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Mounts */
.lp-mount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lp-mount-card {
  display: grid;
  grid-template-rows: 160px auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: #0a0e18;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.lp-mount-card:hover {
  border-color: rgba(255, 140, 60, 0.4);
  box-shadow: 0 16px 40px rgba(255, 80, 20, 0.12);
  transform: translateY(-4px);
}
.lp-mount-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center bottom;
  background:
    radial-gradient(ellipse 70% 60% at 50% 80%, rgba(255, 100, 40, 0.18), transparent 70%),
    linear-gradient(180deg, #12182a, #080c14);
  padding: 8px 8px 0;
}
.lp-mount-card > div {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.lp-role {
  display: block;
  margin-bottom: 6px;
  color: var(--lp-gold);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lp-mount-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}
.lp-mount-card p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Arenas */
.lp-arena-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.lp-arena-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  isolation: isolate;
}
.lp-arena-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.lp-arena-card:hover img { transform: scale(1.06); }
.lp-arena-card > div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 48px 18px 16px;
  background: linear-gradient(transparent, rgba(4, 6, 12, 0.95) 70%);
}
.lp-arena-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
}
.lp-arena-card p {
  margin: 0;
  color: #a8b4c8;
  font-size: 0.75rem;
}

.lp-modes-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.lp-modes-row article {
  padding: 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(10, 14, 24, 0.85);
}
.lp-modes-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--lp-muted);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.lp-modes-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}
.lp-modes-row p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.lp-mode-hot {
  border-color: rgba(92, 232, 245, 0.28) !important;
  background: radial-gradient(circle at 50% 0%, rgba(92, 232, 245, 0.12), transparent 60%), rgba(10, 16, 28, 0.9) !important;
}
.lp-mode-hot strong { color: var(--lp-cyan) !important; }
.lp-mode-ember {
  border-color: rgba(255, 110, 50, 0.35) !important;
  background: radial-gradient(circle at 50% 0%, rgba(255, 100, 40, 0.16), transparent 60%), rgba(16, 10, 8, 0.9) !important;
}
.lp-mode-ember strong { color: var(--lp-ember-hot) !important; }

/* Systems */
.lp-systems {
  width: 100%;
  max-width: none;
  padding: 80px max(20px, calc((100% - 1280px) / 2));
  background: linear-gradient(180deg, #070a14, #0a0c18 40%, #05070f);
  border-top: 1px solid rgba(255, 120, 50, 0.1);
}
.lp-sys-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lp-sys-grid article {
  padding: 26px 22px;
  border-left: 3px solid var(--lp-ember);
  background: rgba(12, 16, 28, 0.7);
  border-radius: 0 6px 6px 0;
}
.lp-sys-grid h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
}
.lp-sys-grid p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.lp-sys-grid kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid rgba(255, 160, 80, 0.35);
  border-radius: 3px;
  color: var(--lp-gold);
  font: 800 0.72rem ui-monospace, monospace;
  background: rgba(40, 20, 8, 0.6);
}

/* News */
.lp-news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}
.lp-news-grid article {
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: var(--lp-panel);
}
.lp-news-main {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 100, 40, 0.16), transparent 50%),
    var(--lp-panel) !important;
  border-color: rgba(255, 120, 50, 0.25) !important;
}
.lp-news-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--lp-gold);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.lp-news-grid h3 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}
.lp-news-main h3 { font-size: 1.75rem; }
.lp-news-grid p {
  margin: 0 0 16px;
  color: var(--lp-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.lp-news-grid time {
  color: #6a758c;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Final CTA */
.lp-final {
  position: relative;
  width: min(1100px, calc(100% - 40px));
  margin: 40px auto 0;
  padding: 72px 48px;
  text-align: center;
  border: 1px solid rgba(255, 130, 50, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(255, 90, 30, 0.18), transparent 55%),
    linear-gradient(180deg, #0e121f, #0a0c14);
  overflow: hidden;
}
.lp-final-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 120, 40, 0.2), transparent 60%);
  pointer-events: none;
}
.lp-final h2 {
  position: relative;
  margin: 0 0 14px;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
}
.lp-final > p:not(.lp-kicker) {
  position: relative;
  max-width: 480px;
  margin: 0 auto 28px;
  color: var(--lp-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.lp-final .lp-hero-actions {
  position: relative;
  justify-content: center;
  margin-bottom: 0;
}

/* Footer */
.lp-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  width: min(1280px, calc(100% - 40px));
  margin: 56px auto 0;
  padding: 36px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lp-footer-brand img {
  display: block;
  width: 160px;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(255, 120, 40, 0.25));
}
.lp-footer-brand p {
  max-width: 360px;
  margin: 0;
  color: #6d7890;
  font-size: 0.78rem;
  line-height: 1.55;
}
.lp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.lp-footer-nav button,
.lp-footer-nav a {
  border: 0;
  padding: 0;
  color: #8b97ad;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
.lp-footer-nav button:hover,
.lp-footer-nav a:hover { color: var(--lp-gold); }

/* Responsive */
@media (max-width: 1100px) {
  .lp-pillar-grid,
  .lp-sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-mount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-arena-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-modes-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-news-grid { grid-template-columns: 1fr 1fr; }
  .lp-news-main { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .lp-hero { min-height: auto; padding: 100px 0 60px; }
  .lp-hero-inner { margin: 0 20px; width: auto; }
  .lp-hero-bg img { object-position: 60% center; }
  .lp-hero-stats li {
    min-width: 42%;
    border-right: 0;
    padding: 0 12px 12px 0;
  }
  .lp-pillar-grid,
  .lp-steps,
  .lp-mount-grid,
  .lp-arena-grid,
  .lp-modes-row,
  .lp-sys-grid,
  .lp-news-grid { grid-template-columns: 1fr; }
  .lp-section-head-row { flex-direction: column; align-items: flex-start; }
  .lp-final { padding: 48px 22px; }
  .lp-nav { display: none !important; }
  .lp-scroll-hint { display: none; }
}

/* Hide legacy landing blocks if any remain outside lp-landing */
.lp-landing .world-section,
.lp-landing .mounts-section:not(.lp-mounts),
.lp-landing .modes-section:not(.lp-arenas) { /* no-op safety */ }

/* Hangar de expedição 0.29.1 — seleção e regras em uma única leitura */
.lobby-modal:not(.room-open):not(.combat-live) .lobby-panel {
  background:
    linear-gradient(110deg, rgba(2, 7, 17, .97), rgba(4, 11, 25, .9) 45%, rgba(2, 7, 17, .95)),
    url("../assets/keyart/lobby-expedition-hall-v1.webp") center / cover;
}
.lobby-modal:not(.room-open):not(.combat-live) .lobby-layout {
  display: block;
  height: calc(100% - 88px);
  overflow: hidden;
}
.lobby-modal:not(.room-open):not(.combat-live) .room-stage { display: none; }
.lobby-modal:not(.room-open):not(.combat-live) .lobby-sidebar {
  display: grid;
  grid-template-columns: minmax(390px, 1.12fr) minmax(360px, 1fr) minmax(270px, .78fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px 20px;
  width: 100%;
  height: 100%;
  padding: 24px 30px 28px;
  overflow: auto;
  border: 0;
  background: radial-gradient(circle at 50% -20%, rgba(68, 183, 222, .11), transparent 42rem);
  box-shadow: none;
}
.lobby-modal:not(.room-open):not(.combat-live) .lobby-field,
.lobby-modal:not(.room-open):not(.combat-live) .create-room-card,
.lobby-modal:not(.room-open):not(.combat-live) .room-browser-heading,
.lobby-modal:not(.room-open):not(.combat-live) .room-list {
  grid-column: auto;
  margin: 0;
}
.lobby-modal:not(.room-open):not(.combat-live) .lobby-field {
  grid-column: 1;
  grid-row: 1 / 3;
}
.lobby-modal:not(.room-open):not(.combat-live) .create-room-card {
  grid-column: 2;
  grid-row: 1 / 3;
}
.lobby-modal:not(.room-open):not(.combat-live) .room-browser-heading {
  grid-column: 3;
  grid-row: 1;
}
.lobby-modal:not(.room-open):not(.combat-live) .room-list {
  grid-column: 3;
  grid-row: 2;
}
.lobby-modal:not(.combat-live) .lobby-field,
.lobby-modal:not(.combat-live) .create-room-card,
.lobby-modal:not(.combat-live) .room-browser-heading,
.lobby-modal:not(.combat-live) .room-list {
  border: 1px solid rgba(113, 201, 232, .19) !important;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(12, 27, 50, .96), rgba(4, 11, 25, .97)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 18px 45px rgba(0,0,0,.2);
}
.lobby-modal:not(.combat-live) .lobby-field {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 18px;
  overflow: hidden;
}
.setup-panel-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}
.setup-panel-heading > b,
.create-room-title > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(102, 227, 242, .48);
  border-radius: 7px;
  color: #69e7ff;
  background: rgba(105, 231, 255, .06);
  font: 900 .66rem/1 ui-monospace, monospace;
}
.setup-panel-heading span,
.setup-panel-heading small,
.setup-panel-heading strong { display: block; }
.setup-panel-heading small,
.create-room-title small {
  color: #69e7ff;
  font: 850 .5rem/1.1 system-ui, sans-serif;
  letter-spacing: .16em;
}
.setup-panel-heading strong,
.create-room-title strong {
  margin-top: 4px;
  color: #f3f7ff;
  font: 850 1rem/1.1 system-ui, sans-serif;
}
.setup-panel-help {
  margin: 0;
  color: #8496ad;
  font-size: .67rem;
  line-height: 1.45;
}
.nickname-field-label,
.mount-picker-label {
  color: #a9b8cc !important;
  font: 800 .55rem/1.1 system-ui, sans-serif !important;
  letter-spacing: .1em !important;
  text-transform: uppercase;
}
.lobby-modal:not(.combat-live) .lobby-field .inline-field { gap: 8px; }
.lobby-modal:not(.combat-live) .lobby-field .inline-field input,
.lobby-modal:not(.combat-live) .lobby-field .inline-field button {
  min-height: 43px;
}
.lobby-modal:not(.combat-live) .mount-picker {
  display: grid;
  gap: 12px;
}
.lobby-modal:not(.room-open):not(.combat-live) .mount-picker-selected {
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 160px;
  gap: 14px;
  padding: 12px;
  border-color: color-mix(in srgb, var(--mount-accent) 58%, transparent);
  background: radial-gradient(circle at 14% 45%, color-mix(in srgb, var(--mount-accent) 20%, transparent), transparent 44%), rgba(2, 9, 21, .78);
}
.lobby-modal:not(.room-open):not(.combat-live) .mount-picker-preview {
  width: 148px;
  height: 134px;
  object-fit: contain;
  object-position: center bottom;
}
.lobby-modal:not(.combat-live) .mount-picker-selected-copy strong { font-size: 1.12rem; }
.lobby-modal:not(.combat-live) .mount-picker-selected-copy small { margin-top: 5px; }
.lobby-modal:not(.combat-live) .mount-picker-selected-copy p { margin-top: 12px; -webkit-line-clamp: 3; }
.lobby-modal:not(.combat-live) .mount-picker-selected-copy em { margin-top: 8px; line-height: 1.35; }
.lobby-modal:not(.room-open):not(.combat-live) .mount-picker-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: none;
  overflow: visible;
}
.lobby-modal:not(.room-open):not(.combat-live) .mount-picker-card {
  min-height: 112px;
  padding: 7px 5px 8px;
  border-radius: 8px;
}
.lobby-modal:not(.room-open):not(.combat-live) .mount-picker-card img {
  width: 100%;
  height: 58px;
  object-fit: contain;
}
.lobby-modal:not(.room-open):not(.combat-live) .mount-picker-card-name {
  min-height: 0;
  font-size: .58rem;
  line-height: 1.08;
}
.lobby-modal:not(.room-open):not(.combat-live) .mount-picker-card-role {
  margin-top: 3px;
  font-size: .42rem;
  line-height: 1.2;
}
.lobby-modal:not(.combat-live) .create-room-card {
  display: grid !important;
  align-content: start;
  grid-template-columns: 1fr !important;
  gap: 11px !important;
  padding: 18px !important;
}
.lobby-modal:not(.combat-live) .create-room-config-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.lobby-modal:not(.combat-live) .create-room-card input,
.lobby-modal:not(.combat-live) .create-room-card select {
  min-height: 42px;
  border-radius: 6px;
  background-color: rgba(2, 9, 21, .82);
}
.lobby-modal:not(.combat-live) .create-room-toggles {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lobby-modal:not(.combat-live) .create-room-toggles label {
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid rgba(122, 179, 211, .17);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
}
.create-room-preview {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-left: 3px solid #69e7ff;
  background: linear-gradient(90deg, rgba(105,231,255,.1), rgba(105,231,255,.025));
}
.create-room-preview span { color: #69e7ff; font: 900 .48rem/1 system-ui, sans-serif; letter-spacing: .14em; }
.create-room-preview strong { color: #f2f8ff; font-size: .73rem; }
.create-room-preview small { color: #8499b1; font-size: .58rem; line-height: 1.4; }
.lobby-modal:not(.combat-live) .create-room-submit {
  min-height: 50px;
  margin-top: 1px;
  border-radius: 7px;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.lobby-modal:not(.combat-live) .room-browser-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
}
.lobby-modal:not(.combat-live) .room-browser-heading > button { flex: 0 0 auto; }
.lobby-modal:not(.combat-live) .room-list {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  max-height: none;
  padding: 10px;
  overflow: auto;
}
.lobby-modal:not(.combat-live) .room-entry { min-width: 0; }
.lobby-modal:not(.combat-live) .room-list-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  width: 100%;
  padding: 22px;
  text-align: center;
}

/* Depois de entrar: loadout à esquerda, formação e prontidão à direita. */
.lobby-modal.room-open:not(.combat-live) .lobby-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: calc(100% - 88px);
}
.lobby-modal.room-open:not(.combat-live) .lobby-sidebar {
  display: block;
  grid-column: 1;
  grid-row: 1;
  height: 100%;
  padding: 18px;
  overflow: auto;
  border-top: 0;
  border-right: 1px solid rgba(119, 215, 243, .19);
  background: rgba(2, 8, 19, .96);
}
.lobby-modal.room-open:not(.combat-live) .create-room-card,
.lobby-modal.room-open:not(.combat-live) .room-browser-heading,
.lobby-modal.room-open:not(.combat-live) .room-list { display: none !important; }
.lobby-modal.room-open:not(.combat-live) .lobby-field { width: 100%; }
.lobby-modal.room-open:not(.combat-live) .mount-picker-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
}
.lobby-modal.room-open:not(.combat-live) .mount-picker-card { min-height: 96px; }
.lobby-modal.room-open:not(.combat-live) .mount-picker-card img { height: 50px; }
.lobby-modal.room-open:not(.combat-live) .room-stage {
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  padding: 20px 26px;
}
.lobby-modal.room-open:not(.combat-live) .active-room-state {
  max-width: 1100px;
  min-height: 100%;
  margin: 0 auto;
}

@media (max-width: 1120px) {
  .lobby-modal:not(.room-open):not(.combat-live) .lobby-sidebar {
    grid-template-columns: minmax(340px, 1fr) minmax(340px, 1fr);
    grid-template-rows: auto auto;
  }
  .lobby-modal:not(.room-open):not(.combat-live) .lobby-field { grid-column: 1; grid-row: 1 / 3; }
  .lobby-modal:not(.room-open):not(.combat-live) .create-room-card { grid-column: 2; grid-row: 1; }
  .lobby-modal:not(.room-open):not(.combat-live) .room-browser-heading { grid-column: 2; grid-row: 2; }
  .lobby-modal:not(.room-open):not(.combat-live) .room-list { grid-column: 2; grid-row: 3; min-height: 180px; }
}

@media (max-width: 760px) {
  .lobby-modal:not(.room-open):not(.combat-live) .lobby-layout,
  .lobby-modal.room-open:not(.combat-live) .lobby-layout { display: block; height: auto; overflow: visible; }
  .lobby-modal:not(.room-open):not(.combat-live) .lobby-sidebar,
  .lobby-modal.room-open:not(.combat-live) .lobby-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    padding: 14px;
    overflow: visible;
  }
  .lobby-modal:not(.room-open):not(.combat-live) .lobby-field,
  .lobby-modal:not(.room-open):not(.combat-live) .create-room-card,
  .lobby-modal:not(.room-open):not(.combat-live) .room-browser-heading,
  .lobby-modal:not(.room-open):not(.combat-live) .room-list {
    grid-column: 1;
    grid-row: auto;
  }
  .lobby-modal:not(.room-open):not(.combat-live) .mount-picker-selected { grid-template-columns: 108px 1fr; min-height: 132px; }
  .lobby-modal:not(.room-open):not(.combat-live) .mount-picker-preview { width: 108px; height: 104px; }
  .lobby-modal:not(.room-open):not(.combat-live) .mount-picker-grid,
  .lobby-modal.room-open:not(.combat-live) .mount-picker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lobby-modal:not(.room-open):not(.combat-live) .mount-picker-card,
  .lobby-modal.room-open:not(.combat-live) .mount-picker-card { min-height: 90px; }
  .lobby-modal.room-open:not(.combat-live) .room-stage { display: block; padding: 10px; }
}

/* Seletor de pilotos do laboratório */
.lab-pilot-selector {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid rgba(132, 193, 228, .17);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 21, 42, .9), rgba(17, 15, 42, .86));
}
.lab-pilot-selector > header {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 6px 10px;
  border-right: 1px solid rgba(132, 193, 228, .13);
}
.lab-pilot-selector > header span { color: #69e7ff; font: 900 .5rem/1 system-ui, sans-serif; letter-spacing: .16em; }
.lab-pilot-selector > header strong { color: #f2f6ff; font-size: .85rem; }
.lab-pilot-selector > header small { color: #8090a8; font-size: .58rem; line-height: 1.35; }
.lab-pilot-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}
.lab-pilot-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 64px;
  padding: 5px;
  border: 1px solid rgba(124, 169, 204, .15);
  border-radius: 8px;
  color: #91a1b7;
  background: rgba(2, 8, 20, .58);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.lab-pilot-card:hover { color: #e8f8ff; border-color: rgba(105,231,255,.4); transform: translateY(-2px); }
.lab-pilot-card img { width: 42px; height: 50px; object-fit: contain; object-position: center bottom; }
.lab-pilot-card span,.lab-pilot-card strong,.lab-pilot-card small { display: block; min-width: 0; }
.lab-pilot-card strong { overflow: hidden; color: inherit; font-size: .55rem; line-height: 1.08; text-overflow: ellipsis; }
.lab-pilot-card small { margin-top: 4px; overflow: hidden; color: #64758d; font-size: .43rem; line-height: 1.15; text-overflow: ellipsis; }
.lab-pilot-card.is-selected {
  color: #fff8e8;
  border-color: rgba(255, 157, 79, .75);
  background: linear-gradient(145deg, rgba(255, 116, 52, .38), rgba(95, 34, 31, .34));
  box-shadow: 0 7px 20px rgba(255, 86, 37, .18), inset 0 1px rgba(255,255,255,.09);
}
.lab-pilot-card.is-selected small { color: #ffc08d; }

@media (max-width: 1100px) {
  .lab-pilot-selector { grid-template-columns: 1fr; }
  .lab-pilot-selector > header { border-right: 0; border-bottom: 1px solid rgba(132,193,228,.13); }
  .lab-pilot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lab-pilot-selector { padding: 8px; }
  .lab-pilot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-pilot-card { min-height: 58px; }
}

/* Home 0.29.1 — navegação lateral e central de atividade */
@media (min-width: 901px) {
  .hub-view .hub-rail {
    top: 96px;
    right: auto;
    bottom: 20px;
    left: 18px;
    width: 94px;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 78px minmax(0, 1fr) 70px;
    border-radius: 10px;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transform: none;
  }
  .hub-view .hub-brand { border-right: 0; border-bottom: 1px solid rgba(128,208,239,.14); }
  .hub-view .hub-brand::after { display: none; }
  .hub-view .hub-brand-logo { width: 48px; height: 48px; }
  .hub-view .hub-rail nav {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, minmax(54px, 1fr));
    gap: 5px;
    padding: 7px;
  }
  .hub-view .hub-rail nav button,
  .hub-view .hub-exit {
    min-height: 0;
    padding: 4px 2px;
  }
  .hub-view .hub-rail nav button::before { display: none; }
  .hub-view .hub-nav-icon { width: 31px; height: 31px; }
  .hub-view .hub-nav-icon svg { width: 20px; height: 20px; }
  .hub-view .hub-rail nav button small,
  .hub-view .hub-exit small { font-size: .47rem; letter-spacing: .07em; }
  .hub-view .hub-exit {
    border-top: 1px solid rgba(128,208,239,.14);
    border-left: 0;
    border-radius: 0;
  }
  .hub-view .hub-exit::before { display: none; }
  .hub-panel[data-hub-panel="home"] .play-banner {
    padding-right: 420px;
    padding-bottom: 72px;
    padding-left: max(138px, calc((100vw - 1440px) / 2 + 132px));
  }
}

.hub-command-feed {
  position: absolute;
  z-index: 12;
  top: 108px;
  right: 28px;
  bottom: 24px;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(150px, 1fr);
  gap: 9px;
  width: 350px;
  overflow: auto;
  scrollbar-width: thin;
}
.hub-command-feed > article {
  position: relative;
  display: block !important;
  width: auto;
  padding: 14px 16px;
  border: 1px solid rgba(116, 183, 217, .18) !important;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 21, 40, .91), rgba(3, 9, 22, .96)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 12px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(15px);
}
.hub-command-feed > article > span,
.hub-command-feed .daily-card header span {
  color: #69e7ff;
  font: 900 .49rem/1 system-ui, sans-serif;
  letter-spacing: .14em;
}
.hub-command-feed h3,
.hub-command-feed > article > strong {
  display: block;
  margin: 6px 0 3px;
  color: #edf6ff;
  font: 800 .9rem/1.15 system-ui, sans-serif;
}
.hub-command-feed > article > p {
  margin: 0;
  color: #7f91a8;
  font-size: .59rem;
  line-height: 1.4;
}
.hub-command-feed button {
  margin-top: 9px;
  padding: 0;
  border: 0;
  color: #79e7ef;
  background: none;
  cursor: pointer;
  font-size: .58rem;
  font-weight: 850;
}
.hub-command-feed .season-card { position: relative; inset: auto; }
.hub-command-feed .season-card h3 { font-size: 1rem; }
.hub-command-feed .season-level { margin: 9px 0 0; }
.hub-command-feed .season-level > strong { font-size: 1.35rem; }
.hub-command-feed .hub-promo-card {
  border-color: rgba(255, 164, 82, .28) !important;
  background: radial-gradient(circle at 100% 0, rgba(255,109,49,.18), transparent 11rem), linear-gradient(145deg,rgba(33,18,26,.94),rgba(5,10,22,.97)) !important;
}
.hub-command-feed .hub-promo-card > span,
.hub-command-feed .hub-promo-card button { color: #ffb06f; }
.hub-command-feed .hub-tutorial-card {
  border-left: 3px solid #8e7cff !important;
  background: radial-gradient(circle at 100% 0,rgba(143,120,255,.17),transparent 12rem),linear-gradient(145deg,rgba(15,18,45,.94),rgba(4,10,23,.97)) !important;
}
.hub-command-feed .daily-card { min-height: 0; }
.hub-command-feed .daily-card header { padding-bottom: 8px; }
.hub-command-feed .mission { grid-template-columns: 22px 1fr auto; gap: 7px; padding: 8px 0; }
.hub-command-feed .mission > i { font-size: .7rem; }
.hub-command-feed .mission strong { font-size: .6rem; }
.hub-command-feed .mission small { font-size: .5rem; }
.hub-command-feed .mission em { font-size: .5rem; }

@media (max-width: 900px) {
  .hub-command-feed {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    width: auto;
    padding: 12px 12px 92px;
    overflow: visible;
    background: #030814;
  }
  .hub-panel[data-hub-panel="home"] .play-banner { min-height: 78svh; padding-bottom: 70px; }
}

/* Mobile 0.30 — fluxo dedicado para toque, safe areas e telas estreitas. */
@media (max-width: 760px) {
  :root { scroll-padding-bottom: 88px; }
  button,
  select,
  input { touch-action: manipulation; }
  button,
  .lobby-panel button,
  .portal-primary { min-height: 44px; }

  /* Landing e home */
  .site-header {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }
  .brand-logo { width: 152px; height: auto; }
  .lp-hero { padding-top: 88px; padding-bottom: 40px; }
  .lp-hero-inner { margin: 0 16px; }
  .lp-hero-logo { width: min(92vw, 520px); }
  .lp-hero-lead { font-size: .92rem; line-height: 1.55; }
  .lp-hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .lp-hero-actions button { width: 100%; min-height: 48px; }
  .lp-section { padding: 58px 16px; }
  .lp-section-head h2 { font-size: clamp(2rem, 10vw, 3.15rem); }
  .lp-pillar,
  .lp-mount-card,
  .lp-arena-card,
  .lp-mode-card,
  .lp-sys-card { min-height: 0; }

  .hub-view { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .hub-view .hub-rail {
    height: calc(72px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(3, 8, 20, .98);
    box-shadow: 0 -14px 34px rgba(0, 0, 0, .42);
  }
  .hub-view .hub-rail nav { overflow-x: auto; scrollbar-width: none; }
  .hub-view .hub-rail nav::-webkit-scrollbar { display: none; }
  .hub-view .hub-rail nav button { min-width: 52px; min-height: 58px; }
  .hub-topbar { min-height: 68px; padding: 10px 12px; }
  .hub-account-strip { gap: 5px; }
  .profile-chip { min-height: 44px; }
  .hub-panel[data-hub-panel="home"] .play-banner {
    min-height: 64svh;
    padding: 104px 18px 34px;
    background-position: 62% center !important;
  }
  .play-banner h2 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .play-banner-copy { font-size: .88rem; line-height: 1.5; }
  .play-banner-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .play-banner-actions button { width: 100%; min-height: 48px; }
  .hub-command-feed {
    display: flex;
    gap: 10px;
    padding: 14px 14px calc(92px + env(safe-area-inset-bottom));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .hub-command-feed::-webkit-scrollbar { display: none; }
  .hub-command-feed > article {
    flex: 0 0 min(82vw, 330px);
    min-height: 154px;
    scroll-snap-align: start;
  }
  .hub-panel:not([data-hub-panel="home"]) { padding: 88px 12px calc(96px + env(safe-area-inset-bottom)); }

  /* Laboratório */
  .app-shell { padding: 10px 8px calc(18px + env(safe-area-inset-bottom)); }
  .topbar { gap: 10px; }
  .topbar h1 { margin: 3px 0; font-size: 1.7rem; }
  .topbar .subtitle { margin-bottom: 0; font-size: .68rem; }
  .game-nav-links button { min-height: 38px; }
  .telemetry {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -8px;
    padding: 0 8px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .telemetry > * {
    flex: 0 0 154px;
    min-width: 154px;
    min-height: 74px;
    scroll-snap-align: start;
  }
  .lab-pilot-selector { display: block; margin-bottom: 8px; padding: 8px; }
  .lab-pilot-selector > header { padding: 6px 7px 9px; border-bottom: 1px solid rgba(132,193,228,.13); }
  .lab-pilot-grid {
    display: flex;
    gap: 7px;
    padding-top: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .lab-pilot-grid::-webkit-scrollbar { display: none; }
  .lab-pilot-card {
    flex: 0 0 132px;
    min-height: 68px;
    scroll-snap-align: start;
  }
  .game-frame { border-radius: 12px; }
  .canvas-status { right: 8px; bottom: 7px; left: 8px; gap: 8px; font-size: .58rem; }
  .canvas-status span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .control-deck {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    padding: 9px;
    border-radius: 14px;
  }
  .control-group { min-width: 0; padding: 6px; }
  .control-group input[type="range"] { margin: 13px 0 5px; }
  .ammo-picker { grid-column: 1 / -1; grid-row: auto; gap: 7px; }
  .ammo { min-width: 0; min-height: 54px; margin-top: 4px; padding: 8px; }
  .ammo small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .actions { grid-column: 1 / -1; grid-template-columns: 1.35fr 1fr; gap: 7px; }
  .actions button { min-height: 48px; }
  .actions kbd,
  #gameView > footer { display: none; }

  /* Lobby e seleção */
  .lobby-panel { height: 100dvh; min-height: 100dvh; }
  .lobby-header {
    min-height: 68px;
    padding: max(9px, env(safe-area-inset-top)) 52px 9px 12px;
  }
  .lobby-header .eyebrow,
  .lobby-header p:last-child { display: none; }
  .lobby-header h2 { font-size: 1.2rem; }
  .lobby-close { top: max(9px, env(safe-area-inset-top)); right: 9px; width: 44px; height: 44px; }
  .lobby-modal:not(.combat-live) .lobby-sidebar { gap: 12px; padding: 10px; }
  .lobby-sidebar-title { display: none; }
  .lobby-modal:not(.combat-live) .lobby-field,
  .lobby-modal:not(.combat-live) .create-room-card { padding: 12px !important; }
  .setup-panel-help { font-size: .62rem; }
  .inline-field { grid-template-columns: minmax(0, 1fr) 84px; }
  .lobby-panel input,
  .lobby-panel select { min-height: 44px; font-size: 16px; }
  .lobby-modal:not(.combat-live) .mount-picker-selected {
    grid-template-columns: 86px minmax(0, 1fr) !important;
    min-height: 108px !important;
    padding: 9px;
  }
  .lobby-modal:not(.combat-live) .mount-picker-preview { width: 86px !important; height: 88px !important; }
  .lobby-modal:not(.combat-live) .mount-picker-selected-copy p { margin-top: 6px; -webkit-line-clamp: 2; }
  .lobby-modal:not(.combat-live) .mount-picker-selected-copy em { margin-top: 5px; }
  .lobby-modal:not(.combat-live) .mount-picker-grid {
    display: flex !important;
    gap: 7px;
    max-height: none !important;
    padding: 2px 0 6px;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .lobby-modal:not(.combat-live) .mount-picker-grid::-webkit-scrollbar { display: none; }
  .lobby-modal:not(.combat-live) .mount-picker-card {
    flex: 0 0 112px;
    min-height: 94px !important;
    scroll-snap-align: start;
  }
  .create-room-config-grid,
  .create-room-toggles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .create-room-toggles label { min-height: 48px; }
  .create-room-submit { min-height: 50px !important; }
  .room-list { max-height: 230px; }
  .room-entry { min-height: 54px; }
  .lobby-modal.room-open:not(.combat-live) .lobby-layout { display: block; height: auto; }
  .lobby-modal.room-open:not(.combat-live) .lobby-sidebar { height: auto; max-height: none; padding: 10px; }
  .lobby-modal.room-open:not(.combat-live) .room-stage { padding: 0 8px 12px; }
  .lobby-modal.room-open:not(.combat-live) .active-room-state { min-height: 0; margin: 0; padding: 11px; }
  .active-room-heading { position: sticky; z-index: 3; top: 68px; align-items: flex-start; background: rgba(4, 10, 24, .97); }
  .active-room-heading h3 { font-size: 1rem; }
  .online-team { min-height: 0; }
  .online-team header button { min-width: 76px; }
  .versus-mark { height: 16px; }
  .lobby-actions {
    position: sticky;
    z-index: 5;
    bottom: 0;
    grid-template-columns: 1fr;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: rgba(3, 9, 22, .98);
  }
  .lobby-actions p { text-align: center; }
  .lobby-actions button { width: 100%; min-height: 48px; }

  /* Partida online em retrato: campo legível acima de um deck de toque. */
  .lobby-modal.combat-live .active-room-heading { display: none !important; }
  .lobby-modal.combat-live .online-match-arena { overflow-y: auto !important; overscroll-behavior: contain; }
  .lobby-modal.combat-live .online-match-heading {
    position: sticky;
    z-index: 8;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    min-height: 58px;
    padding: max(7px, env(safe-area-inset-top)) 9px 7px;
  }
  .lobby-modal.combat-live .online-match-heading > div:first-child { min-width: 0; }
  .lobby-modal.combat-live .online-match-heading strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
  .lobby-modal.combat-live .live-badge { display: none; }
  .lobby-modal.combat-live .online-match-heading > span { grid-column: 1; grid-row: 2; }
  .lobby-modal.combat-live .online-match-heading-actions { grid-column: 2; grid-row: 1 / 3; }
  .lobby-modal.combat-live .leave-match-button { min-height: 42px; padding: 0 10px; font-size: .62rem; }
  .lobby-modal.combat-live .presentation-online-button { width: 42px; min-height: 42px; }
  .lobby-modal.combat-live .online-match-canvas {
    flex: 0 0 auto;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }
  .lobby-modal.combat-live .online-match-controls {
    position: sticky;
    z-index: 7;
    bottom: 0;
    flex: 0 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 9px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 34px rgba(0, 0, 0, .38);
  }
  .lobby-modal.combat-live .online-match-controls > label:nth-child(1),
  .lobby-modal.combat-live .online-match-controls > label:nth-child(2),
  .lobby-modal.combat-live .online-weapon-field,
  .lobby-modal.combat-live .online-move-field,
  .lobby-modal.combat-live .online-pulse-button,
  .lobby-modal.combat-live .online-fire-button { grid-column: span 2; }
  .lobby-modal.combat-live .online-match-controls input[type="range"] { min-height: 28px; margin: 4px 0 0; }
  .lobby-modal.combat-live .online-match-controls select,
  .lobby-modal.combat-live .online-move-field button,
  .lobby-modal.combat-live .online-pulse-button,
  .lobby-modal.combat-live .online-fire-button { min-height: 46px; }
  .lobby-modal.combat-live .online-controls-hint { display: none; }
  .room-chat.room-chat--combat { bottom: calc(214px + env(safe-area-inset-bottom)) !important; }
  .online-post-match { grid-template-columns: 1fr; padding: 14px 10px calc(14px + env(safe-area-inset-bottom)); }
  .post-match-action button { min-height: 46px; }
}

@media (max-width: 380px) {
  .create-room-config-grid { grid-template-columns: 1fr; }
  .currency:first-child { display: none; }
  .hub-command-feed > article { flex-basis: 88vw; }
  .lobby-modal.combat-live .online-match-heading-actions .presentation-online-button { display: none; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .lobby-modal.combat-live .online-match-arena {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(238px, 34vw);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden !important;
  }
  .lobby-modal.combat-live .online-match-heading { position: relative; grid-column: 1 / -1; }
  .lobby-modal.combat-live .online-match-canvas {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    width: 100% !important;
    max-height: calc(100dvh - 58px);
  }
  .lobby-modal.combat-live .online-match-controls {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    overflow-y: auto;
    padding: 7px max(7px, env(safe-area-inset-right)) 7px 8px;
  }
  .lobby-modal.combat-live .online-match-controls > label:nth-child(1),
  .lobby-modal.combat-live .online-match-controls > label:nth-child(2),
  .lobby-modal.combat-live .online-weapon-field,
  .lobby-modal.combat-live .online-move-field { grid-column: 1 / -1; }
  .lobby-modal.combat-live .online-pulse-button,
  .lobby-modal.combat-live .online-fire-button { grid-column: span 1; }
  .room-chat.room-chat--combat { display: none !important; }
}
