:root {
  --bg: #F3F6FB;
  --surface: #FFFFFF;
  --surface-2: #F6F8FC;
  --line: #E4EAF3;
  --ink: #0F1B33;
  --ink-2: #4A5672;
  --ink-3: #6B7790; /* 4,5:1 no branco */
  /* paleta: azul-noite (marca), sol (ação), ouro (pódio), céu (links), mandacaru e barro (voto) */
  --navy: #0A1638;
  --navy-2: #12306E;
  --sun: #FFB21A;
  --sun-ink: #F59E00;
  --sun-soft: #FFF3D6;
  --blue: #1F6BFF;
  --blue-ink: #1452D8;
  --blue-soft: #E9F1FF;
  --gold: #FFB020;
  --gold-soft: #FFF4DC;
  --silver: #9AA8BD;
  --bronze: #E08A4B;
  --orange: #FF7A1A;
  --up: #12A866;
  --up-soft: #E3F7EC;
  --down: #EF4452;
  --down-soft: #FDE8EA;
  --rail-w: 380px;
  --r-lg: 22px;
  --r: 16px;
  --shadow: 0 1px 2px rgba(16, 36, 94, .04), 0 6px 22px rgba(16, 36, 94, .06);
  --shadow-lg: 0 2px 6px rgba(16, 36, 94, .06), 0 18px 40px rgba(16, 36, 94, .10);
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 500 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 800; }
svg { display: block; }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
  height: 72px; padding: 0 24px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand img { filter: drop-shadow(0 4px 10px rgba(31, 107, 255, .3)); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-size: 21px; letter-spacing: -.03em; }
