/* 🧨 LANDING SEASON 2 — camada por cima do POWDER & SPARK (glass.css intocado).
   Deck 3 colunas (régua do tibidle, identidade Bomb Idle), hero com trailer em façade,
   countdown, highscore, founder, ticker de big wins, overlay de login. Fontes >=14px,
   alto contraste, zero emoji na UI (iconografia PixelLab em /site/assets/ui/). */

/* ---------- NAV/HEADER: MIGROU pro ds.css no D1 (header canônico injetado). Aqui só o
   que é da landing. O padding-top do body também mora no ds.css. ---------- */

/* ---------- HERO ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-title { font-size: clamp(34px, 4.6vw, 58px); }
.hero-title .t2 { color: var(--text); }
.hero-sub { font-size: 16px; max-width: 46ch; margin: 16px 0 0; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
/* o .hero-boss saiu em 25/08 (Giba): o boneco atras do trailer disputava o olhar com o
   video, que e o que a pessoa veio ver. O espaco ficou pro trailer respirar. */
/* countdown da estreia */
.cdrow { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.cdbox { display: flex; flex-direction: column; align-items: center; min-width: 74px;
  padding: 12px 8px 10px; border-radius: 12px; background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,207,77,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.cdbox b { font-family: var(--font-px); font-size: 24px; color: var(--gold); line-height: 1.15;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255,207,77,.45); }
.cdbox span { font-size: 11px; font-weight: 800; color: var(--text-mute); text-transform: uppercase;
  letter-spacing: .08em; margin-top: 6px; }
.cd-live { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; padding: 12px 20px;
  border-radius: 12px; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.4);
  font-weight: 800; font-size: 15px; color: var(--green); }
/* trailer em façade (iframe do YouTube só no clique — LCP) */
.trailer { position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16 / 9; background: #000; cursor: pointer;
  border: 1px solid rgba(255,164,84,.22); box-shadow: var(--shadow), 0 0 44px rgba(255,106,0,.12); }
.trailer img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.trailer .tr-veil { position: absolute; inset: 0;
  background: radial-gradient(80% 80% at 50% 50%, transparent 40%, rgba(7,7,13,.55) 100%); }
.trailer .tr-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #ffb347, #ff6a00); box-shadow: 0 0 0 8px rgba(255,138,30,.22), 0 12px 30px rgba(0,0,0,.5);
  transition: transform .2s, box-shadow .2s; }
.trailer:hover .tr-play { transform: translate(-50%,-50%) scale(1.08); box-shadow: 0 0 0 12px rgba(255,138,30,.3), 0 14px 34px rgba(0,0,0,.55); }
.trailer .tr-play svg { width: 30px; height: 30px; fill: #2a1300; margin-left: 4px; }
.trailer .tr-label { position: absolute; left: 16px; bottom: 13px; font-family: var(--font-head);
  font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer.sem-video { cursor: default; display: grid; place-items: center; }
.trailer.sem-video .tr-soon { font-family: var(--font-head); font-weight: 800; font-size: 16px;
  color: var(--text-dim); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- STATS HUD ---------- */
.stats-row { margin: 10px auto 0; }
.hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 22px 26px; }
.stat { display: flex; align-items: center; gap: 14px; justify-content: center; }
.stat-ic { image-rendering: pixelated; }
.stat-v { font-family: var(--font-px); font-size: 20px; line-height: 1.2; }
.stat-l { font-size: 13px; font-weight: 700; }

/* ---------- TICKER big wins ---------- */
.bigwins { margin: 26px auto 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.bw-track { display: flex; gap: 12px; width: max-content; animation: marquee 46s linear infinite; }
.bigwins:hover .bw-track { animation-play-state: paused; }
.bw-item { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px;
  border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  font-size: 13.5px; font-weight: 700; color: var(--text-dim); white-space: nowrap; }
.bw-item .rdot { width: 8px; height: 8px; border-radius: 50%; background: var(--rc, var(--gold)); box-shadow: 0 0 8px var(--rc, var(--gold)); }
.bw-item b { color: var(--text); }
.bw-item .val { color: var(--gold); font-family: var(--font-px); font-size: 11px; }

/* ---------- DECK 3 colunas (a régua do tibidle) ---------- */
.deck { display: grid; grid-template-columns: 250px 1fr 340px; gap: 18px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 12px; }
.side-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer;
  transition: transform .2s, filter .2s; text-align: left; }
.side-card:hover { transform: translateX(5px); filter: brightness(1.12); }
.side-card img { width: 42px; height: 42px; image-rendering: pixelated; flex: none; }
.side-card .sc-t { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .04em; }
.side-card .sc-s { font-size: 12.5px; color: var(--text-mute); margin-top: 1px; }
.side-card .sc-tag { margin-left: auto; font-size: 10px; font-weight: 800; padding: 3px 7px;
  border-radius: 5px; background: var(--gold); color: #2a1300; letter-spacing: .05em; }

.tabs-panel { padding: 0; overflow: hidden; }
.tabs-head { display: flex; border-bottom: 1px solid rgba(255,164,84,.16); }
.tab-bt { all: unset; cursor: pointer; flex: 1; text-align: center; padding: 15px 8px;
  font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-mute); border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s; }
.tab-bt:hover { color: var(--text-dim); background: rgba(255,150,60,.05); }
.tab-bt.on { color: var(--gold); border-bottom-color: var(--primary); background: rgba(255,150,60,.06); }
.tab-body { min-height: 380px; max-height: 480px; overflow-y: auto; padding: 6px 0; }
.tab-body::-webkit-scrollbar { width: 8px; }
.tab-body::-webkit-scrollbar-thumb { background: rgba(255,164,84,.25); border-radius: 4px; }
.post { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.05); }
.post:last-child { border-bottom: 0; }
.post .p-date { flex: none; width: 58px; text-align: center; padding: 8px 4px; border-radius: 9px;
  background: rgba(255,138,30,.08); border: 1px solid rgba(255,164,84,.2); align-self: flex-start; }
.post .p-date b { display: block; font-family: var(--font-px); font-size: 15px; color: var(--gold); }
.post .p-date span { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--text-mute); letter-spacing: .06em; }
.post .p-tit { font-weight: 800; font-size: 14.5px; color: var(--text); line-height: 1.35; }
.post .p-body { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; line-height: 1.55; }
.post .p-body ul { margin: 4px 0 0; padding-left: 18px; }
.tab-empty { padding: 40px 24px; text-align: center; font-size: 14px; color: var(--text-mute); }

