/* ---------- Pantalla Overlay (configurar las ventanitas) ---------- */
.ov-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-old { margin: -8px 0 16px; color: #f5c451; }
.ov-old:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.ov-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.ov-card:hover { border-color: var(--border-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }
.ov-card .ov-preview, .ov-card .ov-settings, .ov-card .ov-actions { transition: opacity 0.2s; }
.ov-card.off .ov-preview, .ov-card.off .ov-settings, .ov-card.off .ov-actions { opacity: 0.35; pointer-events: none; }
.ov-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ov-card-head h3 { margin: 0 0 4px; font-size: 17px; }
.ov-card-head p { margin: 0; font-size: 13px; }
/* Un "juego" de fondo para ver la transparencia */
.ov-preview {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    radial-gradient(120px 90px at 22% 30%, rgba(70, 140, 80, 0.55), transparent 70%),
    radial-gradient(140px 100px at 78% 70%, rgba(150, 110, 50, 0.5), transparent 70%),
    linear-gradient(135deg, #1c2a20, #2a2416 55%, #1a2333);
}
.ov-preview-panel { width: 230px; padding: 9px; border: 1px solid var(--border-strong); border-radius: 9px; background: rgba(16, 18, 18, 0.96); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); transition: opacity 0.2s; }
.ov-mock { font-size: 13px; }
.ov-mock .mini-sub { margin: 9px 0 3px; }
.ov-settings { display: flex; flex-direction: column; gap: 10px; }
.ov-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.ov-row-wide { flex-wrap: wrap; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.seg button { padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--muted-fg); font: 600 12px var(--mono); cursor: pointer; transition: background 0.15s, color 0.15s; }
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--brand); color: var(--brand-ink); }
.ov-actions { display: flex; gap: 8px; }
.game-score { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; font-size: 13px; color: var(--muted-fg); }
.game-score b { color: var(--fg); margin-left: 4px; }
.game-score .gold { color: #f5c451; }
@keyframes fresh-glow { from { box-shadow: 0 0 0 6px rgba(0, 215, 194, 0.35); background: rgba(0, 215, 194, 0.06); } }
/* Fichado AI sin clave: qué hacer. */
.ai-setup-title { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-weight: 700; }
.ai-setup-spark { color: #a99bff; }
.ai-setup p { margin: 0 0 8px; font-size: 13px; }
.ai-setup-steps { margin: 0 0 12px; padding-left: 20px; font-size: 13px; line-height: 1.75; color: var(--muted-fg); }
.ai-setup-steps b { color: var(--fg); }
.ai-setup-line { display: inline-block; margin-top: 6px; font-size: 12.5px; }
p.ai-setup-line { display: block; margin: 9px 0 0; font-size: 11.5px; line-height: 1.4; }
.coach .ai-setup { margin-top: 4px; }
/* Cuando Fichado AI no puede responder: qué pasó y qué hacer */
.ai-error { --tone: #f2c53d; margin: 2px 0 12px; }
.ai-error:last-child { margin-bottom: 0; }
.ai-error.bad, .ai-error-line.bad { --tone: var(--loss); }
.ai-error-title { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.ai-error-icon { flex: none; color: var(--tone); }
.ai-error p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--muted-fg); }
.ai-error p:last-child { margin-bottom: 0; }
.ai-error-line { --tone: #f2c53d; display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted-fg); }
.ai-error-line .ai-error-icon { margin-top: 1px; }
.ai-error-line b { color: var(--fg); }
.mini-ai .ai-error-line { font-size: 11.5px; }
.ai-settings-focus { animation: ai-focus 1.6s ease-out; }
@keyframes ai-focus { 0%, 40% { box-shadow: 0 0 0 2px var(--brand), 0 0 24px rgba(0, 215, 194, 0.35); } 100% { box-shadow: 0 0 0 0 transparent; } }
.ai-box { margin-top: 12px; padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(138, 120, 255, 0.35); background: linear-gradient(135deg, rgba(110, 90, 255, 0.09), rgba(0, 215, 194, 0.05)); }
.ai-box .advice-sub { margin-bottom: 6px; }
.ai-line { margin: 0 0 6px; font-size: 13px; line-height: 1.45; }
.ai-line:last-child { margin-bottom: 0; }
.ai-line b { color: var(--brand-light); }

/* Fase de pick */
.live-dot.pick { background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.cs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 14px; }
.cs-team { padding-bottom: 6px; overflow: hidden; }
.cs-team.blue { border-top: 3px solid var(--blue); }
.cs-team.red { border-top: 3px solid var(--red); }
.cs-slot { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.cs-slot + .cs-slot { border-top: 1px solid var(--border); }
.cs-team .card-title { padding-bottom: 8px; }
.cs-slot.is-me { background: linear-gradient(90deg, rgba(0, 215, 194, 0.1), transparent 70%); box-shadow: inset 3px 0 0 var(--brand); }
.cs-champ { width: 44px; height: 44px; flex: none; border-radius: 9px; }
.cs-champ.intent { opacity: 0.45; filter: grayscale(0.6); }
.cs-who { min-width: 0; }
.cs-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-sub { font-size: 12px; }
.cs-help { padding: 14px 16px 16px; }
.cs-label { margin: 12px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-fg); }
.cs-label:first-child { margin-top: 2px; }
.cs-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cs-pick { display: flex; align-items: center; gap: 10px; }
.cs-pick .badge { margin-top: 2px; }
.cs-rate { margin-left: auto; text-align: right; font-size: 13px; }
.cs-rate .muted { font-size: 11.5px; }
.cs-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.cs-tip { margin-top: 8px; }
/* En qué va la selección (arriba) y, en la fase de bans, a quién banear (primero de todo) */
.cs-stage { font-weight: 700; color: var(--brand); white-space: nowrap; }
.cs-stage.ban { color: #ff8a92; }
.cs-section.cs-ban-help { margin: 0 0 14px; padding: 0 0 14px; border-top: 0; border-bottom: 1px solid var(--border); }
/* ARAM: Caos: qué mejoras elegir (S = las más elegidas y probadas) */
.aug-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.aug-row { display: flex; align-items: flex-start; gap: 9px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 9px; 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) * 30ms); }
.aug-tier { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; font: 800 12px var(--mono); }
/* Notas de las mejoras como las de iTero: oscuras, con el borde y la letra del color y apenas un tinte de fondo. */
.aug-tier {
  --c: #9aa0aa;
  width: 26px;
  border: 1px solid var(--c);
  background: color-mix(in srgb, var(--c) 16%, #0c0e11);
  color: color-mix(in srgb, var(--c) 88%, #fff);
  font: 800 12px var(--font);
}
.aug-tier.g0 { --c: #ff5468; border-color: #ffcd50; box-shadow: 0 0 6px rgba(255, 205, 80, 0.5); }
.aug-tier.g1 { --c: #ff9640; }
.aug-tier.g2 { --c: #f2c53d; }
.aug-tier.g3 { --c: #3ccf87; }
.aug-tier.g4 { --c: #4ea3ff; }
.aug-tier.g5 { --c: #9aa0aa; }
.ov-cards { margin-top: 14px; }
.ov-cards h3 .badge { margin-left: 6px; vertical-align: 2px; }
.ov-cards-demo { display: flex; justify-content: center; gap: 14px; padding: 26px 12px 16px; border-radius: 10px; background: radial-gradient(ellipse at top, rgba(140, 110, 200, 0.16), transparent 70%), rgba(0, 0, 0, 0.25); }
.ov-cards-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 120px; padding: 0 8px 14px; border: 2px solid rgba(190, 170, 235, 0.55); border-radius: 8px; background: #0d161b; font-size: 12px; text-align: center; }
.ov-cards-card .aug-tier { width: 38px; height: 26px; margin-top: -14px; font-size: 14px; }
/* Avisos de voz: un renglón por aviso, con ▶ para escucharlo y su interruptor. La voz se puede elegir y probar
   aunque esté apagada. */
.ov-grid ~ .ov-voice { margin-top: 14px; }
.ov-voice-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; }
.ov-voice-alert { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255, 255, 255, 0.02); }
.ov-voice-text { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; font-size: 13.5px; line-height: 1.3; transition: opacity 0.15s; }
.ov-voice-text .muted { font-size: 12px; }
.ov-voice-alert:has(input:not(:checked)) .ov-voice-text { opacity: 0.45; }
.ov-voice-play { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--bg); color: var(--brand); cursor: pointer; transition: border-color 0.15s, background 0.15s, opacity 0.15s; }
.ov-voice-play:hover:not(:disabled) { border-color: var(--brand-line); background: var(--brand-soft); }
.ov-voice-play:disabled { opacity: 0.4; cursor: default; }
.ov-voice-play.busy { opacity: 1; animation: blink 0.9s ease-in-out infinite; }
.ov-voice-play svg { width: 15px; height: 15px; margin-left: 1px; }
.seg-text button { font-family: var(--font); }
.ov-voice-pick .voice-row { margin-top: 0; }
.ov-voice-volume { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; font-size: 13.5px; }
.ov-voice-volume input { flex: 1; min-width: 120px; height: 4px; accent-color: var(--brand); cursor: pointer; }
.ov-voice-volume b { min-width: 42px; text-align: right; font-size: 13px; }
.ov-voice-pick .status:empty { display: none; }
.ov-voice-pick .note { margin-top: 8px; }
.voice-moved { margin: 0 0 12px; font-size: 13.5px; }
.ov-cards-best { position: absolute; top: -34px; padding: 1px 6px; border: 1px solid #ffcd50; border-radius: 4px; background: color-mix(in srgb, #ffcd50 16%, #0c0e11); color: #ffcd50; font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; }
.aug-text { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; font-size: 13px; line-height: 1.3; }
.aug-text .muted { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11.5px; }
.aug-pick { flex: none; padding-top: 2px; color: var(--muted-fg); font-size: 12px; }
.aram-build-title { margin-top: 4px; }
.mini .aug-row { padding: 5px 7px; }
.mini .aug-text { font-size: 12px; }
.mini .aug-text .muted { -webkit-line-clamp: 1; }
/* Oro en objetos de los dos equipos en el marcador */
.team-gold { font-family: var(--mono); font-weight: 700; }
.mini-score .team-gold { font-size: 11.5px; }

/* Importar runas, hechizos y build al cliente */
.cs-section.cs-import { margin: 0 0 14px; padding: 0 0 14px; border-top: 0; border-bottom: 1px solid var(--border); }
/* Sin picks en medio (fase de bans): una sola raya entre el botón y lo que sigue. */
.cs-section.cs-import + .cs-section { margin-top: 0; padding-top: 0; border-top: 0; }
.cs-import-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 14px; font-size: 14px; }
.cs-import-btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.2s ease; }
.cs-import-btn:hover:not(:disabled) svg { transform: translateY(2px); }
.cs-import-btn.busy svg { animation: blink 0.9s ease-in-out infinite; }
.cs-import-note { margin-top: 6px; font-size: 12px; text-align: center; }
.cs-import-result:not(:empty) { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255, 255, 255, 0.02); }
.cs-import-line { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12.5px; line-height: 1.4; animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.cs-import-line:nth-child(2) { animation-delay: 0.08s; }
.cs-import-line:nth-child(3) { animation-delay: 0.16s; }
.cs-import-line .spell { width: 18px; height: 18px; border-radius: 4px; }
.cs-import-mark { display: grid; place-items: center; flex: none; width: 17px; height: 17px; border-radius: 50%; font-size: 10px; font-weight: 800; }
.cs-import-line.ok .cs-import-mark { background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 1px var(--brand-line); }
.cs-import-line.bad .cs-import-mark { background: rgba(255, 90, 100, 0.12); color: var(--loss); }
.cs-import-line.bad { color: #ff8a92; }
.spinner-sm { display: inline-block; width: 14px; height: 14px; margin: 0; border-width: 2px; }
.cs-source { margin: 12px 0 0; font-size: 11.5px; }
.cs-bans { display: flex; align-items: center; gap: 5px; margin-bottom: 18px; font-size: 12px; }
.cs-bans .muted { margin-right: 4px; }
.cs-bans .ban.enemy { box-shadow: 0 0 0 1px rgba(224, 74, 74, 0.6); }
.cs-bans .ban.ally { box-shadow: 0 0 0 1px rgba(58, 165, 217, 0.6); }

.team { margin-bottom: 20px; }
.team-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.team-head h2 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; }
.team.blue h2 { color: var(--blue); }
.team.red h2 { color: var(--red); }
.bans { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; }
.bans .muted { margin-right: 4px; }
.ban { width: 24px; height: 24px; border-radius: 5px; filter: grayscale(1); opacity: 0.65; }

.lp {
  display: grid;
  grid-template-columns: 52px auto auto minmax(170px, 1.5fr) minmax(150px, 1fr) 120px 92px;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  padding: 10px 16px 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.team.blue .lp { border-left: 3px solid var(--blue); }
.team.red .lp { border-left: 3px solid var(--red); }
.lp.is-me { border-color: var(--brand-line); background: linear-gradient(90deg, rgba(0, 215, 194, 0.08), var(--card) 50%); box-shadow: 0 0 26px rgba(0, 215, 194, 0.1); }
.team .lp.is-me { border-left-color: var(--brand); }
.team-head { flex-wrap: wrap; }
.team-tag { padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.team-tag.mine { background: var(--brand-soft); color: var(--brand-light); border: 1px solid var(--brand-line); }
.team-tag.enemy { background: rgba(251, 44, 54, 0.1); color: #ff8a92; border: 1px solid rgba(251, 44, 54, 0.35); }
.premade-summary { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; }

/* Grupos (dúo, trío...): cada grupo tiene su color */
.pm-g1 { --pm: 245, 196, 81; }
.pm-g2 { --pm: 180, 100, 255; }
.pm-g3 { --pm: 255, 126, 182; }
.pm-g4 { --pm: 95, 214, 138; }
.pm-item { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; padding: 4px 12px; border-radius: 12px; border: 1px solid rgba(var(--pm), 0.45); background: rgba(var(--pm), 0.08); }
.pm-item b { color: rgb(var(--pm)); }
.pm-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--pm)); box-shadow: 0 0 8px rgb(var(--pm)); }
.badge-premade { display: inline-flex; align-items: center; gap: 5px; color: rgb(var(--pm)); border-color: rgba(var(--pm), 0.5); background: rgba(var(--pm), 0.12); }
.lp.premade { border-color: rgba(var(--pm), 0.5); box-shadow: 0 0 22px rgba(var(--pm), 0.1); }
.drow.premade { box-shadow: inset 3px 0 0 rgb(var(--pm)); }
.m-meta .badge-premade { margin-top: 6px; }
.mp.is-partner { color: #f5c451; font-weight: 600; }
.partners .mini-row { padding: 2px 0; border-radius: 6px; }
.partners .mini-row:hover .name { color: var(--brand-light); }
.partners .name span { font-weight: 500; }
.partners-empty { margin: 0; padding: 10px 16px 16px; font-size: 13px; }

.lp-champ { display: block; }
.lp-champ:hover img { box-shadow: 0 0 0 2px var(--brand); }
.lp-info { min-width: 0; }
.lp-top { display: flex; align-items: center; min-width: 0; }
.lp-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-name span { color: var(--dim-fg); font-weight: 500; }
a.lp-name:hover { color: var(--brand-light); }
.you { flex: none; margin-left: 8px; padding: 1px 6px; border-radius: 4px; background: var(--brand); color: var(--brand-ink); font-size: 10px; font-weight: 800; }
.lp-champname { font-size: 13px; }
.lp-rank { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp-rank .tier { font-size: 14px; }
.crest { width: 34px; height: 34px; flex: none; }
.lp-rank .sub { font-size: 12px; }
.lp-wr { font-size: 12px; }
.lp-wr .winbar { margin: 5px 0 0; }
.lp-mastery { text-align: right; font-size: 13px; }
.pos-icon { display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; opacity: 0.85; }

/* Los dos equipos lado a lado: azul a la izquierda, rojo a la derecha, una fila por línea. */
.teams-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin-bottom: 18px; }
.teams-grid .team-head { align-self: end; margin: 0 0 4px; }
.teams-grid .lp { margin: 0; }
.team-head.blue h2 { color: var(--blue); }
.team-head.red h2 { color: var(--red); }
.lp.side-blue { border-left: 3px solid var(--blue); }
.lp.side-red { border-left: 3px solid var(--red); }
.lp.side-blue.is-me, .lp.side-red.is-me { border-left-color: var(--brand); }
.lp-rank > div { min-width: 0; }

@media (min-width: 1101px) {
  /* Tarjetas compactas para que entren las dos columnas sin tener que hacer scroll. */
  .teams-grid .lp { grid-template-columns: 44px 22px 22px minmax(0, 1fr) 118px 76px 62px; gap: 8px; padding: 8px 10px 8px 8px; }
  .teams-grid .lp .champ-lg { width: 44px; height: 44px; }
  .teams-grid .lp .spell, .teams-grid .lp .rune { width: 22px; height: 22px; }
  .teams-grid .lp .rune.sub { padding: 4px; }
  .teams-grid .crest { width: 28px; height: 28px; }
  .teams-grid .lp-rank { gap: 6px; }
  .teams-grid .lp-rank .tier { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .teams-grid .lp-rank .q { display: none; }
  .teams-grid .lp-mastery { font-size: 12px; }
  /* Campeón y etiquetas en la misma línea: tarjetas más bajas. */
  .teams-grid .lp-info { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 3px; }
  .teams-grid .lp-top { flex-basis: 100%; }
  .teams-grid .badges { margin-top: 0; }
}

.page-head.compact { margin-bottom: 14px; }
.page-head.compact p { display: none; }

@media (max-width: 1100px) {
  /* En pantallas chicas: un equipo debajo del otro. */
  .teams-grid { grid-template-columns: minmax(0, 1fr); }
  .teams-grid .t-blue { order: 1; }
  .teams-grid .t-red { order: 2; }
  .teams-grid .team-head.t-red { margin-top: 14px; }
}

/* Google saturado: vuelve a probar solo con cuenta regresiva. */
.ai-retry { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 0; color: var(--muted-fg); font-size: 13px; }
.ai-retry b { color: var(--fg); }
.ai-retry .btn { margin-left: auto; }
.ai-retry-line { margin: 6px 0 0; font-size: 12px; }

/* ---------- Cargando de Fichado AI: marco hextech con tu último campeón ---------- */
.ai-loading { display: flex; align-items: center; gap: 28px; padding: 14px 4px 8px; }
.hex { position: relative; flex: none; width: 176px; height: 176px; }
/* Luz azul de atrás: respira y con el destello se agranda. */
.hex-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(10, 200, 185, 0.45), rgba(0, 90, 130, 0.2) 55%, transparent 72%); filter: blur(8px); animation: hex-breathe 2.9s ease-in-out infinite; transition: transform 0.3s; }
.hex.burst .hex-glow { transform: scale(1.3); }
/* Engranaje dorado que gira despacio y runas azules que giran al revés. */
.hex-gear, .hex-runes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hex-gear { animation: hex-spin 26s linear infinite; }
.hex-gear circle, .hex-gear path { fill: none; }
.hex-gear .g-thin { stroke: rgba(200, 170, 110, 0.3); stroke-width: 0.8; }
.hex-gear .g-teeth { stroke: #785a28; stroke-width: 6; stroke-dasharray: 3.2 4.3; }
.hex-gear .g-line { stroke: #c8aa6e; stroke-width: 1.2; }
.hex-gear .g-arc { stroke: #c8aa6e; stroke-width: 2.2; stroke-linecap: round; }
.hex-gear .g-gem { fill: #0ac8b9; stroke: #f0e6d2; stroke-width: 1; }
.hex-runes { animation: hex-spin 14s linear infinite reverse; }
.hex-runes circle { fill: none; stroke: rgba(10, 200, 185, 0.55); stroke-width: 2.5; stroke-dasharray: 1.5 7; stroke-linecap: round; }
/* El hexágono: borde dorado y adentro el campeón. */
.hex-frame, .hex-inner { clip-path: polygon(50% 1%, 92.4% 25.5%, 92.4% 74.5%, 50% 99%, 7.6% 74.5%, 7.6% 25.5%); }
.hex-frame { position: absolute; inset: 15%; background: linear-gradient(155deg, #f0e6d2, #c8aa6e 28%, #785a28 55%, #c8aa6e 80%, #f0e6d2); }
.hex-inner { position: absolute; inset: 5.5%; overflow: hidden; background: #010a13; }
.hex-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hex-zoom 9s ease-in-out infinite alternate; transition: filter 0.3s; }
.hex.burst .hex-art { filter: brightness(1.3) saturate(1.15); }
/* Sin campeón: un cristal hextech. */
.hex-core { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #cdfafa, #0ac8b9 22%, #005a82 52%, #010a13 78%); animation: hex-breathe 2.9s ease-in-out infinite; }
/* Un reflejo que cruza la cara, como en un cristal. */
.hex-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(205, 250, 250, 0.3) 50%, transparent 62%); background-size: 260% 100%; mix-blend-mode: screen; animation: hex-shine 2.9s ease-in-out infinite; }
/* Energía azul que corre por el borde. */
.hex-edge, .hex-wave { position: absolute; inset: 15%; width: 70%; height: 70%; overflow: visible; }
.hex-edge { filter: drop-shadow(0 0 2px #0ac8b9) drop-shadow(0 0 6px rgba(10, 200, 185, 0.8)); }
.hex-edge path { fill: none; stroke: #cdfafa; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 9 91; animation: hex-run 1.8s linear infinite; }
.hex-edge path + path { animation-delay: -0.9s; }
/* Con el destello, una onda hexagonal que sale del marco. */
.hex-wave { opacity: 0; }
.hex-wave path { fill: none; stroke: #0ac8b9; stroke-width: 2.5; }
.hex.burst .hex-wave { animation: hex-wave 0.75s ease-out; }
/* Los seis cristales de las puntas: se encienden de a uno (los prende chargeHextech). */
.hex-node { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 1.5px solid #c8aa6e; background: #0a1428; box-shadow: 0 0 0 1px #010a13; transform: rotate(45deg); transition: background 0.2s, box-shadow 0.2s; }
.hex-node.on { background: #cdfafa; box-shadow: 0 0 0 1px #010a13, 0 0 6px 2px #0ac8b9, 0 0 14px 4px rgba(10, 200, 185, 0.55); }
.hex-name { color: #c8aa6e; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.ai-loading-text { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.ai-loading-step { color: var(--fg); font-size: 15px; }
.ai-loading-step.in { animation: ai-step 0.4s ease-out; }
.ai-loading-text .muted { font-size: 13px; }
.ai-loading-bar { position: relative; height: 4px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.ai-loading-bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #005a82, #0ac8b9, #cdfafa); box-shadow: 0 0 10px rgba(10, 200, 185, 0.45); animation: ai-fill 28s cubic-bezier(0.3, 0.35, 0.35, 1) forwards; }
/* Chiquito: un renglón. */
.ai-loading.compact { gap: 10px; padding: 4px 0; }
.ai-loading.compact .hex { width: 40px; height: 40px; }
.ai-loading.compact .hex-frame, .ai-loading.compact .hex-edge, .ai-loading.compact .hex-wave { inset: 0; width: 100%; height: 100%; }
.ai-loading.compact .hex-glow { inset: -12%; filter: blur(5px); }
.ai-loading.compact .hex-edge path { stroke-width: 3; }
.ai-loading.compact .ai-loading-step { font-size: 13px; font-weight: 600; color: var(--muted-fg); }
@keyframes hex-spin { to { transform: rotate(360deg); } }
@keyframes hex-breathe { 50% { opacity: 0.6; } }
@keyframes hex-zoom { from { transform: scale(1.06); } to { transform: scale(1.16) translateY(2%); } }
@keyframes hex-shine { 0%, 30% { background-position: 120% 0; } 70%, 100% { background-position: -20% 0; } }
@keyframes hex-run { to { stroke-dashoffset: -100; } }
@keyframes hex-wave { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.4); } }
@keyframes ai-step { from { opacity: 0; transform: translateY(5px); } }
@keyframes ai-fill { to { width: 94%; } }
@media (max-width: 640px) {
  .ai-loading:not(.compact) { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hex-gear, .hex-runes, .hex-glow, .hex-art, .hex-core, .hex-shine, .hex-edge path { animation: none; }
}
