/* SuperGGs · hoja de estilos. Marca: índigo noche + lima eléctrico. */
:root {
  --bg: #14112B;
  --bg-2: #1A1636;
  --surface: #1F1A3D;
  --surface-2: #2A2452;
  --line: #3A3368;
  --text: #F2F0FF;
  --muted: #A9A3D1;
  --lime: #C6F432;
  --lime-ink: #1A2200;
  --cyan: #3DD9EB;
  --coral: #FF5D73;
  --amber: #FFB547;
  --blue-team: #3DD9EB;
  --red-team: #FF5D73;
  --good-bg: rgba(198, 244, 50, .14); --good-fg: #D9FF6B;
  --warn-bg: rgba(255, 181, 71, .16); --warn-fg: #FFC870;
  --bad-bg: rgba(255, 93, 115, .16); --bad-fg: #FF8A9B;
  --shadow: 0 10px 30px rgba(5, 3, 20, .45);
  --radius: 16px;
  --win: #C6F432; --loss: #FF5D73;
  --font-title: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F4F2FF; --bg-2: #ECE9FF; --surface: #FFFFFF; --surface-2: #F1EEFF; --line: #DCD6FA;
  --text: #19163A; --muted: #5E5890; --lime: #6E9A00; --lime-ink: #FFFFFF; --cyan: #0A93A6; --coral: #E0334E; --amber: #B86E00;
  --blue-team: #0A93A6; --red-team: #E0334E;
  --good-bg: #EEF9CF; --good-fg: #3F5A00; --warn-bg: #FFF0D6; --warn-fg: #8A5200; --bad-bg: #FFE1E6; --bad-fg: #A3162C;
  --shadow: 0 8px 24px rgba(40, 30, 110, .10);
  --win: #4E8A00; --loss: #E0334E;
  color-scheme: light;
}
/* Temas exclusivos de SuperGGs Plus */
:root[data-theme="neon"] { --bg: #12061F; --bg-2: #180A29; --surface: #1E0D33; --surface-2: #2B1447; --line: #40205F; --lime: #FF4FD8; --lime-ink: #22001C; --cyan: #7CF7FF; --blue-team: #7CF7FF; --muted: #C3A6DA; --good-bg: rgba(124, 247, 255, .14); --good-fg: #9CF6FF; --win: #7CF7FF; --loss: #FF5D73; }
:root[data-theme="oro"] { --bg: #15110A; --bg-2: #1B160C; --surface: #221B0F; --surface-2: #2F2615; --line: #4A3B1E; --lime: #FFC53D; --lime-ink: #2A1C00; --cyan: #FF9E5E; --blue-team: #5EC8FF; --muted: #CDB98F; --text: #FFF6E3; --good-bg: rgba(255, 197, 61, .15); --good-fg: #FFD978; --win: #9BE15D; --loss: #FF5D73; }
:root[data-theme="hielo"] { --bg: #08131F; --bg-2: #0B1828; --surface: #0F2133; --surface-2: #16304A; --line: #24486B; --lime: #8FE3FF; --lime-ink: #00202C; --cyan: #B7A6FF; --muted: #9DBBD6; --good-bg: rgba(108, 242, 176, .14); --good-fg: #8DF5C2; --win: #6CF2B0; --loss: #FF6B81; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(61, 217, 235, .12), transparent 60%),
              radial-gradient(900px 500px at -10% 10%, rgba(198, 244, 50, .10), transparent 60%), var(--bg);
  color: var(--text); font: 15px/1.5 var(--font-body); min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
main { flex: 1; padding: 24px 0 48px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 22px var(--font-title); text-decoration: none !important; }
.brand svg { width: 34px; height: 34px; }
.brand b { color: var(--lime); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); text-decoration: none; }
.top .spacer { flex: 1; }
.mini-search { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mini-search select { border-radius: 0 11px 11px 0; }
.mini-search input { background: none; border: 0; padding: 8px 10px; width: 190px; outline: none; }
.mini-search select { background: var(--surface-2); border: 0; padding: 8px 6px; outline: none; }
.icon-btn { background: var(--surface); border: 1px solid var(--line); color: var(--text); height: 38px; min-width: 38px; padding: 0 10px; border-radius: 12px; cursor: pointer; font-weight: 700; }
.icon-btn:hover { border-color: var(--lime); }
@media (max-width: 1020px) { .mini-search { display: none; } }
@media (max-width: 640px) {
  .top { backdrop-filter: none; background: var(--bg); }
  .top .wrap { gap: 10px; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-2); border-top: 1px solid var(--line); justify-content: space-around; margin: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
  .nav a { font-size: 12.5px; padding: 6px 5px; }
  body { padding-bottom: 58px; }
  .brand span.full { display: none; }
}

/* Botones y campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: transform .08s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 6px 20px rgba(198, 244, 50, .25); }
.btn-lime:hover { box-shadow: 0 8px 28px rgba(198, 244, 50, .4); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; width: 100%; outline: none; font-size: 17px; }
.field:focus { border-color: var(--lime); }

/* Tarjetas genéricas */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.muted { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.tag { display: inline-block; padding: 4px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; margin: 2px; }
.tag.good { background: var(--good-bg); color: var(--good-fg); }
.tag.warn { background: var(--warn-bg); color: var(--warn-fg); }
.tag.bad { background: var(--bad-bg); color: var(--bad-fg); }
.banner { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.banner.demo { background: var(--warn-bg); color: var(--warn-fg); }
.banner.err { background: var(--bad-bg); color: var(--bad-fg); }
.banner.info { background: color-mix(in srgb, var(--cyan) 14%, transparent); color: var(--text); }

/* Portada */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 30px 0 10px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.search-card { padding: 22px; }
.search-row { display: flex; gap: 10px; }
.search-row .btn { flex-shrink: 0; }
.regions { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.regions button { background: var(--surface-2); border: 1px solid transparent; border-radius: 9px; padding: 6px 10px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--muted); }
.regions button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.regions button:hover { border-color: var(--lime); }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; margin-inline: auto; width: 100%; }
.hero-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--line); animation: spin 40s linear infinite; }
.hero-art .orb { position: absolute; width: 64px; height: 64px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 2px solid var(--surface-2); }
.hero-art .center { position: absolute; inset: 22%; display: grid; place-items: center; }
.hero-art .center svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(198, 244, 50, .2)); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .ring { animation: none; } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.features .card h3 { font-size: 18px; }
.features .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--lime); font-size: 22px; margin-bottom: 12px; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { max-width: 260px; order: -1; } .features { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .search-row { flex-direction: column; } }