.trailer-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.trailer-card h3 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.trailer-card .trailer .tr-play { width: 60px; height: 60px; }
.discord-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.discord-card h3 { font-size: 15px; }
.discord-card p { font-size: 13.5px; color: var(--text-dim); margin: 0; }

/* ---------- FEATURES (6 cards do jogo) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.feat { padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.feat img { width: 48px; height: 48px; image-rendering: pixelated; }
.feat h3 { font-size: 17px; }
.feat p { font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.6; }

/* ---------- HIGHSCORE ---------- */
.hs-wrap { margin-top: 30px; }
.hs-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.hs-tab { all: unset; cursor: pointer; padding: 10px 22px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: .04em;
  color: var(--text-dim); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  transition: all .2s; }
.hs-tab.on { color: #2a1300; background: linear-gradient(180deg, #ffe08a, #ffcf4d 55%, #f5a80b);
  border-color: #a87700; box-shadow: 0 3px 0 #7d5800; }
.hs-card { max-width: 720px; margin: 0 auto; padding: 8px 0; }
.hs-table { width: 100%; border-collapse: collapse; }
.hs-table th { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-mute); padding: 12px 20px; text-align: left; border-bottom: 1px solid rgba(255,164,84,.18); }
.hs-table th:last-child, .hs-table td:last-child { text-align: right; }
.hs-table td { padding: 12px 20px; font-size: 14.5px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.05); }
.hs-table tr:last-child td { border-bottom: 0; }
.hs-table .pos { font-family: var(--font-px); font-size: 13px; color: var(--text-mute); width: 64px; }
.hs-table .pos img { width: 24px; height: 24px; image-rendering: pixelated; vertical-align: middle; }
.hs-table .val { font-family: var(--font-px); font-size: 12.5px; color: var(--gold); }
.hs-note { text-align: center; font-size: 13px; color: var(--text-mute); margin-top: 14px; }

/* ---------- FOUNDER ---------- */
.founder { position: relative; max-width: 880px; margin: 34px auto 0; padding: 40px 44px;
  display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; }
.founder::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, #ffe08a, #b9781a 40%, #7c4a10 60%, #ffcf4d);
  opacity: .5; filter: blur(10px); }
.founder h3 { font-size: 26px; }
.founder ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.founder li { font-size: 14.5px; color: var(--text-dim); display: flex; gap: 10px; align-items: baseline; }
.founder li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--gold); box-shadow: 0 0 8px var(--gold); transform: translateY(-1px); }
.f-cotas { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.f-cotas .num { font-family: var(--font-px); font-size: 34px; color: var(--gold);
  text-shadow: 0 0 26px rgba(255,207,77,.5); }
.f-cotas .lbl { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); }