.brand-txt span { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.search { flex: 1; max-width: 440px; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 44px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; transition: border-color .15s, background .15s; }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2; flex-shrink: 0; }
.search input { border: 0; outline: 0; background: none; width: 100%; }
.search:focus-within { border-color: var(--blue); background: var(--surface); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip-stat { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; font-size: 14px; white-space: nowrap; }
.chip-stat[hidden] { display: none; }
.chip-stat small { font-weight: 600; color: var(--ink-3); font-size: 12px; }

.btn { border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s; display: inline-flex; align-items: center; gap: 8px; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(31, 107, 255, .3); }
.btn.primary:hover { background: var(--blue-ink); }
.btn.soft { background: var(--blue-soft); color: var(--blue-ink); }
.btn.soft:hover { background: #DCE8FF; }
.btn.white { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.me { display: flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.me:hover { border-color: #CBD5E4; }
.me .pav { width: 34px; height: 34px; font-size: 13px; }
.me-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.me-info b { font-size: 13.5px; }
.me-info small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.me.anon { padding: 11px 20px; background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; font-size: 14px; box-shadow: 0 6px 16px rgba(31, 107, 255, .3); }

/* ---------- avatares e ícones ---------- */
.bav { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; flex-shrink: 0; letter-spacing: -.02em; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08); }
.bav.logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bav.logo img { width: 100%; height: 100%; object-fit: cover; }
.pav { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- topo da home: guia da cidade ---------- */
/* a foto entra sozinha quando existir public/img/hero.jpg; sem ela fica o céu de fim de tarde */
.cityhero {
  position: relative; padding: 64px 24px 0; margin-bottom: 92px; color: #fff;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(8, 18, 42, .55) 0%, rgba(8, 18, 42, 0) 100%),
    linear-gradient(180deg, rgba(8, 18, 42, .6) 0%, rgba(8, 18, 42, .66) 55%, rgba(8, 18, 42, .85) 100%),
    url('/img/hero.jpg') center 40% / cover no-repeat,
    radial-gradient(90% 120% at 15% 110%, #FF8A3D 0%, rgba(255, 138, 61, 0) 55%),
    radial-gradient(70% 90% at 90% 0%, #5B4BDB 0%, rgba(91, 75, 219, 0) 60%),
    linear-gradient(160deg, #10224F 0%, #1B3A8A 55%, #2B2F7A 100%);
}
.ch-inner { max-width: 1060px; margin: 0 auto; text-align: center; padding-bottom: 44px; }
.ch-eyebrow { margin: 0 0 12px; font-size: 14.5px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.cityhero h1 { margin: 0; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.cityhero h1 em { font-style: normal; color: #FFC94A; }
.ch-sub { margin: 12px 0 28px; font-size: 16px; color: rgba(255, 255, 255, .82); font-weight: 600; }
.ch-search { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: center; max-width: 900px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); color: var(--ink); }
.ch-search label { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 50px; min-width: 0; }
.ch-search label + label { border-left: 1px solid var(--line); }
.ch-search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ch-search input, .ch-search select { border: 0; outline: 0; background: none; width: 100%; font-size: 15px; font-weight: 600; color: var(--ink); min-width: 0; }
.ch-search select { cursor: pointer; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B96AC' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 16px no-repeat; padding-right: 22px; }
.ch-go { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 800; font-size: 15.5px; box-shadow: 0 8px 20px rgba(31, 107, 255, .35); }
.ch-go:hover { background: var(--blue-ink); }
.ch-go svg { stroke: #fff; }
.ch-chips { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ch-chips span { font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, .85); margin-right: 4px; }
.ch-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; font-size: 13px; backdrop-filter: blur(6px); transition: background .15s; }
.ch-chips button:hover { background: rgba(255, 255, 255, .2); }
.ch-chips svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ch-row { position: relative; z-index: 2; max-width: 1060px; margin: 0 auto -72px; }
.ch-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.ch-cards::-webkit-scrollbar { display: none; }
.ch-card { flex: 0 0 calc((100% - 48px) / 5); scroll-snap-align: start; }
.ch-arrow { position: absolute; top: 50%; transform: translateY(-60%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; box-shadow: var(--shadow-lg); display: grid; place-items: center; padding-bottom: 3px; }
.ch-arrow.prev { left: -18px; } .ch-arrow.next { right: -18px; }
.ch-arrow:hover { background: var(--blue); color: #fff; }
.ch-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px 14px; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); transition: transform .15s; }
.ch-card:hover { transform: translateY(-4px); }
.ch-card b { font-size: 14.5px; line-height: 1.2; }
.ch-card span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.ch-card i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-top: 8px; }
.ch-card i svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-home .cats { display: none; }
/* ---------- menu, abas e páginas ---------- */
.top .search { display: none; }
.topnav { display: flex; gap: 4px; margin: 0 auto; }
.topnav a, .me, .btn { white-space: nowrap; }
@media (max-width: 1280px) { #btn-suggest { display: none; } .topnav a { padding: 9px 12px; } }
.topnav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.topnav a:hover { background: var(--surface-2); color: var(--ink); }
.topnav a.on { background: var(--blue-soft); color: var(--blue-ink); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--down); display: inline-block; animation: blink 1.4s infinite; }
.tabbar { display: none; }
@media (max-width: 1000px) {
  .topnav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px max(6px, env(safe-area-inset-bottom)); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-decoration: none; }
  .tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: var(--blue); }
  .tabbar .live-dot { position: absolute; top: 5px; left: calc(50% + 9px); }
  .chat-fab { display: none !important; }
  /* no ranking o chat continua a um toque: barra com a última mensagem acima das abas */
  body:not([data-page="chat"]) .chat-fab { display: flex !important; bottom: calc(66px + env(safe-area-inset-bottom)); padding: 8px 12px 8px 8px; border-radius: 16px; }
  body:not([data-page="chat"]) .fab-ico { width: 36px; height: 36px; border-radius: 12px; }
  body:not([data-page="chat"]) .main { padding-bottom: 150px; }
}
/* cada página mostra só o que é dela */
[data-page="home"] .cats, [data-page="chat"] .cats, [data-page="como"] .cats { display: none; }
[data-page="chat"] .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); max-width: 1320px; margin: 0 auto; }
[data-page="chat"] .rail { padding-left: 4px; }
[data-page="chat"] .rail > .mission { display: none; }
[data-page="chat"] .mission-m { display: block; margin-bottom: 4px; }
[data-page="como"] .main, [data-page="home"] .main { max-width: 1120px; }
.rk-head { margin: 22px 0 6px; }
.rk-head h1 { margin: 0; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.03em; font-weight: 800; }
.rk-head p { margin: 4px 0 0; color: var(--ink-2); font-weight: 600; }
.rk-filters { display: flex; gap: 10px; margin: 16px 0 6px; flex-wrap: wrap; }
.rk-filters label { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; min-width: 0; }
.rk-filters label:focus-within { border-color: var(--blue); }
.rk-filters svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.rk-q { flex: 1 1 240px; }
.rk-sel { flex: 0 1 260px; }
.rk-filters input, .rk-filters select { border: 0; outline: 0; background: none; width: 100%; font-size: 14.5px; font-weight: 600; color: var(--ink); min-width: 0; }
.rk-filters select { cursor: pointer; }
.more { display: flex; margin: 16px auto 0; }
.chat-teaser { display: flex; flex-direction: column; gap: 4px; padding: 16px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.chat-teaser:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ct-msg { display: flex; gap: 10px; align-items: flex-start; padding: 6px 2px; }
.ct-msg p { margin: 0; font-size: 14px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ct-empty { margin: 4px 0 10px; color: var(--ink-2); font-size: 14px; }
.chat-teaser .btn { align-self: flex-start; margin-top: 10px; }
.grid-como { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.grid-como .box, .main > .box { padding: 18px; }
.grid-como .lin, .lin { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.grid-como .lin:first-of-type { border-top: 0; }
.grid-como .lin b { color: var(--blue-ink); }
.main > .card.box { margin-top: 12px; }
@media (max-width: 1000px) {
  .main { padding-bottom: 96px; }
  [data-page="chat"] .layout { display: flex; flex-direction: column; }
  [data-page="chat"] .chat { position: static; transform: none; transition: none; order: -1; flex: none; height: calc(100dvh - 150px); border-radius: 0; z-index: 1; }
  [data-page="chat"] .chat-close { display: none; }
  [data-page="chat"] .col { order: 1; }
  .grid-como { grid-template-columns: 1fr; }
  .toasts { bottom: 80px; }
  .cookie { bottom: 76px; }
}
/* pódio de cada categoria */
.tops { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.top3 { position: relative; overflow: hidden; padding: 6px 6px 8px; }
.top3::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.top3-head { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 12px 10px 8px; text-align: left; }
.top3-head .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.top3-head .dot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.top3-head b { font-size: 15px; }
.top3-head .see { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--blue); }
.top3-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.top3-row:hover { background: var(--surface-2); }
.top3-row .rank { width: 26px; height: 26px; font-size: 12.5px; flex-shrink: 0; }
.top3-row .nm { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top3-row .nm small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.top3-row .sc { font-weight: 800; font-size: 14px; padding: 4px 9px; border-radius: 9px; }
.tops + .stats { margin-top: 24px; }
.is-home .layout { margin-top: 16px; }
.is-home .rail { padding-top: 0; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--blue); background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; font-size: 13px; }
.fchip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* ---------- categorias ---------- */
.cats { display: flex; gap: 8px; padding: 18px 24px 6px; overflow-x: auto; scrollbar-width: none; max-width: 1060px; margin: 0 auto; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--ink-2); transition: border-color .15s, background .15s; }
.cat .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.cat .dot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cat:hover { border-color: #CBD5E4; color: var(--ink); }
.cat[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 1fr var(--rail-w); align-items: start; }
.col { min-width: 0; }
.main { padding: 8px 24px 80px; max-width: 1060px; margin: 0 auto; }
.rail { position: sticky; top: 72px; height: calc(100dvh - 72px); display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 18px 0; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid rgba(228, 234, 243, .7); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.section-head h2 { font-size: 20px; letter-spacing: -.02em; margin: 0; font-weight: 800; }
.section-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 13.5px; }
.linkish { background: none; border: 0; color: var(--blue); font-weight: 700; padding: 0; font-size: 14px; white-space: nowrap; }
.linkish:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; margin-top: 10px; min-height: 290px;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  background: radial-gradient(120% 140% at 100% 0%, #FFF1D6 0%, rgba(255, 241, 214, 0) 45%), linear-gradient(135deg, #D7E7FF 0%, #E9F2FF 55%, #F4F8FF 100%);
  box-shadow: var(--shadow);
}
.hero-txt { position: relative; z-index: 2; padding: 34px 0 34px 36px; }
.hello { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--blue-ink); background: rgba(255, 255, 255, .75); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 12px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p { margin: 0 0 22px; color: var(--ink-2); max-width: 40ch; font-size: 15.5px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art { position: relative; align-self: end; height: 100%; min-height: 260px; }
.hero-art svg { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; }

/* ---------- números ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 16px; }
.stat b { display: block; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

/* ---------- blocos de categoria ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; border: 0; text-align: left; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile b { display: block; font-size: 14.5px; line-height: 1.2; }
.tile span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.tile .arrow { margin-left: auto; color: var(--ink-3); font-size: 18px; }

/* ---------- duas colunas ---------- */
.split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; align-items: start; }
.split .section-head { margin-top: 28px; }

/* ---------- lista ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.row { display: grid; grid-template-columns: 34px 48px 1fr auto auto; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; border: 1px solid transparent; }
.row:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.row.flash { animation: flash 1.4s; }
@keyframes flash { 0% { border-color: var(--blue); background: var(--blue-soft); } 100% { border-color: transparent; background: var(--surface); } }
.pos { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; }
.rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--surface-2); color: var(--ink-2); }
.rank.r1 { background: linear-gradient(135deg, #FFD45C, #FFA41B); color: #fff; }
.rank.r2 { background: linear-gradient(135deg, #C9D3E1, #97A6BC); color: #fff; }
.rank.r3 { background: linear-gradient(135deg, #F4B07E, #DB7C3A); color: #fff; }
.move { font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.move.up { color: var(--up); }
.move.down { color: var(--down); }
.move.same { color: var(--ink-3); }
.info { min-width: 0; }
.info h3 { margin: 0; font-size: 15.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; letter-spacing: -.01em; }
.info p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.info .st { color: var(--gold); }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.tag.hot { background: #FFEBDD; color: #D85A00; }
.tag.new { background: var(--up-soft); color: var(--up); }
.score { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 62px; height: 52px; border-radius: 14px; line-height: 1; }
.score b { font-size: 21px; letter-spacing: -.03em; }
.score small { font-size: 10px; font-weight: 700; margin-top: 3px; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.s-top { background: var(--up-soft); color: #0B8350; }
.s-good { background: var(--blue-soft); color: var(--blue-ink); }
.s-mid { background: var(--gold-soft); color: #B07300; }
.s-low { background: var(--down-soft); color: #C42D3A; }
.votes { display: flex; gap: 6px; }
.vote { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-size: 13px; color: var(--ink-2); transition: transform .1s, background .15s, border-color .15s; }
.vote svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vote.up:hover { border-color: var(--up); color: var(--up); }
.vote.down:hover { border-color: var(--down); color: var(--down); }
.vote:active { transform: scale(.92); }
.vote.on.up { background: var(--up); border-color: var(--up); color: #fff; }
.vote.on.down { background: var(--down); border-color: var(--down); color: #fff; }
.pop { animation: pop .35s; }
@keyframes pop { 40% { transform: scale(1.2); } }
.empty { padding: 36px 10px; text-align: center; color: var(--ink-3); background: var(--surface); border-radius: 18px; }

/* ---------- top moradores ---------- */
.people { padding: 8px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.person.you { background: var(--blue-soft); }
.person .n { width: 26px; text-align: center; font-weight: 800; color: var(--ink-3); }
.person .n.r1, .person .n.r2, .person .n.r3 { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; }
.person .n.r1 { background: linear-gradient(135deg, #FFD45C, #FFA41B); }
.person .n.r2 { background: linear-gradient(135deg, #C9D3E1, #97A6BC); }
.person .n.r3 { background: linear-gradient(135deg, #F4B07E, #DB7C3A); }
.person .who { min-width: 0; flex: 1; line-height: 1.2; }
.person .who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .who span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.person .xp { font-weight: 800; font-size: 13.5px; color: var(--blue-ink); white-space: nowrap; }

/* ---------- líderes ---------- */
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.leader { position: relative; padding: 16px; cursor: pointer; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.leader:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.leader::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.leader .lbl { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 12px; }
.leader .lbl .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.leader .lbl .dot svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.leader .body { display: flex; align-items: center; gap: 12px; }
.leader h3 { margin: 0; font-size: 15px; line-height: 1.2; font-weight: 800; }
.leader .crown { font-size: 12px; color: #B07300; font-weight: 800; }
.leader .score { margin-left: auto; }

.how { margin-top: 28px; padding: 20px 22px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.how h3 { margin: 0 0 6px; font-size: 16px; }
.how ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }

/* ---------- cabeçalho da categoria ---------- */
.cat-hero { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 26px; margin-top: 10px; position: relative; overflow: hidden; }
.cat-hero .ico { width: 64px; height: 64px; border-radius: 20px; box-shadow: 0 10px 22px rgba(0, 0, 0, .12); }
.cat-hero .ico svg { width: 30px; height: 30px; }
.cat-hero h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; line-height: 1.1; font-weight: 800; }
.cat-hero p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.cat-acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* compartilhar: folha com texto pronto */
#share-modal .sh { position: relative; text-align: left; }
.sh-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink-2); font-size: 15px; cursor: pointer; }
.sh .sh-sub { font-weight: 700; color: var(--blue-ink, #1452D8); }
.sh-msg { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: 14.5px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.sh-msg span { color: var(--blue); word-break: break-all; }
.sh-btns { display: grid; gap: 8px; margin-top: 4px; }
.sh-btns .btn { width: 100%; justify-content: center; height: 48px; font-size: 15px; }
.sh-2 { display: flex; gap: 8px; }
.sh-ig { background: linear-gradient(90deg, #F58529, #DD2A7B 55%, #8134AF); color: #fff; }
.sh-ig svg { stroke: #fff; }
.sh-wa { background: #25D366; color: #fff; text-decoration: none; }
.nick-ref { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-weight: 700; color: var(--ink) !important; }
.dl-share { width: 100%; justify-content: center; margin-top: 10px; }

/* ---------- pódio ---------- */
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: end; margin: 18px 0 16px; padding: 22px 18px 0; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; }
.pod .ring { position: relative; padding: 4px; border-radius: 50%; background: var(--ringc); margin-bottom: 10px; transition: transform .15s; }
.pod:hover .ring { transform: translateY(-3px); }
.pod .ring .bav { width: 66px; height: 66px; border-radius: 50%; font-size: 21px; border: 3px solid #fff; }
.pod.p1 .ring .bav { width: 84px; height: 84px; font-size: 26px; }
.pod .crownico { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 26px; filter: drop-shadow(0 3px 4px rgba(176, 115, 0, .35)); }
.pod h3 { font-size: 15px; margin: 0; line-height: 1.2; font-weight: 800; }
.pod .where { font-size: 12px; color: var(--ink-3); margin: 2px 0 8px; font-weight: 600; }
.pod .score { height: 44px; min-width: 70px; margin-bottom: 12px; }
.pod .score b { font-size: 22px; }
.pod.p1 .score b { font-size: 26px; }
.pedestal { width: 100%; border-radius: 18px 18px 0 0; display: grid; place-items: start center; padding-top: 12px; font-size: 30px; font-weight: 800; color: rgba(255, 255, 255, .95); box-shadow: inset 0 -16px 24px rgba(0, 0, 0, .06); }
.p1 .pedestal { height: 112px; background: linear-gradient(180deg, #FFD45C, #FFB020); }
.p2 .pedestal { height: 84px; background: linear-gradient(180deg, #D6DEEA, #A9B6C9); }
.p3 .pedestal { height: 64px; background: linear-gradient(180deg, #F8C39B, #E08A4B); }

/* ---------- missão do dia ---------- */
.mission { padding: 18px 20px; flex-shrink: 0; }
.mission h3 { margin: 0; font-size: 16px; font-weight: 800; }
.mission-body { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.ringbox { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.ringbox svg { width: 88px; height: 88px; transform: rotate(-90deg); }
.ringbox .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.05; }
.ringbox .c b { font-size: 20px; }
.ringbox .c span { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.mission-txt b { display: block; font-size: 14px; }
.mission-txt p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); }
.week { display: flex; justify-content: space-between; margin-top: 14px; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.week i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; color: #fff; font-size: 12px; }
.week i.done { background: var(--blue); border-color: var(--blue); }
.week .today i { border-color: var(--blue); }
.levelbar { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.levelbar .lb-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.levelbar .bar { height: 8px; border-radius: 8px; background: var(--surface-2); margin-top: 6px; overflow: hidden; border: 1px solid var(--line); }
.levelbar .bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--blue), #6AA2FF); transition: width .5s; }
.mission.anon { text-align: left; }
.mission.anon .btn { margin-top: 12px; width: 100%; justify-content: center; }
.mission-m { display: none; margin-top: 14px; }

/* ---------- chat ---------- */
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.chat-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.chat-sub { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.onair { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--down); padding: 3px 8px 3px 7px; border-radius: 999px; }
.rec { width: 6px; height: 6px; border-radius: 50%; background: #fff; display: inline-block; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.chat-close { display: none; border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; }
.chat-list { list-style: none; margin: 0; padding: 10px 8px 10px 14px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.msg { display: flex; gap: 10px; padding: 6px 8px 6px 4px; font-size: 13.5px; line-height: 1.4; border-radius: 12px; }
.msg .pav { width: 28px; height: 28px; font-size: 10.5px; margin-top: 1px; }
.msg-body { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 500; }
.msg .nick { font-weight: 800; margin-right: 6px; }
.msg .lv { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; background: var(--blue-soft); color: var(--blue-ink); }
.msg .lv.l3 { background: var(--gold-soft); color: #B07300; }
.msg .lv.l4 { background: linear-gradient(90deg, #FFD45C, #FFA41B); color: #fff; }
.msg.system { margin: 6px 0; padding: 10px 12px; background: linear-gradient(90deg, var(--gold-soft), #FFF9EC); border-radius: 14px; font-size: 13px; font-weight: 700; color: #7A5200; }
.msg.mine { background: var(--blue-soft); }
.msg .bz { color: var(--blue); font-weight: 800; cursor: pointer; }
.msg .bz:hover { text-decoration: underline; }
.msg.enter { animation: enter .25s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
.chat-new { position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%); border: 0; background: var(--blue); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-lg); }
.chat-form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 18px; outline: 0; min-width: 0; }
.chat-form input:focus { border-color: var(--blue); background: var(--surface); }
.send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 6px 14px rgba(31, 107, 255, .3); }
.send svg { width: 18px; height: 18px; fill: #fff; }
.chat-fab { display: none; }

/* ---------- gaveta do negócio ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(15, 27, 51, .35); opacity: 0; transition: opacity .2s; backdrop-filter: blur(2px); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(480px, 100%); background: var(--bg); overflow-y: auto; transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.d-head { padding: 24px 22px 20px; position: relative; }
.d-close { position: absolute; top: 18px; right: 18px; border: 0; background: rgba(255, 255, 255, .85); width: 38px; height: 38px; border-radius: 50%; box-shadow: var(--shadow); }
.d-top { display: flex; gap: 14px; align-items: center; padding-right: 44px; }
.d-top .bav { width: 64px; height: 64px; font-size: 22px; border-radius: 18px; }
.d-top h2 { font-size: 24px; margin: 0; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.d-top p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.d-body { padding: 0 18px 40px; }
.d-score { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 18px; margin-bottom: 14px; }
.bigring { position: relative; width: 112px; height: 112px; }
.bigring svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.bigring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.bigring .c b { font-size: 32px; letter-spacing: -.03em; }
.bigring .c span { display: block; font-size: 10.5px; font-weight: 700; color: var(--ink-3); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }
.dist { display: flex; flex-direction: column; gap: 5px; }
.dist div { display: grid; grid-template-columns: 24px 1fr 26px; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.dist i { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; display: block; }
.dist i span { display: block; height: 100%; background: linear-gradient(90deg, #FFD45C, #FFA41B); border-radius: 8px; }
.likebar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin-top: 10px; background: var(--surface-2); gap: 2px; }
.likebar .u { background: var(--up); border-radius: 8px; }
.likebar .d { background: var(--down); border-radius: 8px; }
.likes-txt { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-top: 5px; font-weight: 700; }
.box { padding: 18px; margin-bottom: 14px; }
.share-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sbtn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 12.5px; color: var(--ink); text-align: center; line-height: 1.2; transition: border-color .15s, background .15s, transform .1s; }
.sbtn svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sbtn:hover { border-color: var(--blue); background: var(--blue-soft); }
.sbtn:active { transform: scale(.96); }
.sbtn:disabled { opacity: .5; cursor: progress; }
.origin { padding: 14px 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.origin p { margin: 0; display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.origin p svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.origin a { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13.5px; font-weight: 700; color: var(--blue-ink); text-decoration: none; background: var(--blue-soft); padding: 8px 14px; border-radius: 999px; }
.origin a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.origin a:hover { background: #DCE8FF; }
.box h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.d-votes { display: flex; gap: 8px; }
.d-votes .vote { flex: 1; justify-content: center; height: 46px; font-size: 14px; }
.stars { display: flex; gap: 6px; }
.star { border: 0; background: var(--surface-2); width: 46px; height: 46px; border-radius: 14px; font-size: 24px; line-height: 1; color: #D3DBE7; transition: transform .1s, color .1s, background .1s; }
.star.on { color: #fff; background: linear-gradient(135deg, #FFD45C, #FFA41B); }
.star:hover { transform: translateY(-2px); }
.box textarea { width: 100%; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 12px 14px; min-height: 80px; resize: vertical; outline: 0; }
.box textarea:focus { border-color: var(--blue); background: var(--surface); }
.box .btn { margin-top: 12px; }
.hint { font-size: 12px; color: var(--ink-3); margin: 8px 0 0; font-weight: 600; }
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.review-head .when { margin-left: auto; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.review p { margin: 6px 0 0 40px; font-size: 14px; color: var(--ink-2); }
.review .st { color: var(--gold); letter-spacing: 1px; }

/* ---------- modais e avisos ---------- */
.modal { border: 0; border-radius: 26px; padding: 0; width: min(430px, calc(100% - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(15, 27, 51, .25); }
.modal::backdrop { background: rgba(15, 27, 51, .4); backdrop-filter: blur(3px); }
.modal form { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.modal-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--blue-soft); display: grid; place-items: center; font-size: 26px; margin-bottom: 4px; }
.modal h2 { font-size: 23px; margin: 0; letter-spacing: -.03em; font-weight: 800; }
.modal p { margin: 0; color: var(--ink-2); font-size: 14px; }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.modal input, .modal select { height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 14px; outline: 0; font-weight: 600; font-size: 15px; }
.modal input:focus, .modal select:focus { border-color: var(--blue); background: var(--surface); }
.modal-actions { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 8px; margin-top: 8px; }
.gbtn-wrap { display: flex; justify-content: center; min-height: 48px; margin: 8px 0 2px; }
.fine { font-size: 12.5px !important; color: var(--ink-3) !important; text-align: center; }
.btn.link-out { background: none; color: var(--down); padding-left: 4px; padding-right: 4px; margin-right: auto; }
.btn.link-out:hover { text-decoration: underline; }
.flag { border: 0; background: none; color: var(--ink-3); font-size: 13px; padding: 2px 6px; border-radius: 8px; opacity: 0; transition: opacity .15s, background .15s; flex-shrink: 0; align-self: flex-start; }
.msg:hover .flag, .review:hover .flag, .flag:focus-visible { opacity: 1; }
.flag:hover { background: var(--down-soft); color: var(--down); }
@media (hover: none) { .flag { opacity: .55; } }
.review-head .flag { margin-left: 2px; }
.reasons { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.reasons label { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 600 !important; font-size: 14px !important; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.reasons label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.reasons input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.linkish.danger { color: var(--down); font-size: 13px; }
.fine a { color: var(--blue-ink); font-weight: 700; }
.foot { max-width: 1060px; margin: 0 auto; padding: 0 24px 40px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.foot a { color: var(--ink-2); }
@media (max-width: 1000px) { .foot { padding: 0 16px 110px; } .main { padding-bottom: 24px; } }
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 70; max-width: 420px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-lg); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 13.5px; color: var(--ink-2); font-weight: 600; line-height: 1.5; }
.cookie a { color: var(--blue-ink); }
.cookie-btns { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-btns .btn { padding: 9px 18px; }
@media (max-width: 1000px) { .cookie { left: 12px; right: 12px; bottom: 86px; max-width: none; } }
.err { color: var(--down) !important; font-size: 13px !important; font-weight: 700; }
.err:empty { display: none; }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); animation: toast 2.6s forwards; white-space: nowrap; }
.toast.xp { background: linear-gradient(90deg, var(--blue), #5A93FF); }
.toast.lvl { background: linear-gradient(90deg, #FFB020, #FF7A1A); }
.toast.err { background: var(--down); }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- telas menores ---------- */
@media (max-width: 1320px) {
  #stat-pos { display: none !important; }
  .hero { grid-template-columns: 1.25fr .75fr; }
}
@media (max-width: 1180px) {
  .hero h1 { font-size: 32px; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .layout { display: block; }
  .main { padding: 6px 16px 110px; }
  .cats { padding: 14px 16px 4px; }
  .rail { position: static; height: auto; padding: 0; display: contents; }
  .rail > .mission { display: none; }
  .mission-m { display: block; }
  .chat { position: fixed; inset: 0; z-index: 60; height: 100dvh; border-radius: 0; transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
  .chat.open { transform: none; }
  .chat-close { display: block; }
  .chat-fab {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40;
    border: 1px solid var(--line); padding: 10px 14px 10px 10px; border-radius: 20px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); text-align: left; box-shadow: var(--shadow-lg);
  }
  .fab-ico { width: 42px; height: 42px; border-radius: 14px; background: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
  .fab-ico svg { width: 20px; height: 20px; fill: #fff; }
  .fab-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; gap: 2px; }
  .fab-txt b { font-size: 14px; display: flex; align-items: center; gap: 8px; }
  .fab-txt > span { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toasts { bottom: 92px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { position: absolute; right: -40px; bottom: 0; width: 300px; height: 220px; opacity: .35; min-height: 0; }
}
@media (max-width: 720px) {
  .cityhero { padding: 36px 0 0; margin-bottom: 64px; background-position: 0 0, 0 0, 30% 40%, 0 0, 0 0, 0 0; }
  .ch-inner { padding: 0 16px 28px; }
  .ch-eyebrow { font-size: 13px; }
  .ch-sub { font-size: 14px; margin-bottom: 20px; }
  .ch-search { grid-template-columns: 1fr 1fr; border-radius: 22px; padding: 8px; gap: 6px; }
  .ch-search label { height: 46px; padding: 0 12px; background: var(--surface-2); border-radius: 14px; }
  .ch-search label + label { border-left: 0; }
  .ch-search .f-q { grid-column: 1 / -1; }
  .ch-go { grid-column: 1 / -1; justify-content: center; height: 48px; border-radius: 14px; }
  .ch-chips { display: none; }
  .ch-row { margin-bottom: -52px; }
  .ch-arrow { display: none; }
  .ch-cards { padding: 0 16px 8px; scroll-padding: 0 16px; }
  .ch-cards::-webkit-scrollbar { display: none; }
  .ch-card { flex: 0 0 120px; scroll-snap-align: start; padding: 12px 8px; }
  .ch-card i { width: 42px; height: 42px; }
  .top { flex-wrap: wrap; gap: 10px; padding: 10px 16px; height: auto; }
  .search { order: 3; max-width: none; flex-basis: 100%; height: 42px; }
  #btn-suggest, .chip-stat { display: none !important; }
  .me { padding-right: 12px; }
  .hero { border-radius: 24px; min-height: 0; }
  .hero-txt { padding: 24px 20px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14.5px; margin-bottom: 18px; }
  .hero-cta .btn { padding: 10px 16px; font-size: 13.5px; }
  .hero-art { width: 230px; height: 170px; right: -50px; opacity: .25; }
  .stats { gap: 8px; }
  .stat { padding: 12px; gap: 10px; }
  .stat .ico { width: 36px; height: 36px; border-radius: 12px; }
  .stat .ico svg { width: 18px; height: 18px; }
  .stat b { font-size: 18px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { padding: 10px; gap: 10px; }
  .tile .ico { width: 38px; height: 38px; border-radius: 12px; }
  .tile .arrow { display: none; }
  .cat-hero { padding: 18px; gap: 12px; flex-wrap: wrap; }
  .cat-hero .ico { width: 52px; height: 52px; border-radius: 16px; }
  .cat-hero .btn { margin-left: 0; }
  .cat-acts { margin-left: 0; width: 100%; justify-content: stretch; }
  .cat-acts .btn { flex: 1; justify-content: center; }
  .podium { gap: 8px; padding: 26px 0 0; }
  .pod .ring .bav { width: 52px; height: 52px; font-size: 17px; }
  .pod.p1 .ring .bav { width: 64px; height: 64px; font-size: 20px; }
  .pod h3 { font-size: 13px; }
  .pod .where { display: none; }
  .pod .score { min-width: 56px; height: 38px; margin-top: 6px; }
  .pod .score b, .pod.p1 .score b { font-size: 19px; }
  .p1 .pedestal { height: 84px; } .p2 .pedestal { height: 62px; } .p3 .pedestal { height: 46px; }
  .pedestal { font-size: 24px; }
  .row { grid-template-columns: 34px 1fr auto; grid-template-areas: 'pos info score' 'pos votes votes'; gap: 6px 12px; padding: 12px; }
  .row .bav { display: none; }
  .row .pos { grid-area: pos; align-self: start; }
  .row .info { grid-area: info; }
  .row .score { grid-area: score; height: 46px; min-width: 56px; }
  .row .votes { grid-area: votes; }
  .how { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   identidade: topo azul-noite, ação em amarelo-sol (texto azul-noite, 9,8:1)
   ========================================================================== */
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 10px; }

/* topo colorido, como o painel do Raimundo */
.top { background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 100%); border-bottom: 0; backdrop-filter: none; color: #fff; box-shadow: 0 6px 24px rgba(10, 22, 56, .25); }
.brand-txt b { color: #fff; }
.brand-txt span { color: rgba(255, 255, 255, .62); }
.brand img { filter: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.foot-logo { height: 48px; width: auto; display: block; margin-bottom: 6px; }
.topnav { background: rgba(0, 0, 0, .22); padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.topnav a { color: rgba(255, 255, 255, .78); padding: 8px 16px; }
.topnav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.topnav a.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.top .btn.soft { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.top .btn.soft:hover { background: rgba(255, 255, 255, .18); }
.chip-stat { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #fff; }
.chip-stat small { color: rgba(255, 255, 255, .65); }
.me { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #fff; }
.me:hover { border-color: rgba(255, 255, 255, .35); }
.me-info small { color: rgba(255, 255, 255, .65); }
.me.anon { background: var(--sun); color: var(--navy); border-color: var(--sun); box-shadow: 0 6px 18px rgba(255, 178, 26, .35); }
.me.anon:hover { background: var(--sun-ink); }

/* ação principal em amarelo-sol */
.btn.primary, .ch-go { background: var(--sun); color: var(--navy); box-shadow: 0 6px 18px rgba(245, 158, 0, .3); }
.btn.primary:hover, .ch-go:hover { background: var(--sun-ink); }
.ch-go svg { stroke: var(--navy); }
.send { background: var(--sun); box-shadow: 0 6px 14px rgba(245, 158, 0, .3); }
.send svg { fill: var(--navy); }
.cityhero h1 em { color: var(--sun); }
.levelbar .bar i, .xpbar i { background: linear-gradient(90deg, var(--sun), #FFD45C); }

/* chat com faixa azul-noite: cara de transmissão ao vivo */
.chat-head { background: linear-gradient(100deg, var(--navy), var(--navy-2)); color: #fff; border-bottom: 0; }
.chat-sub { color: rgba(255, 255, 255, .65); }
.chat-close { background: rgba(255, 255, 255, .12); color: #fff; }

/* barra de categorias fica presa embaixo do topo no ranking */
[data-page="ranking"] .cats { position: sticky; top: 72px; z-index: 15; max-width: none; padding-left: max(24px, calc((100% - 1060px) / 2)); padding-right: 24px;
  background: linear-gradient(180deg, var(--bg) 78%, rgba(244, 246, 251, 0)); }
.cat[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); }

/* rodapé azul-noite */
.foot { max-width: none; margin: 40px 0 0; padding: 36px 24px 28px; background: var(--navy); color: rgba(255, 255, 255, .65); display: block; font-size: 13px; }
.foot-in { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 28px; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand b { display: block; color: #fff; font-size: 18px; letter-spacing: -.02em; }
.foot-brand p { margin: 4px 0 0; line-height: 1.5; }
.foot h4 { margin: 0 0 10px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--sun); }
.foot small { display: block; line-height: 1.6; }
.foot-bottom { max-width: 1060px; margin: 26px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; }
[data-page="chat"] .foot { display: none; }

/* carregando: esqueleto no lugar da tela vazia */
.sk { border-radius: 18px; background: linear-gradient(90deg, #E9EDF5 25%, #F4F6FB 50%, #E9EDF5 75%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-title { height: 30px; width: 46%; margin: 26px 0 16px; }
.sk-row { height: 74px; margin-bottom: 10px; }

/* abas do celular */
@media (max-width: 1000px) {
  .tabbar { background: var(--navy); border-top: 0; box-shadow: 0 -6px 20px rgba(10, 22, 56, .2); }
  .tabbar a { color: rgba(255, 255, 255, .6); }
  .tabbar a.on { color: var(--sun); }
  .tabbar a.on svg { background: rgba(255, 178, 26, .16); border-radius: 12px; padding: 3px 12px; width: 48px; box-sizing: content-box; height: 22px; margin: -3px 0; }
  [data-page="ranking"] .cats { top: 0; position: relative; }
  .foot { padding-bottom: 100px; }
  .foot-in { grid-template-columns: 1fr; gap: 20px; }
}

/* chat como coluna de live: quem mais participa no alto e a mensagem fixada */
.chat-top { display: flex; gap: 14px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; overflow: hidden; white-space: nowrap; }
.chat-top[hidden] { display: none; }
.ct-u { display: inline-flex; align-items: center; gap: 6px; }
.ct-u small { color: var(--ink-3); font-weight: 600; }
.ct-u i { font-style: normal; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #1D232C; background: #C7CED9; }
.ct-u i.m1 { background: linear-gradient(160deg, #FBE7A1, #E0B33A); } .ct-u i.m3 { background: linear-gradient(160deg, #F3C9A0, #CD8B4F); }
.chat-pin { margin: 10px 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.chat-pin b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 2px; }

/* ---------- página Mapa ---------- */
[data-page="mapa"] .cats { display: none; }
[data-page="mapa"] .main { max-width: 1320px; }
.map-bar { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; align-items: center; }
.map-bar label { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; min-width: 240px; }
.map-bar svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-bar select { border: 0; outline: 0; background: none; width: 100%; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.map-bar .btn { height: 46px; }
.map-bar .btn svg { stroke: currentColor; }
.map-bar .btn:disabled { opacity: .6; cursor: progress; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: stretch; }
.map-box { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 560px; height: calc(100dvh - 300px); position: relative; z-index: 0; }
#map { width: 100%; height: 100%; background: #E8ECF2; }
.map-side { display: flex; flex-direction: column; min-height: 0; height: calc(100dvh - 300px); min-height: 560px; overflow: hidden; }
.ms-head { padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.ms-head h3 { margin: 0; font-size: 16px; }
.ms-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.ms-list { overflow-y: auto; padding: 6px; flex: 1; }
.ms-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 12px; text-align: left; }
.ms-item:hover { background: var(--surface-2); }
.ms-item .bav { width: 36px; height: 36px; font-size: 12px; border-radius: 10px; }
.ms-item .nm { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-item .nm small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.ms-item .sc { font-weight: 800; font-size: 13.5px; padding: 4px 9px; border-radius: 9px; }
/* pino: a nota da loja na cor da categoria; os 3 primeiros com aro de metal */
.pin { display: inline-grid; place-items: center; min-width: 46px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--c); color: #fff; font: 800 13px var(--font); box-shadow: 0 3px 10px rgba(10, 22, 56, .3), 0 0 0 2px #fff; position: relative; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--c); transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.pin-top { box-shadow: 0 3px 10px rgba(10, 22, 56, .3), 0 0 0 3px #F5C542; }
.pin-top.r2 { box-shadow: 0 3px 10px rgba(10, 22, 56, .3), 0 0 0 3px #BFC8D4; }
.pin-top.r3 { box-shadow: 0 3px 10px rgba(10, 22, 56, .3), 0 0 0 3px #CD8B4F; }
.pin-cluster { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 14px var(--font); box-shadow: 0 0 0 4px rgba(10, 22, 56, .2), 0 4px 12px rgba(10, 22, 56, .3); }
.me-dot { display: block; width: 22px; height: 22px; border-radius: 50%; background: #1F6BFF; border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(31, 107, 255, .25), 0 2px 8px rgba(0, 0, 0, .3); }
.mpop-wrap .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--shadow-lg); }
.mpop-wrap .leaflet-popup-content { margin: 14px 16px; font-family: var(--font); }
.mpop b { display: block; font-size: 15.5px; color: var(--ink); }
.mpop small { display: block; color: var(--ink-3); font-weight: 600; font-size: 12px; margin-top: 2px; }
.mpop-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 12.5px; color: var(--ink-2); font-weight: 600; line-height: 1.35; }
.mpop-row .score { height: 42px; min-width: 54px; }
.mpop-btns { display: flex; gap: 6px; }
.mpop-btns .btn { padding: 8px 12px; font-size: 13px; text-decoration: none; }
.leaflet-container { font-family: var(--font); }
@media (max-width: 1000px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-box { height: 58dvh; min-height: 360px; border-radius: 16px; }
  .map-side { height: auto; min-height: 0; }
  .ms-list { overflow: visible; }
  .map-bar label { flex: 1; min-width: 0; }
  .tabbar a { font-size: 10.5px; }
}

/* ---------- desafio da semana: placar frente a frente ---------- */
[data-page="desafios"] .cats { display: none; }
.duels { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.duel { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.duel.done { opacity: .9; }
.dl-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.dl-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.dl-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dl-side.d { flex-direction: row-reverse; text-align: right; }
.dl-side > div { min-width: 0; }
.dl-side small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dl-side.c small { color: #D9343F; } .dl-side.d small { color: var(--blue-ink); }
.dl-side b { display: block; font-size: 17px; line-height: 1.2; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-side span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.dl-vs { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--sun); font-weight: 800; font-size: 15px; }
.dl-bar { position: relative; display: flex; height: 44px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.dl-c, .dl-d { display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #fff; white-space: nowrap; min-width: 0; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.dl-c { background: linear-gradient(90deg, #C9202E, #EF4452); }
.dl-d { flex: 1; justify-content: flex-end; background: linear-gradient(90deg, #1F6BFF, #1452D8); }
.dl-c b, .dl-d b { font-size: 22px; letter-spacing: -.02em; }
.dl-c span, .dl-d span { font-size: 12.5px; font-weight: 700; opacity: .9; }
.dl-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #fff; transform: translateX(-1px); font-style: normal; }
.dl-mid::after { content: '50%'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--navy); color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.dl-mid { font-size: 0; }
.dl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-btn { justify-content: center; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.dl-btn.c { background: #D9343F; } .dl-btn.c:hover { background: #B91C2A; }
.dl-btn.d { background: #1452D8; } .dl-btn.d:hover { background: #0F3FB0; }
.duel.big { padding: 22px 24px; }
.duel.big .dl-side .bav { width: 64px; height: 64px; font-size: 22px; border-radius: 18px; }
.duel.big .dl-side b { font-size: 22px; }
.duel.big .dl-bar { height: 58px; }
.duel.big .dl-c b, .duel.big .dl-d b { font-size: 30px; }
.dl-chart { width: 100%; height: 110px; background: var(--surface-2); border-radius: 12px; }
.duel-empty { padding: 22px; display: block; text-decoration: none; color: inherit; }
.duel-empty h3 { margin: 0 0 6px; } .duel-empty p { margin: 0 0 14px; color: var(--ink-2); }
.duel-empty.mini { padding: 16px 18px; color: var(--ink-2); font-size: 14px; }
.duel-box .dl-alvos { display: flex; flex-direction: column; gap: 8px; }
.duel-box .dl-alvos .btn { justify-content: center; }
.tag.turbo, em.turbo { background: linear-gradient(90deg, #FFB21A, #FF7A1A); color: #2A1600; font-style: normal; font-weight: 800; padding: 2px 8px; border-radius: 999px; font-size: 11px; }
/* prévia do mapa na home */
.map-teaser { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mini-map { height: 320px; background: #E8ECF2; cursor: pointer; }
.mt-actions { position: absolute; left: 16px; bottom: 16px; z-index: 500; display: flex; gap: 8px; }
.mt-actions .btn { text-decoration: none; }
@media (max-width: 720px) {
  .duels { grid-template-columns: 1fr; }
  .dl-head { grid-template-columns: 1fr; }
  .dl-side.d { flex-direction: row; text-align: left; }
  .dl-vs { justify-self: center; }
  .dl-actions { grid-template-columns: 1fr; }
  .mini-map { height: 240px; }
}
@media (max-width: 1280px) { .topnav a[data-nav="como"] { display: none; } }

/* chat aberto ao lado em todas as páginas (pedido dele, 01/11) */
.split.one { grid-template-columns: 1fr; }
@media (max-width: 1360px) { .map-wrap { grid-template-columns: 1fr; } .map-side { height: auto; min-height: 0; } .ms-list { max-height: 420px; } }

/* página do dono (/dono e /dono/nome-123) */
.dono-busca { display: grid; gap: 10px; }
.dono-busca input { height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; font-size: 16px; }
.dono-busca input:focus { outline: 0; border-color: var(--blue); background: var(--surface); }
.dono-res { display: grid; gap: 6px; }
.dono-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.dono-item:hover { border-color: var(--blue); background: var(--blue-soft); }
.dono-item > span:not(.bav) { flex: 1; min-width: 0; display: grid; }
.dono-item .bav { flex-shrink: 0; }
.dono-item small { color: var(--ink-3); font-weight: 600; }
.dono-item svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2.4; }
.dono-passos, .dono-placar, .dono-msgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.dono-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); color: var(--navy); font-weight: 800; }
.dono-passos h3 { margin: 10px 0 4px; }
.dono-hero .bav { width: 64px; height: 64px; font-size: 22px; border-radius: 20px; flex-shrink: 0; }
.dono-hero h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.dono-hero p { margin: 2px 0 0; color: var(--ink-2); font-weight: 600; }
.dono-hero .btn { margin-left: auto; text-decoration: none; }
.dono-eyebrow { font-size: 12px; font-weight: 800 !important; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-ink) !important; }
.dono-placar .card { padding: 16px; display: grid; gap: 2px; }
.dono-placar span { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.dono-placar b { font-size: 28px; letter-spacing: -.03em; }
.dono-placar small { color: var(--ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dono-msg { display: flex; flex-direction: column; }
.dono-msg p { flex: 1; margin: 0 0 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.dono-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dono-acts .btn { justify-content: center; text-decoration: none; }
@media (max-width: 1180px) { .dono-msgs { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .dono-passos { grid-template-columns: 1fr; }
  .dono-placar { gap: 8px; }
  .dono-placar .card { padding: 12px 10px; }
  .dono-placar b { font-size: 22px; }
  .dono-placar span { font-size: 10px; letter-spacing: .03em; }
  .dono-hero { flex-wrap: wrap; }
  .dono-hero .btn { margin-left: 0; }
}

/* anúncios: sempre com a etiqueta Patrocinado, fora da ordem do ranking */
.ad-tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ad-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 12px 0; text-decoration: none; color: inherit; border: 1px dashed #F2C66B; background: linear-gradient(90deg, #FFF8E8, var(--surface) 60%); }
.ad-card .bav { flex-shrink: 0; }
.ad-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ad-txt b { font-size: 15.5px; }
.ad-txt span { font-size: 13.5px; color: var(--ink-2); }
.ad-card .btn { flex-shrink: 0; }
.ad-banner { display: flex; align-items: center; gap: 16px; padding: 20px 24px; margin: 22px 0 4px; border-radius: 22px; text-decoration: none; color: #fff; background: linear-gradient(110deg, var(--navy), var(--navy-2)); box-shadow: var(--shadow); }
.ad-banner > span:first-child { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ad-banner .ad-tag { color: rgba(255, 255, 255, .6); }
.ad-banner b { font-size: 20px; letter-spacing: -.02em; }
.ad-banner > span:first-child > span { color: rgba(255, 255, 255, .8); font-size: 14px; }
.ad-banner .btn.primary { background: var(--sun); color: var(--navy); box-shadow: none; flex-shrink: 0; }
.ad-banner.img { position: relative; display: block; padding: 0; overflow: hidden; background: var(--surface-2); }
.ad-banner.img img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; }
.ad-banner.img .ad-tag { position: absolute; top: 10px; right: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(10, 22, 56, .7); color: #fff; }
.pin.pin-ad { box-shadow: 0 3px 12px rgba(10, 22, 56, .35), 0 0 0 3px var(--sun); }
.pin.pin-ad i { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px; background: var(--sun); color: var(--navy); font: 800 9px var(--font); font-style: normal; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 720px) {
  .ad-card .btn { display: none; }
  .ad-banner { flex-direction: column; align-items: flex-start; padding: 18px; }
}

/* donos: selo de verificado, pedido de ficha e resposta nas avaliações */
.vf { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; margin-left: 6px; vertical-align: 2px; flex-shrink: 0; }
.claim .btn { margin-top: 10px; }
.claim.ok .hint { margin: 0; }
.claim.ok .vf { margin: 0 4px 0 0; }
.review .reply { margin: 10px 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 12px 12px 0; }
.review .reply b { display: flex; align-items: center; font-size: 12.5px; color: var(--blue-ink); }
.review .reply .vf { width: 15px; height: 15px; font-size: 9px; margin: 0 6px 0 0; }
.review .reply p { margin: 4px 0 0; font-size: 14px; }
.claim.ok a { color: var(--blue-ink); font-weight: 700; text-decoration: none; }
.vf { position: relative; cursor: help; outline: 0; }
.dica { position: fixed; z-index: 2000; width: 240px; max-width: calc(100vw - 24px); padding: 10px 12px; border-radius: 12px; background: #0F1B33; color: #fff;
  box-shadow: 0 12px 30px rgba(15, 27, 51, .25); font-size: 12.5px; font-weight: 600; line-height: 1.4; pointer-events: none; }
.kit-fechado .btn { margin-top: 12px; }
a.btn { text-decoration: none; }

/* perfil preenchido pelo dono, na ficha */
.perfil-f { display: grid; gap: 12px; }
.fotos-f { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: -4px -4px 0; padding: 4px; }
.fotos-f a { flex: 0 0 auto; scroll-snap-align: start; }
.fotos-f img { width: 150px; height: 150px; object-fit: cover; border-radius: 14px; display: block; }
.desc-f { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 600; }
.hora-f summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; }
.hora-f summary::-webkit-details-marker { display: none; }
.hora-f summary small { color: var(--blue-ink); font-weight: 700; margin-left: 4px; }
.hora-f .ab { color: #0B8350; } .hora-f .fe { color: #C42D3A; }
.hora-f ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: 13.5px; }
.hora-f li { display: flex; justify-content: space-between; color: var(--ink-2); }
.com-f { display: flex; flex-wrap: wrap; gap: 6px; }
.com-f span { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); }
