/* Site do IdleDeck — interface de jogo idle em pixel: janelas de borda grossa, sombra dura, botões com
   profundidade, barras enchendo. Sem fontes nem imagens externas (a CSP do site não deixa). */

:root {
  color-scheme: dark;
  --ink: #060d0b; /* contornos e sombras duras */
  --bg: #0e1a17;
  --bg-2: #0a1411;
  --panel: #15241f;
  --panel-2: #1c2f29;
  --panel-3: #274038;
  --line: #2f4a41;
  --text: #f3ead3;
  --soft: #cfd8c4;
  --muted: #9db3a5;
  --gold: #f5c542;
  --gold-deep: #c98a1a;
  --grass: #7bd86b;
  --grass-deep: #4fa843;
  --sky: #5cc8f2;
  --ember: #f08a3c;
  --blood: #e5554e;
  --epic: #b78cf7;
  --series: #c98500; /* gráficos: uma série, um tom (validado contra --panel) */
  --series-2: #3987e5; /* segunda série (lista × banner nos jogos indicados; o par validado contra --panel) */
  --grid: #24382f;
  --px: 3px; /* a espessura do "pixel" da interface */
  --display: Bahnschrift, "Segoe UI Black", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  /* grade de pixels bem discreta, como fundo de menu de jogo */
  background-image: linear-gradient(rgba(243, 234, 211, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 234, 211, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
}
main { flex: 1; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: 0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); text-transform: uppercase; text-shadow: 4px 4px 0 var(--ink); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; text-shadow: 3px 3px 0 var(--ink); }
h3 { font-size: 1.12rem; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
.wrap.wide { width: min(1240px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.fine { color: var(--muted); font-size: 0.88rem; margin-top: 16px; }
.sprite { image-rendering: pixelated; display: block; }
.sprite.lone { margin: 0 auto 22px; animation: hop 1.1s steps(2) infinite; }

/* ------------------------------------------------------------ topo e rodapé */
.demo-bar { background: var(--gold); color: var(--ink); text-align: center; font-size: 0.86rem; font-weight: 700; padding: 5px 12px; border-bottom: var(--px) solid var(--ink); }
.top { position: sticky; top: 0; z-index: 20; background: var(--bg-2); border-bottom: var(--px) solid var(--ink); box-shadow: 0 var(--px) 0 var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.03em; text-transform: uppercase; text-shadow: 2px 2px 0 var(--ink); }
.brand:hover { text-decoration: none; }
.brand.small { font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link { color: var(--soft); padding: 8px 12px; font-size: 0.95rem; font-weight: 600; }
.nav-link:hover { color: var(--gold); text-decoration: none; }
.foot { border-top: var(--px) solid var(--ink); box-shadow: 0 calc(var(--px) * -1) 0 var(--line); background: var(--bg-2); padding: 28px 0; margin-top: 48px; font-size: 0.9rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; justify-content: space-between; }
.foot-row p { margin: 0; flex: 1 1 320px; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); }
/* idioma (PT · EN · ES): no topo, compacto; no rodapé, sempre (no celular o topo não tem espaço) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; }
.lang-switch a { color: var(--muted); padding: 6px 6px; border: 2px solid transparent; }
.lang-switch a:hover { color: var(--gold); text-decoration: none; }
.lang-switch a.on { color: var(--text); border-color: var(--line); background: var(--panel); }
.top .lang-switch { margin: 0 4px; }
.foot-lang { flex-basis: 100%; }
@media (max-width: 720px) {
  .top .lang-switch { display: none; }
}

/* ------------------------------------------------------------------ botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; white-space: nowrap; text-decoration: none;
  font: inherit; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem;
  color: var(--ink); background: var(--gold); border: var(--px) solid var(--ink); border-radius: 0; padding: 11px 20px 13px;
  box-shadow: 0 4px 0 var(--ink), inset 0 -4px 0 var(--gold-deep), inset 0 3px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.06s, box-shadow 0.06s, filter 0.12s;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink), inset 0 -2px 0 var(--gold-deep), inset 0 3px 0 rgba(255, 255, 255, 0.4); }
.btn:disabled { filter: grayscale(0.7) brightness(0.8); cursor: default; }
.btn.ghost { color: var(--text); background: var(--panel-2); box-shadow: 0 4px 0 var(--ink), inset 0 -4px 0 var(--panel), inset 0 3px 0 rgba(255, 255, 255, 0.08); }
.btn.ghost:active { box-shadow: 0 1px 0 var(--ink), inset 0 -2px 0 var(--panel), inset 0 3px 0 rgba(255, 255, 255, 0.08); }
.btn.green { background: var(--grass); box-shadow: 0 4px 0 var(--ink), inset 0 -4px 0 var(--grass-deep), inset 0 3px 0 rgba(255, 255, 255, 0.4); }
.btn.danger { color: #fff; background: var(--blood); box-shadow: 0 4px 0 var(--ink), inset 0 -4px 0 #a5352f, inset 0 3px 0 rgba(255, 255, 255, 0.25); }
.btn.big { padding: 15px 28px 17px; font-size: 1.12rem; }
.btn.small { padding: 7px 13px 9px; font-size: 0.82rem; }
.btn.tiny { padding: 3px 9px 5px; font-size: 0.74rem; box-shadow: 0 3px 0 var(--ink), inset 0 -3px 0 var(--panel), inset 0 2px 0 rgba(255, 255, 255, 0.08); }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------ "janela" de jogo e cartões */
.win, .card { background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--line), 6px 6px 0 rgba(0, 0, 0, 0.45); min-width: 0; }
.card { padding: 24px; }
.card h2 { font-size: 1.05rem; letter-spacing: 0.06em; margin-bottom: 14px; color: var(--gold); text-shadow: 2px 2px 0 var(--ink); }
.card.skeleton { color: var(--muted); }
.card.alarm { box-shadow: inset 0 0 0 var(--px) var(--blood), 6px 6px 0 rgba(0, 0, 0, 0.45); }
.card.alarm h2 { color: var(--blood); }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel-3); border-bottom: var(--px) solid var(--ink); padding: 7px 12px; margin: var(--px); margin-bottom: 0; font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.win-bar b { color: var(--gold); font-weight: 700; }
.win-dots { display: inline-flex; gap: 5px; }
.win-dots i { width: 9px; height: 9px; background: var(--line); border: 2px solid var(--ink); }
.win-body { padding: 18px; }

/* -------------------------------------------------------------------- hero */
.hero { padding: 64px 0 56px; border-bottom: var(--px) solid var(--ink); background: linear-gradient(180deg, #102822 0%, var(--bg) 100%); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55; background-image: radial-gradient(var(--text) 1px, transparent 1.5px), radial-gradient(var(--gold) 1px, transparent 1.5px); background-size: 140px 110px, 210px 170px; background-position: 20px 30px, 90px 80px; mask-image: linear-gradient(180deg, #000 0%, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.tagline { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--gold); font-family: var(--mono); font-size: 0.82rem; font-weight: 700; padding: 5px 10px; margin-bottom: 18px; letter-spacing: 0.04em; }
.tagline i { width: 8px; height: 8px; background: var(--grass); animation: blink 1.2s steps(2) infinite; }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* a cena do herói: a janela do app com quatro contas "farmando" */
.deck { font-family: var(--mono); font-size: 11px; line-height: 1.35; }
.hud { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: var(--px) solid var(--ink); background: var(--bg-2); margin: 0 var(--px); }
.hud span { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 2px solid var(--ink); padding: 3px 8px; color: var(--soft); white-space: nowrap; }
.hud b { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.deck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin: 0 var(--px) var(--px); background: var(--ink); }
.pane { position: relative; height: 156px; overflow: hidden; border-top: var(--px) solid currentColor; background: linear-gradient(180deg, #12313b 0 46%, #1b4a3f 46% 100%); }
.pane.dusk { background: linear-gradient(180deg, #3a2447 0 46%, #2c4034 46% 100%); }
.pane.dawn { background: linear-gradient(180deg, #47402a 0 46%, #33482c 46% 100%); }
.pane.cave { background: linear-gradient(180deg, #1d2333 0 46%, #2a2f3a 46% 100%); }
.pane-head { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: rgba(6, 13, 11, 0.78); color: var(--soft); white-space: nowrap; }
.pane-head b { color: var(--text); }
.pane-head .led { width: 7px; height: 7px; background: var(--grass); flex: none; }
.pane.warn .led { background: var(--gold); animation: blink 0.8s steps(2) infinite; }
.pane-head small { margin-left: auto; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.pane .ground { position: absolute; left: 0; right: 0; bottom: 22px; height: 6px; background: repeating-linear-gradient(90deg, rgba(6, 13, 11, 0.35) 0 6px, transparent 6px 12px); }
.pane .mob { position: absolute; left: 22%; bottom: 28px; animation: hop 0.9s steps(2) infinite; }
.pane:nth-child(2) .mob { left: 54%; animation-duration: 1.1s; }
.pane:nth-child(3) .mob { left: 40%; animation-duration: 1.3s; }
.pane:nth-child(4) .mob { left: 60%; animation-duration: 0.8s; }
.pane.warn .mob { animation: none; opacity: 0.45; }
.pane .pop { position: absolute; left: calc(22% + 52px); bottom: 74px; color: var(--gold); font-weight: 700; text-shadow: 2px 2px 0 var(--ink); animation: rise 2.2s steps(11) infinite; opacity: 0; }
.pane:nth-child(2) .pop { left: calc(54% + 52px); animation-delay: 0.7s; }
.pane:nth-child(3) .pop { display: none; }
.pane:nth-child(4) .pop { left: calc(60% + 52px); animation-delay: 1.3s; }
.xp { position: absolute; left: 8px; right: 8px; bottom: 7px; height: 10px; background: var(--ink); border: 2px solid var(--ink); }
.xp i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--grass) 0 5px, var(--grass-deep) 5px 10px); animation: fill 7s steps(28) infinite; }
.pane:nth-child(2) .xp i { animation-duration: 9s; animation-delay: -3s; }
.pane:nth-child(4) .xp i { animation-duration: 5.5s; animation-delay: -1.5s; }
.pane.warn .xp i { animation: none; width: 38%; background: repeating-linear-gradient(90deg, var(--gold) 0 5px, var(--gold-deep) 5px 10px); }
.c-violet { color: #a897ff; } .c-green { color: var(--grass); } .c-amber { color: var(--gold); } .c-blue { color: var(--sky); }

@keyframes hop { 50% { transform: translateY(-7px); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@keyframes blink { 50% { opacity: 0.25; } }

/* ------------------------------------------------------------------ seções */
.strip { border-bottom: var(--px) solid var(--ink); background: var(--bg-2); padding: 22px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.debuff { display: flex; gap: 12px; align-items: flex-start; }
.debuff .minus { flex: none; font-family: var(--mono); font-weight: 700; color: var(--ink); background: var(--blood); border: 2px solid var(--ink); padding: 0 7px; line-height: 1.5; }
.debuff b { display: block; }
.debuff p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.section { padding: 78px 0; }
.section.alt { background: var(--bg-2); border-block: var(--px) solid var(--ink); }
.section.final { padding-bottom: 56px; }
.section-lead { color: var(--soft); font-size: 1.08rem; max-width: 44em; margin-bottom: 36px; }
.center .section-lead { margin-inline: auto; }
.kicker { font-family: var(--mono); color: var(--gold); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 10px; }

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill { position: relative; background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--line), 5px 5px 0 rgba(0, 0, 0, 0.45); padding: 20px; transition: transform 0.08s; }
.skill:hover { transform: translate(-2px, -2px); }
.skill p { color: var(--soft); margin: 0; font-size: 0.96rem; }
.skill-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.skill-head h3 { margin: 0; }
.slot { flex: none; width: 64px; height: 64px; display: grid; place-items: center; background: var(--panel-3); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.07); }
.rank { position: absolute; top: -11px; right: 12px; font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); background: var(--sky); border: 2px solid var(--ink); padding: 1px 7px; }
.rank.passive { background: var(--grass); }
.rank.alert { background: var(--ember); }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.split .section-lead { margin-bottom: 0; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { display: flex; gap: 12px; background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--line); padding: 13px 16px; color: var(--soft); }
.rules .mark { flex: none; width: 24px; height: 24px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; color: var(--ink); background: var(--blood); border: 2px solid var(--ink); }
.rules li.yes .mark { background: var(--grass); }
.rules b { color: var(--text); }

.price-free { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.price-tag { font-family: var(--display); font-size: clamp(3rem, 8vw, 5rem); font-weight: 700; color: var(--gold); text-shadow: 5px 5px 0 var(--ink); line-height: 1; text-transform: uppercase; }
.price-free ul, .ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--soft); }
.price-free li, .ticks li { display: flex; gap: 10px; align-items: baseline; }
.price-free li::before, .ticks li::before { content: "▸"; color: var(--grass); font-family: var(--mono); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--line), 5px 5px 0 rgba(0, 0, 0, 0.45); padding: 26px 24px; display: flex; flex-direction: column; }
.plan.best { box-shadow: inset 0 0 0 var(--px) var(--gold), 5px 5px 0 rgba(0, 0, 0, 0.45); }
.plan .tag { position: absolute; top: -13px; right: 16px; background: var(--grass); color: var(--ink); font-family: var(--mono); font-size: 0.76rem; font-weight: 700; padding: 2px 9px; border: 2px solid var(--ink); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px; }
.price b { font-family: var(--display); font-size: 2.3rem; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); }
.price span, .per-month { color: var(--muted); }
.per-month { font-size: 0.92rem; min-height: 1.5em; }
.plan .ticks { margin: 8px 0 22px; flex: 1; font-size: 0.96rem; }
.pay-how { margin-top: 36px; background: var(--bg-2); border: var(--px) solid var(--ink); padding: 24px; }
.coins { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.coins-label { color: var(--muted); margin-right: 4px; }
.coin { display: inline-flex; align-items: baseline; gap: 6px; background: var(--panel-2); border: 2px solid var(--ink); padding: 3px 11px; font-family: var(--mono); font-size: 0.85rem; }
.coin small { color: var(--muted); }

.quests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: quest; }
.quest { position: relative; background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--line), 5px 5px 0 rgba(0, 0, 0, 0.45); padding: 22px 20px 20px 66px; counter-increment: quest; }
.quest::before { content: counter(quest); position: absolute; left: 18px; top: 20px; width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--ink); background: var(--gold); border: var(--px) solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.quest h3 { margin-bottom: 6px; }
.quest p { margin: 0; color: var(--soft); font-size: 0.95rem; }
.reward { display: block; margin-top: 10px; font-family: var(--mono); font-size: 0.8rem; color: var(--grass); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--line); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "[+]"; color: var(--gold); font-family: var(--mono); flex: none; }
.faq details[open] summary::after { content: "[–]"; }
.faq p { color: var(--soft); margin: 0 0 18px; }
.hash { color: var(--muted); font-size: 0.8rem; word-break: break-all; margin-top: 18px; }
/* download: a Microsoft Store é o botão principal e o .exe do site vem como a outra opção, logo abaixo da nota */
.fine + .alt-download { margin-top: 6px; }.final .cta-row { justify-content: center; }
.cta-box .alt-download { margin-top: 12px; color: var(--muted); }
.prose h2 { font-size: 1.2rem; margin-top: 1.8em; color: var(--gold); }
.prose p, .prose li { color: var(--soft); }

/* ------------------------------------------------------ formulários e contas */
.auth { padding: 64px 20px; display: grid; justify-items: center; gap: 18px; }
.auth-card { width: min(430px, 100%); }
.auth-card h1 { font-size: 1.7rem; text-shadow: 3px 3px 0 var(--ink); }
.auth-foot { color: var(--muted); margin: 0; }
form { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 6px; font-size: 0.92rem; color: var(--soft); font-weight: 600; }
label small { color: var(--muted); font-weight: 400; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* campo-isca contra robôs */
textarea { resize: vertical; min-height: 120px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 12px; }
/* conversa de um relato do app (gaveta do painel): a pessoa à esquerda, a equipe à direita */
.fb-thread { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 6px; padding-top: 10px; border-top: 2px dashed var(--line); }
.fb-thread h3 { margin: 0; }
.fb-thread textarea { width: 100%; min-height: 90px; resize: vertical; }
.fb-msg { max-width: 88%; padding: 8px 12px; border: 2px solid var(--line); background: rgba(255,255,255,.04); }
.fb-msg.user { align-self: flex-start; }
.fb-msg.team { align-self: flex-end; border-color: var(--sky); background: rgba(96,165,250,.08); }
.fb-msg small { color: var(--muted); }
.fb-msg .msg-text { margin: 4px 0 0; }
.msg-item + .msg-item { margin-top: 14px; }
.msg-item.done { opacity: 0.6; }
.json-view { margin: 10px 0 0; padding: 12px; background: var(--bg-2); border: 2px solid var(--ink); font-family: var(--mono); font-size: 0.78rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--soft); }
label.check input { margin-top: 5px; accent-color: var(--gold); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input:not([type]), select, textarea { width: 100%; background: var(--bg-2); color: var(--text); border: var(--px) solid var(--ink); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35); border-radius: 0; padding: 10px 12px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; }
input[type="checkbox"] { accent-color: var(--gold); width: 18px; height: 18px; }
.form-links { margin: 14px 0 0; font-size: 0.92rem; }
/* entrar com o Google / o Discord: o logo e as cores de cada marca, no formato dos botões do site */
.oauth { display: grid; gap: 12px; margin-top: 20px; }
.oauth-btn { text-transform: none; letter-spacing: 0.01em; }
.oauth-btn.google { color: #1f1f1f; background: #ffffff; box-shadow: 0 4px 0 var(--ink), inset 0 -4px 0 #d6d6d6, inset 0 3px 0 rgba(255, 255, 255, 0.5); }
.oauth-btn.google:active { box-shadow: 0 1px 0 var(--ink), inset 0 -2px 0 #d6d6d6; }
.oauth-btn.discord { color: #ffffff; background: #5865f2; box-shadow: 0 4px 0 var(--ink), inset 0 -4px 0 #4450d0, inset 0 3px 0 rgba(255, 255, 255, 0.22); }
.oauth-btn.discord:active { box-shadow: 0 1px 0 var(--ink), inset 0 -2px 0 #4450d0; }
.oauth-note { margin: 12px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: var(--muted); font-size: 0.85rem; }
.or::before, .or::after { content: ''; flex: 1; border-top: var(--px) solid var(--line); }
.notice { margin: 0 0 16px; padding: 10px 12px; font-size: 0.9rem; color: #fdeaa8; background: #33290f; border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 2px var(--gold-deep); }
.login-ways { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.login-ways li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-2); border: var(--px) solid var(--ink); }
.login-ways li > span { flex: 1; display: grid; }
.login-ways li small { color: var(--muted); font-size: 0.82rem; }
.login-ways svg { flex: none; }
.form-msg { margin: 14px 0 0; padding: 10px 12px; font-size: 0.93rem; background: #3a1a18; color: #ffd0cc; border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 2px var(--blood); }
.form-msg.ok { background: #173320; color: #d5f7cd; box-shadow: inset 0 0 0 2px var(--grass); }

.code-box { font-family: var(--mono); font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 700; letter-spacing: 0.12em; text-align: center; color: var(--gold); background: var(--bg-2); border: var(--px) solid var(--ink); box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.4); padding: 14px; text-shadow: 3px 3px 0 var(--ink); margin: 16px 0; }

/* -------------------------------------------------------------- área logada */
.app-page { padding: 36px 0 20px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.page-head h1 { font-size: 1.9rem; margin: 0; text-shadow: 3px 3px 0 var(--ink); }
.page-head p { margin: 0; }
.head-actions { display: flex; gap: 10px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.account-grid .col, .admin-grid .col { display: grid; gap: 20px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; background: var(--panel-3); color: var(--text); border: 2px solid var(--ink); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.pill.ok { color: var(--grass); } .pill.warn { color: var(--gold); } .pill.err { color: var(--blood); } .pill.info { color: var(--sky); } .pill.off { color: var(--muted); }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.status-line strong { font-size: 1.15rem; }
.status-line h2 { margin: 0; }
.copy-row { display: flex; gap: 10px; align-items: stretch; margin: 10px 0 6px; }
.copy-box { flex: 1; min-width: 0; background: var(--bg-2); border: var(--px) solid var(--ink); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35); padding: 9px 12px; font-family: var(--mono); font-size: 0.95rem; overflow-wrap: anywhere; user-select: all; }
.copy-box.big { font-size: 1.4rem; font-weight: 700; color: var(--gold); }
.hint { color: var(--muted); font-size: 0.88rem; margin: 0; }
.list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg-2); border: 2px solid var(--ink); padding: 9px 12px; font-size: 0.93rem; }
.list small { color: var(--muted); display: block; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.choice { position: relative; display: block; cursor: pointer; font-weight: 400; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > span { display: block; height: 100%; background: var(--bg-2); border: var(--px) solid var(--ink); padding: 12px 14px; }
.choice:hover > span { background: var(--panel-2); }
.choice input:checked + span { box-shadow: inset 0 0 0 var(--px) var(--gold); background: var(--panel-2); }
.choice input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.choice b { display: block; color: var(--text); }
.choice small { color: var(--muted); display: block; }
.choice .save { color: var(--grass); font-weight: 700; }
.group-label { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 18px 0 6px; font-weight: 700; }
.card > .group-label:first-of-type { margin-top: 4px; }

.invoice { box-shadow: inset 0 0 0 var(--px) var(--gold), 6px 6px 0 rgba(0, 0, 0, 0.45); }
.invoice-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 20px; align-items: start; }
.qr { background: #fff; border: var(--px) solid var(--ink); padding: 8px; width: 190px; height: 190px; }
.qr svg { display: block; width: 100%; height: 100%; }
.qr-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 6px 0 0; }
.warn-box { background: #33290f; border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 2px var(--gold-deep); color: #fbe7a8; padding: 10px 12px; font-size: 0.9rem; margin: 12px 0; }
.ok-box { background: #173320; border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 2px var(--grass-deep); color: #d5f7cd; padding: 12px 14px; margin: 12px 0; }
.steps { display: flex; gap: 6px; margin: 14px 0 4px; font-size: 0.85rem; color: var(--muted); }
.steps span { flex: 1; border-top: 4px solid var(--panel-3); padding-top: 6px; }
.steps span.done { border-color: var(--grass); color: var(--text); }
.steps span.now { border-color: var(--gold); color: var(--text); }
.timer { font-family: var(--mono); font-weight: 700; color: var(--gold); }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; align-items: center; }
details.more { margin-top: 14px; border-top: 2px solid var(--line); padding-top: 12px; }
details.more summary { cursor: pointer; color: var(--gold); font-size: 0.93rem; }
.inline-form { display: flex; gap: 10px; margin-top: 10px; }
.inline-form input { flex: 1; min-width: 0; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th { text-align: left; color: var(--muted); font-family: var(--mono); font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 10px; border-bottom: var(--px) solid var(--ink); white-space: nowrap; }
td { padding: 10px; border-bottom: 2px solid var(--grid); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: var(--panel-2); }
.empty { color: var(--muted); padding: 18px 4px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); border: var(--px) solid var(--gold); color: var(--text); padding: 10px 16px; box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5); z-index: 60; font-size: 0.93rem; max-width: min(520px, 92vw); }

/* aviso de cookies: a medição só liga com o "Aceitar" (analytics.js). Fica embaixo, sem cobrir a página inteira */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; justify-content: center; padding: 12px; pointer-events: none; }
.consent-box { pointer-events: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; max-width: 880px; background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--gold-deep), 6px 6px 0 rgba(0, 0, 0, 0.5); padding: 14px 18px; }
.consent-box .sprite { flex: 0 0 auto; }
.consent-text { flex: 1 1 360px; font-size: 0.9rem; color: var(--soft); }
.consent-text b { font-family: var(--display); color: var(--gold); letter-spacing: 0.02em; }
.consent-text p { margin: 4px 0 0; }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.foot-nav .link-btn { color: var(--muted); }

/* -------------------------------------------------------------------- admin */
/* a casca do painel (pages.js › admin): menu lateral fixo + topo da tela, sem o cabeçalho e o rodapé do site */
.adm-main { flex: 1; }
.adm { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px 12px 14px; background: var(--bg-2); border-right: var(--px) solid var(--ink); box-shadow: var(--px) 0 0 var(--line); z-index: 30; }
.adm-brand { display: flex; align-items: center; gap: 10px; color: var(--text); padding: 2px 6px 6px; }
.adm-brand:hover { text-decoration: none; }
.adm-brand span { display: grid; line-height: 1.15; }
.adm-brand b { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.05rem; text-shadow: 2px 2px 0 var(--ink); }
.adm-brand small { color: var(--gold); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.adm-search { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--panel); border: 2px solid var(--ink); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font: inherit; font-size: 0.86rem; padding: 7px 9px; cursor: pointer; text-align: left; }
.adm-search:hover { color: var(--text); background: var(--panel-2); }
.adm-search span { flex: 1; }
kbd { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: var(--soft); background: var(--panel-3); border: 1px solid var(--ink); box-shadow: 0 2px 0 var(--ink); padding: 0 5px; white-space: nowrap; }
.adm-nav { display: grid; gap: 2px; }
.adm-group { margin: 12px 8px 4px; font-family: var(--mono); font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; color: var(--soft); font-size: 0.92rem; font-weight: 600; border: 2px solid transparent; }
.adm-nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.adm-nav a[aria-current="page"] { color: var(--ink); background: var(--gold); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.adm-label { flex: 1; min-width: 0; }
.adm-ico { flex: none; }
.adm-count { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.adm-nav a[aria-current="page"] .adm-count { color: var(--ink); }
.adm-me { margin-top: auto; display: grid; gap: 6px; padding: 10px 8px 0; border-top: 2px solid var(--line); font-size: 0.84rem; }
.adm-me-mail { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-me-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.adm-keys { display: inline-flex; gap: 6px; align-items: center; justify-self: start; color: var(--muted); font-size: 0.8rem; }
.adm-body { min-width: 0; padding: 18px 28px 48px; }
.adm-top { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-title { flex: 1; min-width: 200px; }
.adm-title h1 { font-size: 1.6rem; margin: 0; text-shadow: 3px 3px 0 var(--ink); }
.adm-title p { margin: 2px 0 0; font-size: 0.9rem; }
.adm-top-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.82rem; font-weight: 700; color: var(--grass); background: var(--panel); border: 2px solid var(--ink); padding: 3px 9px; }
.adm-live:hover { text-decoration: none; background: var(--panel-2); }
.adm-stamp { color: var(--muted); font-size: 0.8rem; font-family: var(--mono); }
.adm-menu { display: none; }
.adm-shade { position: fixed; inset: 0; background: rgba(3, 7, 6, 0.6); z-index: 25; }
@media (max-width: 900px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: fixed; left: 0; top: 0; bottom: 0; width: min(280px, 86vw); transform: translateX(-105%); transition: transform 0.15s; }
  .adm.menu-open .adm-side { transform: none; }
  .adm-menu { display: inline-flex; }
  .adm-body { padding: 14px 14px 40px; }
}
@media (max-width: 640px) {
  .adm-body .card { padding: 14px; }
  .adm-title h1 { font-size: 1.3rem; }
  .adm-stamp { display: none; }
  .adm-body .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .adm-body .chip { flex: none; }
  .adm-body .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .adm-body .tile { padding: 12px; }
  .adm-body .tile.hero .value { font-size: 2.4rem; }
  .adm-body .filters { gap: 6px 12px; }
}
#admin-root { display: grid; gap: 20px; min-width: 0; }
#admin-root > * { margin-top: 0; margin-bottom: 0; min-width: 0; }
.badge { background: var(--blood); color: #fff; font-family: var(--mono); font-size: 0.7rem; font-weight: 700; padding: 0 6px; border: 2px solid var(--ink); }
.adm-nav .badge { margin-left: auto; }
/* peças das telas (admin-kit.js): chips, filtros, tabela que ordena, paginação, caixas de entrada, gaveta, diálogos */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--panel-2); border: 2px solid var(--ink); color: var(--soft); font: inherit; font-size: 0.86rem; font-weight: 600; padding: 4px 10px; cursor: pointer; }
.chip:hover { color: var(--text); background: var(--panel-3); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.chip-n { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.chip-n:empty { display: none; }
.chip[aria-pressed="true"] .chip-n { color: var(--ink); }
.chip.none:not([aria-pressed="true"]) { opacity: 0.55; }
.chip:focus-visible, .theme:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 14px; }
.filters:empty { display: none; }
label.field-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.field-inline select { width: auto; max-width: 260px; padding: 4px 8px; font-size: 0.88rem; border-width: 2px; }
.toolbar input.search { flex: 1 1 260px; width: auto; }
.th-sort { display: inline-flex; gap: 5px; align-items: center; background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.th-sort:hover, .th-sort.on { color: var(--text); }
.th-arrow { font-size: 0.7rem; opacity: 0.55; }
.th-sort.on .th-arrow { opacity: 1; color: var(--gold); }
.dtable tbody tr.click:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.dtable tr.is-off td { opacity: 0.6; }
.dtable td.nowrap { white-space: nowrap; }
.dtable tr.row-alarm td { background: rgba(229, 85, 78, 0.12); }
.who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.who-mail, .ext { overflow-wrap: anywhere; unicode-bidi: isolate; } /* texto que veio de fora não inverte a direção do resto */
.tag { display: inline-block; font-family: var(--mono); font-size: 0.68rem; font-weight: 700; padding: 0 5px; border: 1px solid var(--line); color: var(--muted); background: var(--bg-2); white-space: nowrap; }
.tag.gold { color: var(--gold); border-color: var(--gold-deep); }
.tag.prov { color: var(--sky); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ok-text { color: var(--grass); } .err-text { color: var(--blood); } .warn-text { color: var(--gold); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 0.86rem; }
.pager-info { margin-right: auto; font-family: var(--mono); }
details.how { margin-top: 14px; }
details.how summary { cursor: pointer; color: var(--muted); font-size: 0.84rem; }
details.how p { margin: 8px 0 0; color: var(--muted); font-size: 0.86rem; max-width: 95ch; }
.head-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.head-side p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 8px; color: var(--soft); }
.empty-state p { margin: 0; }
.attn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.attn-item { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "n text" "n sub" "latest latest"; gap: 0 12px; align-items: center; padding: 12px 14px; background: var(--bg-2); border: 2px solid var(--ink); border-left: 6px solid var(--muted); color: var(--text); }
.attn-item:hover { text-decoration: none; background: var(--panel-2); }
.attn-item.err { border-left-color: var(--blood); } .attn-item.warn { border-left-color: var(--gold); } .attn-item.info { border-left-color: var(--sky); }
.attn-n { grid-area: n; font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--gold); text-shadow: 2px 2px 0 var(--ink); }
.attn-text { grid-area: text; font-weight: 700; }
.attn-sub { grid-area: sub; color: var(--muted); font-size: 0.84rem; }
.attn-latest { grid-area: latest; display: flex; justify-content: space-between; gap: 8px; min-width: 0; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 0.84rem; color: var(--soft); }
.attn-latest q { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: isolate; }
.attn-latest small { color: var(--muted); white-space: nowrap; }
.tile.link { display: block; color: inherit; transition: transform 0.08s, box-shadow 0.08s; }
.tile.link:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: inset 0 0 0 var(--px) var(--gold-deep), 5px 5px 0 rgba(0, 0, 0, 0.45); }
.tile.warn .value { color: var(--ember); }
.tile .spark { display: block; width: 100%; height: 34px; margin-top: 8px; }
.spark-line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: var(--series); opacity: 0.15; }
.spark-dot { fill: var(--gold); }
.delta.flat { color: var(--muted); }
.tiles.kpis { grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); }
.admin-grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1250px) { .admin-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .admin-grid.even, .admin-grid.three { grid-template-columns: minmax(0, 1fr); } }
.funnel { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.funnel a { display: grid; gap: 4px; color: var(--text); padding: 6px 8px; margin: -6px -8px; }
.funnel a:hover { background: var(--panel-2); text-decoration: none; }
.funnel-top { display: flex; justify-content: space-between; gap: 10px; }
.funnel-n { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.funnel-bar { display: block; height: 14px; background: var(--bg-2); border: 2px solid var(--ink); }
.funnel-fill { display: block; height: 100%; background: var(--series); }
.funnel small { color: var(--muted); font-size: 0.8rem; }
.cohort-pair { display: inline-flex; align-items: center; gap: 8px; }
.cohort-bar { display: inline-block; flex: none; width: 70px; height: 10px; background: var(--bg-2); border: 2px solid var(--ink); }
.cohort-fill { display: block; height: 100%; background: var(--grass); }
.list.recent li { display: grid; gap: 4px; justify-content: stretch; font-size: 0.88rem; }
.list.recent .link-btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.recent-side { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inbox { display: grid; gap: 8px; }
.inbox-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 14px; align-items: start; padding: 12px 14px; background: var(--bg-2); border: 2px solid var(--ink); }
.inbox-row.msg, .inbox-row.quote { grid-template-columns: minmax(0, 1fr) auto; }
.inbox-row[tabindex] { cursor: pointer; }
.inbox-row[tabindex]:hover { background: var(--panel-2); }
.inbox-row:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }
.inbox-row.done { opacity: 0.6; }
.inbox-row.fresh { box-shadow: inset 4px 0 0 var(--gold); }
.inbox-row.focus { box-shadow: inset 0 0 0 2px var(--gold); }
.inbox-row > input[type="checkbox"] { margin-top: 4px; }
.inbox-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.inbox-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 0; color: var(--soft); white-space: pre-line; }
.inbox-meta { margin: 6px 0 0; color: var(--muted); font-size: 0.82rem; }
.inbox-account { margin: 6px 0 0; font-size: 0.86rem; }
.inbox-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.inbox-row .msg-text { margin: 6px 0 0; }
.msg-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .inbox-row { grid-template-columns: auto minmax(0, 1fr); }
  .inbox-row.msg, .inbox-row.quote { grid-template-columns: minmax(0, 1fr); }
  .inbox-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.bulk { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 12px; padding: 10px 12px; background: #33290f; border: 2px solid var(--ink); box-shadow: inset 0 0 0 2px var(--gold-deep); }
.themes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.themes:empty { display: none; }
.themes-label { margin-right: 4px; color: var(--muted); font-size: 0.82rem; }
.theme { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--soft); font: inherit; font-size: 0.84rem; padding: 2px 8px; cursor: pointer; }
.theme small { color: var(--muted); font-family: var(--mono); }
.theme:hover, .theme.on { border-color: var(--gold); color: var(--text); }
.segmented { justify-self: start; display: inline-flex; border: 2px solid var(--ink); background: var(--bg-2); }
.segmented a { padding: 6px 16px; color: var(--soft); font-weight: 700; font-size: 0.9rem; }
.segmented a:hover { color: var(--text); text-decoration: none; }
.segmented a[aria-selected="true"] { background: var(--gold); color: var(--ink); }
.game-list .drag { flex: none; cursor: grab; padding: 4px 2px; color: var(--muted); font-weight: 700; letter-spacing: -2px; user-select: none; }
.game-list li.dragging { opacity: 0.5; }
.game-list li.drop-before { box-shadow: 0 -4px 0 var(--gold); }
.game-list li.drop-after { box-shadow: 0 4px 0 var(--gold); }
.totp-field input { max-width: 170px; font-family: var(--mono); letter-spacing: 0.2em; }
.drawer-panel { width: min(640px, 100%); }
.drawer-head { display: flex; align-items: flex-start; gap: 10px; padding-right: 44px; }
.drawer-head h2 { flex: 1; padding-right: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
.facts > div { display: grid; gap: 1px; padding: 8px 10px; background: var(--bg-2); border: 2px solid var(--ink); }
.facts > .wide { grid-column: 1 / -1; }
.facts small { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.facts b { font-size: 1.02rem; }
.facts span { color: var(--muted); font-size: 0.8rem; }
.timeline { list-style: none; display: grid; gap: 9px; margin: 8px 0 0 6px; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 2px 10px; font-size: 0.88rem; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 8px; height: 8px; background: var(--muted); border: 2px solid var(--ink); }
.timeline li.tl-account::before { background: var(--grass); } .timeline li.tl-link::before { background: var(--sky); } .timeline li.tl-feedback::before { background: var(--blood); }
.timeline li.tl-support::before { background: var(--gold); } .timeline li.tl-apoio::before { background: var(--epic); } .timeline li.tl-admin::before { background: var(--ember); }
.tl-kind { padding-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; }
.tl-text { overflow-wrap: anywhere; unicode-bidi: isolate; }
.tl-when { color: var(--muted); white-space: nowrap; }
.drawer-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 12px; border-top: 2px solid var(--line); }
.json-box summary { cursor: pointer; color: var(--muted); font-size: 0.84rem; }
input.grow { flex: 1; width: auto; }
dialog.adm-dialog, dialog.adm-palette { width: 100%; max-width: min(520px, calc(100vw - 32px)); padding: 0; color: var(--text); background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--line), 8px 8px 0 rgba(0, 0, 0, 0.5); }
dialog.adm-dialog::backdrop, dialog.adm-palette::backdrop { background: rgba(3, 7, 6, 0.72); }
.adm-dialog-form { margin: 0; padding: 22px 22px 20px; gap: 12px; }
.adm-dialog-form h2 { margin: 0; font-size: 1.1rem; color: var(--gold); text-transform: none; text-shadow: 2px 2px 0 var(--ink); }
.adm-dialog-form .muted { margin: 0; }
.adm-dialog-form .row-actions { margin-top: 6px; }
dialog.adm-dialog.wide { max-width: min(720px, calc(100vw - 32px)); }
.adm-dialog-form .timeline { margin-top: 0; }
.sec-where { display: block; margin-top: 2px; font-size: 0.8rem; }
/* celular: a data desce para baixo do texto (três colunas não cabem no diálogo) */
@media (max-width: 560px) {
  .adm-dialog-form .timeline li { grid-template-columns: 56px minmax(0, 1fr); }
  .adm-dialog-form .timeline .tl-when { grid-column: 2; }
}
table.keys td { padding: 6px 8px; border-bottom: 1px solid var(--grid); font-size: 0.88rem; vertical-align: top; }
table.keys td:first-child { white-space: nowrap; }
dialog.adm-palette { max-width: min(640px, calc(100vw - 32px)); margin-top: 12vh; }
.palette-box { display: grid; }
.palette-box input { border: 0; border-bottom: var(--px) solid var(--ink); box-shadow: none; padding: 14px 16px; font-size: 1.05rem; }
.palette-box input:focus { outline: none; }
.palette-list { list-style: none; max-height: 50vh; overflow-y: auto; margin: 0; padding: 6px; }
.palette-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; cursor: pointer; }
.palette-list li span { min-width: 0; overflow-wrap: anywhere; unicode-bidi: isolate; }
.palette-list li small { flex: none; color: var(--muted); }
.palette-list li.on { background: var(--gold); color: var(--ink); }
.palette-list li.on small { color: var(--ink); }
.palette-list li.none { color: var(--muted); cursor: default; }
.palette-foot { margin: 0; padding: 8px 14px; color: var(--muted); font-size: 0.78rem; border-top: 2px solid var(--line); }
.toast { display: flex; align-items: center; gap: 14px; }
.toast-action { flex: none; background: none; border: 2px solid var(--gold); color: var(--gold); font: inherit; font-weight: 700; padding: 2px 10px; cursor: pointer; }
.toast-action:hover { background: var(--gold); color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile { background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--line), 4px 4px 0 rgba(0, 0, 0, 0.45); padding: 16px 18px; }
.tile .label { color: var(--muted); font-size: 0.86rem; }
.tile .value { font-family: var(--display); font-size: 1.8rem; font-weight: 700; margin: 2px 0; }
.tile.hero .value { font-size: 3.2rem; line-height: 1.05; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); }
.tile .sub { color: var(--muted); font-size: 0.84rem; }
.delta { font-weight: 700; } .delta.up { color: var(--grass); } .delta.down { color: var(--blood); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.chart-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chart { position: relative; margin-top: 10px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--series); transition: opacity 0.12s; }
.chart .bar.zero { fill: var(--panel-3); }
.chart .hit { fill: transparent; cursor: default; }
.chart.hovering .bar { opacity: 0.45; }
.chart.hovering .bar.on { opacity: 1; }
/* a posição e a largura máxima vêm do placeTip (admin-kit.js): a dica nunca sai do gráfico */
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); border: 2px solid var(--gold); padding: 7px 10px; font-size: 0.84rem; width: max-content; transform: translate(-50%, -100%); z-index: 5; }
.chart-tip.below { transform: translate(-50%, 12px); }
.chart-tip b { display: block; }
.chart-tip span { color: var(--muted); }
/* linha com área (séries longas): 2 px, área clara embaixo, mira vertical e ponto do "agora" com anel da cor do cartão */
.chart .line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--series); opacity: 0.16; }
.chart .dot { fill: var(--series); }
.chart .dot.now { fill: var(--gold); stroke: var(--panel); stroke-width: 2; }
.chart .dot.focus { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart-slot { transition: opacity 0.15s; min-height: 60px; }
.chart-slot.refreshing { opacity: 0.55; } /* recarregando: o gráfico anterior fica, mais apagado (sem pulo de layout) */
.ranges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ranges button { background: var(--panel-2); border: 2px solid var(--ink); color: var(--muted); font: inherit; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; padding: 3px 9px; cursor: pointer; }
.ranges button:hover { color: var(--text); }
.ranges button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.ranges button:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
/* "online agora" no topo da visão geral */
.online-card { margin-bottom: 20px; }
.online-card h3 { margin: 0; font-size: 0.95rem; color: var(--soft); }
.online-card .live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.8rem; }
.live-dot { width: 10px; height: 10px; background: var(--grass); border: 2px solid var(--ink); animation: blink 1.6s steps(2) infinite; }
.online-value { font-family: var(--display); font-size: 4.2rem; font-weight: 700; line-height: 1; color: var(--gold); text-shadow: 4px 4px 0 var(--ink); font-variant-numeric: tabular-nums; margin-top: 10px; }
.online-label { color: var(--soft); font-size: 0.92rem; margin: 6px 0 14px; }
.online-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; color: var(--soft); }
.online-facts b { color: var(--text); font-variant-numeric: tabular-nums; }
.online-card .hint { margin-top: 14px; }
/* "Online agora" e "Anúncios" lado a lado, do mesmo tamanho: número grande, gráfico e os detalhes numa linha embaixo */
.dash-pair { align-items: stretch; }
.dash-pair .online-card { margin-bottom: 0; }
.dash-card .online-value { margin: 10px 0 14px; }
.dash-card .chart-head h3 { align-self: center; }
.dash-card .online-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
.dash-card .online-facts b { color: var(--gold); }
.ads-today { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: flex-end; margin-bottom: 14px; }
.ads-today .online-value { margin-bottom: 0; }
.ads-today .online-label { margin: 6px 0 0; }
.ads-filter { align-items: center; font-size: 0.88rem; color: var(--soft); }
.ads-filter input { margin-top: 0; }
.dash-card .legend { margin-top: 0; }
@media (max-width: 760px) {
  .online-value { font-size: 3.4rem; }
}
.hbars { display: grid; gap: 12px; margin-top: 12px; }
.hbar-row { display: grid; gap: 4px; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.hbar-top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.hbar-track { height: 12px; background: var(--bg-2); border: 2px solid var(--ink); overflow: hidden; }
.hbar-fill { height: 100%; background: var(--series); min-width: 2px; }
.hbar-track.stacked { display: flex; gap: 2px; background: var(--bg-2); }
.hbar-seg { height: 100%; flex: none; }
.hbar-row.pick { background: none; border: 0; padding: 4px 6px; margin: -4px -6px; font: inherit; color: inherit; text-align: left; cursor: pointer; width: calc(100% + 12px); }
.hbar-row.pick:hover { background: var(--panel-2); }
.hbar-row.pick.on { background: var(--panel-3); }
.hbar-row.pick:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.chart .seg-banner, .hbar-seg.seg-banner, .swatch.seg-banner { fill: var(--series); background: var(--series); }
.chart .seg-lista, .hbar-seg.seg-lista, .swatch.seg-lista { fill: var(--series-2); background: var(--series-2); }
/* cartão de anúncios: verde = virou conta, amarelo = só o clique */
.chart .seg-account, .swatch.seg-account { fill: var(--grass); background: var(--grass); }
.chart .seg-click, .swatch.seg-click { fill: var(--gold); background: var(--gold); }
/* contas criadas pela versão antiga do app (sem clique): neutro, fora da comparação clique × conta */
.chart .seg-old, .hbar-seg.seg-old, .swatch.seg-old { fill: var(--muted); background: var(--muted); opacity: 0.55; }
.chart .col { transition: opacity 0.12s; }
.chart.hovering .col { opacity: 0.45; }
.chart.hovering .col.on { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--muted); font-size: 0.84rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ink); }
.ref-filters { margin-top: 12px; }
.ref-stats > .card { background: var(--panel-2); }
.ref-stats .admin-grid { margin-bottom: 20px; }
.pills { display: inline-flex; flex-wrap: wrap; gap: 4px; }
tr.is-picked td { background: var(--panel-3); }
details.as-table { margin-top: 12px; }
details.as-table summary { cursor: pointer; color: var(--muted); font-size: 0.86rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar input[type="search"] { flex: 1 1 240px; width: auto; }
.toolbar select, .action-row select { width: auto; max-width: 100%; }
.toolbar .count { color: var(--muted); font-size: 0.88rem; margin-left: auto; }
.wallets { display: grid; gap: 8px; margin-top: 12px; }
.wallet { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; background: var(--bg-2); border: 2px solid var(--ink); padding: 10px 12px; }
.wallet .amount { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.wallet small { color: var(--muted); }
.wallet .addr { grid-column: 1 / -1; color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.queue { display: grid; gap: 8px; margin-top: 10px; }
.queue-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; align-items: center; background: var(--bg-2); border: 2px solid var(--ink); padding: 10px 12px; font-size: 0.92rem; }
.queue-item small { color: var(--muted); display: block; overflow-wrap: anywhere; }
.drawer { position: fixed; inset: 0; background: rgba(3, 7, 6, 0.7); z-index: 50; display: flex; justify-content: flex-end; }
.drawer-panel { position: relative; width: min(560px, 100%); height: 100%; overflow-y: auto; background: var(--panel); border-left: var(--px) solid var(--ink); box-shadow: inset var(--px) 0 0 var(--line); padding: 26px 24px 40px; }
.drawer-close { position: absolute; top: 14px; right: 14px; background: var(--panel-2); border: var(--px) solid var(--ink); color: var(--text); width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.drawer h2 { font-size: 1.2rem; padding-right: 44px; overflow-wrap: anywhere; text-transform: none; color: var(--gold); }
.drawer h3 { margin-top: 24px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.93rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.action-row input { width: 90px; }
.plan-edit { display: grid; grid-template-columns: 1.2fr 0.7fr 1fr 0.8fr auto; gap: 8px; align-items: end; margin-bottom: 10px; }
.plan-edit label { font-size: 0.8rem; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: start; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 2px solid var(--grid); font-weight: 400; }
.switch-row:last-child { border-bottom: 0; }
.stack > * + * { margin-top: 20px; }
/* painel › jogos indicados: a lista na ordem do app, o formulário na gaveta e a prévia com a cara do card do APP (escuro, cantos redondos) */
.game-list li { align-items: flex-start; flex-wrap: wrap; }
.game-list li.is-off .game-main { opacity: 0.55; }
.game-order { display: grid; gap: 4px; flex: none; }
.game-main { flex: 1; min-width: 220px; overflow-wrap: anywhere; }
.game-main .pill { margin-left: 4px; }
.game-list .action-row { margin-top: 0; flex: none; }
.game-form { display: grid; gap: 14px; margin-top: 16px; }
.game-preview { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid #272c40; border-radius: 10px; background: #151823; color: #e6e8f0; font: 13px/1.4 "Segoe UI", system-ui, sans-serif; overflow-wrap: anywhere; }
.game-preview strong { font-size: 14px; }
.game-preview p { margin: 3px 0; }
.game-preview small { color: #979db3; font-size: 12px; }
.game-preview-badge { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 9px; background: rgba(139, 124, 246, 0.2); color: #8b7cf6; font-size: 17px; font-weight: 700; }
.game-preview-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #6d5df0; color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; vertical-align: middle; }
/* aparência: cor do card (--game-accent, validada e aplicada pelo CSSOM), ícone, banner e o destaque */
.field { display: grid; gap: 6px; font-size: 0.92rem; color: var(--soft); font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
.color-row, .art-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-row input[type="color"] { width: 46px; height: 34px; padding: 0; border: var(--px) solid var(--ink); background: var(--bg-2); cursor: pointer; }
.color-row code { font-family: var(--mono); font-size: 0.85rem; color: var(--text); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.art-thumb { display: grid; place-items: center; flex: none; background: var(--bg-2); border: 2px solid var(--ink); font-size: 0.75rem; font-weight: 400; }
.art-thumb.icon { width: 56px; height: 56px; }
.art-thumb.banner { width: 220px; height: 44px; }
.art-thumb img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
/* imagens da ficha do jogo (16:9), na ordem em que o app mostra */
.art-thumb.shot { width: 160px; height: 90px; }
.game-form textarea { width: 100%; resize: vertical; font: inherit; font-weight: 400; }
.shot-list { display: flex; flex-wrap: wrap; gap: 10px; }
.shot-list:empty { display: none; }
.shot-item { display: grid; gap: 4px; }
.shot-tools { display: flex; gap: 4px; }
/* o botão "Jogar agora" com o design do anunciante (o mesmo do app: sólido, degradê ou contorno) */
.game-preview-cta.cta-solid { background: var(--cta); color: var(--cta-ink); }
.game-preview-cta.cta-gradient { background: linear-gradient(135deg, color-mix(in srgb, var(--cta) 62%, #fff), var(--cta) 55%, color-mix(in srgb, var(--cta) 72%, #000)); color: var(--cta-ink); }
.game-preview-cta.cta-outline { background: color-mix(in srgb, var(--cta) 14%, #151823); box-shadow: inset 0 0 0 2px var(--cta); color: color-mix(in srgb, var(--cta) 80%, #fff); }
.game-preview-cta.big { display: inline-block; padding: 11px 26px; border-radius: 10px; font-size: 15px; font-weight: 700; }
.game-preview-cta.big.cta-solid, .game-preview-cta.big.cta-gradient { box-shadow: 0 6px 22px color-mix(in srgb, var(--cta) 45%, transparent), inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.cta-preview-row { display: flex; justify-content: flex-end; padding: 14px; border: 1px solid #272c40; border-radius: 10px; background: #151823; }
.stack-sm { display: grid; gap: 6px; }
/* painel › ofertas de Diamantes: o interruptor geral, o formulário em seções curtas e a prévia do texto */
.offer-switch-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.offer-switch-row > div { flex: 1; min-width: 220px; }
.offer-switch-row h2 { margin: 0 0 4px; }
.offer-switch.is-on { box-shadow: inset 0 0 0 var(--px) var(--grass), 6px 6px 0 rgba(0, 0, 0, 0.45); }
.pill.big { font-size: 0.95rem; padding: 6px 14px; }
.offer-section { display: grid; gap: 12px; margin: 0; padding: 14px; border: 2px solid var(--line); min-width: 0; }
.offer-section legend { padding: 0 6px; font-weight: 700; color: var(--text); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.weekday-row { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.offer-integration { display: grid; gap: 12px; }
.offer-preview { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid #272c40; border-radius: 10px; background: #151823; color: #e6e8f0; font: 13px/1.4 "Segoe UI", system-ui, sans-serif; overflow-wrap: anywhere; }
.offer-preview strong { font-size: 16px; color: #7fdcff; }
.offer-preview p { margin: 0; }
.offer-preview small, .offer-preview .muted { color: #979db3; }
.offer-eyebrow { text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; color: #f5c542 !important; }
.muted.block { display: block; }
.game-preview { --game-accent: #8b7cf6; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.game-preview-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.game-preview-row > div { flex: 1; min-width: 0; }
.game-preview.accented, .game-preview.spotlight { border-color: color-mix(in srgb, var(--game-accent) 70%, #272c40); }
.game-preview.spotlight { box-shadow: 0 0 0 1px color-mix(in srgb, var(--game-accent) 45%, transparent), 0 8px 26px color-mix(in srgb, var(--game-accent) 22%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--game-accent) 16%, #151823), #151823 60%); }
.game-preview-banner { display: block; width: 100%; aspect-ratio: 5 / 1; object-fit: cover; }
.game-preview-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.game-preview.accented .game-preview-badge, .game-preview.spotlight .game-preview-badge { background: color-mix(in srgb, var(--game-accent) 22%, transparent); color: var(--game-accent); }
.game-preview-cta { flex: none; padding: 6px 12px; border-radius: 8px; background: var(--game-accent); color: var(--game-accent-ink, #10121a); font: 600 12px/1.2 "Segoe UI", system-ui, sans-serif; white-space: nowrap; }
.promo-preview { --game-accent: #8b7cf6; display: flex; align-items: center; gap: 12px; height: 64px; padding: 6px 12px 6px 6px; border-radius: 8px; border: 1px solid #272c40; background: linear-gradient(90deg, color-mix(in srgb, var(--game-accent) 26%, #151823), #151823 75%); color: #e6e8f0; font: 13px/1.35 "Segoe UI", system-ui, sans-serif; overflow: hidden; }
.promo-preview-banner { height: 100%; aspect-ratio: 5 / 1; border-radius: 6px; object-fit: cover; flex: none; }
.promo-preview-icon { width: 46px; height: 46px; border-radius: 10px; flex: none; }
.promo-preview-text { display: grid; flex: 1; min-width: 0; }
.promo-preview-text strong, .promo-preview-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-preview-text small { color: #979db3; }
.game-preview.accented .game-preview-tag, .game-preview.spotlight .game-preview-tag { background: var(--game-accent); color: var(--game-accent-ink, #10121a); }
.promo-preview-ad { flex: none; color: #979db3; font-size: 10.5px; letter-spacing: 0.4px; text-transform: uppercase; }
.game-list-icon { flex: none; width: 40px; height: 40px; border: 2px solid var(--ink); object-fit: cover; }
.game-list-icon.initial { --game-accent: #8b7cf6; display: grid; place-items: center; background: var(--panel-3); color: var(--game-accent); font-weight: 700; }
.game-list-banner { display: block; width: 240px; max-width: 100%; aspect-ratio: 5 / 1; margin: 6px 0 2px; border: 2px solid var(--ink); object-fit: cover; }

/* --------------------------------------------------------------- responsivo */
@media (max-width: 960px) {
  /* minmax(0, …): sem isto, uma tabela ou um endereço comprido alarga a coluna e a página ganha rolagem lateral */
  .hero-grid, .split, .account-grid, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .skills, .quests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 44px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .skills, .quests, .strip-grid { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 56px 0; }
  .invoice-grid, .price-free { grid-template-columns: minmax(0, 1fr); }
  .qr { margin-inline: auto; }
  .plan-edit { grid-template-columns: 1fr 1fr; }
  .btn.big { width: 100%; }
  .pane { height: 124px; }
  .pane .mob { transform-origin: bottom left; scale: 0.75; }
  .pane-head small { display: none; }
  .consent { padding: 8px; }
  .consent-box .sprite { display: none; }
  .consent-actions { flex: 1 1 100%; }
  .consent-actions .btn { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .xp i { width: 62%; }
  .pane .pop { opacity: 1; }
}

/* -------------------------------------------------- busca: título e guias */
/* o h1 da página inicial é a frase que diz o que o site é (a busca lê); o bordão grande continua com a cara de título */
h1.tagline { text-transform: none; text-shadow: none; line-height: 1.4; text-wrap: wrap; }
.slogan { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: 0.01em; text-wrap: balance; font-size: clamp(2.3rem, 5.2vw, 3.9rem); text-transform: uppercase; text-shadow: 4px 4px 0 var(--ink); }

.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--soft); }
.guides.section { padding-top: 40px; }
.guides h1, .guide h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.guide-head { padding: 40px 0 6px; }
.guide-meta { color: var(--muted); font-size: 0.9rem; margin: -2px 0 22px; }
.tldr { background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--line), 5px 5px 0 rgba(0, 0, 0, 0.45); padding: 16px 20px; margin-bottom: 22px; }
.tldr > b { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.tldr ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.tldr li { display: flex; gap: 10px; align-items: baseline; color: var(--soft); }
.tldr li::before { content: "▸"; color: var(--grass); font-family: var(--mono); }
.toc { font-size: 0.93rem; }
.toc > b { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.toc ol { margin: 6px 0 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin-bottom: 4px; color: var(--muted); }
.guide-body { font-size: 1.04rem; }
.guide-body p, .guide-body li { line-height: 1.7; }
.guide-body h2 { scroll-margin-top: 84px; }
.guide-body ul, .guide-body ol { padding-left: 1.3em; margin: 0 0 1.2em; display: grid; gap: 6px; }
.guide-body li::marker { color: var(--gold); }
.guide-body b { color: var(--text); }
.guide-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.guide-body code { color: var(--text); background: var(--bg-2); border: 2px solid var(--ink); padding: 0 5px; }
.guide-body .table-wrap { margin: 4px -6px 20px; }
.guide-body table { background: var(--panel); border: var(--px) solid var(--ink); min-width: 560px; }
.guide-body td { vertical-align: top; color: var(--soft); }
.guide-body td:first-child { color: var(--text); font-weight: 600; }
.note { background: var(--bg-2); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 2px var(--gold-deep); padding: 12px 16px; margin: 20px 0; color: var(--soft); font-size: 0.97rem; }
.note b { color: var(--gold); }
.guide-faq, .guide-cta { margin-top: 40px; }
.guide-faq h2, .guide-related h2 { font-size: 1.35rem; }
.cta-box { display: flex; gap: 24px; align-items: center; }
.cta-box .sprite { flex: none; }
.cta-box h2 { font-size: 1.25rem; color: var(--gold); margin-bottom: 6px; text-transform: none; }
.cta-box p { color: var(--soft); margin: 0; }
.cta-box .cta-row { margin-top: 18px; }
.guide-related { margin-top: 56px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.guide-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--line), 5px 5px 0 rgba(0, 0, 0, 0.45); padding: 18px 20px 16px; transition: transform 0.08s; }
.guide-card:hover { transform: translate(-2px, -2px); }
.guide-card:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.guide-card .kicker { flex: none; font-size: 0.74rem; margin-bottom: 8px; }
.guide-card h2, .guide-card h3 { font-size: 1.08rem; line-height: 1.25; text-transform: none; text-shadow: 2px 2px 0 var(--ink); margin-bottom: 8px; }
.guide-card h2 a, .guide-card h3 a { color: var(--text); }
.guide-card h2 a:focus-visible, .guide-card h3 a:focus-visible { outline: none; }
.guide-card a::after { content: ""; position: absolute; inset: 0; }
.guide-card:hover h2 a, .guide-card:hover h3 a { color: var(--gold); text-decoration: none; }
.guide-card p { color: var(--soft); font-size: 0.94rem; flex: 1; margin-bottom: 10px; }
.guide-card .reward { margin-top: 0; }

/* glossário: cada termo com âncora própria (o endereço com #termo leva direto a ele, e o termo aberto fica em destaque) */
.guide-body dl.glossary { margin: 0 0 1.4em; }
.guide-body dl.glossary dt { color: var(--text); font-weight: 700; margin-top: 14px; scroll-margin-top: 84px; }
.guide-body dl.glossary dt:target { color: var(--gold); }
.guide-body dl.glossary dd { margin: 2px 0 0; color: var(--soft); line-height: 1.7; }
.guide-body kbd { font-family: var(--mono); font-size: 0.85em; background: var(--panel); border: 2px solid var(--ink); box-shadow: inset 0 -2px 0 var(--line); padding: 0 5px; color: var(--text); }
/* celular: o cabeçalho (logo + Entrar + Baixar) passava da largura da tela e a página ganhava rolagem lateral */
@media (max-width: 480px) {
  .top-row { gap: 8px; }
  .brand { gap: 7px; font-size: 1.05rem; }
  .nav { gap: 0; }
  .nav-link { padding: 8px 7px; }
  .top .btn.small { padding: 7px 10px 9px; letter-spacing: 0.03em; }
}
@media (max-width: 370px) {
  .top .brand .sprite { display: none; }
}
@media (max-width: 640px) {
  .toc ol { columns: 1; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .cta-box .sprite { display: none; }
  .guide-head { padding-top: 28px; }
}

/* Conteúdo que o script monta depois de a página abrir (Minha conta, vincular o app): enquanto o "Carregando…"
   (data-loading) está na tela, o que vem depois dele fica guardado e só aparece junto com o conteúdo — senão o rodapé
   e o link de baixo pulavam de lugar quando o conteúdo entrava (o Google Analytics mediu o layout pulando em 5 de 7
   visitas a /conta e em 2 de 5 a /vincular, em setembro de 2026). */
main:has([data-loading]) ~ .foot,
.auth:has([data-loading]) .auth-foot { display: none; }

/* ------------------------------------------ inicial: selos, telas do app, segurança e TopIdle */
.hero-badges { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); border: 2px solid var(--ink); box-shadow: inset 0 0 0 2px var(--line); padding: 4px 11px; font-size: 0.86rem; color: var(--soft); }
.hero-badges li::before { content: "✓"; color: var(--grass); font-family: var(--mono); font-weight: 700; }
.hero-badges a { color: var(--soft); }
.hero-badges a:hover { color: var(--gold); }

.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tour-tab { font: 700 0.9rem var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 2px var(--line), 3px 3px 0 rgba(0, 0, 0, 0.45); padding: 8px 16px; cursor: pointer; }
.tour-tab:hover { color: var(--gold); }
.tour-tab[aria-selected="true"] { color: var(--ink); background: var(--gold); box-shadow: inset 0 -3px 0 var(--gold-deep), 3px 3px 0 rgba(0, 0, 0, 0.45); }
.tour-shot { margin: 0; }
.tour-shot .win { overflow: hidden; }
.tour-shot img { display: block; width: 100%; height: auto; border-top: var(--px) solid var(--ink); }
.tour-shot figcaption { margin-top: 16px; color: var(--soft); font-size: 1.02rem; max-width: 52em; }
.tour-shot figcaption b { display: block; font-family: var(--display); color: var(--gold); font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; text-shadow: 2px 2px 0 var(--ink); margin-bottom: 2px; }

.section.vault { background: radial-gradient(ellipse at 50% 0%, rgba(123, 216, 107, 0.09), transparent 60%), var(--bg); }
.data-map { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.data-side { background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--line), 5px 5px 0 rgba(0, 0, 0, 0.45); padding: 20px 22px; }
.data-side.mine { box-shadow: inset 0 0 0 var(--px) var(--grass-deep), 5px 5px 0 rgba(0, 0, 0, 0.45); }
.data-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.data-head h3 { margin: 0; font-size: 1.2rem; }
.data-head p { margin: 2px 0 0; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.data-side.mine .data-head p { color: var(--grass); }
.data-side .ticks { font-size: 0.96rem; gap: 10px; }
.data-side.ours .ticks li::before { color: var(--muted); }
.data-never { display: flex; gap: 12px; align-items: center; margin: 18px 0 0; background: var(--bg-2); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 2px var(--line); padding: 12px 16px; color: var(--soft); }
.data-never .mark { flex: none; width: 24px; height: 24px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; color: var(--ink); background: var(--blood); border: 2px solid var(--ink); }
.data-never b { color: var(--text); }
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.promise { display: flex; gap: 14px; align-items: flex-start; }
.promise h3 { margin: 4px 0 4px; }
.promise p { margin: 0; color: var(--soft); font-size: 0.95rem; }

.topidle .split { align-items: center; }
.topidle-logo { display: block; width: 194px; height: auto; }
.partner-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 2px solid var(--line); }
.partner-tag { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: var(--ink); background: var(--grass); border: 2px solid var(--ink); padding: 3px 10px; }
.partner-lead { margin: 0 0 10px; color: var(--soft); font-weight: 700; }
.topidle-board .ticks { margin-bottom: 0; color: var(--soft); }
.btn.topidle-btn { color: #fff; background: #ff872e; box-shadow: 0 4px 0 var(--ink), inset 0 -4px 0 #c45f13, inset 0 3px 0 rgba(255, 255, 255, 0.25); }
.btn.topidle-btn:active { box-shadow: 0 1px 0 var(--ink), inset 0 -2px 0 #c45f13; }

@media (max-width: 900px) {
  .data-map, .promises { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tour-tab { padding: 7px 11px; font-size: 0.8rem; }
  .data-side { padding: 16px; }
}
.topidle .section-lead { margin-bottom: 18px; }

/* ---- parceiros (/parceiros e a página de cada jogo) ---- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 8px; }
.partner-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 var(--px) var(--line), 5px 5px 0 rgba(0, 0, 0, 0.45); transition: transform 0.08s; overflow: hidden; }
.partner-card:hover { transform: translate(-2px, -2px); }
.partner-card:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.partner-card-art { display: block; width: 100%; height: auto; aspect-ratio: 5 / 1; object-fit: cover; border-bottom: var(--px) solid var(--ink); image-rendering: auto; }
.partner-card-body { padding: 16px 20px 16px; display: flex; flex-direction: column; flex: 1; }
.partner-card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.partner-card h2, .partner-card h3 { font-size: 1.15rem; line-height: 1.25; text-transform: none; text-shadow: 2px 2px 0 var(--ink); margin: 0; }
.partner-card h2 a, .partner-card h3 a { color: var(--text); }
.partner-card h2 a:focus-visible, .partner-card h3 a:focus-visible { outline: none; }
.partner-card a::after { content: ""; position: absolute; inset: 0; }
.partner-card:hover h2 a, .partner-card:hover h3 a { color: var(--gold); text-decoration: none; }
.partner-card p { color: var(--soft); font-size: 0.95rem; flex: 1; margin: 0 0 10px; }
.partner-icon { width: 48px; height: 48px; flex: none; border: 2px solid var(--ink); background: var(--ink); }
.partner-icon.big { width: 72px; height: 72px; border-width: var(--px); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45); }
.partner-title { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }
.partner-title h1 { margin: 0; }
.partner-title .kicker { margin-bottom: 4px; }
.partner-banner { display: block; width: 100%; height: auto; aspect-ratio: 5 / 1; object-fit: cover; border: var(--px) solid var(--ink); box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45); margin: 8px 0 26px; }
.partner-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 22px 0 6px; }
.partner-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: var(--px) solid var(--ink); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45); }
.lang-note { margin: -6px 0 12px; }
@media (max-width: 640px) {
  .partner-grid { grid-template-columns: minmax(0, 1fr); }
  .partner-title { gap: 12px; }
  .partner-icon.big { width: 56px; height: 56px; }
}
.topidle-art { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #3a2312 0%, #1b120b 70%); border-bottom-color: #ff872e; }
.topidle-art .topidle-logo { width: 46%; max-width: 194px; height: auto; }
.topidle-card { box-shadow: inset 0 0 0 var(--px) #8a4a1c, 5px 5px 0 rgba(0, 0, 0, 0.45); }
.topidle-card .partner-tag { background: #ff872e; }
.topidle-badge { flex: none; display: flex; align-items: center; justify-content: center; width: 150px; height: 72px; background: #1b120b; border: var(--px) solid var(--ink); box-shadow: inset 0 0 0 2px #8a4a1c, 4px 4px 0 rgba(0, 0, 0, 0.45); }
.topidle-badge .topidle-logo { width: 120px; height: auto; }
@media (max-width: 640px) {
  .topidle-badge { width: 110px; height: 56px; }
  .topidle-badge .topidle-logo { width: 90px; }
}