/* ---------- CTA final ---------- */
.final-cta { text-align: center; padding: 80px 0 90px; }
.final-cta h2 { font-size: clamp(26px, 3.4vw, 42px); }
.final-cta .cdrow { justify-content: center; }
.final-cta .btn { margin-top: 30px; }

/* ---------- FOOTER: MIGROU pro ds.css no D1 (footer canônico injetado) ---------- */

/* ---------- OVERLAY DE LOGIN (iframe same-origin /login.html?embed=1) ---------- */
.login-ov { position: fixed; inset: 0; z-index: var(--z-login); display: none; align-items: center;
  justify-content: center; background: rgba(5,4,9,.8); backdrop-filter: blur(8px); padding: 18px; }
.login-ov.on { display: flex; }
.login-box { position: relative; width: min(560px, 96vw); height: min(760px, 92vh);
  border-radius: 20px; overflow: hidden; background: #12090a;
  border: 1px solid rgba(246,201,75,.35); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.login-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.login-x { position: absolute; top: 10px; right: 10px; z-index: 2; all: unset; cursor: pointer;
  width: 36px; height: 36px; border-radius: 10px; background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.2); color: #f5f1ea; font-weight: 900; font-size: 16px;
  text-align: center; line-height: 36px; }
.login-x:hover { background: rgba(255,70,70,.4); }

/* ---------- PERFIL: MIGROU pro perfil.css no D1 (a landing não carrega mais lá) ---------- */

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .deck { grid-template-columns: 220px 1fr; }
  .deck .col-3 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 960px) {
  /* a nav/hambúrguer responsiva mora no ds.css (mobile-first, corte canônico 1024) */
  .hero-in { grid-template-columns: 1fr; gap: 30px; }
  .hud { grid-template-columns: 1fr 1fr; gap: 20px 8px; padding: 20px 16px; }
  .deck { grid-template-columns: 1fr; }
  .deck .col-3 { grid-template-columns: 1fr; }
  .side { order: 2; }
  .tabs-panel { order: 1; }
  .deck .col-3 { order: 3; }
  .features { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; padding: 30px 24px; text-align: center; }
  .founder li { justify-content: center; text-align: left; }
  .f-cotas { margin: 0 auto; }
  .hs-table .col-extra { display: none; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .cdbox { min-width: 62px; padding: 10px 6px 8px; }
  .cdbox b { font-size: 19px; }
  .hero { padding-top: 36px; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bw-track { animation: none; }
}

/* ══════════ L124 — VIDEO LOCAL DO TRAILER ══════════
   O <video> ocupa o mesmo retangulo da facade. object-fit:contain (nao cover) porque o
   trailer e 16:9 e cortar a logo do Bomb Idle nas bordas seria pior que ter faixa preta. */
.trailer .tr-video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000; border: 0; display: block; }

/* ══════════ INVITE-ONLY · O JOGO E DA COMUNIDADE ══════════ */
.invite-band { padding: 10px 0 4px; }
.ib-card { padding: 30px clamp(18px, 3vw, 38px); border-radius: var(--radius-lg);
  border: 1px solid rgba(255,207,77,.28);
  background: linear-gradient(150deg, rgba(46,32,12,.72), rgba(19,16,25,.86) 62%); }
.ib-head { text-align: center; max-width: 74ch; margin: 0 auto 24px; }
.ib-selo { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px;
  border-radius: 999px; font-family: var(--font-head); font-size: 12px; font-weight: 800;
  letter-spacing: .14em; color: #2a1300;
  background: linear-gradient(180deg, #ffe08a, #ffcf4d 55%, #f5a80b);
  box-shadow: 0 6px 18px rgba(245,168,11,.32); }
.ib-head h2 { font-family: var(--font-head); font-size: clamp(22px, 2.7vw, 32px);
  margin: 14px 0 10px; color: var(--text); }
.ib-head p { font-size: 15px; line-height: 1.65; }
.ib-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 14px; margin-bottom: 22px; }
.ib-it { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px;
  border-radius: 13px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.07);
  transition: border-color .2s, transform .2s; }
.ib-it:hover { border-color: rgba(255,207,77,.4); transform: translateY(-2px); }
/* iconografia PixelLab, nunca emoji (regra da casa: emoji vira retangulo em metade
   dos aparelhos e nao acompanha a arte do jogo) */
