/* roindex — tema "Sóbrio": ardósia e areia, DM Serif Display + DM Sans.
   A vida vem das ilustrações do jogo (mascotes SD, Kafra, MVP), não de enfeite. */

:root {
  --bg: #f4f1ea;
  --card: #fff;
  --card-2: #faf8f4;
  --ink: #26303a;
  --ink-2: #4a545e;
  --soft: #78818a;
  --line: #e5e0d5;
  --line-2: #efebe3;
  --slate: #2f3a45;
  --slate-2: #222b34;
  --slate-3: #3b4855;
  --sand: #c7a46a;
  --sand-2: #e6d2a6;
  --sand-3: #f7efdd;
  --gold-ink: #7a5d2c;
  --rose: #e2879a;      /* rosa-poring, só em detalhes */
  --live: #3fae6a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(38, 48, 58, .04), 0 4px 16px rgba(38, 48, 58, .05);
  --serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--slate); text-decoration-color: rgba(47, 58, 69, .3); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); text-decoration-color: currentColor; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0; font-variant-numeric: lining-nums; }
/* números sempre na sans, alinhados: votos e preços lidos em coluna */
.num, .kpis dd, .row-stats dd, .mini-kpis dd, .plan span, .price b, .pager, .stat-n { font-family: var(--sans); font-variant-numeric: tabular-nums; }
em { font-style: italic; }
code { font-size: .88em; background: var(--card-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; word-break: break-all; }
pre { background: var(--slate-2); color: #e9e4d8; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.muted { color: var(--soft); }
.small { font-size: 14px; color: var(--ink-2); }
.center { text-align: center; }
.inline { display: inline; margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; padding-top: 32px; }
.narrow-lg { max-width: 880px; padding-top: 28px; }
main { flex: 1; padding-bottom: 56px; }

/* ------------------------------------------------------------ topo */
.top { background: var(--slate-2); color: #e8ebee; position: relative; z-index: 2; }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font: 600 31px/1 var(--serif); letter-spacing: .01em; }
.logo:hover { color: #fff; }
.logo b { font-weight: 600; color: var(--sand); font-style: italic; }
.logo-gem { width: 19px; height: 23px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a, .nav .linkish { color: #aeb7c0; text-decoration: none; padding: 7px 11px; border-radius: 8px; font: 500 15px var(--sans); }
.nav a:hover, .nav .linkish:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; }
.nav .btn { margin-left: 8px; color: var(--slate-2); }
.nav .btn:hover { color: var(--slate-2); background: var(--sand-2); }
.nav-sep { width: 1px; height: 20px; background: #3e4a56; margin: 0 8px; }
.linkish { background: none; border: 0; cursor: pointer; }

/* ------------------------------------------------------------ hero com a ilustração do jogo */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(34, 43, 52, .98) 0%, rgba(34, 43, 52, .95) 42%, rgba(34, 43, 52, .62) 70%, rgba(34, 43, 52, .3) 100%),
    url('/img/hero.jpg') 72% 38% / cover no-repeat, var(--slate-2);
  border-bottom: 3px solid var(--sand);
}
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, rgba(34, 43, 52, .35)); pointer-events: none; }
.hero-row { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 52px; padding-bottom: 44px; flex-wrap: wrap; }
.hero-copy { max-width: 600px; }
.eyebrow { margin: 0 0 10px; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eyebrow.dark { color: var(--gold-ink); }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.1; margin: 0 0 14px; }
.hero h1 em { color: var(--sand-2); font-weight: 500; }
.hero-sub { margin: 0 0 22px; color: #c9d0d7; font-size: 17px; max-width: 52ch; }
.search { display: flex; gap: 8px; max-width: 520px; background: rgba(255, 255, 255, .08); padding: 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(2px); }
.search input { flex: 1; min-width: 0; border: 0; background: #fff; border-radius: 8px; }
.kpis { display: flex; gap: 10px; margin: 0; }
.kpis div { background: rgba(34, 43, 52, .72); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 12px 18px; min-width: 120px; backdrop-filter: blur(6px); }
.kpis dt { font-size: 12px; color: #c9d0d7; letter-spacing: .04em; }
.kpis dd { margin: 2px 0 0; font-size: 26px; line-height: 1.15; font-weight: 600; }
.kpis-col { flex-direction: column; }
.hero-sm {
  background:
    linear-gradient(90deg, rgba(34, 43, 52, .98) 0%, rgba(34, 43, 52, .93) 55%, rgba(34, 43, 52, .78) 100%),
    url('/img/hero.jpg') 70% 35% / cover no-repeat, var(--slate-2);
}
.hero-sm .hero-row { padding-top: 40px; padding-bottom: 34px; align-items: center; }
.hero-art { width: 170px; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }

/* animação de "idle" dos sprites: um quique discreto */
.bob { animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .bob, .live { animation: none !important; } }

/* ------------------------------------------------------------ abas */
.tabbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; }
.tabs { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; text-decoration: none; color: var(--soft); padding: 15px 0 13px; font-weight: 500; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--sand); }
.tabs a { font-size: 16px; }

/* etiquetas da ficha: tons pastel, um por tipo de informação */
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 0; padding: 0; }
.facts li { font-size: 12.5px; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.f-ep   { background: #eaf0f9; color: #3a5684; border-color: #d6e1f2; }
.f-lvl  { background: #f0ecf8; color: #5b4a8b; border-color: #e2daf2; }
.f-rate { background: #e8f4f1; color: #24675b; border-color: #d2ebe4; }
.f-baixa { background: #ebf5ea; color: #33703a; border-color: #d6ebd4; }
.f-media { background: #fbf3df; color: #7c5c14; border-color: #f1e2b9; }
.f-alta  { background: #fbebec; color: #8e3a45; border-color: #f2d5d8; }
.f-date { background: #f4f1ea; color: #6b6253; border-color: #e7e0d2; font-weight: 500; }

/* ------------------------------------------------------------ layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-top: 28px; align-items: start; }
.col-side { display: grid; gap: 16px; position: sticky; top: 70px; }

/* ------------------------------------------------------------ botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 15px/1 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 11px 16px; border-radius: 9px; background: var(--card); border: 1px solid var(--line);
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { color: var(--ink); border-color: #d3ccbd; background: var(--card-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
.btn-sm { padding: 7px 11px; font-size: 14px; border-radius: 7px; }
.btn-lg { padding: 14px 20px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-slate { background: var(--slate); border-color: var(--slate); color: #fff; }
.btn-slate:hover { background: var(--slate-2); border-color: var(--slate-2); color: #fff; box-shadow: 0 4px 12px rgba(34, 43, 52, .25); }
.btn-sand { background: var(--sand); border-color: var(--sand); color: var(--slate-2); }
.btn-sand:hover { background: #d4b47e; border-color: #d4b47e; color: var(--slate-2); box-shadow: 0 4px 14px rgba(199, 164, 106, .35); }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ------------------------------------------------------------ anúncios */
.spot, .spot-open { position: relative; display: block; width: 100%; margin: 0 auto 12px; border-radius: 10px; overflow: hidden; }
.spot-w { aspect-ratio: 720 / 100; max-width: 720px; }
.spot-t { aspect-ratio: 120 / 460; max-width: 120px; }
.spot-b { aspect-ratio: 320 / 270; max-width: 320px; }
.spot { background: var(--slate); box-shadow: var(--shadow); }
.spot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spot-tag { position: absolute; right: 6px; bottom: 5px; font: 600 9px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); background: rgba(34, 43, 52, .55); padding: 3px 5px; border-radius: 4px; }
.spot-open {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  text-decoration: none; color: var(--soft); border: 1px dashed #d5c7a5; background: repeating-linear-gradient(135deg, rgba(247, 239, 221, .7) 0 10px, rgba(247, 239, 221, .35) 10px 20px);
}
.spot-open:hover { color: var(--ink); border-color: var(--sand); }
.spot-k { font: 600 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.spot-open b { font-weight: 600; color: var(--ink); font-size: 15px; }
.spot-open small { font-size: 12px; }
.spot-t.spot-open { padding: 10px; }
.spot-t.spot-open b { font-size: 13px; }
/* Laterais: ficam na faixa do ranking (nunca sobre o topo) e acompanham a rolagem. */
.layout { position: relative; }
.flank { position: absolute; top: 28px; bottom: 0; width: 120px; display: none; }
.flank > * { position: sticky; top: 70px; }
.flank-l { left: -150px; }
.flank-r { right: -150px; }
@media (min-width: 1500px) { .flank { display: block; } }
.vote-wrap { display: grid; grid-template-columns: minmax(0, 620px) 320px; gap: 24px; justify-content: center; align-items: start; padding-top: 32px; }
.vote-side .spot, .vote-side .spot-open { margin: 0; }
.spot-prev { display: grid; place-items: center; width: 100%; border: 1px dashed var(--line); border-radius: 10px; overflow: hidden; background: var(--card-2); color: var(--soft); font-size: 13px; }
.spot-prev img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ linhas do ranking */
.row {
  display: grid; grid-template-columns: 30px 50px minmax(0, 1fr) 124px 84px; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 16px; margin-bottom: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.row:hover { border-color: #d6cfbf; box-shadow: var(--shadow); }
.row-pos { font: 600 25px/1 var(--serif); color: #a5adb5; text-align: center; font-variant-numeric: lining-nums; }
.row-art { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, var(--sand-3), var(--line-2) 70%); overflow: hidden; }
.row-art .mascot { width: 44px; height: 44px; object-fit: contain; transition: transform .2s; }
.row:hover .row-art .mascot { transform: scale(1.08) translateY(-2px); }
.row-main { min-width: 0; }
.row-main h3 { margin: 0 0 1px; font-size: 23px; font-weight: 700; line-height: 1.15; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-main h3 a { color: var(--ink); text-decoration: none; }
.row-main h3 a:hover { color: var(--gold-ink); }
/* chamada em no máximo 2 linhas: a lista fica uniforme, o resto está na página do servidor */
.row-lead { margin: 0 0 2px; color: var(--ink-2); font-size: 14.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { margin: 0; font-size: 12.5px; color: var(--soft); }
.sep { font-style: normal; color: #cfc8ba; margin: 0 2px; }
.row-pos.p1 { color: var(--sand); }
.row-pos.p2 { color: #8f99a5; }
.row-pos.p3 { color: #a8795a; }
.row-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; text-align: center; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.row-stats div + div { border-left: 1px solid var(--line-2); }
.row-stats dt { font-size: 11px; color: var(--soft); letter-spacing: .04em; order: 2; }
.row-stats div { display: flex; flex-direction: column; padding: 0 6px; }
.row-stats dd { margin: 0; font-size: 18px; line-height: 1.15; font-weight: 700; color: var(--ink); }
.row-stats div + div dd { font-size: 15px; font-weight: 600; color: var(--ink-2); padding-top: 2px; }
.row-btn { padding: 9px 0; font-size: 14px; }
.row-btn { padding: 10px 0; }
.row.is-gold { border-color: var(--sand-2); background: linear-gradient(100deg, var(--sand-3) 0%, var(--card) 45%); }
.row.is-gold .row-pos { color: var(--sand); }
.row.is-gold .row-art { background: radial-gradient(circle at 50% 60%, #fff, var(--sand-2) 75%); }
.row-arte { display: block; margin: 8px 0 2px; max-width: 468px; aspect-ratio: 728 / 90; border-radius: 8px; overflow: hidden; background: var(--slate); }
.row-arte img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; padding: 0; }
.chips li { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2); }
.gold-tag {
  display: inline-flex; align-items: center; gap: 4px; font: 700 10px/1 var(--sans); letter-spacing: .12em;
  color: var(--gold-ink); background: var(--sand-3); border: 1px solid var(--sand-2); padding: 3px 7px 3px 4px; border-radius: 999px;
}
.gold-tag img { width: 18px; height: auto; }
.soon { font: 600 11px var(--sans); color: #1f6b43; background: #e5f4ea; border-radius: 999px; padding: 3px 8px; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(63, 174, 106, .5); animation: pulse 2s infinite; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 174, 106, .5); } 70% { box-shadow: 0 0 0 7px rgba(63, 174, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 174, 106, 0); } }

.spot-slot {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; text-decoration: none; color: var(--ink-2);
  margin: 4px 0 14px; padding: 12px 20px; border: 1px dashed #cdbf9f; border-radius: var(--radius); background: rgba(247, 239, 221, .55);
}
.spot-slot img { height: 64px; width: auto; }
.spot-slot small { display: block; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.spot-slot b { font-weight: 500; color: var(--ink); }
.spot-slot em { font-style: normal; font-weight: 600; color: var(--gold-ink); white-space: nowrap; }
.spot-slot:hover { background: var(--sand-3); color: var(--ink-2); }

.pager { display: flex; gap: 6px; justify-content: center; margin: 18px 0 0; }
.pager a, .pager b { min-width: 38px; text-align: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); text-decoration: none; font-weight: 600; }
.pager b { background: var(--slate); color: #fff; border-color: var(--slate); }
.empty { text-align: center; padding: 40px 20px; }
.empty img { height: 110px; width: auto; }
.empty.big h1 { font-size: 48px; margin: 10px 0 6px; }

/* ------------------------------------------------------------ cartões / barra lateral */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 16px; }
.col-side .card { margin: 0; }
.card-h { margin: 0; padding: 16px 20px 0; font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); display: flex; align-items: center; gap: 8px; }
.card-b { padding: 14px 20px 20px; }
.card-b > :first-child { margin-top: 0; }
.card-b > :last-child { margin-bottom: 0; }

.mvp { position: relative; text-align: center; padding: 22px 20px 20px; background: linear-gradient(180deg, var(--slate-2), var(--slate) 70%); color: #fff; border: 0; overflow: hidden; }
.mvp::before { content: ''; position: absolute; inset: -40% -20% auto; height: 220px; background: radial-gradient(circle, rgba(199, 164, 106, .35), transparent 65%); }
.mvp-badge {
  position: relative; display: inline-block; font: 800 15px/1 var(--sans); letter-spacing: .18em; padding: 6px 12px 5px;
  color: #ffe08a; text-shadow: 0 0 10px rgba(255, 196, 64, .7), 0 1px 0 #7a4f00; border: 1px solid rgba(255, 224, 138, .5); border-radius: 6px;
}
.mvp .mascot { position: relative; height: 130px; width: auto; margin: 10px auto 4px; display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }
.mvp-label { position: relative; margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sand); }
.mvp h3 { position: relative; margin: 2px 0; font-size: 31px; }
.mvp h3 a { color: #fff; text-decoration: none; }
.mvp .muted { position: relative; color: #aeb7c0; margin: 0; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px dotted var(--line); }
.feed li:last-child { border: 0; }
.feed a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed a:hover { color: var(--gold-ink); }
.feed time { font-size: 12px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

.kafra { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 18px 18px 18px 10px; align-items: end; overflow: hidden; background: linear-gradient(160deg, var(--card), var(--sand-3)); }
.kafra img { width: 84px; height: auto; margin-bottom: -18px; }
.kafra-say { position: relative; margin: 0 0 8px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink); }
.kafra-say::after { content: ''; position: absolute; left: -7px; bottom: 14px; width: 12px; height: 12px; background: var(--card); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.kafra .muted { font-size: 13px; margin: 0 0 12px; }

.newest { list-style: none; margin: 0; padding: 0; }
.newest li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.newest li:last-child { border: 0; }
.newest img { width: 34px; height: 34px; object-fit: contain; }
.newest a { font-weight: 600; color: var(--ink); text-decoration: none; display: block; }
.newest small { font-size: 12px; color: var(--soft); }

/* ------------------------------------------------------------ página do servidor */
.crumbs { margin: 0 0 18px; font-size: 14px; color: #aeb7c0; }
.crumbs a { color: #d6dce1; }
.crumbs span { margin: 0 6px; }
.crumbs.dark { color: var(--soft); margin: 0 0 14px; }
.crumbs.dark a { color: var(--slate); }
.hero-sm > .wrap { position: relative; z-index: 1; padding-top: 30px; padding-bottom: 34px; }
.srv-head { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.srv-head .mascot { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .4)); }
.srv-title h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1; margin: 0 0 10px; }
.srv-title .hero-sub { margin-bottom: 18px; }
.srv-head .gold-tag { background: rgba(247, 239, 221, .95); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions.center { justify-content: center; }
.detail { padding-top: 24px; }
.srv-arte { display: block; max-width: 728px; aspect-ratio: 728 / 90; margin: 0 0 20px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: var(--slate); }
.srv-arte img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.detail-cols .chips { margin: 0 0 14px; }
.prose { overflow-wrap: anywhere; color: var(--ink-2); }
.sheet { width: 100%; border-collapse: collapse; font-size: 15px; }
.sheet th { text-align: left; font-weight: 400; color: var(--soft); padding: 7px 0; width: 46%; }
.sheet td { padding: 7px 0; font-weight: 600; }
.sheet tr + tr th, .sheet tr + tr td { border-top: 1px solid var(--line-2); }
.chart { width: 100%; height: 130px; display: block; }
.chart rect { fill: #d9cdb3; }
.chart rect:last-child { fill: var(--slate); }
.chart rect:hover { fill: var(--sand); }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--soft); margin: 6px 0 0; }

/* ------------------------------------------------------------ voto */
.vote-card { padding: 26px; }
.vote-top { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.vote-top .mascot { width: 110px; height: 110px; object-fit: contain; flex: none; }
.vote-top h1 { font-size: 40px; margin: 0 0 2px; line-height: 1.1; }
.vote-top .muted { margin: 0; }
.vote-form { display: grid; gap: 14px; margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; }
.vote-done { text-align: center; padding: 30px 26px; }
.vote-done > img { width: 190px; height: auto; }
.vote-done h1 { font-size: 46px; margin: 8px 0 8px; }

/* ------------------------------------------------------------ formulários */
.form { display: grid; gap: 16px; }
.form-grid { grid-template-columns: 1fr 1fr; }
.span2 { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
label .muted { font-weight: 400; }
input, select, textarea {
  font: 16px/1.4 var(--sans); color: var(--ink); width: 100%;
  padding: 11px 13px; border: 1px solid #d8d2c5; border-radius: 9px; background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--sand); }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 600; padding: 0 6px; font-size: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.check:has(input:checked) { background: var(--sand-3); border-color: var(--sand); }
.check input { width: auto; accent-color: var(--slate); }
.picker { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.picker .mascot { width: 84px; height: 84px; object-fit: contain; flex: none; }
.picker label { flex: 1; }

.auth .card { padding: 26px; }
.auth-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.auth-head img { height: 110px; width: auto; flex: none; }
.auth-head h1 { font-size: 34px; margin: 0 0 4px; line-height: 1.1; }
.auth-head p { margin: 0; }

.btn-google { background: #fff; border-color: #d6d9de; color: #3c4043; gap: 10px; }
.btn-google:hover { background: #f7f8fa; color: #202124; }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--soft); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.buy { padding: 26px; }
.buy-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.buy-head img { flex: none; width: auto; max-height: 110px; }
.buy-head h1 { font-size: 40px; margin: 0 0 4px; line-height: 1.1; }
.buy-head p { margin: 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan { position: relative; display: grid; gap: 2px; text-align: center; padding: 14px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; background: var(--card); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan b { font-weight: 600; }
.plan span { font-size: 24px; line-height: 1.2; font-weight: 700; }
.plan small { font-size: 12px; color: var(--soft); }
.plan:has(input:checked) { border-color: var(--sand); background: var(--sand-3); box-shadow: inset 0 0 0 1px var(--sand); }

.ads-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-top: 28px; }
.slots { width: 100%; border-collapse: collapse; font-size: 14px; }
.slots th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.slots td { padding: 12px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.slots td small { display: block; color: var(--soft); font-size: 12px; }
.slots .pr { display: block; font-size: 12px; color: var(--soft); }
.slots .pr b { color: var(--ink); font-size: 14px; }
.nowrap { white-space: nowrap; }
.st { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.st-free { background: #e5f4ea; color: #1f6b43; }
.st-busy { background: var(--sand-3); color: var(--gold-ink); }

.notice { padding: 11px 14px; border-radius: 9px; border: 1px solid; margin: 0 0 14px; font-size: 15px; }
.notice.ok { background: #ecf6ef; border-color: #b5dbc1; color: #1f5a35; }
.notice.warn { background: #fbf4e2; border-color: #e6cf94; color: #6b4c0c; }
.notice.err { background: #fbecea; border-color: #ecb8b0; color: #8a2c22; }

/* ------------------------------------------------------------ painel / admin / páginas */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 30px 0 18px; }
.page-title { font-size: 46px; margin: 30px 0 18px; line-height: 1.1; }
.page-head .page-title { margin: 0; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 16px; }
.panel-server { padding: 22px; }
.panel-top { display: flex; align-items: center; gap: 14px; }
.panel-top .mascot { width: 72px; height: 72px; object-fit: contain; }
.panel-top h2 { font-size: 32px; margin: 0; line-height: 1.1; }
.panel-top p { margin: 2px 0 0; font-size: 13px; }
.panel-server h3 { font-size: 23px; margin: 20px 0 4px; }
.mini-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 0; }
.mini-kpis div { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; }
.mini-kpis dt { font-size: 11px; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.mini-kpis dd { margin: 2px 0 0; font-size: 20px; line-height: 1.2; font-weight: 700; }
.btn-preview { margin: 8px 0; }
.code { margin-top: 10px; }
.code-row { display: flex; gap: 6px; }
.code-row input { font: 13px/1.4 ui-monospace, Consolas, monospace; padding: 9px 11px; }
.panel-server .actions { margin-top: 18px; }
.table-wrap { overflow-x: auto; }
.admin { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin th, .admin td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.admin th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); font-weight: 600; }
.adm-name { display: flex; align-items: center; gap: 8px; }
.adm-name img { width: 28px; height: 28px; object-fit: contain; }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.pill { font: 600 10px var(--sans); background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; color: var(--soft); }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; }
.offer { padding: 24px; text-align: center; }
.offer-art { height: 96px; width: auto; }
.offer h2 { font-size: 36px; margin: 8px 0 2px; }
.offer .steps { text-align: left; }
.offer.is-gold { border-color: var(--sand-2); background: linear-gradient(180deg, var(--sand-3), var(--card) 50%); }
.price { margin: 0 0 14px; color: var(--soft); }
.price b { font-size: 24px; color: var(--ink); font-weight: 700; }
.steps { margin: 0; padding-left: 20px; color: var(--ink-2); }
.steps li { margin: 6px 0; }
.prose-page { padding-top: 28px; }
.prose-page .card-b p, .prose-page .steps li { max-width: 72ch; }

/* ------------------------------------------------------------ painel do administrador */
.adm-head { background: var(--slate-2); color: #fff; border-bottom: 3px solid var(--sand); }
.adm-head .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 26px; flex-wrap: wrap; }
.adm-head h1 { font-size: 40px; margin: 0 0 14px; line-height: 1; }
.adm-head .eyebrow { margin-bottom: 6px; }
.adm-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.adm-tabs a { white-space: nowrap; color: #aeb7c0; text-decoration: none; padding: 11px 14px; border-radius: 9px 9px 0 0; font-weight: 600; font-size: 15px; }
.adm-tabs a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.adm-tabs a[aria-current="page"] { color: var(--ink); background: var(--bg); }
.adm-tabs .count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--sand); color: var(--slate-2); font-size: 11px; text-align: center; }
.adm-main { padding-top: 24px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.tile dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); font-weight: 600; }
.tile dd { margin: 6px 0 0; font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tile small { display: block; margin-top: 6px; color: var(--soft); font-size: 13px; }
.tile.hl { background: linear-gradient(160deg, var(--slate-2), var(--slate)); color: #fff; border: 0; }
.tile.hl dt, .tile.hl small { color: #aeb7c0; }
.tile.hl dd { color: var(--sand-2); }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input { max-width: 340px; }
.toolbar .muted { margin-left: auto; font-size: 14px; }
.admin td.num, .admin th.num { text-align: right; }
.admin tr:hover td { background: var(--card-2); }
.admin .sub { display: block; font-size: 12px; color: var(--soft); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: #e5f4ea; color: #1f6b43; }
.badge.warn { background: #fbf4e2; color: #6b4c0c; }
.badge.err { background: #fbecea; color: #8a2c22; }
.badge.gold { background: var(--sand-3); color: var(--gold-ink); }
.btn-danger { color: #8a2c22; border-color: #ecb8b0; }
.btn-danger:hover { background: #fbecea; color: #8a2c22; border-color: #e09a90; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }

/* ------------------------------------------------------------ menu: Gold */
.nav a.nav-gold { color: #e3c88f; }
.nav a.nav-gold::before { content: '★'; font-size: 11px; margin-right: 5px; color: var(--sand); vertical-align: 1px; }
.nav a.nav-gold:hover, .nav a.nav-gold[aria-current="page"] { color: #f1dcab; background: rgba(199, 164, 106, .12); }

/* ------------------------------------------------------------ busca com atalhos */
.hero { overflow: visible; z-index: 4; }
.search { position: relative; }
.search-pop {
  position: absolute; top: calc(100% + 8px); left: 0; width: min(640px, calc(100vw - 32px)); z-index: 30;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 20, 26, .28); padding: 14px 16px 16px; display: grid; gap: 12px; text-align: left;
}
.search-pop[hidden] { display: none; }
.sp-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sp-group > b { width: 100%; font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.sp-chip { font-size: 13px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); color: var(--ink-2); background: var(--card-2); }
.sp-chip:hover { border-color: var(--sand); color: var(--ink); }
.sp-chip.sp-gold { background: var(--sand-3); color: var(--gold-ink); border-color: var(--sand-2); }
.sp-chip.sp-live { color: #c0392b; }
.sp-results { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.sp-results[hidden] { display: none; }
.sp-hit { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.sp-hit:hover, .sp-hit.on { background: var(--card-2); }
.sp-hit img { width: 28px; height: 28px; object-fit: contain; }
.sp-hit b { display: block; font-weight: 700; }
.sp-hit small { color: var(--soft); font-size: 12px; }
.sp-hit em { font: 700 10px var(--sans); letter-spacing: .1em; font-style: normal; color: var(--gold-ink); background: var(--sand-3); padding: 3px 6px; border-radius: 999px; }
.sp-none { margin: 4px 8px; font-size: 13px; color: var(--soft); }
.tabbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.active-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); white-space: nowrap; }
.active-filter b { color: var(--ink); }
.active-filter a { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line-2); color: var(--ink-2); text-decoration: none; font-size: 11px; }

/* ------------------------------------------------------------ ranking: comentários e ao vivo */
.row-act { display: grid; gap: 6px; justify-items: stretch; }
.cm-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--soft); text-decoration: none; padding: 3px 0; border-radius: 6px; }
.cm-toggle:hover, .cm-toggle.open { color: var(--gold-ink); }
.cm-toggle i { font-style: normal; font-size: 10px; transition: transform .2s; }
.cm-toggle.open i { transform: rotate(180deg); }
.row-cmts { grid-column: 1 / -1; border-top: 1px dashed var(--line); margin: 2px 0 0; padding: 10px 4px 2px 94px; }
.row-cmts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row-cmts li { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; }
.cm-top { display: flex; align-items: center; gap: 8px; }
.cm-top b { font-size: 13px; }
.cm-top time { font-size: 12px; color: var(--soft); margin-left: auto; }
.row-cmts p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.row-cmts .more { margin-top: 8px; }
.live-tag { font: 700 11px/1 var(--sans); letter-spacing: .04em; color: #c0392b; background: #fbeae8; border-radius: 999px; padding: 4px 8px; text-decoration: none; white-space: nowrap; }

/* ------------------------------------------------------------ streams */
.streams-wrap { padding-top: 24px; }
.stream-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stream { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.stream-big { grid-column: 1 / -1; }
.stream .video { border-radius: 0; }
.stream-info { padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.stream-info h3 { width: 100%; margin: 2px 0 0; font-size: 24px; }
.stream-info h3 a { color: var(--ink); text-decoration: none; }
.stream-info p { width: 100%; margin: 0; color: var(--ink-2); font-size: 14px; }
.stream-info form { margin-left: auto; }
.stream-srv { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 4px; }
.stream-srv img { width: 22px; height: 22px; object-fit: contain; }
.pf { font: 700 11px/1 var(--sans); padding: 4px 8px; border-radius: 6px; color: #fff; }
.pf-twitch { background: #9146ff; }
.pf-youtube { background: #e62117; }
.pf-kick { background: #3fa313; }
.channels { list-style: none; margin: 0; padding: 0; }
.channels li { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.channels li:last-child { border: 0; }
.channels form { margin: 0; }
.stream-form { gap: 12px; }

/* ------------------------------------------------------------ botão de tema */
.theme-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: 6px; border-radius: 9px; border: 1px solid #3e4a56; background: transparent; color: #d6dce1; cursor: pointer; }
.theme-btn:hover { background: rgba(255, 255, 255, .06); color: var(--sand); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun, [data-theme="dark"] .theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }

/* ------------------------------------------------------------ ranking: nota e lançamentos */
.rate-mini { display: inline-flex; align-items: baseline; gap: 3px; font: 700 13px var(--sans); color: var(--gold-ink); text-decoration: none; background: var(--sand-3); border-radius: 999px; padding: 3px 8px; }
.rate-mini small { font-weight: 500; color: var(--soft); }
.soon-list { list-style: none; margin: 0; padding: 0; }
.soon-list li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dotted var(--line); font-size: 14px; }
.soon-list li:last-child { border: 0; }
.soon-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.countdown { font-size: 12px; font-weight: 600; color: #1f6b43; white-space: nowrap; font-variant-numeric: tabular-nums; }
.more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--gold-ink); text-decoration: none; }
.sec-title { font-size: 30px; margin: 28px 0 12px; }
.launch { display: grid; grid-template-columns: 50px minmax(0, 1fr) 150px 96px; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.launch h3 { margin: 0; font-size: 23px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.launch h3 a { color: var(--ink); text-decoration: none; }
.launch-when { text-align: center; }
.launch-when b { display: block; font-size: 15px; }
.launch-when .countdown { font-size: 15px; }
.launch-when small { color: var(--soft); font-size: 12px; }

/* ------------------------------------------------------------ página do servidor: redes, galeria, vídeo */
.socials { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.social { font-size: 13px; font-weight: 600; color: #d6dce1; text-decoration: none; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); }
.social:hover { color: var(--sand); border-color: var(--sand); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery a { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--card-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stack > .card + .card { margin-top: 0; }

/* ------------------------------------------------------------ avaliações */
.stars { display: inline-flex; gap: 1px; font-size: 15px; line-height: 1; }
.stars i { font-style: normal; color: #d8d0bf; }
.stars i.on { color: var(--sand); }
.rv-summary { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; }
.rv-score { display: grid; justify-items: center; gap: 4px; min-width: 110px; }
.rv-score b { font: 700 44px/1 var(--sans); }
.rv-score small { color: var(--soft); font-size: 13px; }
.rv-dist { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 200px; display: grid; gap: 4px; }
.rv-dist li { display: grid; grid-template-columns: 30px 1fr 30px; gap: 8px; align-items: center; font-size: 13px; color: var(--soft); }
.rv-dist meter { width: 100%; height: 8px; }
.rv-dist meter::-webkit-meter-bar { background: var(--line-2); border: 0; border-radius: 99px; }
.rv-dist meter::-webkit-meter-optimum-value { background: var(--sand); border-radius: 99px; }
.rv-dist meter::-moz-meter-bar { background: var(--sand); border-radius: 99px; }
.rv-form { display: grid; gap: 10px; margin-bottom: 16px; }
.stars-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars-pick input { position: absolute; opacity: 0; pointer-events: none; }
.stars-pick label { font-size: 30px; line-height: 1; color: #d8d0bf; cursor: pointer; font-weight: 400; transition: color .1s, transform .1s; }
.stars-pick label:hover, .stars-pick label:hover ~ label, .stars-pick input:checked ~ label { color: var(--sand); }
.stars-pick label:hover { transform: scale(1.12); }
.stars-pick input:focus-visible + label { outline: 2px solid var(--sand); border-radius: 4px; }
.rv-login { margin: 0 0 14px; }
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv { padding: 12px 0; border-top: 1px solid var(--line-2); }
.rv-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-top b { font-size: 14px; }
.rv-top time { font-size: 12px; color: var(--soft); }
.rv-top form { margin: 0 0 0 auto; }
.rv-top .linkish { color: var(--soft); font-size: 12px; text-decoration: underline; }
.rv p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; white-space: pre-line; }

/* ------------------------------------------------------------ upload e galeria no formulário */
.field-upload { display: grid; gap: 8px; }
.uploader { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uploader label { display: inline-flex; font-size: 14px; cursor: pointer; }
.up-msg { font-size: 13px; color: var(--soft); }
.up-msg.ok { color: #2f7a46; }
.up-msg.err { color: #a2392e; }
.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gallery-edit:empty { display: none; }
.gallery-edit figure { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--card-2); }
.gallery-edit img { width: 100%; height: 100%; object-fit: cover; }
.gallery-edit button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(34, 43, 52, .8); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.socials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); display: grid; gap: 10px; }

/* ------------------------------------------------------------ estatísticas */
.chart-lg { height: 150px; }
.chart .b-votes { fill: var(--slate); }
.chart .b-clicks { fill: var(--sand); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend i.b-votes { background: var(--slate); }
.legend i.b-clicks { background: var(--sand); }
.mini-3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }

/* ------------------------------------------------------------ kit de recompensa */
.dl-grid { display: grid; gap: 8px; }
.dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--card-2); }
.dl b { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.dl small { grid-column: 1; color: var(--soft); }
.dl span { grid-row: 1 / 3; grid-column: 2; font-weight: 700; color: var(--gold-ink); }
.dl:hover { border-color: var(--sand); }

/* ------------------------------------------------------------ tema escuro */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #13181e;
  --card: #1a2128;
  --card-2: #20282f;
  --ink: #e8e4db;
  --ink-2: #c3c9cf;
  --soft: #8d97a1;
  --line: #2b343e;
  --line-2: #242c35;
  --slate: #3d4b5a;
  --slate-2: #0e1317;
  --sand-3: #2a251a;
  --gold-ink: #e3c88f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .25);
}
[data-theme="dark"] a:not(.btn):not(.logo):not(.social):not(.rate-mini):not(.more) { color: #c9d3dc; text-decoration-color: rgba(201, 211, 220, .3); }
[data-theme="dark"] a:not(.btn):not(.logo):hover { color: var(--sand); }
[data-theme="dark"] .row-main h3 a, [data-theme="dark"] .launch h3 a, [data-theme="dark"] .soon-list a, [data-theme="dark"] .feed a, [data-theme="dark"] .newest a { color: var(--ink); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: var(--card-2); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .search input { background: #f4f1ea; color: #26303a; }
[data-theme="dark"] .btn:hover { border-color: #3a4552; }
[data-theme="dark"] .btn-slate { border-color: #4a5a6b; }
[data-theme="dark"] .btn-slate:hover { background: #4a5a6b; }
[data-theme="dark"] .btn-google { background: #fff; color: #3c4043; }
[data-theme="dark"] .notice.ok { background: rgba(63, 174, 106, .12); border-color: rgba(63, 174, 106, .35); color: #9fdab3; }
[data-theme="dark"] .notice.warn { background: rgba(230, 190, 90, .1); border-color: rgba(230, 190, 90, .35); color: #ecd49a; }
[data-theme="dark"] .notice.err { background: rgba(220, 90, 75, .12); border-color: rgba(220, 90, 75, .35); color: #f0aaa1; }
[data-theme="dark"] .f-ep { background: rgba(110, 150, 220, .14); color: #a9c2ea; border-color: rgba(110, 150, 220, .25); }
[data-theme="dark"] .f-lvl { background: rgba(150, 125, 220, .14); color: #c4b5ec; border-color: rgba(150, 125, 220, .25); }
[data-theme="dark"] .f-rate { background: rgba(80, 180, 160, .13); color: #98d7c8; border-color: rgba(80, 180, 160, .25); }
[data-theme="dark"] .f-baixa { background: rgba(100, 180, 100, .13); color: #a6d8a6; border-color: rgba(100, 180, 100, .25); }
[data-theme="dark"] .f-media { background: rgba(225, 180, 80, .13); color: #ebcf8e; border-color: rgba(225, 180, 80, .25); }
[data-theme="dark"] .f-alta { background: rgba(225, 110, 125, .13); color: #f0aeb7; border-color: rgba(225, 110, 125, .25); }
[data-theme="dark"] .f-date { background: rgba(255, 255, 255, .05); color: #b9b2a5; border-color: rgba(255, 255, 255, .1); }
[data-theme="dark"] .badge.ok, [data-theme="dark"] .st-free, [data-theme="dark"] .soon { background: rgba(63, 174, 106, .15); color: #9fdab3; }
[data-theme="dark"] .badge.warn { background: rgba(230, 190, 90, .14); color: #ecd49a; }
[data-theme="dark"] .badge.err { background: rgba(220, 90, 75, .15); color: #f0aaa1; }
[data-theme="dark"] .countdown { color: #9fdab3; }
[data-theme="dark"] .live-tag { background: rgba(220, 70, 60, .16); color: #f19a90; }
[data-theme="dark"] .search-pop { box-shadow: 0 18px 48px rgba(0, 0, 0, .55); }
[data-theme="dark"] .spot-open { border-color: #4a4232; background: repeating-linear-gradient(135deg, rgba(199, 164, 106, .07) 0 10px, rgba(199, 164, 106, .03) 10px 20px); }
[data-theme="dark"] .chart rect { fill: #4b4637; }
[data-theme="dark"] .chart rect:last-child { fill: var(--sand); }
[data-theme="dark"] .chart .b-votes, [data-theme="dark"] .legend i.b-votes { fill: #8fa3b8; background: #8fa3b8; }
[data-theme="dark"] .stars i, [data-theme="dark"] .stars-pick label { color: #3f4750; }
[data-theme="dark"] .stars i.on { color: var(--sand); }
[data-theme="dark"] .stars-pick label:hover, [data-theme="dark"] .stars-pick label:hover ~ label, [data-theme="dark"] .stars-pick input:checked ~ label { color: var(--sand); }
[data-theme="dark"] .row-pos { color: #66717c; }
[data-theme="dark"] .row-pos.p1 { color: var(--sand); }
[data-theme="dark"] .mvp { background: linear-gradient(180deg, #0e1317, #1a2128 70%); }
[data-theme="dark"] .kafra { background: linear-gradient(160deg, var(--card), #262217); }
[data-theme="dark"] .row.is-gold { background: linear-gradient(100deg, #2a251a 0%, var(--card) 45%); }
[data-theme="dark"] .adm-tabs a[aria-current="page"] { color: var(--ink); }
[data-theme="dark"] img.mascot, [data-theme="dark"] .row-art { filter: saturate(.95); }

/* ------------------------------------------------------------ rodapé */
.foot { background: var(--slate-2); color: #aeb7c0; font-size: 14px; border-top: 3px solid var(--sand); }
.foot-row { display: flex; justify-content: space-between; gap: 30px; padding-top: 34px; padding-bottom: 22px; flex-wrap: wrap; }
.foot-brand p { margin: 10px 0 0; max-width: 46ch; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.foot-links a { color: #d6dce1; text-decoration: none; }
.foot-links a:hover { color: var(--sand); }
.foot-legal { border-top: 1px solid #34404b; padding-top: 16px; padding-bottom: 26px; font-size: 12.5px; color: #8692a0; }

/* ------------------------------------------------------------ responsivo */
@media (max-width: 1020px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .detail-cols { grid-template-columns: minmax(0, 1fr); }
  .srv-head { grid-template-columns: 120px minmax(0, 1fr); }
  .srv-head .mascot { width: 120px; height: 120px; }
  .srv-head .kpis { grid-column: 1 / -1; flex-direction: row; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .ads-grid { grid-template-columns: minmax(0, 1fr); }
  .adm-grid { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vote-wrap { grid-template-columns: minmax(0, 1fr); }
  .vote-side { justify-self: center; width: 100%; max-width: 320px; }
}
@media (max-width: 720px) {
  .nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .nav a, .nav .linkish { white-space: nowrap; }
  .hero { background:
    linear-gradient(180deg, rgba(34, 43, 52, .93), rgba(34, 43, 52, .86)),
    url('/img/hero.jpg') 70% 30% / cover no-repeat, var(--slate-2); }
  .hero-row { padding-top: 34px; padding-bottom: 28px; }
  .kpis { width: 100%; }
  .kpis div { flex: 1; min-width: 0; padding: 10px 12px; }
  .kpis dd { font-size: 24px; }
  .row { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "art main main" "pos votes btn"; gap: 10px 12px; padding: 14px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .row-act { grid-area: btn; }
  .row-btn { padding: 9px 20px; }
  .row-cmts { padding-left: 4px; }
  .stream-grid { grid-template-columns: minmax(0, 1fr); }
  .channels li { grid-template-columns: auto 1fr auto; }
  .tabbar-row { flex-wrap: wrap; }
  .launch { grid-template-columns: 50px minmax(0, 1fr); }
  .launch-when { grid-column: 2; text-align: left; }
  .launch .row-btn { grid-column: 2; justify-self: start; padding: 9px 20px; }
  .socials-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-summary { gap: 14px; }
  .buy-head { flex-direction: column; align-items: flex-start; }
  .row-art { grid-area: art; width: 56px; height: 56px; align-self: start; }
  .row-art .mascot { width: 50px; height: 50px; }
  .row-main { grid-area: main; }
  .row-pos { grid-area: pos; font-size: 20px; }
  .row-stats { grid-area: votes; border: 0; text-align: left; justify-self: start; }
  .row-stats div { padding: 0 14px 0 0; }
  .row-stats div + div { padding-left: 14px; }
  .row-btn { grid-area: btn; padding: 10px 22px; }
  .row-main h3 { font-size: 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .mini-kpis { grid-template-columns: 1fr 1fr; }
  .srv-head { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .srv-head .mascot { width: 100px; height: 100px; }
  .spot-slot { grid-template-columns: auto 1fr; }
  .spot-slot em { grid-column: 2; }
  .hero-art { display: none; }
}
