/* Paleta e linguagem visual inspiradas no cliente/site de League of Legends:
   preto-azulado, dourado hextech, cantos retos e títulos em caixa alta. */
:root {
  --bg: #010a13;
  --panel: #091428;
  --panel-2: #0f1d33;
  --tile: #0a1428;
  --line: #463714;
  --line-soft: #1e2d40;
  --gold: #c8aa6e;
  --gold-2: #f0e6d2;
  --gold-3: #c89b3c;
  --gold-4: #785a28;
  --blue: #0ac8b9;
  --blue-2: #0397ab;
  --red: #d13639;
  --text: #cdd6e0;
  --muted: #a09b8c;
  --good: #3ecf8e;
  --mid: #e6b34a;
  --bad: #e05a5a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, sans-serif;
  min-height: 100vh;
}
a { color: var(--gold); }
.hidden { display: none !important; }

/* Hero com splash art */
.top { position: relative; text-align: center; padding: 72px 16px 56px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--gold-4); }
.top::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--splash, none) center 25% / cover no-repeat, radial-gradient(ellipse at top, #0f2a4a, var(--bg) 70%); filter: saturate(1.05); transform: scale(1.03); }
.top::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 10, 19, .35) 0%, rgba(1, 10, 19, .65) 55%, var(--bg) 100%), linear-gradient(90deg, rgba(1, 10, 19, .7), transparent 30%, transparent 70%, rgba(1, 10, 19, .7)); }
.top h1 { font: 900 64px/1 Cinzel, serif; margin: 0; color: var(--gold-2); letter-spacing: 6px; text-transform: uppercase; text-shadow: 0 4px 24px rgba(0, 0, 0, .8); }
.top h1 span { color: var(--gold); }
.tag { color: var(--gold-2); margin: 14px auto 0; max-width: 620px; font-size: 16px; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.top::marker { display: none; }

main { max-width: 1140px; margin: 0 auto; padding: 24px 16px; display: grid; gap: 18px; }
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 29, 51, .92), rgba(9, 20, 40, .96));
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: inset 0 0 0 1px rgba(1, 10, 19, .8), 0 10px 30px rgba(0, 0, 0, .35);
}
/* Cantoneiras douradas, como nas molduras do cliente. */
.card::before, .card::after { content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.card::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
h2, h3 { font-family: Cinzel, serif; font-weight: 800; color: var(--gold-2); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 1.5px; }
h3 { font-size: 18px; }
.sub { color: var(--muted); margin: 4px 0; }

.role { border-color: var(--gold); text-align: center; }
.role-meta { display: flex; justify-content: center; gap: 12px; color: var(--blue); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.role h2 { font-size: 30px; margin-top: 6px; }
.role p { max-width: 640px; margin: 0 auto; }

.needs { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.needs li { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--tile); border: 1px solid var(--line); color: var(--muted); }
.needs li.ok { color: var(--good); border-color: #1d5c42; }
.needs li.mid { color: var(--mid); border-color: #5c4a1d; }
.needs li.bad { color: var(--bad); border-color: #5c1d1d; }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.layout > .kit { grid-column: 2; grid-row: 1 / span 3; }
.layout > .play, .layout > .submit, .layout > .result { grid-column: 1; }

.round-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.pips { display: flex; gap: 5px; }
.pips i { width: 22px; height: 5px; border-radius: 3px; background: var(--line); }
.pips i.done { background: var(--gold); }
.pips i.now { background: var(--blue); }

.champ { display: flex; gap: 16px; align-items: center; margin: 14px 0 6px; }
.champ img { width: 84px; height: 84px; border-radius: 2px; border: 2px solid var(--gold); }
.champ h2 { margin: 0; font-size: 28px; }
.champ p { margin: 0; color: var(--muted); text-transform: capitalize; }
.hint { color: var(--muted); font-size: 13px; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.opt {
  text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 4px 10px; align-items: start;
  background: var(--tile); border: 1px solid var(--line); border-radius: 2px; padding: 10px; color: var(--text);
  cursor: pointer; font: inherit; transition: border-color .15s, transform .15s;
}
.opt:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-1px); }
.opt:disabled { opacity: .35; cursor: not-allowed; }
.opt img, .opt .stat-icon { width: 44px; height: 44px; border-radius: 2px; grid-row: span 2; }
.stat-icon { display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; color: var(--gold); }
.opt .slot { font-size: 11px; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.opt .name { font-weight: 700; color: var(--gold-2); }
.opt .desc { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.opt .ratios { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.opt .ratios i { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #15233b; color: var(--blue); }

.kit-slots { display: grid; gap: 8px; }
.kslot { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 2px; background: var(--tile); border: 1px dashed var(--line); min-height: 58px; }
.kslot.filled { border-style: solid; border-color: #3a3220; }
.kslot .key { width: 40px; height: 40px; border-radius: 2px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); font-weight: 700; font-size: 13px; overflow: hidden; }
.kslot .key img { width: 100%; height: 100%; }
.kslot .what { font-size: 13px; line-height: 1.3; }
.kslot .what b { color: var(--gold-2); display: block; }
.kslot .what span { color: var(--muted); }

/* Campeão da rodada + botão de re-sortear */
.champ-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#reroll:disabled { opacity: .45; cursor: not-allowed; }

/* Balão com a skill inteira: aparece ao passar o mouse (ou focar com o teclado). */
.opt, .kslot { position: relative; }
.opt:hover, .opt:focus-visible, .kslot:hover, .kslot:focus-visible { z-index: 20; }
.tip { display: none; position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 30; padding: 12px 14px; background: #0b1730; border: 1px solid var(--gold); box-shadow: 0 14px 34px rgba(0, 0, 0, .65); text-align: left; font-size: 13px; line-height: 1.5; pointer-events: none; }
.tip b { display: block; color: var(--gold-2); font-size: 14px; }
.tip small { display: block; margin-bottom: 6px; color: var(--blue); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.tip-text { display: block; color: var(--text); white-space: pre-line; }
.tip .ratios { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tip .ratios i { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #15233b; color: var(--blue); }
.tip .dep { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.3; padding: 4px 7px; border-radius: 2px; background: #1d1a10; color: var(--mid); }
.tip .dep.bad { background: #241214; color: var(--bad); }
/* No kit (coluna da direita), o balão cresce para a esquerda. */
.kslot .tip { left: auto; width: 340px; max-width: 90vw; }
@media (hover: hover) {
  .opt:hover .tip, .opt:focus-visible .tip, .kslot.filled:hover .tip, .kslot.filled:focus-visible .tip { display: block; }
}
/* Celular (sem mouse): o texto completo já aparece no próprio cartão. */
@media (hover: none) {
  .opt .desc { display: block; -webkit-line-clamp: unset; overflow: visible; }
}

form { display: flex; gap: 8px; flex-wrap: wrap; }
input { flex: 1; min-width: 160px; padding: 10px 12px; border-radius: 2px; border: 1px solid var(--line); background: var(--tile); color: var(--text); font: inherit; }
/* Botão hextech: moldura dourada, texto em caixa alta. */
button[type=submit], .btn-hex {
  display: inline-block; padding: 11px 22px; border-radius: 0; border: 2px solid var(--gold-3);
  background: linear-gradient(180deg, #1e2328, #10151a); color: var(--gold-2);
  font: 700 13px Inter, sans-serif; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; text-decoration: none;
  box-shadow: inset 0 0 0 2px rgba(1, 10, 19, .9); transition: border-color .15s, box-shadow .15s;
}
button[type=submit]:hover, .btn-hex:hover { border-color: var(--gold-2); box-shadow: inset 0 0 0 2px rgba(1, 10, 19, .9), 0 0 18px rgba(200, 170, 110, .35); }
.btn-hex.blue { border-color: var(--blue-2); color: #cdfafa; background: linear-gradient(180deg, #0a323c, #061c24); }
.btn-hex.blue:hover { border-color: var(--blue); box-shadow: inset 0 0 0 2px rgba(1, 10, 19, .9), 0 0 18px rgba(10, 200, 185, .35); }
.btn-hex:disabled { opacity: .45; cursor: not-allowed; }
.error { color: var(--bad); min-height: 1.5em; margin: 8px 0 0; }

.result { text-align: center; }
.result .label { text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin: 0; font-size: 12px; }
.score { font: 800 64px/1.1 Cinzel, serif; color: var(--gold); }
.breakdown { display: grid; gap: 8px; margin: 16px 0; text-align: left; }
.bar { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.bar .track { height: 8px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.bar small { color: var(--muted); display: block; }

.ranking-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.countdown { color: var(--blue); font-size: 13px; }
#ranking { padding: 0; margin: 10px 0; list-style: none; display: grid; gap: 4px; }
#ranking li { display: grid; grid-template-columns: 36px 1fr auto; padding: 6px 10px; border-radius: 2px; background: var(--tile); }
#ranking li:nth-child(1) { border-left: 3px solid var(--gold); }
#ranking li .pos { color: var(--muted); }
#ranking li .pts { color: var(--gold); font-weight: 700; }
#ranking-best { font-size: 13px; color: var(--muted); }


@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .layout > .kit { grid-column: 1; grid-row: auto; }
  .top h1 { font-size: 34px; }
  .score { font-size: 52px; }
  .bar { grid-template-columns: 90px 1fr 40px; }
}

/* Navegação e menu */
.hub { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.mode { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.mode:not(.soon):hover { border-color: var(--gold); transform: translateY(-2px); }
.mode h2 { margin: 4px 0 0; }
.mode p { margin: 0; color: var(--muted); flex: 1; }
.mode-icon { font-size: 30px; color: var(--gold); }
.mode-cta { align-self: flex-start; margin-top: 14px; padding: 8px 20px; border: 2px solid var(--gold-3); background: #1e2328; color: var(--gold-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; }
.mode.soon { opacity: .55; }
.mode.soon .mode-cta { border-color: var(--line); color: var(--muted); }

button.ghost { padding: 8px 16px; border-radius: 0; border: 1px solid var(--gold-4); background: rgba(1, 10, 19, .5); color: var(--gold); font: 600 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: 1.5px; cursor: pointer; }
button.ghost:hover { color: var(--gold-2); border-color: var(--gold); }

/* LolDoku */
.doku-wrap { display: grid; gap: 12px; justify-items: center; }
.doku { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 620px; }
.doku-head, .doku-corner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6px; font-weight: 700; color: var(--gold-2); font-size: 14px; line-height: 1.2; min-height: 64px; }
.doku-head small, .doku-corner small { font-weight: 500; color: var(--blue); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.doku-corner b { font: 800 30px/1 Cinzel, serif; color: var(--gold); }
.doku-cell { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 2px; border: 1px solid var(--line); background: var(--tile); color: var(--muted); font: inherit; padding: 4px; overflow: hidden; }
button.doku-cell { cursor: pointer; transition: border-color .15s, background .15s; }
button.doku-cell:hover:not(:disabled) { border-color: var(--gold); background: #101a2e; }
button.doku-cell:disabled { cursor: default; opacity: .6; }
.doku-cell small { font-size: 11px; text-align: center; }
.doku-cell.solved { border-color: #3a3220; background: linear-gradient(180deg, #17223a, #0d1526); color: var(--gold-2); }
.doku-cell.solved img { width: 56%; border-radius: 2px; }
.doku-cell.solved span { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.1; }
.doku-cell em { position: absolute; top: 3px; right: 3px; font-style: normal; font-size: 10px; color: var(--blue); font-weight: 700; background: rgba(7, 11, 20, .85); padding: 0 4px; border-radius: 2px; }
.doku.mini { max-width: 460px; margin-top: 12px; }
.doku.mini .doku-cell small { font-size: 9px; }
.doku-bar { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.toast { min-height: 1.4em; margin: 0; font-weight: 600; }
.toast.ok { color: var(--good); }
.toast.bad { color: var(--bad); }

dialog { border: 1px solid var(--gold); border-radius: 2px; background: var(--panel); color: var(--text); padding: 0; width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(3, 6, 12, .75); }
.picker { display: grid; gap: 10px; padding: 16px; }

/* Prévia da imagem de compartilhamento */
.share-dialog { width: min(520px, calc(100vw - 32px)); }
.share-dialog form { display: grid; gap: 12px; padding: 16px; justify-items: center; }
.share-dialog img { display: block; width: auto; max-width: 100%; max-height: 62vh; border: 1px solid var(--line); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.share-actions .btn-hex { padding: 10px 16px; font-size: 12px; }
#share:disabled { opacity: .6; cursor: progress; }
.picker-list { display: grid; gap: 4px; max-height: 320px; overflow-y: auto; }
.pick { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 2px; border: 1px solid transparent; background: var(--tile); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pick:hover, .pick:focus-visible { border-color: var(--gold); outline: none; }
.pick img { width: 32px; height: 32px; border-radius: 2px; }
#done form { justify-content: center; margin-top: 12px; }

@media (max-width: 520px) {
  .doku { gap: 4px; }
  .doku-head, .doku-corner { font-size: 11px; min-height: 48px; padding: 2px; }
  .doku-cell.solved span { font-size: 10px; }
}

/* Team Builder */
.team-head { margin: 14px 0 4px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.team-head h2 { margin: 0; font-size: 28px; }
.team-head p { margin: 2px 0 0; color: var(--muted); }
.team-head b { color: var(--gold); }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.player { display: grid; gap: 6px; text-align: left; background: var(--tile); border: 1px solid var(--line); border-radius: 2px; padding: 10px; color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.player:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-1px); }
.player:disabled { opacity: .35; cursor: not-allowed; }
.player .slot { font-size: 11px; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.player .name { font-weight: 700; font-size: 18px; color: var(--gold-2); }
.player .champs { display: flex; gap: 4px; min-height: 28px; }
.player .champs img { width: 28px; height: 28px; border-radius: 2px; }
.player .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.player .stats i { font-style: normal; font-size: 10px; color: var(--muted); display: flex; flex-direction: column; background: var(--panel-2); border-radius: 2px; padding: 3px 5px; }
.player .stats b { font-size: 13px; color: var(--text); }
code { background: var(--tile); padding: 1px 6px; border-radius: 2px; color: var(--gold-2); }

/* Dependência do kit original */
.opt .dep { grid-column: 1 / -1; font-size: 11.5px; line-height: 1.3; padding: 4px 7px; border-radius: 2px; background: #1d1a10; color: var(--mid); }
.opt .dep.bad { background: #241214; color: var(--bad); }
.bar .dep-line { grid-column: 1 / -1; color: var(--mid); font-size: 11.5px; margin-top: -4px; }

/* Team Builder: dificuldade, overall, Mundial e ranking com abas */
.start { max-width: 720px; margin: 0 auto 20px; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.mode-pick { display: grid; gap: 6px; text-align: left; padding: 16px; border-radius: 2px; border: 1px solid var(--line); background: var(--tile); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.mode-pick:hover { border-color: var(--gold); transform: translateY(-1px); }
.mode-pick b { font: 800 22px Cinzel, serif; color: var(--gold); }
.mode-pick span { color: var(--muted); font-size: 14px; }
button.ghost:disabled { opacity: .4; cursor: not-allowed; }
.ovr { font: 800 15px Cinzel, serif; min-width: 34px; text-align: center; padding: 2px 6px; border-radius: 2px; background: var(--panel-2); align-self: center; }
.ovr.big { font-size: 26px; justify-self: start; padding: 2px 10px; }
.ovr.elite { color: #ffd76a; box-shadow: inset 0 0 0 1px #ffd76a66; }
.ovr.good { color: var(--good); }
.ovr.mid { color: var(--mid); }
.ovr.low { color: var(--bad); }
.kslot:has(.ovr) { grid-template-columns: 40px 1fr auto; }
.kit h3 small { font: 500 12px Inter, sans-serif; color: var(--muted); margin-left: 6px; }
.stage { font: 800 44px/1.1 Cinzel, serif; color: var(--gold-2); margin: 4px 0; }
.stage.s6 { color: #ffd76a; text-shadow: 0 0 18px #ffd76a55; }
.stage.s5, .stage.s4 { color: var(--gold); }
.stage.s0, .stage.s1, .stage.s2 { color: var(--muted); }
.worlds { margin: 14px 0; display: grid; gap: 6px; }
.worlds h4 { margin: 10px 0 2px; color: var(--gold); font: 700 14px Inter, sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.match-row { display: grid; gap: 2px; padding: 6px 10px; border-radius: 2px; background: var(--tile); border-left: 3px solid var(--line); }
.match-row.win { border-left-color: var(--good); }
.match-row.loss { border-left-color: var(--bad); }
.match-row > small, .phase > small { color: var(--muted); font-size: 11px; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; font-size: 14px; }
.match > span:last-child { text-align: right; }
.match small { color: var(--muted); font-size: 11px; }
.match .won { font-weight: 700; color: var(--gold-2); }
.match .me { color: var(--blue); }
.match b { color: var(--gold); font-variant-numeric: tabular-nums; }
.phase { display: grid; gap: 4px; padding: 6px 10px; border-radius: 2px; background: var(--tile); }
.champion { margin: 8px 0 0; font-size: 16px; }
.champion small { color: var(--muted); }
.save { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tabs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.tabs span { width: 10px; }
.tabs button { padding: 5px 12px; border-radius: 2px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 13px Inter, sans-serif; cursor: pointer; }
.tabs button.on { border-color: var(--gold); color: var(--gold-2); background: var(--panel-2); }
.titles { font-size: 12px; }
@media (max-width: 560px) { .stage { font-size: 32px; } .match { font-size: 12px; } }
#again { margin-top: 12px; }

/* ===== Barra de navegação (estilo Riot) ===== */
.riotbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 24px; background: rgba(1, 10, 19, .96); border-bottom: 1px solid var(--gold-4); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 8px; font: 900 22px Cinzel, serif; letter-spacing: 3px; color: var(--gold-2); text-decoration: none; }
.brand-logo { display: block; height: 38px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.site-footer .brand-logo { height: 34px; }
.riotbar-links { display: flex; gap: 4px; flex: 1; }
.riotbar-links a { position: relative; padding: 22px 12px; color: var(--gold-2); text-decoration: none; font: 700 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: 1.5px; opacity: .8; transition: opacity .15s, color .15s; }
.riotbar-links a:hover { opacity: 1; color: #fff; }
.riotbar-links a.on { opacity: 1; color: var(--gold); }
.riotbar-links a.on::after, .riotbar-links a:hover::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--gold); }
.riotbar-links a:hover:not(.on)::after { background: var(--gold-4); }
.riotbar-cta { display: flex; gap: 10px; align-items: center; }
.btn-red, .btn-line { display: inline-block; padding: 9px 18px; font: 800 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; white-space: nowrap; transition: filter .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn-red:hover { filter: brightness(1.12); }
.btn-line { color: var(--gold-2); border: 1px solid var(--gold-4); }
.btn-line:hover { border-color: var(--gold); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--gold-4); color: var(--gold); font-size: 20px; width: 40px; height: 36px; cursor: pointer; }
@media (max-width: 960px) {
  .riotbar { gap: 12px; padding: 0 16px; }
  .menu-toggle { display: block; }
  .riotbar-links, .riotbar-cta { display: none; }
  .riotbar.open { flex-wrap: wrap; height: auto; padding-bottom: 14px; }
  .riotbar.open .brand { height: 64px; }
  .riotbar.open .riotbar-links { display: flex; flex-direction: column; flex-basis: 100%; }
  .riotbar.open .riotbar-links a { padding: 12px 4px; }
  .riotbar.open .riotbar-links a::after { display: none; }
  .riotbar.open .riotbar-cta { display: flex; flex-basis: 100%; }
  .top { padding: 48px 16px 40px; }
  .top h1 { font-size: 40px; letter-spacing: 3px; }
}

/* ===== Início ===== */
.top.hub-hero { padding: 120px 16px 96px; }
.hub-hero h1 { font-size: 92px; letter-spacing: 10px; }
/* Logo oficial no lugar do título em texto. */
.top h1.hero-logo { line-height: 0; }
.hero-logo img { width: min(560px, 86vw); height: auto; filter: drop-shadow(0 8px 28px rgba(0, 0, 0, .85)); }
.hub-hero .hero-logo img { width: min(720px, 90vw); }
.eyebrow { display: block; margin-bottom: 10px; color: var(--blue); font: 700 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: 4px; text-shadow: 0 2px 8px #000; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.section-title { text-align: center; margin: 12px 0 4px; }
.section-title h2 { font-size: 30px; margin: 0; }
.section-title p { color: var(--muted); margin: 6px 0 0; }
.section-title::after { content: ""; display: block; width: 120px; height: 2px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hub .mode { padding: 0; overflow: hidden; }
.mode-art { height: 160px; background: var(--art) center var(--pos, 22%) / cover no-repeat; border-bottom: 1px solid var(--gold-4); transition: transform .4s; }
.mode:hover .mode-art { transform: scale(1.04); }
.mode-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; flex: 1; }
.mode-body small { color: var(--blue); font: 700 11px Inter, sans-serif; text-transform: uppercase; letter-spacing: 2px; }
.mode:not(.soon):hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 1px var(--gold-4); }
@media (max-width: 960px) { .top.hub-hero { padding: 72px 16px 56px; } .hub-hero h1 { font-size: 52px; letter-spacing: 5px; } }

/* ===== Anúncios ===== */
.ad-slot { max-width: 1140px; margin: 8px auto 28px; padding: 0 16px; display: grid; gap: 4px; }
.ad-slot > small { color: #5b5a56; font-size: 10px; text-transform: uppercase; letter-spacing: 2px; text-align: center; }
.ad-slot img { display: block; width: 100%; max-height: 120px; object-fit: cover; border: 1px solid var(--line); }
.ad-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 96px; text-decoration: none; border: 1px dashed var(--gold-4); background: repeating-linear-gradient(135deg, rgba(200, 170, 110, .04) 0 12px, transparent 12px 24px); transition: border-color .15s; }
.ad-empty:hover { border-color: var(--gold); }
.ad-empty b { font: 800 18px Cinzel, serif; color: var(--gold); text-transform: uppercase; letter-spacing: 3px; }
.ad-empty span { color: var(--muted); font-size: 13px; }

/* ===== Rodapé ===== */
.site-footer { background: #000; border-top: 1px solid var(--gold-4); padding: 36px 24px 28px; color: #5b5a56; font-size: 12px; text-align: center; }
.footer-top { max-width: 1140px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-top nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-top nav a { color: var(--muted); text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; }
.footer-top nav a:hover { color: var(--gold-2); }
.site-footer .credits p { margin: 0 0 8px; color: #7e7a70; }
.site-footer .legal { max-width: 760px; margin: 8px auto 0; line-height: 1.6; }
@media (max-width: 700px) { .footer-top { justify-content: center; } }

/* ===== Página Anuncie ===== */
.ad-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ad-formats .card p { color: var(--muted); margin: 0; }
.ad-formats .card b { display: block; margin-top: 10px; color: var(--blue); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; text-align: center; }
.stats-row div { padding: 14px; background: var(--tile); border: 1px solid var(--line); }
.stats-row b { display: block; font: 900 34px Cinzel, serif; color: var(--gold); }
.stats-row span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.contact { text-align: center; }

/* ===== X1 ===== */
.x1-players { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; width: 100%; max-width: 620px; }
.x1-player { padding: 12px 16px; background: var(--tile); border: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.x1-player:last-child { text-align: right; }
.x1-player small { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; }
.x1-player b { font: 800 20px Cinzel, serif; color: var(--gold-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x1-player.p0 small { color: var(--blue); }
.x1-player.p1 small { color: var(--red); }
.x1-player.turn.p0 { border-color: var(--blue); box-shadow: 0 0 18px rgba(10, 200, 185, .3); }
.x1-player.turn.p1 { border-color: var(--red); box-shadow: 0 0 18px rgba(209, 54, 57, .3); }
.x1-vs { font: 900 22px Cinzel, serif; color: var(--gold); }
.x1-status { text-align: center; font: 700 15px Inter, sans-serif; color: var(--gold-2); min-height: 1.5em; margin: 0; }
.x1-timer { width: 100%; max-width: 620px; height: 4px; background: var(--line-soft); overflow: hidden; }
.x1-timer i { display: block; height: 100%; background: var(--gold); transition: width .25s linear; }
.doku-cell.own0 { border-color: var(--blue); background: linear-gradient(180deg, rgba(10, 200, 185, .22), rgba(10, 50, 60, .55)); }
.doku-cell.own1 { border-color: var(--red); background: linear-gradient(180deg, rgba(209, 54, 57, .24), rgba(60, 10, 14, .55)); }
.doku-cell.win { box-shadow: 0 0 0 2px var(--gold-2), 0 0 22px rgba(240, 230, 210, .45); }
.invite { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; width: 100%; max-width: 620px; }
.invite input { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.x1-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.x1-rules { color: var(--muted); font-size: 14px; margin: 0; padding-left: 18px; }
.x1-rules li { margin: 3px 0; }
.x1-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.x1-banner p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .x1-player b { font-size: 15px; } }

/* Seletor de idioma */
.lang-pick { padding: 8px 10px; background: rgba(1, 10, 19, .6); color: var(--gold-2); border: 1px solid var(--gold-4); font: 700 12px Inter, sans-serif; letter-spacing: 1px; cursor: pointer; }
.lang-pick:hover, .lang-pick:focus { border-color: var(--gold); outline: none; }
.lang-pick option { background: var(--panel); color: var(--text); }

/* Anúncio dentro do conteúdo (data-ad) e bloco do AdSense */
main .ad-slot { margin: 0; padding: 0; max-width: none; }
.ad-slot ins.adsbygoogle { min-height: 100px; }

/* Aviso de cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 16px 18px; background: rgba(9, 20, 40, .97); border: 1px solid var(--gold-4); box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
.consent p { margin: 0; flex: 1 1 320px; font-size: 13.5px; color: var(--text); }
.consent div { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn-line, .consent .btn-hex { padding: 9px 16px; font-size: 12px; cursor: pointer; background: none; }
.consent .btn-hex { background: linear-gradient(180deg, #1e2328, #10151a); }

/* Como jogar */
.howto ol, .howto ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.howto li { color: var(--text); }
.howto li::marker { color: var(--gold); font-weight: 700; }

/* Páginas de texto (Sobre, Privacidade) */
.prose { max-width: 820px; width: 100%; margin: 0 auto; }
.prose h2 { font-size: 20px; margin: 22px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose .sub { color: var(--muted); }
.faq details { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--gold-2); }
.faq details p { margin: 8px 0 0; color: var(--text); }

/* Botão do WhatsApp (compartilhar e convidar) */
.btn-wa { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 2px solid #25d366; background: linear-gradient(180deg, #128c4a, #0b5e32); color: #fff; font: 700 13px Inter, sans-serif; text-transform: uppercase; letter-spacing: 1.5px; cursor: pointer; text-decoration: none; transition: filter .15s, box-shadow .15s; }
.btn-wa::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.2c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.8s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.4.6-.4.4c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.1 1 2.1 1.3 2.4 1.4.3.2.5.1.6-.1l.9-1c.2-.3.4-.2.7-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.2c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.8s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.4.6-.4.4c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.1 1 2.1 1.3 2.4 1.4.3.2.5.1.6-.1l.9-1c.2-.3.4-.2.7-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn-wa:hover { filter: brightness(1.1); box-shadow: 0 0 18px rgba(37, 211, 102, .35); }
.share-dialog .btn-wa, .share-dialog .btn-hex { padding: 10px 16px; font-size: 12px; }
.share-dialog [hidden] { display: none !important; }
.share-dialog a.ghost { display: inline-block; padding: 8px 16px; border: 1px solid var(--gold-4); background: rgba(1, 10, 19, .5); color: var(--gold); font: 600 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; }
.share-dialog a.ghost:hover { color: var(--gold-2); border-color: var(--gold); }
.share-text { margin: 0; max-width: 100%; white-space: pre-line; font-size: 13px; color: var(--muted); background: var(--tile); border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
