/* Layout: faixas alternadas preto / cinza-claro / branco (estilo apple.com),
   tipografia grande e justa, um único acento quente (Marte) e azul só nos botões.
   Visual fixo e deliberado: não muda com o tema do sistema. */
:root {
  --black: #000;
  --ink: #1d1d1f;
  --gray: #6e6e73;
  --gray-2: #86868b;
  --light: #f5f5f7;
  --white: #fff;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-h: #0077ed;
  --blue-dark: #2997ff;
  --mars: #ff6b35;
  --amber: #ffb340;
  --dim: #a1a1a6;

  --g-bg: #07090d;
  --g-card: #11151c;
  --g-card-2: #171c25;
  --g-line: rgba(255, 255, 255, .09);
  --g-text: #f5f5f7;
  --g-dim: #a1a1a6;
  --up: #46d483;
  --down: #ff6b6b;

  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(22, 22, 23, .86); }
html.game-open, html.game-open body { overflow: hidden; }
img, canvas, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.center { text-align: center; }
.muted { color: var(--gray-2); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.wrap.narrow, .narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Navegação ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(22, 22, 23, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  color: #e8e8ed;
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.nav-in {
  max-width: 1080px; margin: 0 auto; height: 48px;
  display: flex; align-items: center; gap: 28px;
  padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: -0.01em; }
.logo-dot { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffc49a, var(--mars) 55%, #8a2c0e); box-shadow: 0 0 12px rgba(255, 107, 53, .55); flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 12.5px; }
.nav-links a { text-decoration: none; opacity: .82; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-lang { margin: 0 -12px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: inherit; opacity: .8; text-decoration: none; border: 1px solid currentColor; border-radius: 6px; padding: 2px 7px; }
.nav-lang:hover { opacity: 1; }
.nav-cta { border: 0; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 500; padding: 5px 14px; border-radius: 980px; cursor: pointer; }
.nav-cta:hover { background: var(--blue-h); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-lang { margin-left: auto; } }

/* ---------- Faixas ---------- */
.band-dark { background: var(--black); color: #f5f5f7; }
.band-light { background: var(--light); }
.band-white { background: var(--white); }
main > section { padding-block: 104px; }
@media (max-width: 760px) { main > section { padding-block: 72px; } }

/* ---------- Tipografia ---------- */
.display { font-family: var(--f-display); font-size: clamp(44px, 8.4vw, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; margin: 0; text-wrap: balance; }
.display-sm { font-family: var(--f-display); font-size: clamp(36px, 6vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -0.04em; margin: 0 0 32px; text-wrap: balance; }
.headline { font-family: var(--f-display); font-size: clamp(34px, 5.6vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -0.04em; margin: 0 0 22px; text-align: center; text-wrap: balance; }
.headline-sm { font-family: var(--f-display); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 48px; text-wrap: balance; }
.body-lg { font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--gray); margin: 0 auto 0; letter-spacing: -0.02em; }
.dim { color: var(--dim); }
.eyebrow-c { text-align: center; font-size: 15px; font-weight: 600; color: var(--mars); margin: 0 0 10px; letter-spacing: 0; }
.eyebrow-c.dark { color: var(--amber); }
.footnote { font-size: 14px; color: var(--gray); margin: 40px auto 0; max-width: 640px; }
.grad { background: linear-gradient(92deg, #ffb36b 0%, var(--mars) 45%, #ff3d5a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; border-radius: 980px; font-size: 17px; font-weight: 500; padding: 12px 24px; text-decoration: none; transition: background .2s, transform .15s; min-height: 44px; }
.btn:active { transform: scale(.98); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-h); }
.btn-sm { font-size: 14px; padding: 8px 16px; min-height: 36px; }
.btn-ghost-light { background: transparent; color: var(--blue-dark); box-shadow: inset 0 0 0 1px var(--blue-dark); }
.btn-ghost-light:hover { background: rgba(41, 151, 255, .1); }
.link-more { color: var(--blue-dark); font-size: 19px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.link-more::after { content: "›"; font-size: 1.15em; line-height: 1; transform: translateY(-1px); }
.link-more:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
main > .hero { position: relative; overflow: hidden; padding-block: 88px 64px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 520px at 50% 110%, rgba(255, 107, 53, .22), transparent 60%); pointer-events: none; }
.hero-in { position: relative; z-index: 2; }
.kicker { font-size: 14px; font-weight: 600; color: var(--amber); margin: 0 0 18px; letter-spacing: 0; }
.hero-sub { font-size: clamp(16px, 1.55vw, 19px); line-height: 1.5; color: #c7c7cc; max-width: 580px; margin: 22px auto 0; letter-spacing: -0.01em; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-small { color: var(--gray-2); font-size: 14px; margin: 18px 0 0; }
.hero-planet { position: relative; z-index: 1; display: grid; place-items: center; margin: 40px auto -12px; width: min(560px, 86vw); aspect-ratio: 1; max-width: 100%; }
.hero-planet canvas { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 0 70px rgba(255, 107, 53, .28)); }
.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 40px 0 0; background: rgba(255, 255, 255, .1); border-radius: var(--r-md); overflow: hidden; text-align: left; }
.hero-stats div { background: #0d0d0f; padding: 22px 24px; min-width: 0; }
.hero-stats dt { font-size: 13px; color: var(--gray-2); margin-bottom: 6px; }
.hero-stats dd { margin: 0; font-size: 17px; color: #f5f5f7; }
.hero-stats .mono { font-size: 30px; font-weight: 500; margin-right: 4px; color: #fff; }
@media (max-width: 760px) { .hero-stats { grid-template-columns: 1fr; } }

/* ---------- Statement + trade-off ---------- */
.statement .body-lg { margin-bottom: 56px; }
.tradeoff { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px 48px; align-items: center; box-shadow: 0 2px 30px rgba(0, 0, 0, .04); }
.to-head { grid-column: 1 / -1; }
.to-k { font-size: 13px; font-weight: 600; color: var(--mars); margin: 0 0 6px; letter-spacing: .02em; text-transform: uppercase; }
.to-q { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 600; margin: 0; letter-spacing: -0.03em; }
.to-slider label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--gray); margin-bottom: 12px; }
.to-slider label span:first-child { color: #1f9d55; }
.to-slider label span:last-child { color: #c98a00; }
#to-range { width: 100%; accent-color: var(--blue); height: 32px; }
.to-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.to-cells i { height: 34px; border-radius: 9px; transition: background .25s; }
.to-cells i.g { background: linear-gradient(180deg, #6ee39b, #2fb36a); }
.to-cells i.s { background: linear-gradient(180deg, #ffd978, #f2b01e); }
.to-out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
.to-res { background: var(--light); border-radius: var(--r-md); padding: 18px 20px; }
.to-n { display: block; font-family: var(--f-mono); font-size: 30px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.to-l { font-size: 14px; color: var(--gray); }
.to-say { grid-column: 1 / -1; margin: 4px 0 0; font-size: 17px; color: var(--ink); min-height: 3em; }
@media (max-width: 820px) { .tradeoff { grid-template-columns: 1fr; } }

/* ---------- Bento ---------- */
main > .bento-sec { padding-top: 0; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { border-radius: var(--r-lg); padding: 34px 32px; background: var(--white); min-width: 0; overflow: hidden; position: relative; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile h3 { font-family: var(--f-display); font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 10px; font-weight: 700; text-wrap: balance; }
.tile p { margin: 0; color: var(--gray); font-size: 16px; }
.t-k { font-size: 13px !important; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px !important; }
.t-energy { grid-column: span 4; background: #0b0b0d; color: #f5f5f7; }
.t-energy p { color: var(--dim); max-width: 460px; }
.t-energy .t-k { color: var(--amber) !important; }
.cell-row { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; margin-top: 30px; max-width: 520px; }
.cell-row i { height: 46px; border-radius: 10px; background: linear-gradient(180deg, #ffe07a, #f5a623); box-shadow: 0 0 20px rgba(255, 196, 64, .25); animation: cellpulse 3.2s ease-in-out infinite; }
.cell-row i:nth-child(n+7) { background: #2a2a2e; box-shadow: none; animation: none; }
.cell-row i:nth-child(2) { animation-delay: .2s; } .cell-row i:nth-child(3) { animation-delay: .4s; } .cell-row i:nth-child(4) { animation-delay: .6s; } .cell-row i:nth-child(5) { animation-delay: .8s; } .cell-row i:nth-child(6) { animation-delay: 1s; }
@keyframes cellpulse { 50% { filter: brightness(1.18); } }
.t-air { grid-column: span 2; background: linear-gradient(160deg, #e6f6ff, #fff 70%); }
.t-air .t-k { color: #0a84c6; }
.t-food { grid-column: span 2; background: linear-gradient(160deg, #e8fbef, #fff 70%); }
.t-food .t-k { color: #1f9d55; }
.t-rad { grid-column: span 4; background: radial-gradient(600px 300px at 90% 0%, rgba(255, 179, 64, .35), transparent 60%), #120c05; color: #f5f5f7; }
.t-rad p { color: #cfc3b4; max-width: 520px; }
.t-rad .t-k { color: var(--amber); }
.t-delay { grid-column: span 3; }
.t-delay .t-k { color: var(--mars); }
.t-big { font-family: var(--f-display); font-size: 84px !important; line-height: 1 !important; color: var(--ink) !important; font-weight: 700; letter-spacing: -0.05em; margin: 0 0 14px !important; }
.t-big small { font-size: 28px; margin-left: 6px; color: var(--gray); letter-spacing: -0.02em; }
.t-cards { grid-column: span 3; }
.t-cards .t-k { color: #7d5cf0; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .t-energy, .t-rad, .t-delay, .t-cards { grid-column: span 2; } .t-air, .t-food { grid-column: span 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile { grid-column: auto !important; padding: 28px 24px; } }

/* ---------- Como funciona ---------- */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--light); border-radius: var(--r-lg); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.step h3 { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.03em; margin: 6px 0 0; }
.step p { margin: 0; color: var(--gray); font-size: 15.5px; flex: 1; }
.mini { margin-top: 12px; background: #0e1117; color: #e8e8ed; border-radius: 14px; padding: 14px; font-size: 13px; display: grid; gap: 6px; }
.mini-fc { grid-template-columns: 1fr auto; }
.mini-fc span { color: var(--g-dim); }
.mini-fc b { font-family: var(--f-mono); font-weight: 500; }
.mini-fc .warn { color: var(--amber); }
.mini-plan span { position: relative; padding-left: 0; color: var(--g-dim); }
.mini-plan span::after { content: ""; display: block; height: 6px; border-radius: 3px; margin-top: 3px; width: var(--w); background: var(--c); }
.mini-ev b { font-size: 14px; }
.mini-ev span { display: inline-block; width: fit-content; padding: 3px 9px; border-radius: 99px; font-size: 12px; }
.c-d { background: rgba(255, 107, 107, .15); color: #ff9b9b; }
.c-w { background: rgba(179, 146, 255, .15); color: #cdb8ff; }
.mini-fact b { color: var(--amber); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.mini-fact span { color: #cfd3da; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Lua x Marte ---------- */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.orbit-icon { background: radial-gradient(circle at 30% 28%, #bfe3ff, #3d8be0 30%, #1d4f9a 60%, #0b1f44); box-shadow: 0 0 40px rgba(76, 195, 255, .3); }
.cmp-col { background: var(--white); border-radius: var(--r-lg); padding: 40px 32px 28px; text-align: center; min-width: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.mini-planet { width: 150px; height: 150px; border-radius: 50%; display: block; margin: 0 auto 22px; }
.cmp-col h3 { font-family: var(--f-display); font-size: 36px; letter-spacing: -0.04em; margin: 0; }
.cmp-place { color: var(--gray); margin: 4px 0 20px; font-size: 15px; }
.cmp-col dl { margin: 28px 0 0; text-align: left; }
.cmp-col dl div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.cmp-col dt { color: var(--gray); font-size: 14px; }
.cmp-col dd { margin: 0; font-size: 15px; font-weight: 500; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

/* ---------- Dados ---------- */
.data-sec .headline { color: #f5f5f7; }
.sw-card { margin-top: 56px; background: #0d0f14; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px); }
.sw-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.sw-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #e8e8ed; background: rgba(255, 255, 255, .07); padding: 6px 12px; border-radius: 99px; }
.sw-status.is-live { color: #b8f5cf; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d27b; box-shadow: 0 0 0 0 rgba(52, 210, 123, .6); animation: live 1.8s infinite; display: inline-block; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(52, 210, 123, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 210, 123, 0); } }
.sw-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--dim); }
.sw-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: -8px; }
.lg-low, .r-baixo i { background: #3a7bd5; }
.lg-mid, .r-medio i { background: #ffb340; }
.lg-high, .r-alto i { background: #ff5a4f; }
.sw-chart { position: relative; height: 220px; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: 1fr auto; column-gap: 8px; }
.sw-y { position: relative; grid-row: 1; }
.sw-y span { position: absolute; right: 0; transform: translateY(50%); font-family: var(--f-mono); font-size: 11px; color: #7c7c84; }
.sw-bars { position: relative; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid rgba(255, 255, 255, .15); min-width: 0; }
.sw-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgba(255, 255, 255, .09); }
.sw-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.sw-bar i { display: block; width: 100%; border-radius: 3px 3px 0 0; transition: filter .2s; }
.sw-bar:hover i { filter: brightness(1.3); }
.sw-x { grid-column: 2; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: #7c7c84; padding-top: 8px; }
.sw-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sw-foot div { display: flex; flex-direction: column; color: var(--dim); font-size: 13.5px; min-width: 0; }
.sw-n { font-size: 30px; color: #fff; font-weight: 500; }
@media (max-width: 560px) { .sw-foot { grid-template-columns: 1fr; } .sw-chart { height: 180px; } }
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.sources article { background: #0d0f14; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-md); padding: 24px; min-width: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.sources h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -0.02em; color: #fff; }
.sources p { margin: 0 0 12px; color: var(--dim); font-size: 14.5px; }
.sources a { color: var(--blue-dark); font-size: 14px; text-decoration: none; word-break: break-word; }
.sources a:hover { text-decoration: underline; }
@media (max-width: 900px) { .sources { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sources { grid-template-columns: 1fr; } }
.key-box { margin-top: 28px; color: var(--dim); font-size: 14.5px; }
.key-box summary { cursor: pointer; color: var(--blue-dark); width: fit-content; }
.key-form { margin-top: 14px; display: grid; gap: 12px; max-width: 640px; }
.key-row { display: flex; gap: 10px; flex-wrap: wrap; }
.key-row input { flex: 1 1 240px; min-width: 0; background: #15181f; border: 1px solid rgba(255, 255, 255, .14); color: #fff; border-radius: 10px; padding: 10px 12px; font-family: var(--f-mono); font-size: 14px; }

/* ---------- Educadores ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.edu-grid article { background: var(--light); border-radius: var(--r-lg); padding: 30px 28px; min-width: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.edu-grid h3 { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.03em; margin: 0 0 10px; }
.edu-grid p { margin: 0; color: var(--gray); font-size: 16px; }
.discuss { margin-top: 20px; background: var(--ink); color: #f5f5f7; border-radius: var(--r-lg); padding: 32px; }
.discuss h3 { margin: 0 0 16px; font-family: var(--f-display); font-size: 22px; letter-spacing: -0.03em; }
.discuss ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.discuss li { padding-left: 22px; position: relative; color: #d2d2d7; }
.discuss li::before { content: "?"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
@media (max-width: 820px) { .edu-grid { grid-template-columns: 1fr; } .discuss ul { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--gray); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--gray); margin: 12px 0 0; max-width: 680px; }

main > .final { padding-block: 120px; background: radial-gradient(800px 400px at 50% 100%, rgba(255, 107, 53, .25), transparent 70%), var(--black); }

.footer { background: var(--light); color: var(--gray); font-size: 12px; line-height: 1.5; padding-block: 28px 40px; border-top: 1px solid var(--line); }
.footer p { margin: 0 0 8px; max-width: 900px; }

/* entrada suave: só move, nunca esconde */
.rise { transform: translateY(28px); }
.rise.in { transform: none; }

/* =========================================================================
   JOGO
   ========================================================================= */
.game {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(1200px 600px at 20% -10%, #1a1f2b, transparent 60%), var(--g-bg);
  color: var(--g-text);
  overflow: hidden;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  font-size: 16px;
  letter-spacing: -0.015em;
  color-scheme: dark;
}
.game svg { display: block; }
.play, .setup { height: 100%; display: flex; flex-direction: column; }
.g-top { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--g-line); flex: none; }
.g-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.g-sol { margin: 0 auto; font-family: var(--f-mono); font-size: 13px; color: var(--g-dim); background: rgba(255, 255, 255, .06); padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.g-actions { display: flex; gap: 6px; }
.setup .g-top .icon-btn { margin-left: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .07); display: grid; place-items: center; cursor: pointer; color: var(--g-text); }
.icon-btn:hover { background: rgba(255, 255, 255, .14); }
.icon-btn svg { width: 20px; height: 20px; }

.g-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); }
.g-left { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; border-right: 1px solid var(--g-line); }
.scene { position: relative; flex: none; }
.scene-svg { width: 100%; height: auto; aspect-ratio: 800 / 340; }
.scene-tags { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; }
.tag-dark { background: rgba(10, 14, 30, .75); }
.tag-dust { background: rgba(160, 80, 30, .8); }
.tag-alert { background: #e5484d; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .6; } }
.storm line { animation: fall .8s linear infinite; }
@keyframes fall { from { transform: translate(0, 0); } to { transform: translate(-30px, 60px); } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .2; } }

.hud { padding: 18px max(16px, env(safe-area-inset-left, 0px)) 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.meter { background: var(--g-card); border: 1px solid var(--g-line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.meter-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2px 8px; font-size: 13.5px; }
.meter-label { display: inline-flex; align-items: center; gap: 7px; color: var(--g-dim); min-width: 0; }
.meter-label svg { width: 17px; height: 17px; color: var(--c); flex: none; }
.meter-val { font-family: var(--f-mono); font-weight: 500; white-space: nowrap; }
.meter-track { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 99px; margin-top: 9px; overflow: hidden; }
.meter-track i { display: block; height: 100%; background: var(--c); border-radius: 99px; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.meter-sub { display: block; color: #7d8590; font-size: 12px; margin-top: 6px; }
.meter.is-warn { border-color: rgba(255, 107, 107, .5); box-shadow: 0 0 0 3px rgba(255, 107, 107, .1); }
.meter.is-warn .meter-val { color: var(--down); }
.meter.sci { grid-column: span 2; }

.g-panel { overflow-y: auto; padding: 28px max(20px, env(safe-area-inset-right, 0px)) 40px 28px; min-height: 0; }
.g-panel h2, .setup h2 { font-family: var(--f-display); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.035em; margin: 4px 0 12px; text-wrap: balance; }
.g-panel h3, .setup h3 { font-size: 15px; color: var(--g-dim); margin: 26px 0 10px; font-weight: 600; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--amber); margin: 0; letter-spacing: .01em; }
.lead { color: #c9ced6; font-size: 16.5px; line-height: 1.5; margin: 0 0 18px; }
.note { color: var(--g-dim); font-size: 14px; margin: 14px 0 0; }
.alert { background: rgba(255, 179, 64, .12); border: 1px solid rgba(255, 179, 64, .35); color: #ffd79a; border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }

.btn-primary { display: flex; width: 100%; justify-content: center; align-items: center; margin-top: 22px; border: 0; cursor: pointer; background: var(--blue); color: #fff; font-weight: 600; font-size: 17px; border-radius: 14px; min-height: 52px; padding: 12px 20px; transition: background .2s, transform .1s; }
.btn-primary:hover { background: var(--blue-h); }
.btn-primary:active { transform: scale(.985); }
.btn-ghost { border: 0; cursor: pointer; background: rgba(255, 255, 255, .08); color: var(--g-text); font-weight: 600; font-size: 15px; border-radius: 14px; min-height: 48px; padding: 10px 18px; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-lg { min-height: 58px; font-size: 18px; }

/* Previsão */
.forecast { display: grid; gap: 10px; margin-top: 8px; }
.fc { background: var(--g-card); border: 1px solid var(--g-line); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.fc-k { display: inline-flex; align-items: center; gap: 8px; color: var(--g-dim); font-size: 14px; }
.fc-k svg { width: 18px; height: 18px; }
.fc-v { font-family: var(--f-mono); font-size: 18px; font-weight: 500; }
.fc small { grid-column: 1 / -1; color: #7d8590; font-size: 12.5px; }
.risk-medio { border-color: rgba(255, 179, 64, .45); } .risk-medio .fc-v { color: var(--amber); }
.risk-alto { border-color: rgba(255, 90, 79, .55); background: linear-gradient(0deg, rgba(255, 90, 79, .08), rgba(255, 90, 79, .08)), var(--g-card); } .risk-alto .fc-v { color: #ff7a70; }
.risk-baixo .fc-v { color: #8fc1ff; }

/* Plano */
.budget { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.budget-n { font-family: var(--f-mono); font-size: 44px; font-weight: 500; line-height: 1; margin-right: 8px; color: #ffd166; }
.budget-l { color: var(--g-dim); }
.budget-src { color: #7d8590; font-size: 13px; }
.cells { display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0 16px; }
.cells i { width: 18px; height: 24px; border-radius: 5px; background: linear-gradient(180deg, #ffe07a, #f5a623); }
.cells i.used { background: #2b313c; }
.systems { display: grid; gap: 10px; }
.sys { background: var(--g-card); border: 1px solid var(--g-line); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.sys-head { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.sys-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); flex: none; }
.sys-ic svg { width: 20px; height: 20px; }
.sys strong { display: block; font-size: 15px; }
.sys small { display: block; color: var(--g-dim); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .09); font-size: 22px; line-height: 1; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: rgba(255, 255, 255, .17); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.pips { display: flex; gap: 3px; }
.pips i { width: 8px; height: 22px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.pips i.on { background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }
.preview { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; color: var(--g-dim); background: var(--g-card-2); border-radius: 14px; padding: 12px 14px; }
.preview span { display: inline-flex; align-items: center; gap: 5px; }
.preview svg { width: 15px; height: 15px; }
.pv-t { width: 100%; color: #e8e8ed; font-weight: 600; }
.up { color: var(--up); } .down { color: var(--down); }
b.up, b.down { font-family: var(--f-mono); font-weight: 500; }
.lia { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; background: rgba(76, 195, 255, .08); border: 1px solid rgba(76, 195, 255, .25); border-radius: 14px; padding: 12px 14px; }
.lia p { margin: 0; font-size: 14.5px; color: #cfeaff; }
.lia-av { width: 34px; height: 34px; border-radius: 10px; flex: none; background: radial-gradient(circle at 34% 44%, #0b1622 3px, transparent 4px), radial-gradient(circle at 66% 44%, #0b1622 3px, transparent 4px), linear-gradient(160deg, #e9f6ff, #8fd3ff); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }

/* Evento */
.ev-art { font-size: 54px; line-height: 1; margin: 14px 0 6px; }
.options { display: grid; gap: 10px; }
.opt { text-align: left; border: 1px solid var(--g-line); background: var(--g-card); border-radius: 16px; padding: 14px 16px; cursor: pointer; display: grid; gap: 6px; transition: border-color .2s, background .2s, transform .1s; }
.opt:hover { border-color: rgba(41, 151, 255, .7); background: var(--g-card-2); }
.opt:active { transform: scale(.99); }
.opt-l { font-weight: 700; font-size: 16.5px; }
.opt-n { color: var(--g-dim); font-size: 14px; }
.opt-n em { display: block; font-style: normal; color: #ffd79a; margin-top: 2px; }
.opt-c { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: #dfe3ea; }
.chip svg { width: 14px; height: 14px; }
.chip b { font-family: var(--f-mono); font-weight: 500; }
.chip.up { background: rgba(70, 212, 131, .13); color: #9df0bf; }
.chip.down { background: rgba(255, 107, 107, .13); color: #ffb0b0; }
.chip.wait { background: rgba(179, 146, 255, .15); color: #d6c7ff; }

/* Resultado */
.notes { display: grid; gap: 6px; margin-bottom: 12px; }
.notes p { margin: 0; background: var(--g-card-2); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; color: #dfe3ea; }
.deltas { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--g-line); border-radius: 14px; overflow: hidden; }
.deltas li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; background: var(--g-card); padding: 11px 14px; font-size: 15px; }
.deltas svg { width: 18px; height: 18px; color: var(--g-dim); }
.fact { margin-top: 16px; background: linear-gradient(160deg, rgba(255, 179, 64, .12), rgba(255, 107, 53, .05)); border: 1px solid rgba(255, 179, 64, .3); border-radius: 16px; padding: 16px 18px; }
.fact-k { font-size: 12px; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .06em; }
.fact p { margin: 8px 0 10px; color: #f1e6d6; font-size: 15.5px; line-height: 1.5; }
.fact a { color: var(--blue-dark); font-size: 13.5px; text-decoration: none; }
.fact a:hover { text-decoration: underline; }

/* Final */
.end .stars { display: flex; gap: 10px; margin: 6px 0 18px; }
.end .stars span { width: 44px; height: 44px; color: #2b313c; }
.end .stars span.on { color: #ffd166; filter: drop-shadow(0 0 10px rgba(255, 209, 102, .5)); }
.end .stars svg { width: 100%; height: 100%; }
.end-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--g-card); border: 1px solid var(--g-line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.stat span { display: block; font-family: var(--f-mono); font-size: 24px; }
.stat small { color: var(--g-dim); font-size: 12.5px; }
.chart { margin: 16px 0 0; background: var(--g-card); border: 1px solid var(--g-line); border-radius: 14px; padding: 12px; }
.chart svg { width: 100%; height: auto; }
.chart .grid { stroke: rgba(255, 255, 255, .08); }
.chart .axis { fill: #7d8590; font-size: 11px; font-family: var(--f-mono); }
.chart figcaption { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--g-dim); margin-top: 6px; }
.chart figcaption span::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; background: var(--c); margin-right: 6px; vertical-align: middle; }
.chart figcaption .cap-x { margin-left: auto; }
.chart figcaption .cap-x::before { display: none; }
.lessons { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #dfe3ea; font-size: 15px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.badge { background: linear-gradient(160deg, rgba(255, 209, 102, .16), rgba(255, 209, 102, .04)); border: 1px solid rgba(255, 209, 102, .35); border-radius: 14px; padding: 12px 14px; }
.badge strong { display: block; color: #ffe2a0; }
.badge small { color: var(--g-dim); font-size: 12.5px; }
.end-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.end-actions .btn-primary { grid-column: 1 / -1; margin-top: 0; }
.copy-fallback { position: absolute; left: -9999px; }

/* Configuração */
.setup-body { flex: 1; overflow-y: auto; padding: 28px max(16px, env(safe-area-inset-left, 0px)) 40px; width: 100%; max-width: 820px; margin: 0 auto; }
.site-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.site-card { text-align: left; border: 2px solid var(--g-line); background: var(--g-card); border-radius: 20px; padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, transform .15s; min-width: 0; }
.site-card:hover { transform: translateY(-2px); }
.site-card.is-on { border-color: var(--blue-dark); background: var(--g-card-2); }
.site-card strong { font-family: var(--f-display); font-size: 26px; letter-spacing: -0.03em; margin-top: 10px; }
.site-card small { color: var(--g-dim); }
.site-card ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: #c9ced6; display: grid; gap: 4px; }
.planet { width: 64px; height: 64px; border-radius: 50%; display: block; }
.planet-mars { background: radial-gradient(circle at 32% 30%, #ffc49a, #e2733f 35%, #a8401b 70%, #4a1608); box-shadow: 0 0 30px rgba(255, 107, 53, .35); }
.planet-moon { background: radial-gradient(circle at 32% 30%, #ffffff, #c9cbd1 35%, #8c8f97 70%, #3c3e44); box-shadow: 0 0 30px rgba(200, 210, 230, .25); }
.level-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lvl { text-align: left; border: 2px solid var(--g-line); background: var(--g-card); border-radius: 16px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lvl.is-on { border-color: var(--blue-dark); background: var(--g-card-2); }
.lvl strong { font-size: 16px; }
.lvl small { color: var(--g-dim); font-size: 12.5px; }
.lvl-stars { display: flex; gap: 2px; margin-top: 6px; }
.lvl-stars i { width: 16px; height: 16px; color: #2b313c; }
.lvl-stars i.on { color: #ffd166; }
.lvl-stars svg { width: 100%; height: 100%; }
.data-status { display: flex; align-items: center; gap: 8px; color: var(--g-dim); font-size: 13.5px; margin: 22px 0 0; }

/* Glossário */
.term { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.term:hover { color: #ffd79a; }
.term-pop { position: fixed; z-index: 200; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 40px 14px 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); font-size: 14.5px; line-height: 1.45; letter-spacing: -0.01em; }
.term-pop p { margin: 0; }
.term-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--light); cursor: pointer; display: grid; place-items: center; }
.term-x svg { width: 14px; height: 14px; }

/* Jogo no celular */
@media (max-width: 900px) {
  .g-main { display: block; overflow-y: auto; }
  .g-left { display: block; overflow: visible; border-right: 0; }
  .hide-sm { display: none; }
  .g-panel { overflow: visible; padding: 20px max(16px, env(safe-area-inset-left, 0px)) 40px; border-top: 1px solid var(--g-line); }
  .hud { grid-template-columns: 1fr 1fr; gap: 8px; padding-block: 12px 14px; }
  .meter { padding: 10px 12px; }
  .meter-sub { display: none; }
}
@media (max-width: 560px) {
  .g-brand { font-size: 0; gap: 0; }
  .site-pick { grid-template-columns: 1fr; }
  .level-pick { grid-template-columns: 1fr; }
  .end-grid { grid-template-columns: 1fr 1fr 1fr; }
  .stat span { font-size: 19px; }
  .sys { grid-template-columns: 1fr; }
  .stepper { justify-content: flex-end; }
  .end-actions { grid-template-columns: 1fr; }
}

/* =========================================================================
   JOGO 3D
   ========================================================================= */
.g3d { position: absolute; inset: 0; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; }
.g3d-canvas { position: absolute; inset: 0; }
.g3d-canvas canvas { display: block; touch-action: none; cursor: crosshair; }
.vignette { position: absolute; inset: 0; pointer-events: none; transition: box-shadow .4s, background .6s; }
.vignette.storm { box-shadow: inset 0 0 160px 40px rgba(255, 190, 40, .45); animation: stormpulse 1.2s ease-in-out infinite; }
.vignette.low { box-shadow: inset 0 0 180px 60px rgba(255, 40, 40, .5); }
.vignette.sleep { background: rgba(4, 6, 14, .72); }
@keyframes stormpulse { 50% { box-shadow: inset 0 0 220px 70px rgba(255, 170, 30, .55); } }
.fade { position: absolute; inset: 0; background: #000; z-index: 30; }

.hud3d { position: absolute; inset: 0; pointer-events: none; padding: calc(12px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 12px max(12px, env(safe-area-inset-left, 0px)); }
.hud-res { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); width: 236px; display: grid; gap: 6px; background: rgba(8, 10, 16, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 10px 12px; }
.hm { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 2px 8px; font-size: 12.5px; color: #e8e8ed; }
.hm-i svg { width: 16px; height: 16px; color: var(--c); display: block; }
.hm-v { font-family: var(--f-mono); font-size: 12px; }
.hm i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.hm i b { display: block; height: 100%; background: var(--c); border-radius: 3px; transition: width .3s; }
.hm.warn .hm-v { color: #ff8b8b; } .hm.warn i b { background: #ff5a5a; animation: blink 1s infinite; }
.hud-clock { position: absolute; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top, 0px)); min-width: 280px; max-width: calc(100% - 540px); text-align: center; background: rgba(8, 10, 16, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 8px 14px; color: #e8e8ed; font-size: 13px; display: grid; gap: 6px; justify-items: center; }
.clk-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.clk-top svg { width: 15px; height: 15px; vertical-align: -3px; }
.clk-bar { width: 100%; height: 4px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.clk-bar b { display: block; height: 100%; background: linear-gradient(90deg, #ffb340, #ff6b35); }
.clk-alert { background: rgba(255, 179, 64, .2); color: #ffd79a; border-radius: 99px; padding: 2px 9px; font-weight: 600; font-size: 12px; }
.clk-alert.on { background: #e5484d; color: #fff; animation: blink 1s infinite; }
.hud-obj { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(64px + env(safe-area-inset-top, 0px)); width: 270px; background: rgba(8, 10, 16, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 10px 12px; color: #e8e8ed; display: grid; gap: 6px; }
.obj-h { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #a1a1a6; }
.obj { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 13px; line-height: 1.3; }
.obj-arr { width: 18px; height: 18px; color: #2997ff; display: block; }
.obj.urgent .obj-arr { color: #ff5a5a; }
.obj.urgent .obj-l { color: #ffc1c1; font-weight: 600; }
.obj-arr svg { width: 100%; height: 100%; display: block; }
.obj-d { font-family: var(--f-mono); font-size: 11.5px; color: #a1a1a6; }
.g3d-menu { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 5; background: rgba(8, 10, 16, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .12); }
.crosshair { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); pointer-events: none; }
.prompt { position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; background: rgba(8, 10, 16, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .14); color: #fff; border-radius: 14px; padding: 8px 14px; font-size: 14.5px; font-weight: 600; pointer-events: none; max-width: calc(100% - 32px); }
.prompt small { color: #a1a1a6; font-weight: 500; }
.prompt svg { width: 22px; height: 22px; }
.prompt .hold { flex-basis: 100%; height: 4px; background: rgba(255, 255, 255, .15); border-radius: 2px; overflow: hidden; }
.prompt .hold b { display: block; height: 100%; background: #46d483; }
kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: #f5f5f7; color: #1d1d1f; font: 600 12px var(--f-mono); box-shadow: 0 2px 0 #9aa1ab; margin: 0 2px; }
.toasts { position: absolute; left: 50%; transform: translateX(-50%); top: calc(84px + env(safe-area-inset-top, 0px)); width: min(520px, calc(100% - 600px)); min-width: 300px; display: grid; gap: 8px; pointer-events: none; z-index: 6; }
.toast { pointer-events: auto; background: rgba(12, 14, 20, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .12); color: #e8e8ed; border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.4; animation: toastin .35s cubic-bezier(.2, .8, .2, 1); transition: opacity .4s, transform .4s; }
.toast svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.toast a { color: var(--blue-dark); }
.toast.ok { border-color: rgba(70, 212, 131, .45); }
.toast.alert { border-color: rgba(255, 90, 79, .6); background: rgba(40, 10, 12, .88); }
.toast.fact { border-color: rgba(255, 179, 64, .5); background: rgba(30, 20, 6, .9); }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes toastin { from { opacity: 0; transform: translateY(-10px); } }
.suitbar { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(420px, calc(100% - 32px)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: rgba(8, 10, 16, .7); border: 1px solid rgba(76, 195, 255, .4); color: #cfeaff; border-radius: 14px; padding: 8px 14px; font-size: 13px; pointer-events: none; }
.suitbar svg { width: 16px; height: 16px; vertical-align: -3px; }
.suitbar i { height: 6px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; }
.suitbar i b { display: block; height: 100%; background: #4cc3ff; }
.suitbar.warn { border-color: #ff5a5a; color: #ffc1c1; } .suitbar.warn i b { background: #ff5a5a; }
.lookhint { position: absolute; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: rgba(0, 0, 0, .6); color: #fff; padding: 8px 14px; border-radius: 99px; font-size: 13.5px; pointer-events: none; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }

/* toque */
.touchui { position: absolute; inset: 0; pointer-events: none; }
.joy { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); opacity: 0; transition: opacity .15s; left: 90px; top: calc(100% - 120px); }
.joy.on { opacity: 1; }
.joy i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .7); transform: translate(-50%, -50%); }
.tb { position: absolute; pointer-events: auto; border: 0; border-radius: 50%; background: rgba(12, 14, 20, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center; touch-action: none; }
.tb svg { width: 55%; height: 55%; }
.tb-act { width: 78px; height: 78px; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(40px + env(safe-area-inset-bottom, 0px)); background: rgba(0, 113, 227, .75); }
.tb-up { width: 56px; height: 56px; right: calc(116px + env(safe-area-inset-right, 0px)); bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.tb-down { width: 56px; height: 56px; right: calc(116px + env(safe-area-inset-right, 0px)); bottom: calc(106px + env(safe-area-inset-bottom, 0px)); }

/* modal */
.modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(2, 4, 8, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal-card { width: min(560px, 100%); max-height: 100%; overflow-y: auto; background: rgba(14, 17, 24, .97); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 26px; color: var(--g-text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: modalin .3s cubic-bezier(.2, .8, .2, 1); user-select: text; -webkit-user-select: text; }
.modal-card.wide { width: min(860px, 100%); }
@keyframes modalin { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-card h2 { font-family: var(--f-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -0.035em; margin: 4px 0 12px; text-wrap: balance; }
.modal-card h3 { font-size: 15px; color: var(--g-dim); margin: 22px 0 10px; font-weight: 600; }
.power-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.power-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.power-stats > div { background: var(--g-card); border: 1px solid var(--g-line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.ps-n { display: block; font-family: var(--f-mono); font-size: 28px; color: #ffd166; line-height: 1.1; }
.ps-n small { font-size: 15px; color: var(--g-dim); }
.ps-l { font-size: 12.5px; color: var(--g-dim); }
.power .systems { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.msgs { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: #dfe3ea; font-size: 14.5px; }
.chip.task { background: rgba(41, 151, 255, .16); color: #a8d4ff; }
.loading { display: grid; place-items: center; gap: 14px; padding: 40px 0; color: var(--g-dim); }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: #2997ff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* tela inicial */
.start-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.world-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.world-card { text-align: left; border: 2px solid var(--g-line); background: var(--g-card); border-radius: 20px; padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, transform .15s; min-width: 0; color: var(--g-text); }
.world-card:hover { transform: translateY(-2px); }
.world-card.is-on { border-color: var(--blue-dark); background: var(--g-card-2); }
.world-card strong { font-family: var(--f-display); font-size: 24px; letter-spacing: -0.03em; margin-top: 10px; }
.world-card small { color: var(--g-dim); }
.world-card ul { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: #c9ced6; display: grid; gap: 4px; }
.planet-orbit { background: radial-gradient(circle at 30% 28%, #bfe3ff, #3d8be0 30%, #1d4f9a 60%, #0b1f44); box-shadow: 0 0 30px rgba(76, 195, 255, .35); position: relative; }
.planet-orbit::after { content: ""; position: absolute; left: -10px; right: -10px; top: 26px; height: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); transform: rotate(-14deg); }
.controls-help { margin-top: 18px; background: var(--g-card); border: 1px solid var(--g-line); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: #c9ced6; line-height: 2; }
.controls-help p { margin: 0; }
.modal .level-pick .lvl { color: var(--g-text); }

@media (max-width: 900px) {
  .hud-res { width: 176px; padding: 8px 10px; gap: 4px; }
  .hm { font-size: 11px; } .hm-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hud-clock { left: auto; right: calc(64px + env(safe-area-inset-right, 0px)); transform: none; min-width: 0; max-width: calc(100% - 268px); font-size: 12px; padding: 6px 10px; }
  .hud-obj { top: auto; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: 230px; padding: 8px 10px; }
  .toasts { width: calc(100% - 32px); min-width: 0; top: calc(170px + env(safe-area-inset-top, 0px)); }
  .world-pick { grid-template-columns: 1fr; }
  .power .systems, .power-stats { grid-template-columns: 1fr; }
  .modal-card { padding: 20px; }
}
@media (max-width: 560px) {
  .hud-obj { top: calc(150px + env(safe-area-inset-top, 0px)); bottom: auto; left: max(12px, env(safe-area-inset-left, 0px)); right: auto; width: 180px; }
  .hud-obj .obj:nth-of-type(n+4) { display: none; }
  .obj { font-size: 11.5px; }
  .toasts { top: auto; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .hud-clock { max-width: calc(100% - 252px); }
  .hm-l { display: none; } .hud-res { width: 150px; }
}
@media (max-height: 520px) and (max-width: 950px) {
  .hud-obj { display: none; }
  .toasts { top: calc(64px + env(safe-area-inset-top, 0px)); }
}

/* =========================================================================
   JOGO 3D · central de missões, chamada, tutorial, tablet, minimapa
   ========================================================================= */
.modal-card.xl { width: min(1100px, 100%); }
.btn-ghost.sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.mc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.mc-brand { display: flex; align-items: center; gap: 12px; }
.mc-brand img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.mc-brand strong { display: block; font-size: 17px; }
.mc-brand small { color: var(--g-dim); font-size: 12.5px; }
.mc-actions { display: flex; gap: 8px; align-items: center; }
.mc-intro h2 { margin-top: 2px; }
.mc-world { margin-top: 22px; }
.mc-world h3 { display: flex; align-items: center; gap: 10px; color: #fff !important; font-size: 18px !important; margin: 0 0 12px !important; }
.mc-world .planet { width: 26px; height: 26px; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mcard { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; text-align: left; background: var(--g-card); border: 1px solid var(--g-line); border-radius: 18px; padding: 12px; cursor: pointer; color: var(--g-text); transition: transform .15s, border-color .2s, background .2s; min-width: 0; }
.mcard:hover { transform: translateY(-2px); border-color: rgba(41, 151, 255, .6); background: var(--g-card-2); }
.mcard.done { border-color: rgba(255, 209, 102, .45); }
.mcard-patch { width: 92px; height: 92px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.mcard-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mcard-code { font-family: var(--f-mono); font-size: 12px; color: var(--amber); letter-spacing: .04em; }
.mcard-ok { font-style: normal; color: #ffd166; font-family: var(--f-text); display: inline-flex; align-items: center; gap: 3px; }
.mcard-ok svg { width: 12px; height: 12px; }
.mcard strong { font-size: 16px; line-height: 1.2; }
.mcard small { color: var(--g-dim); font-size: 12.5px; }
.mc-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--g-line); }
.level-pick.sm { grid-template-columns: repeat(3, auto); }
.level-pick.sm .lvl { padding: 8px 12px; }
.call { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.call.small { grid-template-columns: 180px 1fr; }
.call-patch img { width: 100%; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6)); animation: patchin .8s cubic-bezier(.2, .8, .2, 1); }
@keyframes patchin { from { transform: scale(.7) rotate(-12deg); opacity: 0; } }
.call h2 span { display: block; font-size: .62em; color: var(--g-dim); font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; }
.call-real { background: rgba(255, 179, 64, .1); border: 1px solid rgba(255, 179, 64, .3); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.call-real b { color: #ffd79a; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.call-real p { margin: 6px 0 0; color: #f1e6d6; font-size: 14.5px; }
.call-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: #dfe3ea; font-size: 14.5px; }
.call-steps.live li { color: var(--g-dim); }
.call-steps.live li.ok { color: #9df0bf; text-decoration: line-through; text-decoration-color: rgba(157, 240, 191, .5); }
.call-steps.live li.now { color: #fff; font-weight: 700; }
.call-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.call-meta span { background: rgba(255, 255, 255, .07); border-radius: 99px; padding: 4px 12px; font-size: 13px; color: #c9ced6; }
.tut { text-align: center; }
.tut-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.tut-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.tut-dots i.on { background: #2997ff; width: 22px; border-radius: 4px; }
.tut-logo { width: 90px; height: 90px; object-fit: contain; background: #fff; border-radius: 20px; padding: 8px; margin-bottom: 8px; }
.tut .lead { max-width: 480px; margin: 0 auto 10px; line-height: 1.8; }
.tut-res { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0; }
.tut-res span { display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .06); border-radius: 99px; padding: 5px 12px; font-size: 13px; }
.tut-res svg { width: 16px; height: 16px; color: var(--c); }
.tut-row h3 { color: #fff !important; margin: 14px 0 4px !important; }
.tut-row p { margin: 0; color: #c9ced6; line-height: 1.8; }
.tablet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; background: rgba(255, 255, 255, .06); padding: 4px; border-radius: 12px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; color: var(--g-dim); padding: 7px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 14px; }
.tab.on { background: #2997ff; color: #fff; }
.bigmap { width: 100%; height: auto; border-radius: 14px; display: block; }
.res-explain { display: grid; gap: 10px; }
.re { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; background: var(--g-card); border: 1px solid var(--g-line); border-radius: 14px; padding: 12px; }
.re-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.re-ic svg { width: 20px; height: 20px; }
.re p { margin: 2px 0 0; color: #c9ced6; font-size: 14px; }
.gloss { margin: 0; display: grid; gap: 10px; }
.gloss div { background: var(--g-card); border-radius: 12px; padding: 10px 14px; }
.gloss dt { font-weight: 700; } .gloss dd { margin: 4px 0 0; color: #c9ced6; font-size: 14px; }
.radio-msg { display: flex; gap: 10px; background: rgba(179, 146, 255, .1); border: 1px solid rgba(179, 146, 255, .3); border-radius: 14px; padding: 12px 14px; }
.radio-msg p { margin: 0; color: #e6dcff; }
.radio-msg i { color: var(--g-dim); }
.radio-dot { width: 10px; height: 10px; border-radius: 50%; background: #b392ff; margin-top: 6px; flex: none; animation: live 1.6s infinite; box-shadow: 0 0 0 0 rgba(179, 146, 255, .6); }
.armcv { width: 100%; height: auto; border-radius: 14px; display: block; margin-top: 10px; background: #05080f; }
.armpad { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.armpad button:not(.btn-primary) { width: 52px; height: 48px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; cursor: pointer; }
.armpad .btn-primary { margin: 0; width: auto; flex: 1; min-width: 160px; }
.award { text-align: center; margin-bottom: 4px; }
.award-patch { width: 190px; height: 190px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); animation: award 1.2s cubic-bezier(.2, .9, .2, 1.2); }
@keyframes award { from { transform: scale(.2) rotate(-200deg); opacity: 0; } }
.end h2 { text-align: center; }
.end .lead { text-align: center; }
.end .stars { justify-content: center; }
.g3d-btns { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 5; display: flex; gap: 8px; }
.g3d-btns .icon-btn { background: rgba(8, 10, 16, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .12); }
.hud-obj { top: calc(64px + env(safe-area-inset-top, 0px)); width: 300px; }
.obj.now { background: rgba(41, 151, 255, .14); border: 1px solid rgba(41, 151, 255, .45); border-radius: 12px; padding: 8px 10px; font-size: 14px; font-weight: 600; }
.obj.next { opacity: .6; font-size: 12.5px; }
.obj-dot { width: 18px; display: grid; place-items: center; } .obj-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7d8590; }
.toast.step { border-color: rgba(41, 151, 255, .6); background: rgba(8, 24, 48, .9); }
.pr-step { flex-basis: 100%; text-align: center; font-style: normal; font-size: 11.5px; color: #8fc7ff; text-transform: uppercase; letter-spacing: .08em; }
.minimap { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 180px; height: 180px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.roomtag { position: absolute; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); text-shadow: 0 2px 8px rgba(0, 0, 0, .7); white-space: nowrap; }
.roomtag.flash { animation: roomflash 2.4s ease; }
@keyframes roomflash { 0% { opacity: 0; transform: translate(-50%, 8px); } 15% { opacity: 1; transform: translate(-50%, 0); color: #fff; font-size: 16px; } 70% { opacity: 1; } 100% { opacity: .75; } }
.carry { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); top: calc(178px + env(safe-area-inset-top, 0px)); background: rgba(255, 201, 77, .15); border: 1px solid rgba(255, 201, 77, .5); color: #ffe2a0; border-radius: 12px; padding: 6px 12px; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.carry svg { width: 16px; height: 16px; }
.clk-patch { width: 22px; height: 22px; vertical-align: -6px; margin-right: 2px; }
.vignette.helmet { box-shadow: inset 0 0 140px 50px rgba(0, 0, 0, .65); border-radius: 0; }
.vignette.helmet::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(200, 160, 60, .08) 80%); }
.sleepfade { display: grid; place-items: center; background: #02040a; animation: fadein .6s ease; }
.zzz { color: #cfeaff; font-size: 22px; font-weight: 600; letter-spacing: .04em; animation: blink 1.4s infinite; }
@keyframes fadein { from { opacity: 0; } }
@media (max-width: 900px) {
  .call, .call.small { grid-template-columns: 1fr; }
  .call-patch { max-width: 200px; margin: 0 auto; }
  .minimap { width: 120px; height: 120px; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .hud-obj { width: 230px; }
  .carry { top: calc(140px + env(safe-area-inset-top, 0px)); }
  .level-pick.sm { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 560px) {
  .mcard { grid-template-columns: 70px 1fr; } .mcard-patch { width: 70px; height: 70px; }
  .minimap { display: none; }
  .hud-obj .obj.next { display: none; }
}
.vignette { background: radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(0, 0, 0, .35) 100%); }

/* site: marca, missões e ecossistema */
.brand-logo { width: 26px; height: 26px; object-fit: contain; }
.patch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 48px 0 40px; }
.patch-card { text-align: center; background: #0d0f14; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-lg); padding: 24px 20px; color: #f5f5f7; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .25s, border-color .25s; min-width: 0; }
.patch-card:hover { transform: translateY(-4px); border-color: rgba(41, 151, 255, .5); }
.patch-card img { width: 150px; height: 150px; margin-bottom: 12px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .6)); transition: transform .4s; }
.patch-card:hover img { transform: rotate(-6deg) scale(1.04); }
.pc-code { font-family: var(--f-mono); color: var(--amber); font-size: 12.5px; letter-spacing: .05em; }
.patch-card strong { font-size: 19px; letter-spacing: -0.02em; }
.patch-card small { color: var(--dim); }
.pc-real { margin-top: 10px; font-size: 13px; color: #a8a8ae; line-height: 1.45; text-align: left; }
.eco-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; margin-top: 48px; }
.eco-card { background: var(--light); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.eco-card img { height: 90px; width: 100%; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.eco-main img { height: 140px; }
.eco-card p { margin: 0; color: var(--gray); font-size: 15.5px; }
.foot-logos { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.foot-logos img { height: 50px; width: auto; mix-blend-mode: multiply; opacity: .92; }
.foot-logos img[src*="aic-logo"] { height: 62px; }
.foot-logos img[src*="icbs-logo"] { height: 58px; }
@media (max-width: 900px) { .eco-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .hud-clock { right: calc(108px + env(safe-area-inset-right, 0px)); max-width: calc(100% - 310px); }
  .hud-obj { top: calc(64px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 560px) {
  .hud-clock { left: auto; right: calc(104px + env(safe-area-inset-right, 0px)); max-width: calc(100% - 270px); font-size: 11px; }
  .clk-patch { display: none; }
  .hud-obj { top: calc(168px + env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); right: auto; width: min(240px, calc(100% - 24px)); }
  .obj.now { font-size: 12.5px; padding: 6px 8px; }
  .carry { top: auto; bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
  .prompt { top: calc(50% + 24px); font-size: 13px; }
}

/* agricultura espacial */
.farm-env { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin: 6px 0 14px; }
.fe { background: var(--g-card); border: 1px solid var(--g-line); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.fe > span { display: inline-flex; gap: 6px; align-items: center; color: var(--g-dim); font-size: 14px; }
.fe > span svg { width: 16px; height: 16px; color: #ff9ae8; }
.fe b { font-family: var(--f-mono); font-size: 18px; }
.fe .stepper { grid-column: 1 / -1; }
.fe small { grid-column: 1 / -1; color: #7d8590; font-size: 12.5px; }
.trays { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.trays:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .trays { grid-template-columns: repeat(3, 1fr); } }
.tray { text-align: left; background: var(--g-card); border: 2px solid var(--g-line); border-radius: 14px; padding: 10px; color: var(--g-text); cursor: pointer; display: grid; gap: 3px; position: relative; }
.tray.on { border-color: #46d483; background: var(--g-card-2); }
.tray.ripe::after { content: ""; position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #ffd166; box-shadow: 0 0 10px #ffd166; animation: blink 1.2s infinite; }
.tray-n { font-family: var(--f-mono); font-size: 11px; color: var(--g-dim); }
.tray strong { font-size: 14px; } .tray small { color: var(--g-dim); font-size: 12px; }
.crop-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 4px; }
.crop-bar b { display: block; height: 100%; background: linear-gradient(90deg, #3fbf6f, #ffd166); }
.crop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.crop { text-align: left; background: var(--g-card); border: 1px solid var(--g-line); border-radius: 14px; padding: 12px; color: var(--g-text); display: grid; gap: 4px; cursor: pointer; }
button.crop:hover { border-color: rgba(70, 212, 131, .6); background: var(--g-card-2); }
div.crop { cursor: default; } div.crop.got { border-color: rgba(255, 209, 102, .45); }
.crop p { margin: 4px 0 0; color: #c9ced6; font-size: 13px; line-height: 1.45; }
.crop-dot { width: 16px; height: 16px; border-radius: 50% 0; transform: rotate(45deg); }
.crop small { color: var(--g-dim); font-size: 12.5px; }
.crop-y { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; color: #9df0bf; }
.crop-y svg { width: 13px; height: 13px; }
.crop-now { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; background: var(--g-card); border: 1px solid var(--g-line); border-radius: 14px; padding: 14px; }
.crop-now h3 { color: #fff !important; font-size: 20px !important; margin: 2px 0 !important; }
.crop-now .btn-primary, .crop-now .btn-ghost { margin: 0; width: auto; }
.clk-farm { display: inline-flex; align-items: center; gap: 2px; color: #9df0bf; }
.clk-farm svg { width: 14px; height: 14px; }
@media (max-width: 700px) { .farm-env, .crop-now { grid-template-columns: 1fr; } }
.sens-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: 14px; }
.sens-row input { width: 100%; accent-color: var(--blue); }
.sens-row b { font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.hero-logo { display: block; width: min(230px, 60vw); height: auto; margin: 0 auto 28px; opacity: .95; }
@media (max-width: 760px) { .brand { font-size: 13px; } }

/* ---------- equipe ---------- */
.team { background: var(--light); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.member { margin: 0; background: var(--white); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.member img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.member figcaption { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.member strong { font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.member span { font-size: 14px; color: var(--gray); }
.member.founder span { color: var(--blue); font-weight: 600; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .member figcaption { padding: 14px 14px 18px; } .member strong { font-size: 17px; } .member span { font-size: 13px; } }

/* ---------- previsão de esgotamento (painel de energia) ---------- */
.runout { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.runout span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: #d7dbe6; }
.runout span svg { width: 15px; height: 15px; }
.runout .ok { color: #7ee2a8; }
.runout .warn { color: #ffd166; background: rgba(255,209,102,.1); }
.runout .bad { color: #ff8a80; background: rgba(255,90,80,.14); font-weight: 600; }

/* ---------- Sol ao vivo ---------- */
.sun-live { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; margin: 14px 0; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.04); }
.sun-live img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: #000; box-shadow: 0 0 30px rgba(255,170,60,.25); }
.sun-live figcaption { font-size: 13.5px; color: #c9cede; line-height: 1.45; }
.sun-live figcaption b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }

/* ---------- números reais ---------- */
.real-nums ul { margin: 6px 0 8px; padding-left: 18px; }
.real-nums li { margin: 4px 0; }

/* ---------- quiz de fim de missão ---------- */
.quiz { margin-top: 22px; padding: 18px; border-radius: 18px; background: rgba(41,151,255,.08); border: 1px solid rgba(41,151,255,.25); }
.quiz h3 { margin: 0 0 4px; }
.qz { margin-top: 14px; }
.qz-q { margin: 0 0 8px; font-weight: 600; }
.qz-o { display: grid; gap: 8px; }
.qz-o button { text-align: left; font: inherit; font-size: 14.5px; color: inherit; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.qz-o button:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.qz-o button.right { background: rgba(70,212,131,.22); border-color: #46d483; }
.qz-o button.wrong { background: rgba(255,90,80,.2); border-color: #ff5a50; }
.qz-o button:disabled { cursor: default; }
.qz-why { margin: 8px 0 0; font-size: 14px; color: #c9cede; }
.qz-score { margin: 14px 0 0; font-size: 16px; }

/* ---------- acessibilidade ---------- */
.a11y-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.a11y-row > span { font-size: 14px; color: #c9cede; margin-right: 4px; }
.a11y-t { font: inherit; font-size: 13.5px; color: inherit; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.a11y-t.on { background: #2997ff; border-color: #2997ff; color: #fff; }
.game.a11y-big { font-size: 118%; }
.game.a11y-big .hud3d, .game.a11y-big .modal-card, .game.a11y-big .toast, .game.a11y-big .prompt { zoom: 1.18; }
.game.a11y-contrast .hud3d > *, .game.a11y-contrast .modal-card, .game.a11y-contrast .toast { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.game.a11y-contrast .note, .game.a11y-contrast small, .game.a11y-contrast .qz-why { color: #fff !important; }
.game.a11y-calm *, .game.a11y-calm *::before, .game.a11y-calm *::after { animation-duration: .001s !important; transition-duration: .001s !important; }

.sun-site { margin-top: 20px; display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; background: #0d0f14; border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
.sun-site img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 60px rgba(255,160,50,.3); }
.sun-site h3 { margin: 0 0 6px; color: #f5f5f7; font-size: 21px; }
.sun-site p { margin: 0; color: #a1a1a6; font-size: 15px; }
@media (max-width: 640px) { .sun-site { grid-template-columns: 1fr; justify-items: center; text-align: center; } .sun-site img { width: 130px; height: 130px; } }

/* ---------- recompensas ---------- */
.rewards-box { margin: 6px 0 18px; }
.rw { display: grid; gap: 12px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(255,201,77,.14), rgba(41,151,255,.1)); border: 1px solid rgba(255,201,77,.35); }
.rw-xp { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rw-xp b { font-size: 26px; color: #ffd166; letter-spacing: -0.02em; animation: rwpop .6s ease-out both; }
.rw-xp span { font-size: 13.5px; color: #c9cede; }
.rw-rank { display: flex; align-items: center; gap: 14px; }
.rw-rank > div { flex: 1; min-width: 0; }
.rw-rank strong { display: block; font-size: 17px; }
.rw-rank small { color: #aab3c5; font-size: 12.5px; }
.rw-badge { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #1b1300; background: radial-gradient(circle at 35% 30%, #ffe9a6, #e2a52a 70%); box-shadow: 0 0 18px rgba(255,201,77,.45); }
.rw-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin: 6px 0 4px; }
.rw-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd166, #2997ff); transition: width .8s ease; }
.rw-up { margin: 0; font-size: 14.5px; color: #ffd166; }
.rw-medals { display: flex; flex-wrap: wrap; gap: 8px; }
.rw-medal { display: inline-grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 8px 12px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); animation: rwpop .7s ease-out both; }
.rw-medal i { grid-row: span 2; font-style: normal; font-size: 22px; }
.rw-medal b { font-size: 13.5px; }
.rw-medal small { font-size: 12px; color: #aab3c5; }
.rw-medal.inline { display: inline-flex; gap: 6px; padding: 3px 10px; vertical-align: middle; }
@keyframes rwpop { from { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } to { transform: scale(1); opacity: 1; } }

/* perfil na Central de Missões */
.mc-profile { display: grid; grid-template-columns: minmax(220px, 1.2fr) 1.4fr 1fr; gap: 16px 22px; align-items: center; margin: 4px 0 22px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.mc-medals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mc-medals .md { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); filter: grayscale(1); opacity: .35; }
.mc-medals .md.on { filter: none; opacity: 1; background: rgba(255,201,77,.18); box-shadow: 0 0 0 1px rgba(255,201,77,.5); }
.mc-medals .md i { font-style: normal; font-size: 17px; }
.mc-medals small, .mc-suits small { width: 100%; color: #aab3c5; font-size: 12px; }
.mc-suits { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.mc-suits .sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: var(--c); cursor: pointer; padding: 0; }
.mc-suits .sw.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(41,151,255,.6); }
.mc-suits .sw.locked { opacity: .3; cursor: not-allowed; background: repeating-linear-gradient(45deg, var(--c) 0 4px, #222 4px 7px); }
@media (max-width: 860px) { .mc-profile { grid-template-columns: 1fr; } }

/* botão de idioma no HUD */
.g3d-btns .lang-btn { font-size: 12px; font-weight: 700; letter-spacing: .04em; width: auto; padding: 0 12px; }

/* ---------- HUD com 4 botões (idioma, câmera, tablet, menu) ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
  .hud-clock { left: auto; transform: none; right: calc(236px + env(safe-area-inset-right, 0px)); max-width: calc(100% - 520px); }
}
@media (max-width: 760px) {
  .g3d-btns { gap: 6px; }
  .g3d-btns .icon-btn { width: 36px; height: 36px; }
  .g3d-btns .icon-btn svg { width: 17px; height: 17px; }
  .g3d-btns .lang-btn { padding: 0 9px; font-size: 11px; }
  .hud-clock { top: calc(56px + env(safe-area-inset-top, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); left: auto; transform: none; max-width: calc(100% - 170px); min-width: 0; }
  .mc-actions .btn-ghost.sm { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .hud-obj { top: calc(64px + env(safe-area-inset-top, 0px)) !important; bottom: auto !important; height: auto; max-height: calc(100% - 330px); overflow: hidden; width: 250px; }
  .hud-obj .obj:nth-of-type(n+4) { display: none; }
}

/* ---------- identidade visual do Aerospace Innovation Center: destaques em azul ---------- */
:root { --aic: #1f5fd6; --aic-l: #7db7ff; --aic-deep: #102868; }
.grad { background: linear-gradient(92deg, #a9d4ff 0%, #5a9cff 45%, #2f6bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow-c { color: var(--aic); }
.eyebrow-c.dark { color: var(--aic-l); }
.to-k { color: var(--aic); }
.t-k, .t-air .t-k, .t-food .t-k, .t-delay .t-k, .t-cards .t-k { color: var(--aic) !important; }
.t-energy .t-k, .t-rad .t-k { color: var(--aic-l) !important; }
.t-rad { background: radial-gradient(600px 300px at 90% 0%, rgba(47, 107, 255, .38), transparent 60%), #050b1c; }
.t-air { background: linear-gradient(160deg, #e3efff, #fff 70%); }
.t-food { background: linear-gradient(160deg, #e6f0ff, #fff 70%); }
.cell-row i { background: linear-gradient(180deg, #a9d4ff, #2f6bff); box-shadow: 0 0 20px rgba(47, 107, 255, .3); }
.mini-fc .warn { color: var(--aic-l); }
.mini-fact b { color: var(--aic-l); }
.discuss li::before { color: var(--aic); }
.pc-code { color: var(--aic-l); }
.team-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } .team-grid .member:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); } }
.to-cells i.g { background: linear-gradient(180deg, #bfe0ff, #5a9cff); }
.to-cells i.s { background: linear-gradient(180deg, #2f6bff, #102868); }
