:root {
  --felt: #0d5c3f;
  --felt-2: #11734f;
  --felt-dark: #083d2a;
  --gold: #f2c14e;
  --gold-dark: #b8860b;
  --paper: #fffdf7;
  --bg: #f3f1ea;
  --ink: #1f2421;
  --muted: #6b716d;
  --line: #e2ddcf;
  --red: #c0392b;
  --blue: #2563eb;
  --ok: #15803d;
  --warn: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--felt); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: linear-gradient(90deg, var(--felt-dark), var(--felt) 60%, var(--felt-2)); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  border-bottom: 3px solid var(--gold);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand img { border-radius: 8px; }
#topnav { display: flex; gap: 6px; align-items: center; }
#topnav a, #topnav button { color: #fff; text-decoration: none; background: rgba(255,255,255,.12); border: 0; border-radius: 999px; padding: 6px 12px; font-size: .9rem; cursor: pointer; }
main { max-width: 760px; margin: 0 auto; padding: 16px; outline: none; }
.banner { background: var(--felt-dark); color: #fff; padding: 8px 16px; text-align: center; font-size: .92rem; }
.banner.warn { background: var(--warn); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card.flat { box-shadow: none; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.pad { padding: 24px 0; }
.hidden { display: none !important; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--felt); color: #fff; transition: transform .05s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; }
.btn.big { min-height: 56px; font-size: 1.05rem; letter-spacing: .02em; }
.btn.gold { background: var(--gold); color: #3b2a00; }
.btn.light { background: #fff; color: var(--felt); border-color: var(--line); }
.btn.ghost { background: transparent; color: var(--felt); border-color: var(--line); }
.btn.danger { background: var(--red); }
.btn.warn { background: #fff4e5; color: var(--warn); border-color: #f5d0a0; }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: .88rem; border-radius: 10px; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .btn-grid { grid-template-columns: 1fr; } }

/* Formulários */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field { margin-bottom: 12px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px;
  border: 1px solid #cfc8b6; background: #fff; color: var(--ink); min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-dark); }
input.missing { border-color: var(--warn); background: #fff8ec; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.error { color: var(--red); font-weight: 600; }
.alert { border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: .93rem; }
.alert.info { background: #eef6f1; border: 1px solid #cde5d8; }
.alert.warn { background: #fff7e8; border: 1px solid #f3d29a; color: #7a4a00; }
.alert.err { background: #fdecea; border: 1px solid #f5c2bc; color: #8a1f14; }
.alert.ok { background: #eaf7ee; border: 1px solid #bfe3ca; color: #135c2c; }

/* Abas */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; }
.tabs a { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); background: #e8e4d8; font-weight: 600; font-size: .92rem; }
.tabs a.on { background: var(--felt); color: #fff; }

/* Tabelas de ranking */
table.rank { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.rank th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 6px; border-bottom: 1px solid var(--line); }
table.rank td { padding: 10px 6px; border-bottom: 1px solid #efeadc; }
table.rank td.num, table.rank th.num { text-align: center; width: 1%; white-space: nowrap; }
table.rank tr.me td { background: #fff8e1; }
.pos { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ece7da; font-weight: 700; font-size: .85rem; }
.pos.p1 { background: var(--gold); } .pos.p2 { background: #d6d6d6; } .pos.p3 { background: #e3b48a; }
.nick { font-weight: 600; word-break: break-word; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #ece7da; color: #555; vertical-align: middle; }
.tag.guest { background: #e8eefc; color: #2948a8; }
.tag.bot { background: #fde8e6; color: var(--red); }
.tag.admin { background: var(--felt); color: #fff; }
.tag.mod { background: #dff2e8; color: var(--felt); }
.tag.contested { background: #fff1d6; color: var(--warn); }
.tag.annulled { background: #eee; color: #777; text-decoration: line-through; }
.tag.valid { background: #e5f5ea; color: var(--ok); }

/* Página inicial: grupos com pódio dos líderes */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.home-head h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.01em; }
.home-head p { margin: 2px 0 0; }
.group-grid { display: grid; gap: 16px; }
.group-card {
  display: block; text-decoration: none; color: inherit; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.group-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 10px 24px rgba(0,0,0,.09); }
.gc-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  color: #fff; background: linear-gradient(135deg, var(--felt-2), var(--felt-dark));
  position: relative;
}
.gc-head::after { /* naipes discretos ao fundo */
  content: "♠ ♥ ♦ ♣"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; letter-spacing: .2em; color: rgba(255,255,255,.08); pointer-events: none;
}
.gc-head h2 { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; position: relative; z-index: 1; }
.gc-head .tag { position: relative; z-index: 1; }
.gc-head .tag.admin { background: var(--gold); color: #3b2a00; }
.gc-head .tag.mod { background: rgba(255,255,255,.9); }
.gc-meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.chip { font-size: .8rem; font-weight: 600; color: #4a524d; background: #efebdf; border-radius: 999px; padding: 3px 10px; }
.gc-body { padding: 10px 16px 4px; }
.gc-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.gc-empty { margin: 6px 0 10px; color: var(--muted); font-size: .92rem; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pod .medal {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-weight: 800; font-size: .85rem; color: #3b2a00; margin-bottom: 4px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.15);
}
.pod-1 .medal { width: 42px; height: 42px; font-size: 1rem; background: radial-gradient(circle at 35% 30%, #ffe9a3, var(--gold) 55%, var(--gold-dark)); }
.pod-2 .medal { background: radial-gradient(circle at 35% 30%, #fff, #cfd3d6 55%, #9aa0a4); }
.pod-3 .medal { background: radial-gradient(circle at 35% 30%, #f7d3b0, #d99a63 55%, #9c5f2c); color: #3a1d05; }
.pod-nick { font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.pod-1 .pod-nick { color: #8a6100; font-size: 1.02rem; }
.pod-wins { font-size: .78rem; color: var(--muted); }
.pod-wins b { color: var(--ink); }
.pod .step { display: block; width: 100%; margin-top: 6px; border-radius: 8px 8px 0 0; }
.pod-1 .step { height: 30px; background: linear-gradient(#f6d77e, #e8b93a); }
.pod-2 .step { height: 20px; background: linear-gradient(#e6e8ea, #c9cdd0); }
.pod-3 .step { height: 12px; background: linear-gradient(#efc29a, #d39a68); }
.gc-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; border-top: 1px solid #efeadc; background: #faf8f1; font-size: .88rem;
}
.my-pos { color: var(--felt); font-size: 1rem; }
.gc-go { font-weight: 700; color: var(--felt); }
@media (min-width: 700px) {
  main:has(.group-grid) { max-width: 980px; }
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Registro de resultado */
.team { border-radius: 14px; padding: 12px; margin-bottom: 12px; border: 2px solid transparent; }
.team.t1 { background: #eef4ff; }
.team.t2 { background: #fff0ee; }
.team.win { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,193,78,.25); }
.team h3 { display: flex; align-items: center; justify-content: space-between; }
.slot { margin-bottom: 10px; }
.slot-input { position: relative; }
.slot .slot-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.slot .slot-head label { margin: 0; }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); margin-top: 4px; overflow: hidden; }
.suggest button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; text-align: left; padding: 12px; background: #fff; border: 0; border-bottom: 1px solid #f0ece0; font: inherit; cursor: pointer; }
.suggest button:hover, .suggest button:focus { background: #f6f3ea; }
.suggest button.add { color: #2948a8; font-weight: 600; }
.round { border: 1px dashed #cfc8b6; border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fff; }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.winner-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.winner-pick label { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #cfc8b6; border-radius: 10px; padding: 10px; cursor: pointer; font-weight: 600; background: #fff; margin: 0; }
.winner-pick input { width: auto; min-height: 0; }
.winner-pick label.on { background: #fff6dc; border-color: var(--gold-dark); }
.thumb { max-width: 100%; max-height: 260px; border-radius: 10px; border: 1px solid var(--line); display: block; margin: 8px auto; cursor: zoom-in; }
.confirm-box { background: var(--felt); color: #fff; border-radius: 18px; padding: 18px; }
.confirm-box .team { background: rgba(255,255,255,.1); color: #fff; }
.confirm-box .team.win { border-color: var(--gold); }
.confirm-box h2 { text-align: center; letter-spacing: .06em; }
.trophy { text-align: center; font-size: 1.1rem; font-weight: 700; color: var(--gold); margin: 6px 0 14px; }
.score-big { font-size: 1.4rem; font-weight: 800; }

.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #d8e9df; border-top-color: var(--felt); animation: spin 0.9s linear infinite; margin: 16px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
#toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #1f2421; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); z-index: 50; }
#toast.show { opacity: 1; }
.history li { margin-bottom: 8px; }
.result-item { display: block; text-decoration: none; color: inherit; padding: 12px 0; border-bottom: 1px solid #efeadc; }
.result-item:last-child { border-bottom: 0; }
.vs { color: var(--muted); font-weight: 700; padding: 0 6px; }
.w { font-weight: 700; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: grid; place-items: center; z-index: 60; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.code-input { font-size: 1.5rem; letter-spacing: .4em; text-align: center; }
details summary { cursor: pointer; font-weight: 600; }

/* ===== v1.6: navegação, grupos (acesso/duração/capote), W.O., bugs e painel do Super Admin ===== */
#topnav .nav-bug, #topnav .nav-admin { white-space: nowrap; }
#topnav .nav-admin { background: rgba(242,193,78,.25); }
@media (max-width: 560px) { #topnav .nav-label { display: none; } #topnav .nav-nick { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; } }
#announce { background: #fff4d6; color: #6b4b00; border-bottom: 1px solid #f0d58f; }
.chip-end { background: #e9e6df; color: #6b716d; }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.open-groups { margin-top: 8px; }
.open-list { display: grid; gap: 8px; }
.open-item { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }

fieldset.fs { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0 0 12px; background: #fffef9; }
fieldset.fs legend { font-weight: 700; padding: 0 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; border: 1px solid #cfc8b6; border-radius: 10px; padding: 10px; cursor: pointer; background: #fff; font-weight: 400; margin: 0; }
.choice input { width: auto; min-height: 0; position: absolute; opacity: 0; pointer-events: none; }
.choice.on { border-color: var(--felt); box-shadow: 0 0 0 2px rgba(13,92,63,.18); background: #f1f8f4; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; margin: 6px 0; cursor: pointer; }
label.check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; flex: 0 0 auto; }

.wo-box { border: 1px dashed #e0a9a2; border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: #fff8f6; }
.wo-box summary { color: #8a1f14; }
.wo-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
@media (max-width: 480px) { .wo-pick { grid-template-columns: 1fr; } }
.wo-pick label { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #cfc8b6; border-radius: 10px; padding: 9px; cursor: pointer; font-weight: 600; background: #fff; margin: 0; text-align: center; font-size: .9rem; }
.wo-pick label.on { border-color: var(--red); background: #fdecea; color: #8a1f14; }
.wo-pick input { width: auto; min-height: 0; }
.wo-banner, .capote-banner { border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-weight: 700; text-align: center; }
.wo-banner { background: rgba(192,57,43,.9); color: #fff; }
.capote-banner { background: linear-gradient(90deg, #ff9a3c, #f2c14e); color: #3b2a00; }
.wo-banner.light { background: #fdecea; color: #8a1f14; }
.capote-banner.light { background: #fff1d6; color: #7a4a00; }
.tag.wo { background: #fdecea; color: var(--red); }
.tag.capote { background: #fff1d6; color: #b45309; }
table.rank tr.top1 .nick { color: #8a6100; }

.bug-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.bug-thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.bug-status { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.bug-status.s-recebido { background: #fff6d6; color: #8a6100; }
.bug-status.s-analise { background: #e5edff; color: #2948a8; }
.bug-status.s-resolvido { background: #e5f5ea; color: var(--ok); }
.bug-status.s-encerrado { background: #eee; color: #666; }
ol.timeline { list-style: none; padding: 0 0 0 14px; margin: 0; border-left: 2px solid var(--line); }
ol.timeline li { position: relative; padding: 0 0 12px 10px; }
ol.timeline li::before { content: ""; position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--felt); border: 2px solid var(--paper); }
ol.timeline li.internal::before { background: #9aa0a4; }

/* Painel do Super Admin */
main:has(.admin) { max-width: 1100px; }
.admin-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; }
.admin-tabs { margin-top: 10px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { display: flex; flex-direction: column; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: inherit; box-shadow: var(--shadow); position: relative; min-width: 0; }
.kpi[href]:hover { border-color: var(--felt-2); }
.kpi-icon { position: absolute; right: 12px; top: 10px; font-size: 1.2rem; opacity: .8; }
.kpi-value { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--felt-dark); font-variant-numeric: tabular-nums; }
.kpi-label { font-weight: 700; font-size: .88rem; padding-right: 22px; }
.kpi-sub { font-size: .76rem; color: var(--muted); }
.kpi.warn { border-color: #f3d29a; background: #fffaf0; }
.kpi.warn .kpi-value { color: var(--warn); }
.kpi.bad { border-color: #f5c2bc; background: #fff6f5; }
.kpi.bad .kpi-value { color: var(--red); }
.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; padding-top: 14px; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar-fill { width: 100%; max-width: 28px; background: var(--felt-2); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-n { font-size: .7rem; font-weight: 700; color: var(--felt-dark); }
.bar-d { font-size: .62rem; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.chips .chip { text-decoration: none; padding: 6px 12px; font-size: .85rem; }
.chips .chip.on { background: var(--felt); color: #fff; }
.admin-search { display: flex; gap: 8px; margin-bottom: 10px; }
.admin-search input { flex: 1; min-width: 0; }
.admin-list { padding: 4px 16px; }
.admin-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #efeadc; text-decoration: none; color: inherit; }
.admin-row:last-child { border-bottom: 0; }
.admin-row.wrap { flex-wrap: wrap; }
.admin-row .right { text-align: right; }
@media (max-width: 560px) { .admin-row { flex-wrap: wrap; } .admin-row .right { text-align: left; } }
.admin-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .admin-cards { grid-template-columns: 1fr; } }
.admin-cards .card { margin: 0; }
.admin-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 10px; align-items: end; }
@media (max-width: 760px) { .admin-filters { grid-template-columns: 1fr 1fr; } }
.admin-filters .checks { display: flex; flex-direction: column; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 560px) { .admin-form { grid-template-columns: 1fr; } }
.admin-2col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
@media (max-width: 860px) { .admin-2col { grid-template-columns: 1fr; } }
table.kv { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.kv th { text-align: left; color: var(--muted); font-weight: 600; padding: 5px 8px 5px 0; width: 32%; vertical-align: top; }
table.kv td { padding: 5px 0; word-break: break-word; }
.err-row { border-bottom: 1px solid #efeadc; padding: 8px 0; }
.err-row summary { font-weight: 500; }
.err-row pre { white-space: pre-wrap; font-size: .75rem; background: #f6f3ea; padding: 8px; border-radius: 8px; max-height: 240px; overflow: auto; }
.small-thumb { max-height: 140px; margin: 6px 0; }
.contest-card .result-item { border-bottom: 0; padding: 6px 0; }

/* ajustes finos v1.6 */
.gc-head:has(.tag)::after { right: 96px; }
@media (max-width: 560px) { .bars .bar:nth-child(odd) .bar-d { visibility: hidden; } }
@media (max-width: 430px) {
  .brand span { font-size: .95rem; white-space: nowrap; }
  #topnav .nav-nick { display: none; }
  #topnav a, #topnav button { padding: 6px 10px; }
}
fieldset.fs { min-width: 0; }
.scores > div { min-width: 0; }
input[type="date"] { min-width: 0; max-width: 100%; }

/* =====================================================================
   v1.7 — Liga Rank: identidade visual (verde-feltro, dourado, marfim)
   Ousadia concentrada no pódio e nos botões "de jogo"; o resto é calmo.
   ===================================================================== */
:root {
  --felt-900: #0b3f26;
  --felt-800: #0e4d2f;
  --felt-700: #12603a;
  --felt-500: #17804a;
  --gold-600: #c8920c;
  --gold-500: #e8b21e;
  --gold-300: #ffd95a;
  --silver-500: #aeb6bd;
  --bronze-500: #c98a52;
  --ivory: #fffdf5;
  --page: #e8efea;
  --ink: #142019;
  --muted: #5e6b63;
  --line: #d5e0d8;
  /* nomes antigos apontam para a paleta nova */
  --felt: var(--felt-700);
  --felt-2: var(--felt-500);
  --felt-dark: var(--felt-900);
  --gold: var(--gold-500);
  --gold-dark: var(--gold-600);
  --paper: var(--ivory);
  --bg: var(--page);
  --radius: 16px;
  --shadow: 0 1px 0 rgba(11,63,38,.06), 0 6px 18px rgba(11,63,38,.08);
}
body { background: var(--page); color: var(--ink); }
h1 { font-size: 1.55rem; font-weight: 900; letter-spacing: -.01em; }
h2 { font-weight: 800; }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }

/* ----- cabeçalho com a logo ----- */
.topbar {
  background: radial-gradient(120% 140% at 0% 0%, #1a7a48 0%, var(--felt-900) 55%), var(--felt-900);
  border-bottom: 3px solid var(--gold-500);
  padding: calc(6px + env(safe-area-inset-top)) 14px 6px;
}
.brand img { height: 46px; width: auto; border-radius: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
#topnav { gap: 6px; }
#topnav a, #topnav button {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff;
  border-radius: 12px; padding: 7px 12px; font-weight: 700; font-size: .88rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 0 rgba(0,0,0,.25);
}
#topnav a:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
#topnav .nav-home { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: #3b2a00; border-color: #f6d36d; box-shadow: 0 2px 0 var(--gold-600); }
#topnav .nav-admin { background: rgba(232,178,30,.22); }
@media (max-width: 560px) {
  .brand img { height: 38px; }
  #topnav a, #topnav button { padding: 7px 10px; }
}
@media (max-width: 360px) { .brand img { height: 32px; } #topnav .nav-home span { display: none; } }

/* ----- botões com relevo ----- */
.btn {
  position: relative; border-radius: 14px; border: 1px solid var(--felt-800);
  background: linear-gradient(180deg, #1c8c52 0%, var(--felt-700) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 3px 0 var(--felt-900), 0 6px 14px rgba(11,63,38,.22);
  text-shadow: 0 1px 0 rgba(0,0,0,.18);
  transition: transform .06s ease, box-shadow .06s ease, filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 0 var(--felt-900), 0 2px 6px rgba(11,63,38,.2); }
.btn.gold {
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 100%); color: #3b2a00; border-color: #d9a515; text-shadow: 0 1px 0 rgba(255,255,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 var(--gold-600), 0 6px 14px rgba(200,146,12,.28);
}
.btn.gold:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 0 var(--gold-600); }
.btn.light, .btn.ghost {
  background: linear-gradient(180deg, #fff 0%, #eef4f0 100%); color: var(--felt-800); border-color: var(--line); text-shadow: none;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #c3d3c8, 0 4px 10px rgba(11,63,38,.08);
}
.btn.light:active, .btn.ghost:active { box-shadow: inset 0 1px 0 #fff, 0 1px 0 #c3d3c8; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { background: linear-gradient(180deg, #d9534a, #b3352a); border-color: #9c2b22; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 0 #7d2019; }
.btn.warn { background: linear-gradient(180deg, #fffaf0, #ffefcf); border-color: #f0cf8e; color: #7a4a00; box-shadow: inset 0 1px 0 #fff, 0 3px 0 #e6c27a; text-shadow: none; }
.btn.install { background: linear-gradient(180deg, #2d9cdb, #1f77b4); border-color: #1a6599; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 3px 0 #155a8a, 0 6px 14px rgba(31,119,180,.25); }
.btn.small { border-radius: 11px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 0 var(--felt-900); }
.btn.small.light, .btn.small.ghost { box-shadow: inset 0 1px 0 #fff, 0 2px 0 #c3d3c8; }
.btn.small.gold { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 0 var(--gold-600); }
.btn.big { min-height: 54px; border-radius: 16px; }
.btn:disabled { filter: grayscale(.4); }

/* ----- abas em formato de pílula ----- */
.tabs { gap: 6px; padding-bottom: 4px; }
.tabs a { background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 0 #c9d7cd; color: var(--felt-900); }
.tabs a.on { background: linear-gradient(180deg, #1c8c52, var(--felt-700)); border-color: var(--felt-800); color: #fff; box-shadow: 0 2px 0 var(--felt-900); }

/* ----- nicks: etiquetas em alto-relevo, clicáveis ----- */
.nick-chip {
  display: inline-flex; align-items: center; max-width: 100%; gap: 4px;
  padding: 4px 11px; border-radius: 999px; font-weight: 800; font-size: .92rem; line-height: 1.25;
  color: var(--felt-900); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, #ffffff 0%, #e9f2ec 100%);
  border: 1px solid #c7d8cc; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #b9cdbf;
  transition: transform .06s, box-shadow .06s, border-color .15s;
  vertical-align: middle; min-height: 30px;
}
a.nick-chip:hover { border-color: var(--gold-500); }
a.nick-chip:active { transform: translateY(1px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 #b9cdbf; }
.nick-chip.lg { font-size: 1.06rem; padding: 6px 14px; min-height: 36px; }
.nick-chip.is-guest { color: #24418f; background: linear-gradient(180deg, #fff, #eaf0ff); border-color: #c9d5f5; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #bdcaee; }
.nick-chip.is-bot { color: #a1281d; background: linear-gradient(180deg, #fff, #fdeceb); border-color: #f1c4bf; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #e9b2ac; }
.nick-chip.static { cursor: default; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pair { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pair-plus { color: var(--muted); font-weight: 800; padding: 0 2px; }

/* ----- home: abertura com a marca ----- */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 18px 18px 20px; margin: 4px 0 18px;
  background: radial-gradient(110% 120% at 50% 0%, #1b8550 0%, var(--felt-800) 50%, var(--felt-900) 100%);
  color: #fff; box-shadow: 0 10px 30px rgba(11,63,38,.28), inset 0 0 0 2px rgba(232,178,30,.55);
  display: grid; gap: 6px; justify-items: center; text-align: center;
}
.hero::before { /* textura de feltro discreta */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 6px 6px;
}
.hero > * { position: relative; }
.hero-logo { width: min(100%, 520px); height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.hero-hello { margin: 4px 0 0; font-size: 1.15rem; }
.hero-sub { margin: 0; color: #d8eadf; max-width: 46ch; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; width: min(100%, 360px); margin-top: 10px; }
.hero-actions .btn { width: 100%; }
@media (min-width: 760px) {
  .hero-home { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; padding: 22px 28px; }
  .hero-home .hero-logo { justify-self: center; }
  .hero-landing .hero-actions { flex-direction: row; width: auto; }
  .hero-landing .hero-actions .btn { width: auto; min-width: 200px; }
}
.section-h { font-size: 1.2rem; font-weight: 900; color: var(--felt-900); margin: 22px 2px 10px; }
.empty-card { padding: 22px; }

/* ----- cartões de grupo ----- */
.group-card { border-radius: 18px; border-color: #cfdcd3; cursor: pointer; }
.group-card:hover { transform: translateY(-2px); }
.gc-head { text-decoration: none; background: linear-gradient(135deg, #1a7f4a, var(--felt-900)); border-bottom: 2px solid var(--gold-500); }
.gc-head h2 { font-weight: 900; }
.gc-head::after { opacity: 1; color: rgba(255,255,255,.07); }
.gc-label { text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 800; color: var(--felt-700); }
.chip { background: #edf3ef; color: #3f4d45; }
.gc-foot { background: #f6faf7; border-top-color: #e2ebe5; }
.gc-foot .btn { min-height: 34px; }
.podium .pod .medal { width: auto; height: auto; background: none; box-shadow: none; font-size: 1.9rem; line-height: 1; margin-bottom: 4px; }
.podium .pod-1 .medal { font-size: 2.3rem; }
.podium .nick-chip { max-width: 100%; }
.podium .step { display: grid; place-items: center; font-weight: 900; font-size: .8rem; color: rgba(0,0,0,.45); }
.podium .pod-1 .step { height: 34px; }
.podium .pod-2 .step { height: 24px; }
.podium .pod-3 .step { height: 16px; font-size: .7rem; }

/* ----- pódio do ranking (ouro, prata, bronze) ----- */
.podium-cards { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
.podium-cards:has(> :only-child) { grid-template-columns: minmax(0, 360px); justify-content: center; }
.podium-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0;
  padding: 14px 10px 12px; border-radius: 18px; background: var(--ivory);
  border: 2px solid var(--line); box-shadow: 0 4px 0 rgba(11,63,38,.12), 0 10px 24px rgba(11,63,38,.1);
}
.podium-card.place-1 { padding-top: 20px; padding-bottom: 18px; border-color: var(--gold-500); background: linear-gradient(180deg, #fff8dc 0%, var(--ivory) 70%); box-shadow: 0 5px 0 var(--gold-600), 0 14px 30px rgba(200,146,12,.28); }
.podium-card.place-2 { border-color: var(--silver-500); background: linear-gradient(180deg, #f2f5f7 0%, var(--ivory) 70%); box-shadow: 0 4px 0 #8f989f, 0 10px 24px rgba(0,0,0,.08); }
.podium-card.place-3 { border-color: var(--bronze-500); background: linear-gradient(180deg, #fbeee2 0%, var(--ivory) 70%); box-shadow: 0 4px 0 #a26a39, 0 10px 24px rgba(0,0,0,.08); }
.pc-medal { font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 3px 2px rgba(0,0,0,.18)); }
.place-1 .pc-medal { font-size: 2.9rem; }
.pc-place { font-size: .78rem; font-weight: 800; color: var(--muted); }
.place-1 .pc-place { color: #8a6100; }
.pc-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: .82rem; color: var(--muted); }
.pc-stats b { color: var(--ink); font-size: .95rem; }
.podium-card .pair { justify-content: center; }
@media (max-width: 520px) {
  .podium-cards { grid-template-columns: 1fr; }
  .podium-card { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; padding: 10px 12px; }
  .podium-card.place-1 { order: -1; padding: 12px; }
  .podium-card .pc-medal, .place-1 .pc-medal { font-size: 2rem; }
  .podium-card .pc-place { flex: 1 1 auto; }
  .podium-card .pc-stats { width: 100%; justify-content: flex-start; }
}
.rank-card h2 { margin-bottom: 8px; }
table.rank td { vertical-align: middle; }
table.rank tr.top1 td { background: #fffbea; }
table.rank tr.top2 td { background: #f7f9fa; }
table.rank tr.top3 td { background: #fdf6ef; }
table.rank tr.me td { box-shadow: inset 3px 0 0 var(--gold-500); }
.pos { box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.pos.p1 { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); }
.pos.p2 { background: linear-gradient(180deg, #f1f3f5, var(--silver-500)); }
.pos.p3 { background: linear-gradient(180deg, #f2c9a3, var(--bronze-500)); }
@media (max-width: 520px) { table.rank th:nth-last-child(2), table.rank td:nth-last-child(2) { display: none; } table.rank .nick-chip { max-width: 44vw; } }

/* ----- cartões de partida ----- */
.result-list { display: grid; gap: 12px; }
.result-card { background: var(--ivory); border: 1px solid #d3dfd6; border-radius: 18px; padding: 10px 12px 10px; box-shadow: 0 3px 0 rgba(11,63,38,.08), 0 8px 18px rgba(11,63,38,.06); }
.result-card.st-annulled { opacity: .62; }
.result-card.st-contested, .result-card.st-pending { border-color: #f0cf8e; }
.rc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.rc-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.rc-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; margin: 8px 0 6px; }
.rc-team { border-radius: 14px; padding: 8px; background: #f1f6f2; border: 2px solid transparent; min-width: 0; }
.rc-team.win { background: linear-gradient(180deg, #fff6d3, #fffdf3); border-color: var(--gold-500); box-shadow: 0 3px 0 var(--gold-600); }
.rc-label { font-size: .75rem; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.rc-team.win .rc-label { color: #8a6100; }
.rc-nicks { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rc-team:last-child .rc-nicks { align-items: flex-end; }
.rc-team:last-child .rc-label { text-align: right; }
.rc-score { display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-weight: 900; font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.rc-score .w { color: var(--felt-900); font-size: 1.45rem; }
.rc-score .rc-x { font-size: .85rem; color: #9aa69e; }
.rc-score small { font-size: .65rem; font-weight: 700; color: var(--muted); margin-top: 2px; }
.rc-foot { display: flex; justify-content: space-between; align-items: center; }
.rc-more { font-weight: 800; font-size: .88rem; color: var(--felt-700); text-decoration: none; padding: 4px 2px; }
.rc-more::after { content: " ›"; }
@media (max-width: 420px) { .rc-body { gap: 6px; } .rc-team { padding: 6px; } .rc-score { font-size: 1.05rem; } .rc-score .w { font-size: 1.2rem; } .rc-nicks .nick-chip { font-size: .84rem; padding: 3px 9px; } }
.card .result-card { box-shadow: none; margin-bottom: 10px; }

/* ----- detalhe do resultado ----- */
.team { border-radius: 16px; }
.team .chip-row { margin: 6px 0; }
.score-big { font-variant-numeric: tabular-nums; }
.score-big small { font-size: .8rem; font-weight: 700; color: var(--muted); }
.confirm-box .score-big small { color: rgba(255,255,255,.75); }

/* ----- membros ----- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.member-card { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #f7faf8; border: 1px solid var(--line); }
.member-card.role-admin { border-color: var(--gold-500); background: #fffbea; }
.member-card.role-mod { border-color: #9fd0b4; }
.mc-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mc-name { font-size: .85rem; color: var(--muted); }
.mc-actions { display: flex; gap: 6px; align-items: center; }
.mc-actions:empty { display: none; }
.tag.admin { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: #3b2a00; }

/* ----- perfil do jogador ----- */
.player-head { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; margin-bottom: 12px; color: #fff;
  background: radial-gradient(110% 140% at 0% 0%, #1b8550, var(--felt-900)); box-shadow: inset 0 0 0 2px rgba(232,178,30,.55), 0 8px 22px rgba(11,63,38,.25); }
.ph-medal { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 3px 2px rgba(0,0,0,.3)); }
.ph-nick { margin: 0 0 6px; font-size: 1.7rem; font-style: italic; font-weight: 900; color: #fff; word-break: break-word; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.player-head .tag { background: rgba(255,255,255,.16); color: #fff; }
.player-head .tag.admin { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: #3b2a00; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 520px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-tile { background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; box-shadow: 0 3px 0 rgba(11,63,38,.08); }
.stat-tile b { display: block; font-size: 1.6rem; font-weight: 900; color: var(--felt-900); font-variant-numeric: tabular-nums; }
.stat-tile span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.stat-tile.good b { color: var(--felt-500); }
.partner-list { display: grid; gap: 8px; }
.partner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid #e6eee8; }
.partner:last-child { border-bottom: 0; }

/* ----- dicas (parte de baixo da home) ----- */
.home-extras { margin-top: 26px; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.tip { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: #f4f8f5; border: 1px solid #dae5dd; }
.tip-icon { font-size: 1.5rem; line-height: 1; }
.tip b { color: var(--felt-900); }
.tip p { margin: 3px 0 0; font-size: .88rem; color: #46544b; }

/* ----- instruções de instalação ----- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(6,30,18,.55); display: grid; place-items: end center; padding: 12px; }
@media (min-width: 640px) { .sheet-backdrop { place-items: center; } }
.sheet { width: min(100%, 420px); background: var(--ivory); border-radius: 22px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 30px rgba(0,0,0,.25); text-align: center; border: 2px solid var(--gold-500); }
.sheet-icon { border-radius: 16px; }
.sheet-steps { text-align: left; padding-left: 22px; line-height: 1.5; }
.sheet-steps li { margin-bottom: 6px; }

/* ----- outros acabamentos ----- */
.card { border-color: #d6e1d9; }
.group-title { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.group-title h1 { margin: 0; font-style: italic; color: var(--felt-900); }
.section-title { text-transform: none; letter-spacing: 0; font-size: 1.05rem; font-weight: 900; color: var(--felt-900); }
@media (prefers-reduced-motion: reduce) { .btn, .nick-chip, .group-card { transition: none; } }
/* ajustes finos v1.7 */
table.rank tr.me td { box-shadow: none; }
table.rank tr.me td:first-child { box-shadow: inset 4px 0 0 var(--gold-500); }
@media (min-width: 561px) { .brand img { height: 54px; } }
@media (max-width: 560px) {
  .gc-head::after { display: none; }
  .podium .nick-chip { font-size: .8rem; padding: 3px 8px; min-height: 26px; }
  .podium .nick-chip.lg { font-size: .9rem; padding: 4px 10px; }
}

/* ===== v1.8 — Central de Ajuda (FAQ com pesquisa e vídeos tutoriais) ===== */
.help-hero {
  border-radius: 22px; padding: 20px 18px 16px; margin: 4px 0 16px; color: #fff; text-align: center;
  background: radial-gradient(110% 130% at 50% 0%, #1b8550 0%, var(--felt-800) 55%, var(--felt-900) 100%);
  box-shadow: 0 10px 30px rgba(11,63,38,.25), inset 0 0 0 2px rgba(232,178,30,.55);
}
.help-hero h1 { color: #fff; font-style: italic; margin: 0 0 10px; }
.help-q-label { display: block; font-size: 1.15rem; font-weight: 900; margin-bottom: 8px; color: var(--gold-300); }
.help-q-wrap { max-width: 620px; margin: 0 auto; }
.help-q-wrap input {
  min-height: 56px; font-size: 1.08rem; border-radius: 16px; border: 3px solid var(--gold-500); padding: 12px 16px;
  box-shadow: 0 4px 0 var(--gold-600), 0 10px 24px rgba(0,0,0,.25);
}
.help-q-wrap input:focus { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.help-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.help-cat { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.help-cat:active { transform: translateY(1px); }
.help-count { margin: 0 2px 8px; }
mark { background: #ffe58a; color: inherit; border-radius: 3px; padding: 0 1px; }

details.faq { background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; box-shadow: 0 2px 0 rgba(11,63,38,.06); }
details.faq > summary { list-style: none; cursor: pointer; padding: 13px 44px 13px 14px; font-weight: 800; color: var(--felt-900); position: relative; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e9f2ec; color: var(--felt-700); font-weight: 900; }
details.faq[open] > summary::after { content: "–"; background: var(--gold-500); color: #3b2a00; }
details.faq[open] { border-color: var(--gold-500); }
.faq-a { padding: 0 14px 14px; color: #33413a; line-height: 1.55; }
.faq-group { margin-bottom: 18px; }
.faq-group h3 { margin: 4px 2px 8px; color: var(--felt-700); }
.help-video-hits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.help-more { margin-top: 10px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.video-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid #cfdcd3; border-radius: 16px; overflow: hidden; background: var(--ivory); cursor: pointer; font: inherit; color: inherit; box-shadow: 0 3px 0 rgba(11,63,38,.1), 0 8px 18px rgba(11,63,38,.08); }
.video-card:hover { border-color: var(--gold-500); }
.video-card:active { transform: translateY(1px); }
.vc-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1a7f4a, var(--felt-900)); display: block; }
.vc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: #3b2a00; box-shadow: 0 3px 0 var(--gold-600), 0 6px 16px rgba(0,0,0,.35); }
.vc-num { position: absolute; left: 8px; top: 8px; min-width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; background: rgba(11,63,38,.85); color: #fff; font-weight: 900; font-size: .85rem; border: 1px solid var(--gold-500); }
.vc-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.vc-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.vc-body b { color: var(--felt-900); }
.vc-body span { font-size: .85rem; color: var(--muted); }

.video-modal { position: fixed; inset: 0; z-index: 80; background: rgba(4,20,12,.82); display: grid; place-items: center; padding: 12px; }
.vm-box { width: min(100%, 980px); background: var(--felt-900); color: #fff; border-radius: 18px; padding: 10px; border: 2px solid var(--gold-500); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.vm-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 4px 8px; }
.vm-close { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 10px; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; }
.vm-box video { width: 100%; max-height: 72vh; border-radius: 12px; background: #000; display: block; }
.vm-box p { margin: 8px 4px; color: #d8eadf; }
.vm-nav { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .video-modal { padding: 0; } .vm-box { border-radius: 0; border-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; } }

/* painel: gestão da ajuda */
.icon-in { width: 64px; text-align: center; flex: 0 0 auto; }
.faq-admin { border-bottom: 1px solid #e6eee8; padding: 8px 0; }
.faq-admin > summary { cursor: pointer; display: flex; gap: 8px; align-items: center; font-weight: 700; }
.va-thumb { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
#topnav .nav-help { white-space: nowrap; }
@media (max-width: 430px) { #topnav a, #topnav button { padding: 7px 9px; } }

/* ajuste: botão de play no canto, sem cobrir o título da miniatura */
.vc-play { left: 10px; top: auto; bottom: 10px; transform: none; width: 44px; height: 44px; font-size: 1.05rem; }

/* ===== v1.9 — selos de modalidade e resumo por modalidade no perfil ===== */
.seal { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.seal-pts { background: #e3f4e9; color: #0e5a33; border-color: #b9e0c7; }
.seal-md3 { background: #fff4cc; color: #7a5600; border-color: #f1d77e; }
.rc-date { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
@media (max-width: 520px) { .mode-grid { grid-template-columns: 1fr; } }
.mode-box { border-radius: 16px; padding: 12px 14px; border: 1px solid var(--line); background: var(--ivory); box-shadow: 0 3px 0 rgba(11,63,38,.08); }
.mode-box.seal-pts { border-color: #b9e0c7; background: linear-gradient(180deg, #f1faf4, var(--ivory)); color: inherit; }
.mode-box.seal-md3 { border-color: #f1d77e; background: linear-gradient(180deg, #fffaeb, var(--ivory)); color: inherit; }
.mode-title { font-weight: 900; color: var(--felt-900); margin-bottom: 6px; }
.mode-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: var(--muted); }
.mode-nums b { color: var(--ink); font-size: 1rem; }
.mode-filter .chip { border: 1px solid var(--line); cursor: pointer; font: inherit; font-size: .85rem; font-weight: 700; }
.mode-filter .chip b { margin-left: 2px; }

/* aviso do endereço oficial (só no endereço antigo) */
.aviso-dominio { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; background: #fff4d6; color: #5c4300; border-bottom: 1px solid #f0d58f; }
.aviso-dominio .small { flex-basis: 100%; text-align: center; }
.aviso-dominio { font-size: .9rem; padding: 6px 12px; }
.aviso-dominio .btn { width: auto; flex: 0 0 auto; min-height: 30px; padding: 3px 12px; font-size: .82rem; }
.aviso-dominio #aviso-dominio-x { padding: 3px 9px; }
.aviso-dominio .small { font-size: .78rem; line-height: 1.3; }

/* ===== v1.9.4 — paginação, limpeza ===== */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; }
.pg-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 12px; font: inherit; font-weight: 800; font-size: .9rem; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, #fff, #eef4f0); color: var(--felt-800); border: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #c3d3c8; }
.pg-btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 #c3d3c8; }
.pg-btn.off { opacity: .45; cursor: default; box-shadow: none; }
.pg-info { font-size: .9rem; color: var(--muted); }
.pg-info b { color: var(--ink); }
.pg-count { margin: 0 2px 8px; }
.danger-zone { border-color: #f1c4bf; }
.check-list { display: grid; gap: 2px; margin-bottom: 10px; }
.rest-box { flex-basis: 100%; }

/* ---------- Central de Moderação ---------- */
.moderacao .mod-card { display: block; margin-bottom: 12px; }
.moderacao .link-card { text-decoration: none; color: inherit; }
.moderacao .link-card:hover { border-color: var(--felt); }
.moderacao .mod-grupo { font-size: .95rem; }
.mod-match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin: 10px 0 4px; font-size: .9rem; }
.mod-match > div:last-child { text-align: right; }
.mod-match .win { font-weight: 700; color: var(--felt); }
.mod-score { font-weight: 800; white-space: nowrap; padding: 4px 10px; border-radius: 8px; background: #efebdf; }
.admin-tabs .badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #c0392b; color: #fff; font-size: .75rem; text-align: center; }
ul.mod-list, .mod-list ul { list-style: none; padding: 0; margin: 0; }
.mod-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.mod-list li:last-child { border-bottom: 0; }
@media (max-width: 560px) {
  .moderacao .hide-sm { display: none; }
  .mod-match { grid-template-columns: 1fr; text-align: center; }
  .mod-match > div:last-child { text-align: center; }
}
