/* ---------- En vivo ---------- */

.live-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.live-form > input { width: 240px; }

.live-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 14px 18px; margin-bottom: 18px; }
.live-title { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--loss); box-shadow: 0 0 10px var(--loss); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.live-timer { margin-left: auto; font-size: 20px; font-weight: 600; color: var(--brand-light); }

/* Consejos para la partida */
.advice { margin-bottom: 18px; }
.advice .card-title .muted { font-weight: 600; letter-spacing: normal; text-transform: none; }
.advice-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr) minmax(260px, 1.2fr); gap: 22px; padding: 14px 16px 16px; }
.advice-sub { margin-bottom: 10px; font-weight: 800; font-size: 14px; }
.advice-sub .muted { font-weight: 500; }
.dmg-split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.dmg-split .phys { background: #ff9f62; }
.dmg-split .mag { background: #7fa9ff; }
.dmg-legend { display: flex; justify-content: space-between; margin-top: 6px; font: 600 12px var(--mono); }
.dmg-legend .phys { color: #ff9f62; }
.dmg-legend .mag { color: #7fa9ff; }
.threats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.threat { padding: 3px 10px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03); color: var(--muted-fg); font-size: 12px; }
.threat b { color: var(--fg); }
.advice-row { padding: 9px 0; border-top: 1px solid var(--border); }
.advice-row:first-of-type { border-top: 0; padding-top: 0; }
.advice-title { font-weight: 700; font-size: 13.5px; }
.advice-title .muted { font-weight: 500; }
.advice-tip { margin: 2px 0 7px; font-size: 12.5px; color: var(--muted-fg); }
.advice-icons, .build-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.advice-none { margin: 0; font-size: 13px; }
.advice-link { display: inline-block; margin-top: 12px; font-size: 13px; }
/* Chat con Fichado AI: debajo de la compo y los objetos, al lado de la build (que es más larga) */
.advice-build { grid-row: span 2; }
.advice-chat { grid-column: 1 / 3; align-self: start; min-width: 0; padding-top: 16px; border-top: 1px solid var(--border); }
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px 2px 4px; }
.chat-msg { max-width: 88%; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg.me { align-self: flex-end; border: 1px solid var(--brand-line); border-bottom-right-radius: 4px; background: var(--brand-soft); }
.chat-msg.ai { align-self: flex-start; border: 1px solid rgba(138, 120, 255, 0.35); border-bottom-left-radius: 4px; background: linear-gradient(135deg, rgba(110, 90, 255, 0.09), rgba(0, 215, 194, 0.05)); }
.chat-msg .ai-error { margin: 0; }
.chat-msg.thinking { display: flex; gap: 5px; padding: 12px 14px; }
.chat-msg.thinking span { width: 6px; height: 6px; border-radius: 50%; background: #a99bff; animation: chat-dot 1s ease-in-out infinite; }
.chat-msg.thinking span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.thinking span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.chat-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.chat-idea { padding: 4px 11px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.03); color: var(--muted-fg); font: inherit; font-size: 12.5px; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.chat-idea:hover:not(:disabled) { border-color: var(--brand-line); color: var(--fg); }
.chat-idea:disabled { opacity: 0.5; cursor: default; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; }
.item-lg { width: 34px; height: 34px; border-radius: 7px; border: 1px solid var(--border-strong); }
.rune-lg { width: 34px; height: 34px; border-radius: 50%; background: #000; }
.rune-lg.sub { padding: 7px; background: rgba(255, 255, 255, 0.06); }
.spell-lg { width: 34px; height: 34px; border-radius: 7px; }
.build-meta { margin: -4px 0 4px; font-size: 12.5px; }
.build-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.build-label { flex: none; width: 66px; font-size: 12px; color: var(--muted-fg); }
.build-item { position: relative; }
.build-count {
  position: absolute;
  right: -4px;
  bottom: -4px;
  padding: 0 4px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  font: 600 10px var(--mono);
}

/* Ventanita encima del juego */
.mini-launch { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 13px 18px; margin-bottom: 18px; font-size: 14px; }
.mini-launch > div { flex: 1; min-width: 240px; }
.mini-launch .muted { font-size: 12.5px; margin-top: 2px; }
.mini-launch .mini-old { flex-basis: 100%; margin: 0; color: #f5c451; }
.mini { background-image: none; }
.mini .topbar, .mini footer, .mini #banner, .mini .window-edge { display: none; }
.mini main { max-width: none; padding: 0; }
.mini-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding-left: 12px;
  background: #101212;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  cursor: move;
  user-select: none;
}
.mini-score { min-width: 0; margin-left: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; color: var(--muted-fg); font-family: var(--mono); }
.mini-score .gold { color: #f5c451; }
.mini-title { flex: none; color: var(--muted-fg); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
/* La de objetivos y la de hechizos se ajustan solas a lo que muestran: sin barra de desplazamiento ni bordes para agrandar */
.mini-autosize .page { overflow: hidden; }
.mini-autosize .mini-edges { display: none; }
.mini-btn { display: grid; place-items: center; min-width: 30px; height: 34px; padding: 0 6px; border: 0; background: transparent; color: var(--muted-fg); font: 600 11px var(--mono); cursor: pointer; }
.mini-btn svg { width: 12px; height: 12px; }
.mini-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.mini-locked-hint { display: none; position: sticky; bottom: 0; padding: 5px 10px; background: rgba(16, 18, 18, 0.95); border-top: 1px solid var(--border); font-size: 11px; color: var(--muted-fg); text-align: center; }
.mini-locked .mini-locked-hint { display: block; }
.mini-locked .mini-bar { cursor: default; }
.mini-locked .mini-btn, .mini-locked .mini-close, .mini-locked .mini-refresh { opacity: 0.35; }
.mini-hint-peek, .mini-peek .mini-hint-locked { display: none; }
.mini-peek .mini-hint-peek { display: inline; }
.mini-peek .mini-locked-hint { color: var(--fg); }
.mini-locked #miniLock, .mini-locked.mini-peek #miniLock { opacity: 1; color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.mini-close { display: grid; place-items: center; width: 38px; height: 34px; border: 0; background: transparent; color: var(--muted-fg); cursor: pointer; }
.mini-close svg { width: 10px; height: 10px; }
.mini-close:hover { background: #c42b1c; color: #fff; }
.mini-body { padding: 10px 12px 12px; }
.mini-wait { margin: 16px 0; text-align: center; font-size: 13px; line-height: 1.5; }
.mini-rival { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.mini-champ { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.mini-who { min-width: 0; }
.mini-diff { font-size: 12px; color: var(--muted-fg); margin-top: 1px; }
.mini-items { margin-top: 7px; }
.mini-stats { margin-top: 5px; font-size: 11.5px; }
#miniTip:not(:empty) { margin-top: 7px; }
.mini-buy { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border); border-radius: 0; }
.mini-buy.fresh { animation: fresh-glow 2.4s ease-out; border-radius: 8px; }
.mini-sub { margin-bottom: 7px; font-weight: 800; font-size: 13px; }
.mini-sub .muted { font-weight: 500; font-size: 11.5px; }
.mini-option { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; border-top: 1px solid var(--border); }
.mini-option:first-of-type { border-top: 0; padding-top: 0; }
.mini-option .advice-icons { flex: none; gap: 4px; }
.mini-option-title { font-weight: 700; font-size: 12.5px; }
.mini-option-tip { font-size: 11.5px; color: var(--muted-fg); line-height: 1.35; }
.item-md { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border-strong); }
.mini-ai { margin-top: 9px; padding: 8px 10px; }
.mini-ai .ai-line { font-size: 12px; }
.mini-refresh { margin-top: 9px; padding: 4px 10px; font-size: 12px; }
/* La explicación de Fichado AI se oculta o se muestra tocando su título */
.mini-ai .advice-sub { display: flex; align-items: center; gap: 4px; cursor: pointer; user-select: none; }
.mini-ai .advice-sub::after { content: 'Ocultar ▴'; margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted-fg); }
.mini-ai .advice-sub:hover::after { color: var(--brand-light); }
.mini-ai.collapsed { padding-top: 6px; padding-bottom: 6px; }
.mini-ai.collapsed .advice-sub { margin-bottom: 0; }
.mini-ai.collapsed .advice-sub::after { content: 'Mostrar ▾'; }
.mini-ai.collapsed > :not(.advice-sub) { display: none; }
/* Bordes y esquina para cambiar el tamaño de la ventanita */
.mini-edges span { position: fixed; z-index: 60; }
.mini-edges [data-edge='top'] { top: 0; left: 10px; right: 10px; height: 4px; cursor: ns-resize; }
.mini-edges [data-edge='bottom'] { bottom: 0; left: 10px; right: 16px; height: 6px; cursor: ns-resize; }
.mini-edges [data-edge='left'] { top: 10px; bottom: 10px; left: 0; width: 6px; cursor: ew-resize; }
.mini-edges [data-edge='right'] { top: 10px; bottom: 16px; right: 0; width: 6px; cursor: ew-resize; }
.mini-edges [data-edge='topleft'] { top: 0; left: 0; width: 10px; height: 10px; cursor: nwse-resize; }
.mini-edges [data-edge='topright'] { top: 0; right: 0; width: 10px; height: 4px; cursor: nesw-resize; }
.mini-edges [data-edge='bottomleft'] { bottom: 0; left: 0; width: 10px; height: 10px; cursor: nesw-resize; }
.mini-grip { right: 0; bottom: 0; display: grid; place-items: center; width: 16px; height: 16px; color: var(--muted-fg); cursor: nwse-resize; transition: color 0.15s; }
.mini-grip svg { width: 10px; height: 10px; }
.mini-grip:hover { color: var(--brand-light); }
.mini-locked .mini-edges { display: none; }

/* Parche */
.nav a.has-news { position: relative; }
.nav a.has-news::after { content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.patch-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.patch-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03); color: var(--muted-fg); font: 600 13px var(--font, inherit); cursor: pointer; }
.patch-chip span { margin-left: 4px; font-family: var(--mono); opacity: 0.75; }
.patch-chip.on { color: var(--fg); border-color: var(--brand); background: var(--brand-soft); }
.patch-chip.kind-buff.on { border-color: var(--win); background: rgba(0, 200, 120, 0.1); }
.patch-chip.kind-nerf.on { border-color: #ff6b75; background: rgba(251, 44, 54, 0.1); }
.patch-highlights { margin-bottom: 18px; padding: 12px 16px; }
.patch-highlights summary, .patch-text summary { cursor: pointer; font-weight: 800; font-size: 15px; }
.patch-highlights-img { width: 100%; height: auto; margin-top: 12px; border-radius: 8px; }
.patch-section { margin-bottom: 22px; }
.patch-section > h2 { margin: 0 0 12px; font-size: 20px; }
/* Un bloque por tipo de cambio, cada uno con su color */
.patch-kind-section { --kind: var(--muted-fg); margin-bottom: 28px; }
.patch-kind-section.kind-buff { --kind: var(--win); }
.patch-kind-section.kind-nerf { --kind: #ff6b75; }
.patch-kind-section.kind-rework { --kind: #b794ff; }
.patch-kind-section > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--kind); font-size: 21px; color: var(--kind); }
.patch-kind-section > h2 .muted { font-size: 13px; font-weight: 600; }
.kind-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--kind); box-shadow: 0 0 10px var(--kind); }
.patch-subtitle { margin: 14px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-fg); }
.patch-kind-section .patch-card { border-left: 3px solid var(--kind); }
.patch-text { margin-bottom: 10px; }
.patch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.patch-card { padding: 14px 16px; }
.patch-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 15px; }
.patch-icon { width: 38px; height: 38px; border-radius: 8px; flex: none; }
.patch-kind { margin-left: 4px; }
.kind-buff.badge { color: var(--win); border-color: rgba(0, 200, 120, 0.45); background: rgba(0, 200, 120, 0.1); }
.kind-nerf.badge { color: #ff8a92; border-color: rgba(251, 44, 54, 0.4); background: rgba(251, 44, 54, 0.08); }
.kind-ajuste.badge { color: var(--muted-fg); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.04); }
.kind-rework.badge { color: #c4a7ff; border-color: rgba(160, 120, 255, 0.45); background: rgba(160, 120, 255, 0.1); }
.patch-ai { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; }
.patch-context { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; font-style: italic; }
.patch-detail { margin-top: 8px; }
.patch-detail-title { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; }
.patch-ability { width: 22px; height: 22px; border-radius: 5px; }
.patch-detail ul, .patch-group ul { margin: 5px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.patch-detail li, .patch-group li { margin-bottom: 3px; }
.pc-label { color: var(--muted-fg); }
.pc-arrow { color: var(--brand-light); }
.patch-text { padding: 13px 16px; }
.patch-text[open] summary { margin-bottom: 8px; }
.patch-group { margin-top: 10px; }
.patch-extra { margin-top: 12px; }

/* Análisis de Fichado AI en el perfil */
.coach-pick { display: flex; align-items: stretch; gap: 8px; }
/* Botones de línea con su ícono (el elegido se ilumina) */
.lane-picker { display: flex; padding: 3px; gap: 2px; border-radius: 11px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03); }
.lane-picker button {
  display: grid;
  place-items: center;
  min-width: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-fg);
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.18s;
}
.lane-picker button img { width: 18px; height: 18px; opacity: 0.6; transition: opacity 0.18s, transform 0.18s; }
.lane-picker button:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg); }
.lane-picker button:hover img { opacity: 0.95; transform: scale(1.12); }
.lane-picker button:active { transform: scale(0.92); }
.lane-picker button.on { background: var(--brand-soft); color: var(--brand-light); box-shadow: inset 0 0 0 1px var(--brand-line), 0 0 14px rgba(0, 215, 194, 0.18); }
.lane-picker button.on img { opacity: 1; filter: drop-shadow(0 0 4px rgba(0, 215, 194, 0.7)); }
.coach { margin-bottom: 18px; padding: 16px 18px; border-color: rgba(138, 120, 255, 0.35); background: linear-gradient(135deg, rgba(110, 90, 255, 0.07), rgba(0, 215, 194, 0.04)); }
.coach .card-title { padding: 0; margin-bottom: 8px; }
.coach .card-title .muted { font-weight: 500; letter-spacing: normal; text-transform: none; }
.coach-summary { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.coach-elo { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 190, 60, 0.07); border: 1px solid rgba(255, 190, 60, 0.3); }
.coach-elo-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #ffd166; }
.coach-elo b { font-size: 18px; }
.coach-elo .muted { flex-basis: 100%; font-size: 12.5px; }
.coach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.coach-sub { margin-bottom: 6px; font-weight: 800; font-size: 13.5px; }
.coach-sub.good { color: var(--win); }
.coach-sub.bad { color: #ff8a92; }
.coach-sub.tip { color: var(--brand-light); }
.coach-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.coach-list li { margin-bottom: 6px; }
.coach-champs { margin: 12px 0 0; font-size: 13px; }
@media (max-width: 900px) { .coach-grid { grid-template-columns: 1fr; } }

/* Análisis de la partida (detalle de partida) */
.postgame { margin-bottom: 18px; }
.postgame > .card-title .muted { color: var(--dim-fg); letter-spacing: 0.02em; text-transform: none; font-weight: 600; }
.pg-wait { display: flex; align-items: center; gap: 8px; margin: 0; }
.pg-ai { margin-bottom: 16px; padding: 14px 16px; border: 1px solid rgba(138, 120, 255, 0.35); border-radius: 12px; background: linear-gradient(135deg, rgba(110, 90, 255, 0.08), rgba(0, 215, 194, 0.04)); }
.pg-ai:has(> .btn:only-child), .pg-ai:has(> p:only-child) { padding: 12px 16px; }
.pg-ai.fresh { animation: fresh-glow 2.4s ease-out; }
.pg-ai-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pg-score { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border: 3px solid; border-radius: 50%; line-height: 1; animation: pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.pg-score b { font: 800 24px var(--mono); }
.pg-score span { margin-top: -6px; font-size: 11px; color: var(--muted-fg); }
.pg-score.good { border-color: var(--brand); color: var(--brand-light); box-shadow: 0 0 18px rgba(0, 215, 194, 0.25); }
.pg-score.mid { border-color: #f5c451; color: #f5c451; }
.pg-score.bad { border-color: var(--loss); color: #ff8a92; }
.pg-summary { margin: 0; font-size: 14.5px; line-height: 1.5; }
.pg-ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pg-line { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; }
.pg-tip { padding: 9px 12px; border-radius: 9px; background: var(--brand-soft); border: 1px solid var(--brand-line); }
.pg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 16px; }
.pg-tile { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, 0.025); animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.pg-tile:nth-child(2) { animation-delay: 0.04s; }
.pg-tile:nth-child(3) { animation-delay: 0.08s; }
.pg-tile:nth-child(4) { animation-delay: 0.12s; }
.pg-tile:nth-child(n + 5) { animation-delay: 0.16s; }
.pg-label { font-size: 12px; color: var(--muted-fg); }
.pg-tile b { font: 700 19px var(--mono); }
.pg-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12px; color: var(--dim-fg); }
.pg-sub .item { width: 18px; height: 18px; border-radius: 4px; }
.pg-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.pg-chart { padding: 12px 14px 6px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.pg-deaths { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-death { padding: 4px 10px; border: 1px solid var(--border); border-radius: 99px; background: rgba(255, 255, 255, 0.03); font-size: 12.5px; }
.pg-death b { color: var(--muted-fg); }
.pg-death.many { border-color: rgba(255, 90, 100, 0.4); background: rgba(255, 90, 100, 0.06); }
@media (max-width: 760px) { .pg-ai-grid { grid-template-columns: 1fr; } }

/* Análisis del equipo entero: la culpa y cada compañero */
.pg-blame { margin: 0 0 14px; padding: 10px 13px; border: 1px solid rgba(255, 90, 100, 0.35); border-radius: 10px; background: rgba(255, 90, 100, 0.06); }
.pg-blame p { margin: 0; font-size: 14px; line-height: 1.5; }
.pg-team { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; }
.pg-mate {
  display: grid;
  grid-template-columns: 40px minmax(150px, 220px) 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.pg-mate.me { border-color: var(--brand-line); background: var(--brand-soft); }
.pg-mate.perjudico { border-color: rgba(255, 90, 100, 0.5); background: rgba(255, 90, 100, 0.07); }
.pg-mate.mejor { border-color: rgba(255, 196, 81, 0.45); }
.pg-mate-champ { width: 40px; height: 40px; border-radius: 9px; }
.pg-mate-who { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; font-size: 13px; }
.pg-mate-who .muted { overflow: hidden; max-width: 100%; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.pg-mate-who .you { margin-left: 4px; }
.pg-mate-note { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid; border-radius: 50%; font: 800 15px var(--mono); }
.pg-mate-note.good { border-color: var(--brand); color: var(--brand-light); }
.pg-mate-note.mid { border-color: #f5c451; color: #f5c451; }
.pg-mate-note.bad { border-color: var(--loss); color: #ff8a92; }
.pg-mate-text p { margin: 2px 0; font-size: 12.5px; line-height: 1.4; }
.pg-you-title { margin-top: 16px; }
.pg-team-ask { margin-top: 12px; }
@media (max-width: 760px) {
  .pg-mate { grid-template-columns: 40px minmax(0, 1fr) 36px; }
  .pg-mate-text { grid-column: 1 / -1; }
}

/* Los números de los 10 (para comparar) */
.pg-side.blue::before, .pg-side.red::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; }
.pg-side.blue::before { background: var(--blue); }
.pg-side.red::before { background: var(--red); }
.pg-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 16px; }
.pg-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pg-table th { padding: 4px 6px; color: var(--muted-fg); font-size: 11px; font-weight: 700; text-align: right; }
.pg-table td { padding: 4px 6px; border-top: 1px solid var(--border); text-align: right; white-space: nowrap; }
.pg-table td:first-child, .pg-table th:first-child { text-align: left; }
.pg-table tr.me td { background: var(--brand-soft); }
.pg-table-who { display: flex; align-items: center; gap: 7px; }
.pg-table-who .champ-sm { width: 24px; height: 24px; border-radius: 6px; }

/* Cartel al terminar la partida: el análisis está listo */
.pg-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(440px, calc(100vw - 40px));
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  animation: toast-in 0.45s cubic-bezier(0.2, 0.9, 0.1, 1) backwards;
}
.pg-toast.loss { border-left-color: var(--loss); }
.pg-toast-champ { width: 42px; height: 42px; flex: none; border-radius: 10px; }
.pg-toast-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.pg-toast-close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--muted-fg); font-size: 18px; cursor: pointer; }
.pg-toast-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg); }
/* "Terminó tu partida": mientras Riot prepara los datos */
.pg-toast .spinner { flex: none; width: 26px; height: 26px; margin: 0 8px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

/* Posible smurf */
.badge-smurf { color: #ffd166; border-color: rgba(255, 190, 60, 0.55); background: rgba(255, 170, 0, 0.14); font-weight: 800; }
.smurf-alert { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 11px 16px; margin-bottom: 14px; border-color: rgba(255, 190, 60, 0.45); background: linear-gradient(90deg, rgba(255, 170, 0, 0.1), transparent 70%); font-size: 13.5px; }
.smurf-alert > b { color: #ffd166; }
.smurf-who { display: inline-flex; align-items: center; gap: 6px; }
.smurf-champ { width: 22px; height: 22px; border-radius: 5px; }
.smurf-status { margin: 0 0 12px; font-size: 12.5px; }

/* Picks recomendados en la selección de campeones */
.pick-reasons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.chip { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.chip.good { color: var(--brand-light); border-color: var(--brand-line); background: var(--brand-soft); }
.chip.bad { color: #ff8a92; border-color: rgba(251, 44, 54, 0.35); background: rgba(251, 44, 54, 0.08); }
.cs-pick.is-mine { box-shadow: inset 3px 0 0 var(--brand); }
.cs-duo { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* Tu campeón contra tu rival de línea (OP.GG) */
.matchup-flags { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 2px; }
.matchup-tip { margin: 10px 0 0; padding: 9px 11px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); font-size: 12.5px; line-height: 1.45; color: var(--muted-fg); }
.matchup-tip b { color: var(--fg); }
.skill-order { display: inline-block; padding: 5px 10px; border-radius: 7px; background: rgba(255, 255, 255, 0.05); font-weight: 600; }
.cs-matchup { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

/* Partida en curso (datos en vivo del juego) */
.game-panel { margin-bottom: 18px; border-top: 3px solid var(--brand); }
.game-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; }

/* Tiempos de los objetivos (panel de la partida y ventanita) */
.obj-timers { display: flex; flex-wrap: wrap; gap: 6px; }
.obj-timers:empty { display: none; }
.obj-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 4px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  white-space: nowrap;
  transition: border-color 0.3s, background 0.3s;
}
.obj-chip b { font-size: 12px; }
.obj-ico { width: 20px; height: 20px; flex: none; }
.obj-ico.neutral { filter: grayscale(1) brightness(1.35); opacity: 0.85; }
.obj-label { color: var(--muted-fg); }
.obj-chip.soon { border-color: rgba(245, 196, 81, 0.55); background: rgba(245, 196, 81, 0.08); animation: obj-pulse 1.6s ease-in-out infinite; }
.obj-chip.soon b { color: #f5c451; }
.obj-chip.alive { border-color: var(--brand-line); background: var(--brand-soft); }
.obj-chip.alive b { color: var(--brand-light); }
/* Verde si te conviene (buff tuyo, inhibidor rival caído); rojo si no */
.obj-chip.buff.ally, .obj-chip.inhib.enemy { border-color: var(--brand-line); background: var(--brand-soft); }
.obj-chip.buff.ally b, .obj-chip.inhib.enemy b { color: var(--brand-light); }
.obj-chip.buff.enemy, .obj-chip.inhib.ally { border-color: rgba(255, 90, 100, 0.45); background: rgba(255, 90, 100, 0.08); }
.obj-chip.buff.enemy b, .obj-chip.inhib.ally b { color: #ff8a92; }
@keyframes obj-pulse { 50% { box-shadow: 0 0 0 3px rgba(245, 196, 81, 0.16); } }
.game-timers { padding: 10px 18px; border-bottom: 1px solid var(--border); }
.game-timers:empty { display: none; }
/* Plegada: arriba el marcador (se toca para ver todo lo demás). */
.game-top { display: flex; align-items: center; gap: 10px; padding-right: 16px; border-bottom: 1px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.3s; }
.game-top:hover { background: rgba(255, 255, 255, 0.025); }
.game-top:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.game-top .game-head { flex: 1; min-width: 0; border-bottom: 0; }
.game-panel.open .game-top { border-bottom-color: var(--border); }
.game-more-btn { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted-fg); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
.game-top:hover .game-more-btn { color: var(--fg); border-color: rgba(255, 255, 255, 0.18); }
.game-more-btn svg { width: 12px; height: 12px; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.game-panel.open .game-more-btn svg { transform: rotate(180deg); }
.game-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.game-panel.open .game-more { grid-template-rows: 1fr; }
.game-more-inner { min-height: 0; overflow: hidden; }
/* En vivo: primero la barra de "En vivo" y los 10 jugadores, después la partida en curso (marcador y "Ver todo")
   y al final los consejos, que plegada no se ven. */
.live-stack { display: flex; flex-direction: column; }
.live-stack > #liveResult { display: contents; }
.live-stack .live-head { order: 1; }
.live-stack .live-table { order: 2; }
/* En la selección de campeones, la barra con el reloj también va arriba. */
.live-stack .cs-grid, .live-stack .cs-bans { order: 2; }
.live-stack > #ingamePanel { order: 4; }
.live-stack .card.advice { order: 5; }
.live-stack.folded .card.advice { display: none; }
.game-panel:not(.open) .game-more-inner { visibility: hidden; transition: visibility 0s 0.35s; }
/* La tabla de los 10, plegable desde "Ocultar jugadores" (se recuerda). */
.live-table { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.live-table.open { grid-template-rows: 1fr; }
.live-table-inner { min-height: 0; overflow: hidden; }
.live-table.settled .live-table-inner { overflow: visible; }
.live-table:not(.open) .live-table-inner { visibility: hidden; transition: visibility 0s 0.35s; }
.live-table-btn { display: inline-flex; align-items: center; gap: 6px; }
.live-table-btn svg { width: 12px; height: 12px; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.live-table-btn[aria-expanded='true'] svg { transform: rotate(180deg); }
.mini-timers { padding: 8px 10px 0; gap: 5px; }
.mini-timers .obj-label { display: none; }
.mini-timers .buff .obj-label { display: inline; font-size: 11px; }
.mini-timers .obj-chip { padding: 2px 7px 2px 3px; }
body[data-timers='off'] #miniTimers { display: none; }

/* Ventanita de tiempos del mapa: uno abajo del otro, con nombre */
.obj-list { flex-direction: column; align-items: stretch; gap: 5px; }
.obj-list .obj-chip { border-radius: 9px; padding: 5px 10px 5px 6px; font-size: 13px; }
.obj-list .obj-chip b { margin-left: auto; padding-left: 10px; font-size: 14px; }
.obj-list .obj-ico { width: 24px; height: 24px; }
.mini-tiempos .mini-body, .mini-hechizos .mini-body { padding: 8px 9px 10px; }

/* Ventanita de hechizos rivales: tocar un hechizo cuenta su enfriamiento */
.sp-list { display: flex; flex-direction: column; gap: 6px; }
.sp-row { display: flex; align-items: center; gap: 8px; }
.sp-champ { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.sp-who { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.2; }
.sp-who b { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.sp-who .muted { font-size: 11px; }
.sp-boots { color: var(--brand-light); font-weight: 700; }
.sp-spells { display: flex; gap: 5px; }
.sp-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #111;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.2s, box-shadow 0.2s;
}
.sp-btn:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.sp-btn:active { transform: scale(0.92); }
.sp-icon { width: 100%; height: 100%; object-fit: cover; transition: filter 0.2s; }
.sp-time { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px #000, 0 0 2px #000; }
.sp-btn.cd { border-color: rgba(255, 90, 100, 0.65); }
.sp-btn.cd .sp-icon { filter: grayscale(1) brightness(0.38); }
.sp-btn.soon { border-color: rgba(245, 196, 81, 0.75); }
.sp-btn.soon .sp-time { color: #f5c451; }
.sp-btn.ready { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0, 215, 194, 0.35), 0 0 14px rgba(0, 215, 194, 0.55); animation: pop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sp-unknown { display: grid; place-items: center; width: 34px; height: 34px; border: 1px dashed var(--border-strong); border-radius: 8px; color: var(--dim-fg); cursor: default; }
.sp-hint { margin: 8px 0 0; font-size: 11px; text-align: center; }
