/* Lendas do CBLOL: mesmas cores e fontes do site. */
:root {
  color-scheme: dark;
  --bg: #09090a; --panel: #121212; --panel-2: #181818; --line: #27241d; --line-2: #3b352a;
  --text: #f4efe4; --muted: #9b9383; --gold: #d9a82b; --gold-2: #f5cf5a;
  --win: #1f9a53; --loss: #b8453c;
  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: radial-gradient(900px 500px at 50% -220px, rgba(217, 168, 43, 0.1), transparent 70%), var(--bg); color: var(--text); font: 15px/1.5 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
button { font-family: var(--sans); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dt { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 16px 36px; display: flex; flex-direction: column; gap: 18px; }

.dt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); padding-bottom: 12px; }
.dt-head .eyebrow { margin: 0; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; }
.dt-head h1 { margin: 2px 0 0; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: 1px; color: var(--gold-2); }
.dt-head .meta { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

.cols { display: grid; grid-template-columns: 300px 1fr 280px; gap: 18px; align-items: start; }
.box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; padding: 14px; }
.box h3 { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1; padding: 9px 10px; background: transparent; color: var(--text); border: 1px solid var(--line-2); border-radius: 4px; font-weight: 700; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--gold); color: #140f02; border-color: var(--gold); }
.seg button:disabled { opacity: 0.45; cursor: default; }
.hint-text { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.btn { display: block; width: 100%; padding: 14px; border: 0; border-radius: 4px; font-family: var(--display); font-size: 28px; letter-spacing: 1px; line-height: 1; cursor: pointer; }
.btn-roll { background: #b3332a; color: #fff; box-shadow: 4px 4px 0 #3a1612; }
.btn-roll:hover { filter: brightness(1.1); }
.btn-gold { background: var(--gold); color: #140f02; box-shadow: 4px 4px 0 #4a3a10; }
.btn-gold:hover { background: var(--gold-2); }
.btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.btn-ghost { display: inline-block; width: auto; padding: 9px 14px; font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: 0; background: transparent; color: var(--text); border: 1px solid var(--line-2); border-radius: 4px; cursor: pointer; }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); }
.btn-ghost:disabled { opacity: 0.4; cursor: default; }

/* Time sorteado */
.drawn-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.drawn-label { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.drawn-team { margin: 2px 0 0; font-family: var(--display); font-size: 30px; line-height: 1.05; }
.drawn-ed { margin: 0; color: var(--gold-2); font-weight: 700; font-size: 13px; }
.drawn-place { font-size: 12px; color: var(--muted); }
.bonus { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.bonus .seg button { font-size: 12px; }
.people { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; max-height: 470px; overflow-y: auto; }
.person { display: grid; grid-template-columns: 58px 1fr auto; grid-template-areas: 'role nm ovr' 'acts acts acts'; align-items: center; gap: 4px 8px; padding: 7px 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; }
.person.off { opacity: 0.4; }
.person .role { grid-area: role; }
.person .nm { grid-area: nm; }
.person .ovr { grid-area: ovr; }
.person .acts { grid-area: acts; }
.person .acts:empty { display: none; }
.person .role { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.person .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .nm small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.person .acts { display: flex; gap: 6px; }
.person .ovr { min-width: 30px; text-align: right; font-family: var(--display); font-size: 24px; line-height: 1; color: var(--gold-2); }
.person .ovr.hidden { color: var(--muted); }
.pick { --pulse: 217, 168, 43; padding: 5.5px 8.8px; border: 1px solid var(--gold); background: transparent; color: var(--gold-2); border-radius: 3px; font-size: 12.1px; font-weight: 800; cursor: pointer; animation: pick-pulse 1.8s ease-in-out infinite; }
.pick:hover { background: rgba(217, 168, 43, 0.14); }
.pick.res { --pulse: 244, 239, 228; border-color: var(--line-2); color: var(--text); }
.pick.res:hover { background: rgba(244, 239, 228, 0.1); }

/* Pulsa para mostrar onde clicar (como no jogo da Carreira): os botões de
   escolher o jogador (cada um na sua cor) e o Rolar quando está disponível. */
@keyframes pick-pulse {
  0%, 100% { border-color: rgba(var(--pulse), 0.55); box-shadow: 0 0 0 0 rgba(var(--pulse), 0); }
  50% { border-color: rgb(var(--pulse)); box-shadow: 0 0 12px 1px rgba(var(--pulse), 0.55); background-color: rgba(var(--pulse), 0.14); }
}
.btn-roll[data-act="rolar"]:not(:disabled) { --pulse: 179, 51, 42; animation: roll-pulse 1.8s ease-in-out infinite; }
@keyframes roll-pulse {
  0%, 100% { box-shadow: 4px 4px 0 #3a1612, 0 0 0 0 rgba(var(--pulse), 0); }
  50% { box-shadow: 4px 4px 0 #3a1612, 0 0 24px 4px rgba(var(--pulse), 0.75); filter: brightness(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .pick, .btn-roll[data-act="rolar"]:not(:disabled) { animation: none; }
}

/* Mapa do Rift com as 5 rotas (imagem com as marcações; cada vaga fica
   centrada sobre a marcação da sua rota). */
.rift { position: relative; max-width: 560px; margin: 0 auto; container-type: inline-size; }
.rift img { display: block; width: 100%; height: auto; border-radius: 8px; }
.slot { position: absolute; width: 118px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.rift .slot { --dot: 11cqw; transform: translate(-50%, calc(var(--dot) / -2)); }
.slot .dot { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(9, 9, 10, 0.72); border: 2px dashed rgba(244, 239, 228, 0.35); font: 800 12px var(--sans); letter-spacing: 1px; color: var(--muted); }
.rift .slot .dot { width: var(--dot); height: var(--dot); background: transparent; border: 0; }
.rift .slot .lbl { display: none; }
.slot.full .dot { font-family: var(--display); font-size: 26px; font-weight: 400; letter-spacing: 0; }
.slot.full .dot { border: 2px solid var(--gold); background: #141210; color: var(--gold-2); }
.rift .slot.full .dot { border: 2px solid var(--gold); background: #141210; font-size: clamp(18px, 5cqw, 28px); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.slot.can .dot { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(245, 207, 90, 0.18); }
.rift .slot.can .dot { box-shadow: 0 0 0 3px var(--gold-2), 0 0 18px 4px rgba(245, 207, 90, 0.6); animation: vaga 1.6s ease-in-out infinite; }
@keyframes vaga { 50% { box-shadow: 0 0 0 3px var(--gold-2), 0 0 26px 8px rgba(245, 207, 90, 0.35); } }
.slot .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(244, 239, 228, 0.7); }
.slot .who { max-width: 118px; padding: 1px 6px; border-radius: 3px; background: rgba(9, 9, 10, 0.8); font-weight: 800; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .from { font-size: 10px; color: rgba(244, 239, 228, 0.65); max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rift .slot .from { background: rgba(9, 9, 10, 0.7); padding: 0 5px; border-radius: 3px; }
.bench { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; margin: 12px auto 0; }
.bench .slot { position: static; transform: none; width: auto; flex-direction: row; gap: 10px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; text-align: left; }
.bench .slot .dot { width: 46px; height: 46px; flex: none; }
.bench .slot.full .dot { font-size: 22px; }
.bench .slot .txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bench .slot .lbl, .bench .slot .who, .bench .slot .from { background: none; padding: 0; text-align: left; }
.bench .slot .who { font-size: 13px; }

/* Placar do time */
.name-input { width: 100%; padding: 11px 12px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 4px; font: 700 16px var(--sans); }
.name-input:focus { outline: none; border-color: var(--gold); }
.team-name { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 26px; font-weight: 400; letter-spacing: 0.5px; line-height: 1.05; text-transform: none; color: var(--text); overflow-wrap: anywhere; }
.final-team { margin: 0 0 4px !important; font-family: var(--display); font-size: 24px; letter-spacing: 1px; color: var(--text) !important; }

/* Escudo do OVR (mesmas imagens e faixas da Carreira no Rift) */
.ovr-shield { position: relative; flex: none; width: 76px; height: 105px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 6px; gap: 1px; color: #fff; }
.ovr-shield img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.2s; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.ovr-shield img.loaded { opacity: 1; }
.ovr-shield small, .ovr-shield b { position: relative; }
.ovr-shield small { font-size: 10px; font-weight: 800; letter-spacing: 2.5px; color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
.score-big .ovr-shield b { font-family: var(--display); font-size: 44px; line-height: 0.9; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.9); }
.ovr-shield.tier-challenger b { color: #fff6dc; }
.ovr-shield.no-img { clip-path: polygon(50% 0, 100% 12%, 100% 80%, 50% 100%, 0 80%, 0 12%); }
.ovr-shield.no-img.tier-prata { background: linear-gradient(160deg, #b9c2cb, #5d6873); }
.ovr-shield.no-img.tier-ouro { background: linear-gradient(160deg, #f7d774, #a8781a); }
.ovr-shield.no-img.tier-platina { background: linear-gradient(160deg, #4fd1c5, #0e5a5a); }
.ovr-shield.no-img.tier-diamante { background: linear-gradient(160deg, #6f8cff, #1d2f9e); }
.ovr-shield.no-img.tier-challenger { background: linear-gradient(160deg, #ffd66b, #b36b12); }
.score-big { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.score-big b { font-family: var(--display); font-size: 58px; line-height: 0.9; color: var(--text); }
.lineup { margin-top: 10px; display: flex; flex-direction: column; }
.lineup div { display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.lineup span:first-child { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.lineup b { color: var(--gold-2); font-variant-numeric: tabular-nums; }
.lineup .ign b { color: var(--muted); text-decoration: line-through; }
.note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* Campanha */
.camp { max-width: 820px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.camp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.round { background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; padding: 12px 14px; display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; }
.round .ph { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.round .vs { font-family: var(--display); font-size: 24px; line-height: 1.05; }
.round .vs small { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.round .res { font-family: var(--display); font-size: 30px; line-height: 1; }
.round .res.w { color: #6fd79a; }
.round .res.l { color: #f0948e; }
.round .games { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.round .games span { padding: 3px 8px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line); }
.round .games span.w { border-color: rgba(31, 154, 83, 0.6); }
.round .games span.l { border-color: rgba(184, 69, 60, 0.6); }
.round.new { animation: rise 0.35s ease both; }
.ctrl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctrl .seg { flex-wrap: nowrap; }
.ctrl .seg button { flex: none; padding: 8px 12px; font-size: 13px; font-weight: 800; }
.vel { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.vel select { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 4px; padding: 8px 8px; font: 800 13px var(--sans); cursor: pointer; }
.vel select:hover { border-color: var(--gold); }
.round .res.live { color: var(--muted); }
.round .games span.live { color: var(--gold-2); border-color: var(--gold); font-variant-numeric: tabular-nums; animation: pulse 1.2s ease-in-out infinite; }
.round .games span.live .ka { color: #6fd79a; }
.round .games span.live .ke { color: #f0948e; }
@keyframes pulse { 50% { border-color: rgba(217, 168, 43, 0.35); } }

/* Ver a partida: os dois times com OVR e K/D/A */
.more { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 8px; }
.more summary { cursor: pointer; font-size: 12.5px; font-weight: 800; color: var(--gold-2); width: fit-content; }
.more summary:hover { text-decoration: underline; }
.match { margin-top: 12px; }
.match-t { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.match-t b.w { color: #6fd79a; }
.match-t b.l { color: #f0948e; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side { min-width: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }
.side-t { margin: 0 0 4px; font-family: var(--display); font-size: 18px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.stats th { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); text-align: left; padding: 3px 4px; }
.stats td { padding: 4px; border-top: 1px solid var(--line); }
.stats .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats td.r { width: 34px; font-size: 10px; font-weight: 800; color: var(--muted); }
.stats td.nm { font-weight: 700; overflow-wrap: anywhere; }
.stats td.kda { font-weight: 700; }
.stats tr.mvp td { background: rgba(217, 168, 43, 0.08); }
.stats .star { font-size: 9.5px; font-weight: 800; color: #140f02; background: var(--gold); border-radius: 3px; padding: 1px 4px; vertical-align: 1px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.final { padding: 20px; border-radius: 6px; text-align: center; border: 1px solid var(--gold); background: rgba(217, 168, 43, 0.08); }
.final.bad { border-color: var(--line-2); background: var(--panel); }
.final .t { margin: 0; font-family: var(--display); font-size: 52px; line-height: 1; color: var(--gold-2); }
.final p { margin: 6px 0 0; color: #d3ccbc; }
.final .acts { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.final .acts .btn { width: auto; padding: 12px 22px; font-size: 22px; }

.toast { position: fixed; left: 50%; top: 90px; transform: translateX(-50%); z-index: 90; background: var(--text); color: #140f02; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); pointer-events: none; }
.toast[hidden] { display: none; }
.loading { color: var(--muted); margin-top: 40px; text-align: center; }

@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .dt { padding: 12px 10px 24px; }
  .dt-head h1 { font-size: 34px; }
  .slot { width: 92px; }
  .bench .slot .dot { width: 46px; height: 46px; font-size: 11px; }
  .rift .slot { --dot: 12cqw; }
  .slot .who, .slot .from { max-width: 92px; }
  .slot .from { display: none; }
  .bench { grid-template-columns: 1fr; }
  .round { grid-template-columns: 1fr auto; }
  .round .ph { grid-column: 1 / -1; }
  .sides { grid-template-columns: 1fr; }
}

/* Comemoração do título (mesma da Carreira no Rift) */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 9, 0.8); backdrop-filter: blur(4px); animation: fade 0.2s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; overflow: hidden; width: min(420px, 100%); text-align: center; background: linear-gradient(180deg, #1c1810, #0d0c09); border: 1px solid var(--gold); border-radius: 20px; padding: 34px 26px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(217, 168, 43, 0.18); animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes pop { from { transform: scale(0.7); opacity: 0; } }
.rays { position: absolute; left: 50%; top: 110px; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(245, 207, 90, 0.12) 0 8deg, transparent 8deg 22deg);
  mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.trophy-art { position: relative; display: flex; justify-content: center; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.6)); animation: float 3s ease-in-out infinite; }
.trophy-art img { width: 150px; height: auto; }
@keyframes float { 50% { transform: translateY(-6px); } }
.modal .eyebrow { position: relative; margin: 12px 0 0; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; }
.modal h2 { position: relative; margin: 6px 0 4px; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: 1px; color: var(--gold-2); overflow-wrap: anywhere; }
.modal .parabens { position: relative; margin: 0 0 16px; color: #d3ccbc; }
.t-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.t-stats div { background: rgba(9, 9, 10, 0.55); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 4px; display: flex; flex-direction: column; }
.t-stats b { font-family: var(--display); font-size: 32px; font-weight: 400; line-height: 1; color: var(--text); }
.t-stats small { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.modal .btn { position: relative; }
@media (prefers-reduced-motion: reduce) { .rays, .trophy-art, .modal, .modal-backdrop { animation: none; } }

.credit { max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 16px 18px; font-size: 11.5px; color: var(--muted); }
.credit a { color: inherit; }