.ib-ic { width: 34px; height: 34px; flex-shrink: 0; image-rendering: pixelated;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.ib-selo img { image-rendering: pixelated; }
.ib-it b { display: block; font-size: 14.5px; color: var(--text); margin-bottom: 4px; }
.ib-it span { display: block; font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.ib-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ib-nota { font-size: 13px; }

/* ══════════ O RELOGIO DO CONGELAMENTO ══════════
   Nasce [hidden]: sem resposta do /api/site/season, nao existe data pra mostrar, e
   inventar prazo de dinheiro e a pior coisa que esta tela poderia fazer. */
.season-clock { display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap; padding: 20px 24px; margin-bottom: 22px;
  border-radius: var(--radius-lg); border: 1px solid rgba(255,90,90,.3);
  background: linear-gradient(120deg, rgba(52,18,18,.6), rgba(19,16,25,.85) 60%); }
.season-clock[hidden] { display: none; }
.sc-t { display: block; font-family: var(--font-head); font-size: 13px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: #ff8a8a; margin-bottom: 10px; }
.sc-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-b { display: flex; flex-direction: column; align-items: center; min-width: 62px;
  padding: 9px 8px 7px; border-radius: 10px; background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,120,120,.28); }
.sc-b b { font-family: var(--font-head); font-size: 22px; color: var(--text); line-height: 1; }
.sc-b span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); margin-top: 5px; }
.sc-s { display: block; font-size: 12.5px; margin-top: 10px; max-width: 52ch; line-height: 1.5; }
.sc-r { text-align: right; }
.sc-pool { display: block; font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.sc-pl { display: block; font-size: 12px; margin-top: 3px; }
.sc-nome { display: block; font-size: 12px; color: var(--gold); margin-top: 7px; font-weight: 700; }

/* ══════════ ELO NO RANKING DE FASES ══════════
   As cores acompanham a escada de dificuldade (Normal -> Divina), nao a de raridade:
   sao reguas diferentes e misturar as duas paletas confunde quem le. */
.elo-tabs { display: flex; gap: 6px; justify-content: center; margin: -8px 0 16px; flex-wrap: wrap; }
.elo-tabs[hidden] { display: none; }
.elo-bt { all: unset; cursor: pointer; padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--text-dim);
  border: 1px solid rgba(255,255,255,.12); transition: all .18s; }
.elo-bt:hover { color: var(--text); border-color: rgba(255,150,60,.45); }
.elo-bt.on { color: #14100a; background: linear-gradient(180deg, #ffe08a, #ffcf4d 60%, #f5a80b);
  border-color: transparent; }
.elo-chip { display: inline-block; margin-left: 9px; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; vertical-align: middle;
  border: 1px solid currentColor; opacity: .92; }
.elo-chip.e1, .elo-bt.e1 { color: #9aa2ad; }
.elo-chip.e2, .elo-bt.e2 { color: #5bd06a; }
.elo-chip.e3, .elo-bt.e3 { color: #2f8fe0; }
.elo-chip.e4, .elo-bt.e4 { color: #a54ce0; }
.elo-chip.e5, .elo-bt.e5 { color: #ff8c3a; }
.elo-chip.e6, .elo-bt.e6 { color: #ff5252; }
.elo-bt.on.e1, .elo-bt.on.e2, .elo-bt.on.e3, .elo-bt.on.e4, .elo-bt.on.e5, .elo-bt.on.e6 { color: #14100a; }

/* ══════════ A PASSAGEM PRO JOGO ══════════
   A home e o jogo sao a mesma casa; a troca de tela precisa parecer isso. Quem pediu
   menos movimento nao ve nada disto: a animacao e enfeite, nunca pedagio. */
.go-game { position: fixed; inset: 0; z-index: var(--z-banner); display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(255,106,0,.16), rgba(7,7,13,.97) 68%);
  opacity: 0; transition: opacity .28s ease; pointer-events: all; }
.go-game.on { opacity: 1; }
.gg-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gg-in img { image-rendering: pixelated; animation: gg-pulse .55s ease-in-out infinite alternate; }
.gg-in span { font-family: var(--font-head); font-size: 14px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); }
@keyframes gg-pulse { from { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255,138,30,.5)); }
                      to { transform: scale(1.14); filter: drop-shadow(0 0 26px rgba(255,138,30,.95)); } }

@media (max-width: 860px) {
  .season-clock { flex-direction: column; align-items: flex-start; }
  .sc-r { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .gg-in img { animation: none; }
  .ib-it:hover { transform: none; }
}