/* Partida */
.game-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.game-head h1 { font-size: 26px; margin: 0; }
.game-head .clock { font: 700 18px var(--font-title); color: var(--lime); }
.game-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.bans { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bans img { width: 30px; height: 30px; border-radius: 8px; filter: grayscale(.85); opacity: .85; }
.bans .sep { width: 12px; }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 22px; }
.glance .card { padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.glance .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.glance .v { font: 700 16px var(--font-title); }
.glance img { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
@media (max-width: 820px) { .glance { grid-template-columns: 1fr; } }
.team-title { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font: 700 18px var(--font-title); }
.team-title .dot { width: 12px; height: 12px; border-radius: 50%; }
.team-title .avg { margin-left: auto; font: 600 13px var(--font-body); color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .team { grid-template-columns: 1fr; } }
.pcard { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.pcard.searched { outline: 2px solid var(--lime); }
.pcard .stripe { height: 4px; }
.pcard .head { display: flex; gap: 10px; padding: 12px; align-items: center; }
.pcard .champ { position: relative; flex-shrink: 0; }
.pcard .champ img { width: 54px; height: 54px; border-radius: 14px; }
.pcard .champ .lvl { position: absolute; bottom: -6px; right: -6px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 800; padding: 1px 5px; }
.pcard .name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .name a { color: var(--text); }
.pcard .sub { font-size: 12.5px; color: var(--muted); }
.pcard .spells { display: flex; gap: 3px; margin-top: 4px; }
.pcard .spells img { width: 20px; height: 20px; border-radius: 5px; }
.pcard .rows { border-top: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 8px; font-size: 13.5px; }
.pcard .row { display: flex; justify-content: space-between; gap: 8px; }
.pcard .row .l { color: var(--muted); }
.pcard .row .r { font-weight: 700; text-align: right; }
.pcard .tags { padding: 8px 10px 12px; border-top: 1px solid var(--line); min-height: 44px; }
.wr-good { color: var(--good-fg); } .wr-bad { color: var(--bad-fg); }
.tier { display: inline-flex; align-items: center; gap: 6px; }
.tier i { width: 18px; height: 18px; border-radius: 6px; display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 900; color: #120F25; }
.form { display: inline-flex; gap: 3px; }
.form i { width: 8px; height: 8px; border-radius: 2px; background: var(--loss); }
.form i.w { background: var(--win); }
.skel { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; height: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.role { display: inline-grid; place-items: center; min-width: 30px; height: 20px; border-radius: 6px; background: var(--surface-2); font-size: 11px; font-weight: 800; padding: 0 5px; color: var(--text); }
.role.off { background: var(--warn-bg); color: var(--warn-fg); }
.progress { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin: 6px 0 14px; }
.progress span { display: block; height: 100%; background: var(--lime); width: 0; transition: width .3s; }

/* Build contra el equipo rival */
.build { padding: 18px 20px; margin: 0 0 8px; }
.build-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.build-head h2 { margin: 0; font-size: 20px; }
.bchips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bteam { display: flex; gap: 4px; }
.bchips .vs { font: 700 12px var(--font-title); color: var(--muted); }
.bchips button { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; opacity: .55; transition: opacity .15s, transform .1s; }
.bchips button img { width: 34px; height: 34px; border-radius: 8px; }
.bchips button:hover { opacity: 1; }
.bchips button[aria-pressed="true"] { opacity: 1; border-color: var(--tc, var(--lime)); transform: translateY(-2px); }
.bwho { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.bwho img { width: 52px; height: 52px; border-radius: 14px; }
.bmeter { height: 6px; width: 220px; max-width: 100%; border-radius: 6px; background: var(--coral); overflow: hidden; margin-top: 8px; }
.bmeter span { display: block; height: 100%; background: var(--cyan); }
.benemy { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.bgrid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 18px; }
.bgrid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.bgrid h3:not(:first-child) { margin-top: 14px; }
.bitem { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; }
.bitem img { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; }
.bname { font-weight: 800; font-size: 14px; }
.bname .muted { font-weight: 600; font-size: 12px; }
.why { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.bnote { font-size: 12px; margin: 10px 0 0; }
.bexport { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.bexport .btn { padding: 9px 14px; font-size: 14px; }
.bexport code { font-size: 11.5px; word-break: break-all; }
.bexport .lock { display: block; flex: 1 1 280px; }
.mini { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 4px 8px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; align-self: flex-start; }
.mini:hover { border-color: var(--lime); }
@media (max-width: 900px) { .bgrid { grid-template-columns: 1fr; } }

/* SuperGGs Plus */
.plus-badge { background: linear-gradient(135deg, var(--lime), var(--cyan)); color: var(--lime-ink); font: 800 11px var(--font-title); letter-spacing: .08em; padding: 3px 7px; border-radius: 7px; text-decoration: none !important; margin-left: -8px; }
.nav a.nav-plus { color: var(--lime); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.plan { padding: 22px; position: relative; }
.plan.pro { border: 2px solid var(--lime); box-shadow: 0 10px 40px rgba(198, 244, 50, .15); }
.plan .price { font: 700 30px var(--font-title); margin: 6px 0 2px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .ok { color: var(--lime); font-weight: 900; }
.plan li .no { color: var(--muted); }
.plan .ribbon { position: absolute; top: -12px; right: 16px; background: var(--lime); color: var(--lime-ink); font: 800 12px var(--font-title); padding: 4px 10px; border-radius: 8px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel-grid .card { padding: 18px; }
.follow-row, .hist-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); margin-bottom: 6px; font-size: 14px; }
.follow-row .st { margin-left: auto; font-weight: 700; font-size: 12.5px; }
.follow-row .x, .hist-row .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; }
.hist-row img { width: 26px; height: 26px; border-radius: 7px; }
.hist-row .champs { display: flex; gap: 2px; margin-left: auto; }
.themes { display: flex; gap: 10px; flex-wrap: wrap; }
.themes button { width: 86px; padding: 8px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 700; font-size: 12.5px; }
.themes button[aria-pressed="true"] { border-color: var(--lime); }
.themes .sw { display: flex; height: 26px; border-radius: 7px; overflow: hidden; margin-bottom: 6px; }
.themes .sw i { flex: 1; }
.lock { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .plans, .panel-grid { grid-template-columns: 1fr; } }

/* Builds públicas y página de campeón */
.filters { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 14px 0; padding: 14px 16px; }
.filters .field { max-width: 320px; font-size: 15px; padding: 10px 14px; }
.filters .regions { margin: 0; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ccard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: transform .1s, border-color .15s; }
.ccard:hover { border-color: var(--lime); transform: translateY(-2px); }
.ccard img { width: 64px; height: 64px; border-radius: 14px; }
.ccard b { font-size: 14px; }
.ccard small { color: var(--muted); font-size: 11.5px; line-height: 1.25; }
.chero { display: flex; gap: 18px; align-items: center; padding: 26px 22px; border-radius: var(--radius); background-size: cover; background-position: center 20%; border: 1px solid var(--line); margin-bottom: 16px; min-height: 200px; }
.chero h1 { font-size: clamp(26px, 4vw, 38px); margin: 0; }
.chero .cicon { width: 96px; height: 96px; border-radius: 22px; border: 3px solid var(--lime); flex-shrink: 0; }
.ctags { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 560px) { .chero { flex-direction: column; align-items: flex-start; } .chero .cicon { width: 72px; height: 72px; } }
.build h3.sub { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 10px; }
.ochain { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.ostep { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; max-width: 96px; text-align: center; }
.olabel { font: 800 11.5px var(--font-title); color: var(--lime); letter-spacing: .04em; text-transform: uppercase; }
.oitems { display: flex; gap: 3px; }
.ochip img { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--line); }
.ochip span:empty { display: none; }
.oname { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.oarrow { color: var(--muted); font-size: 22px; margin-top: 22px; }
.bitem.sm { padding: 6px; margin-bottom: 6px; }
.bitem.sm img { width: 32px; height: 32px; }
.vstips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.vstip { display: flex; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 10px; font-size: 13.5px; }
.vstip img { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.vstip ul, ul.tips { margin: 4px 0 0; padding-left: 18px; }
ul.tips li { margin-bottom: 6px; }
.locked { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 2px dashed var(--line); background: var(--surface-2); }
.locked .lk { font-size: 30px; }
.locked p { margin: 4px 0 10px; }
.coach-cta { margin-top: 14px; }
.coach { margin-top: 12px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--lime) 12%, var(--surface-2)), var(--surface-2)); border: 1px solid var(--line); }
.coach-h { font: 700 17px var(--font-title); margin-bottom: 6px; }
.coach ol { padding-left: 20px; margin: 8px 0; }
.coach ol li { margin-bottom: 6px; }
.coach-k { font-weight: 800; color: var(--lime); }
.abil { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ab { display: flex; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 10px; }
.ab img { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.ab p { margin: 4px 0 0; font-size: 13px; }

/* Perfil del invocador */
.phead { display: flex; gap: 18px; align-items: center; padding: 20px; flex-wrap: wrap; }
.phead h1 { font-size: clamp(24px, 3.4vw, 32px); margin: 0; word-break: break-word; }
.picon { position: relative; flex-shrink: 0; }
.picon img { width: 84px; height: 84px; border-radius: 20px; border: 3px solid var(--lime); }
.picon span { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; font: 800 12px var(--font-title); }
.phmeta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.phact { display: flex; gap: 8px; flex-wrap: wrap; }
.phact .btn { padding: 9px 14px; font-size: 14px; }
.livebtn { padding: 6px 12px !important; font-size: 13px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime-ink); animation: pls 1.2s infinite; }
@keyframes pls { 50% { opacity: .25; } }
.ptiles { display: grid; grid-template-columns: 1.25fr 1.25fr 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (max-width: 1000px) { .ptiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ptiles { grid-template-columns: 1fr; } }
.ptile { padding: 14px 16px; }
.plbl { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.pbig { font: 700 20px var(--font-title); line-height: 1.2; }
.prank { display: flex; gap: 12px; align-items: center; }
.emblem { width: 54px; height: 60px; flex-shrink: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--tc); display: grid; place-items: center; }
.emblem span { font: 800 20px var(--font-title); color: #14112B; display: flex; align-items: baseline; gap: 1px; }
.emblem small { font-size: 11px; }
.emblem.none { background: var(--surface-2); color: var(--muted); font-weight: 800; }
.wrbar { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--loss) 35%, transparent); overflow: hidden; margin-top: 6px; }
.wrbar i { display: block; height: 100%; background: var(--win); }
.pform { display: flex; gap: 3px; margin-top: 8px; flex-wrap: wrap; }
.pform i { width: 10px; height: 18px; border-radius: 3px; background: var(--loss); }
.pform i.w { background: var(--win); }
.pgrid3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (max-width: 1000px) { .pgrid3 { grid-template-columns: 1fr; } }
.ptitle { font: 700 16px var(--font-title); margin-bottom: 10px; }
.ptitle .muted { font: 600 12.5px var(--font-body); }
.pchamp { display: grid; grid-template-columns: 36px 1fr 90px 46px; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.pchamp:hover { background: var(--surface-2); }
.pchamp img { width: 36px; height: 36px; border-radius: 9px; }
.pcn { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.pcn .muted { font-size: 12px; }
.pcbar { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.pcbar .bar2 { flex: 1; }
.pcwr { text-align: right; font-size: 14px; }
.bar2 { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar2 i { display: block; height: 100%; background: var(--cyan); }
.bar2.good i { background: var(--lime); } .bar2.bad i { background: var(--coral); }
.pdonut-w { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pdonut { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.pdonut > div { width: 92px; height: 92px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pdonut small { font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.pdonut b { font: 700 15px var(--font-title); }
.proles { flex: 1; display: grid; gap: 6px; font-size: 13.5px; min-width: 170px; }
.proles div { display: grid; grid-template-columns: 10px 1fr 30px 38px 38px; gap: 6px; align-items: center; }
.proles i { width: 10px; height: 10px; border-radius: 3px; }
.proles b, .proles .muted { text-align: right; }
.ppat { margin-bottom: 10px; font-size: 13.5px; }
.ppat > div:first-child { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ppat small { font-size: 11.5px; }
.pmast { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pmast a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 10px 6px; border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none !important; font-size: 13px; }
.pmast img { width: 48px; height: 48px; border-radius: 12px; }
.pmast .muted { font-size: 11.5px; }
.phist-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.prow { display: grid; grid-template-columns: 120px 70px 120px 120px 1fr 260px; gap: 12px; align-items: center; padding: 10px 12px; margin-bottom: 8px; background: var(--surface-2); border-left: 4px solid var(--muted); cursor: pointer; }
.prow.win { border-left-color: var(--win); background: color-mix(in srgb, var(--win) 8%, var(--surface-2)); }
.prow.loss { border-left-color: var(--loss); background: color-mix(in srgb, var(--loss) 8%, var(--surface-2)); }
.pr-res { display: flex; flex-direction: column; font-size: 12.5px; }
.pr-res b { font-size: 14px; }
.prow.win .pr-res b { color: var(--win); } .prow.loss .pr-res b { color: var(--loss); }
.pr-champ { display: flex; gap: 4px; align-items: center; }
.pr-ci { position: relative; }
.pr-ci img { width: 46px; height: 46px; border-radius: 12px; }
.pr-ci span { position: absolute; bottom: -4px; right: -4px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font-size: 10.5px; font-weight: 800; padding: 0 4px; }
.pr-sp { display: flex; flex-direction: column; gap: 2px; }
.pr-sp img { width: 20px; height: 20px; border-radius: 5px; }
.pr-kda, .pr-cs { display: flex; flex-direction: column; font-size: 13px; }
.pr-kda b { font: 700 15px var(--font-title); }
.pr-items { display: flex; gap: 3px; flex-wrap: wrap; }
.pr-items img, .pi-empty { width: 28px; height: 28px; border-radius: 6px; background: var(--surface); display: inline-block; }
.pr-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 11.5px; }
.pteam div { display: flex; align-items: center; gap: 4px; min-width: 0; line-height: 1.5; }
.pteam img { width: 16px; height: 16px; border-radius: 4px; }
.pteam a { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pteam .me a { color: var(--text); font-weight: 800; }
@media (max-width: 1150px) { .prow { grid-template-columns: 110px 70px 1fr 1fr; } .pr-items { grid-column: 1 / -1; } .pr-teams { display: none; } .prow.open .pr-teams { display: grid; grid-column: 1 / -1; } }
@media (max-width: 560px) { .prow { grid-template-columns: 70px 1fr; } .pr-res { grid-column: 1 / -1; flex-direction: row; gap: 8px; flex-wrap: wrap; } .pr-cs { grid-column: 1 / -1; } }

/* Página Plus: ventajas */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.pf { padding: 18px; }
.pf h3 { margin: 6px 0; font-size: 17px; }
.pf p { margin: 0; font-size: 14px; }
.pfi { font-size: 28px; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }

/* Arcade: trivia, orden de objetos y práctica */
.tq { margin: 10px 0 12px; }
.tqimg { width: 64px; height: 64px; border-radius: 14px; margin: 8px 0; }
.tqq { font: 700 18px var(--font-title); line-height: 1.3; }
.topts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topt { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); cursor: pointer; text-align: left; font-weight: 700; font-size: 14px; }
.topt:hover:not([disabled]) { border-color: var(--lime); }
.topt img { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; }
.topt.ok { border-color: var(--lime); background: var(--good-bg); color: var(--good-fg); }
.topt.bad { border-color: var(--coral); background: var(--bad-bg); color: var(--bad-fg); }
.topt[disabled] { cursor: default; }
@media (max-width: 480px) { .topts { grid-template-columns: 1fr; } }
.tfeed { margin-top: 10px; font-weight: 800; }
.tfeed.ok { color: var(--good-fg); } .tfeed.bad { color: var(--bad-fg); }
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.oitem { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: 12px; font-weight: 700; text-align: center; }
.oitem img { width: 48px; height: 48px; border-radius: 10px; }
.oitem.on { border-color: var(--lime); }
.oitem i { position: absolute; top: 4px; right: 6px; font-style: normal; background: var(--lime); color: var(--lime-ink); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-weight: 900; }
.osol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.osol span { display: inline-flex; flex-direction: column; align-items: center; color: var(--text); font-weight: 800; font-size: 12px; }
.osol img { width: 34px; height: 34px; border-radius: 8px; }

/* Sugerencias de campeones en el buscador */
.champ-suggest { min-width: 300px; z-index: 40; }
.champ-suggest .sg-h, .champ-suggest .sg-f { padding: 7px 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.champ-suggest .sg-f { text-transform: none; letter-spacing: 0; font-weight: 600; border-top: 1px solid var(--line); }
.champ-suggest button { gap: 10px; padding: 7px 12px; }
.champ-suggest button img { width: 32px; height: 32px; border-radius: 8px; }
.champ-suggest button span { display: flex; flex-direction: column; line-height: 1.2; }
.champ-suggest button small { color: var(--muted); font-size: 12px; }
.champ-suggest button em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--lime); font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .nav a.nav-help { display: none; } }

/* Estados vacíos */
.empty { text-align: center; padding: 60px 20px; }
.empty .big { font-size: 64px; margin-bottom: 8px; }

/* Destacadas */
.fgames { display: grid; gap: 14px; }
.fgame { padding: 14px 16px; }
.fgame .hd { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fgame .teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgame .side { display: grid; gap: 6px; }
.fgame .pl { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.fgame .pl img { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.fgame .pl a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
@media (max-width: 600px) { .fgame .teams { grid-template-columns: 1fr; } }

/* Arcade */
.arcade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .arcade-grid { grid-template-columns: 1fr; } }
.streak { text-align: center; padding: 8px 14px; border-radius: 12px; background: var(--surface-2); }
.streak b { font: 700 24px var(--font-title); color: var(--lime); display: block; }
.hints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.hintbox { aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; position: relative; border: 1px solid var(--line); text-align: center; font-size: 13px; padding: 6px; color: var(--muted); }
.hintbox img.icon { width: 70%; height: 70%; object-fit: contain; border-radius: 10px; }
.hintbox .splash { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; }
.hintbox.text { color: var(--text); font-weight: 600; }
.hintbox.locked { font-size: 26px; }
.guess-row { display: flex; gap: 8px; position: relative; }
.guess-row .field { font-size: 15px; padding: 11px 14px; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 4px; max-height: 240px; overflow: auto; box-shadow: var(--shadow); }
.suggest button { display: flex; width: 100%; gap: 8px; align-items: center; background: none; border: 0; padding: 7px 10px; cursor: pointer; text-align: left; }
.suggest button:hover, .suggest button.on { background: var(--surface-2); }
.suggest img { width: 26px; height: 26px; border-radius: 6px; }
.guesses { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.guesses .g { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.guesses .g img { width: 28px; height: 28px; border-radius: 7px; }
.guesses .g.ok { background: var(--good-bg); color: var(--good-fg); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips span { display: inline-flex; align-items: center; gap: 6px; background: var(--good-bg); color: var(--good-fg); padding: 3px 8px 3px 3px; border-radius: 9px; font-weight: 700; font-size: 13px; animation: pop .25s; }
.chips span.miss { background: var(--surface-2); color: var(--muted); }
.chips img { width: 22px; height: 22px; border-radius: 6px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.timer { font: 700 34px var(--font-title); color: var(--lime); }
.result { text-align: center; padding: 16px; border-radius: 12px; background: var(--surface-2); margin-top: 12px; }
.result img { width: 84px; height: 84px; border-radius: 18px; margin: 0 auto 8px; }

/* Texto largo */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; font-size: 22px; }
.prose details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.prose summary { cursor: pointer; font-weight: 700; }

/* Pie */
footer.foot { border-top: 1px solid var(--line); padding: 22px 0 28px; color: var(--muted); font-size: 13px; }
footer.foot .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
footer.foot p { margin: 6px 0 0; max-width: 640px; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: var(--lime); color: var(--lime-ink); padding: 10px 18px; border-radius: 12px; font-weight: 800; z-index: 50; box-shadow: var(--shadow); }
