/* Fútbol Arcade · componentes de los juegos nuevos (se carga después de styles.css) */
.fa-head-r { display: flex; align-items: center; gap: 10px; }
.fa-career { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; }
.fa-career:hover { border-color: var(--neon); }
.fa-career-lv { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--neon); color: #0b1a10; font-weight: 900; }
.fa-career-t { display: flex; flex-direction: column; line-height: 1.1; }
.fa-career-t b { font-size: .85rem; } .fa-career-t small { color: var(--muted); font-size: .72rem; }

.fa-page { padding: 22px 0 10px; }
.fa-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.fa-top h1 { margin: 0; font-size: clamp(1.7rem, 4.6vw, 2.6rem); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.5px; line-height: 1.05; }
.fa-top h1 span { color: var(--neon); }
.fa-top p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.fa-modes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fa-tabs { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.fa-tabs[hidden] { display: none; }
.fa-tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 10px; padding: 8px 14px; font-weight: 800; font-size: .88rem; }
.fa-tabs button[aria-pressed="true"] { background: var(--neon); color: #0b1a10; }
.fa-board { background: linear-gradient(180deg, var(--pitch), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; }
.fa-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fa-status span { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--muted); }
.fa-status b { color: var(--text); }

/* buscador */
.fa-field { position: relative; }
.fa-field input { width: 100%; font: inherit; font-size: 1.05rem; color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.fa-field input:focus { outline: none; border-color: var(--neon); }
.fa-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); max-height: 340px; overflow-y: auto; }
/* caras de jugadores */
.fa-face { --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; flex: none; display: inline-grid; place-items: center; background: linear-gradient(160deg, var(--card2), var(--bg)); border: 2px solid rgba(255,255,255,.18); font-weight: 900; font-size: calc(var(--s) * .34); color: var(--muted); }
.fa-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.fa-face.sm { --s: 34px; } .fa-face.md { --s: 56px; } .fa-face.lg { --s: 92px; border-width: 3px; border-color: var(--neon); } .fa-face.xl { --s: 120px; border-width: 3px; border-color: var(--gold); }
.fa-pcard.fa-withface, .fa-ccard { align-items: center; text-align: center; }
.fa-pcard.fa-withface .fa-face, .fa-ccard .fa-face { margin-bottom: 4px; }
.fa-cell .fa-face { margin-bottom: 4px; }
.fa-current .fa-face { margin: 6px 0; }
.fa-slot .fa-face { --s: 30px; }
.fa-try-n { display: inline-flex; align-items: center; gap: 8px; }
.fa-reveal { display: flex; justify-content: center; margin: 10px 0 4px; }
.fa-sugg-t { display: flex; flex-direction: column; min-width: 0; }
.fa-sugg-item { flex-direction: row !important; align-items: center !important; gap: 10px; }
.fa-sugg-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; border: 0; background: transparent; color: var(--text); text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.fa-sugg-item small { color: var(--muted); }
.fa-sugg-item.is-sel, .fa-sugg-item:hover { background: var(--card2); }

/* escudos propios e insignias de categoría */
.fa-badge { display: inline-block; width: 2.1em; height: 2.4em; font-size: .78rem; flex: none; vertical-align: middle; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.fa-badge .fa-crest { display: block; width: 100%; height: 100%; }
.fa-badge.plain { --c1: #2f7d32; --c2: #fff; display: inline-grid; place-items: center; font-weight: 900; color: var(--c2); background: var(--c1); clip-path: polygon(50% 0, 100% 12%, 100% 62%, 50% 100%, 0 62%, 0 12%); }
.fa-withcrest { display: inline-flex; align-items: center; gap: 6px; }
.fa-withcrest .fa-badge { font-size: .62rem; }
.fa-cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; line-height: 1.15; }
.fa-flag { font-size: 1.3em; }

/* rejilla */
.fa-grid { display: grid; grid-template-columns: minmax(70px, 1fr) repeat(3, minmax(0, 1.25fr)); gap: 8px; max-width: 640px; margin: 0 auto; }
.fa-grid .hd { display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; font-size: .86rem; min-height: 64px; }
.fa-grid .hd .fa-badge { font-size: 1.45rem; }
.fa-board .fa-ask, .fa-board > .fa-actions { max-width: 640px; margin-left: auto; margin-right: auto; }
.fa-grid .hd .fa-cat { flex-direction: column; gap: 4px; }
.fa-cell { aspect-ratio: 1 / .9; border-radius: 14px; border: 2px dashed rgba(255,255,255,.18); background: rgba(0,0,0,.22); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; text-align: center; font-weight: 800; font-size: .86rem; line-height: 1.15; }
.fa-cell:hover:not([disabled]) { border-color: var(--neon); }
.fa-cell.is-sel { border-style: solid; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(198,255,61,.2); }
.fa-cell.ok { border: 2px solid var(--green); background: rgba(34,197,94,.16); }
.fa-cell.miss { border-style: solid; border-color: var(--gray); color: var(--muted); font-weight: 600; }
.fa-cell small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; margin-top: 3px; }
.fa-ask { margin-top: 14px; display: grid; gap: 8px; }
.fa-ask[hidden] { display: none; }
.fa-ask label { font-weight: 800; font-size: .92rem; }
.fa-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* impostor */
.fa-prompt { text-align: center; margin: 4px 0 16px; }
.fa-prompt small { display: block; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .75rem; }
.fa-prompt .fa-cat { font-size: 1.35rem; justify-content: center; margin-top: 6px; }
.fa-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fa-pcard { border: 2px solid var(--line); background: var(--card); color: var(--text); border-radius: 14px; padding: 12px 10px; text-align: left; display: flex; flex-direction: column; gap: 3px; min-height: 76px; transition: transform .12s; }
.fa-pcard:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--muted); }
.fa-pcard b { font-size: .98rem; line-height: 1.15; }
.fa-pcard small { color: var(--muted); font-size: .76rem; }
.fa-pcard.is-on { border-color: var(--neon); background: rgba(198,255,61,.1); }
.fa-pcard.good { border-color: var(--green); background: rgba(34,197,94,.16); }
.fa-pcard.bad { border-color: var(--red); background: rgba(239,68,68,.18); }
.fa-pcard.missed { border-color: var(--gold); border-style: dashed; }
.fa-pcard .why { color: var(--text); opacity: .8; font-size: .74rem; }

/* cadena */
.fa-chain { display: flex; flex-direction: column; gap: 0; align-items: stretch; max-width: 560px; margin: 0 auto; }
.fa-link { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.fa-link.end { border-color: var(--gold); background: rgba(255,210,63,.08); }
.fa-link.start { border-color: var(--neon); }
.fa-link .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font-weight: 900; font-size: .85rem; flex: none; }
.fa-link b { display: block; }
.fa-link small { color: var(--muted); }
.fa-join { align-self: center; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; padding: 4px 0; }
.fa-join::before, .fa-join::after { content: ""; width: 2px; height: 12px; background: var(--line); }
.fa-join { flex-direction: column; }
.fa-join .fa-badge { font-size: .62rem; }

/* bingo */
.fa-bingo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 620px; margin: 0 auto; }
.fa-bcell { aspect-ratio: 1 / .82; gap: 4px; font-size: .78rem; border-style: solid; }
.fa-bcell .fa-cat { flex-direction: column; gap: 3px; }
.fa-current { max-width: 620px; margin: 0 auto 14px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px; border-radius: 16px; border: 2px solid var(--gold); background: rgba(255,210,63,.08); }
.fa-current b { font-size: 1.35rem; }
.fa-current small { color: var(--muted); }

/* once ideal */
.fa-pitch { max-width: 560px; margin: 0 auto; padding: 14px 8px; border-radius: 18px; background: repeating-linear-gradient(0deg, #11512f 0 38px, #0f4a2b 38px 76px); border: 2px solid rgba(255,255,255,.25); display: grid; gap: 10px; }
.fa-row { display: flex; justify-content: center; gap: 8px; }
.fa-slot { flex: 1; max-width: 128px; min-height: 74px; border-radius: 12px; border: 2px dashed rgba(255,255,255,.35); background: rgba(0,0,0,.25); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px; gap: 2px; }
.fa-slot small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; }
.fa-slot b { font-size: .8rem; line-height: 1.1; }
.fa-slot.ok { border-style: solid; border-color: var(--neon); background: rgba(198,255,61,.12); }
.fa-cat.mini { font-size: .62rem; font-weight: 700; gap: 3px; color: var(--muted); }
.fa-cat.mini .fa-badge { font-size: .5rem; }
.fa-select { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-weight: 700; }

/* conexiones */
.fa-solved { display: grid; gap: 8px; margin-bottom: 8px; }
.fa-group { border-radius: 14px; padding: 10px 14px; color: #0b1a10; text-align: center; }
.fa-group b { display: block; text-transform: uppercase; letter-spacing: .5px; }
.fa-group span { font-size: .88rem; font-weight: 600; }
.fa-cards.fa-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fa-ccard { min-height: 64px; justify-content: center; text-align: center; align-items: center; }

/* frío o caliente */
.fa-tries { display: grid; gap: 8px; max-width: 640px; margin: 14px auto 0; }
.fa-try { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fa-try.win { border-color: var(--neon); }
.fa-try-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; }
.fa-try small { color: var(--muted); }

/* compañeros */
.fa-mates { display: grid; gap: 8px; max-width: 560px; margin: 0 auto; }
.fa-link.hidden { opacity: .45; border-style: dashed; }

/* portada */
.fa-nav { display: flex; gap: 4px; }
.fa-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; padding: 6px 10px; border-radius: 999px; }
.fa-nav a:hover { color: var(--text); background: var(--card); }
@media (max-width: 720px) { .fa-nav { display: none; } }
.fa-hubsec { margin: 26px 0; background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.fa-sechead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fa-sechead h2 { margin: 0; font-size: 1.35rem; font-weight: 900; text-transform: uppercase; font-style: italic; }
.fa-seclead, .fa-muted { color: var(--muted); font-size: .92rem; }
.fa-pill { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--muted); }
.fa-pill b { color: var(--neon); }
/* Retos del día: bloque destacado */
.fa-retos { border: 2px solid var(--neon); background: radial-gradient(120% 140% at 0% 0%, rgba(198,255,61,.16), transparent 55%), linear-gradient(180deg, var(--card), var(--bg2)); box-shadow: 0 0 0 4px rgba(198,255,61,.08), var(--shadow); padding: 22px; }
.fa-retos .fa-sechead h2 { font-size: 1.7rem; color: var(--neon); }
.fa-pill-big { font-size: 1.05rem; padding: 6px 16px; color: var(--text); }
.fa-cap { color: var(--text); }
.fa-retos .fa-seclead { font-size: 1rem; margin: 8px 0 10px; }
.fa-retos .fa-seclead b { color: var(--text); }
.fa-dbar { height: 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.fa-dbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, var(--neon)); border-radius: 999px; transition: width .6s ease; }
.fa-dmsg { font-weight: 800; margin: 10px 0 2px; font-size: 1rem; }
.fa-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 860px) { .fa-days { grid-template-columns: repeat(2, 1fr); } }
.fa-day { text-decoration: none; color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: 16px 12px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.fa-day:hover { border-color: var(--neon); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.fa-day-e { font-size: 2.4rem; line-height: 1.1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.fa-day b { font-size: 1.05rem; font-weight: 900; }
.fa-day small { color: var(--muted); font-size: .8rem; }
.fa-day-st { margin-top: 6px; font-weight: 900; font-size: .85rem; padding: 5px 12px; border-radius: 999px; background: var(--neon); color: #0b1a10; }
.fa-day.done { border-color: rgba(34,197,94,.7); background: rgba(34,197,94,.12); }
.fa-day.done .fa-day-st { background: rgba(34,197,94,.25); color: #bbf7d0; }
.fa-games12 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .fa-games12 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fa-games12 { grid-template-columns: 1fr; } }
.fa-gcard { text-decoration: none; color: var(--text); }
.fa-gicon { font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 4px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.fa-hubgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.fa-hubgrid .fa-hubsec { margin: 0; }
@media (max-width: 860px) { .fa-hubgrid { grid-template-columns: 1fr; } }
.fa-career-big { display: flex; align-items: center; gap: 12px; margin: 12px 0 6px; }
.fa-career-big b { display: block; font-size: 1.4rem; } .fa-career-big small { color: var(--muted); }
.fa-career-lv.big { width: 54px; height: 54px; font-size: 1.5rem; }
.fa-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.fa-stats span { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: .85rem; color: var(--muted); }
.fa-stats b { color: var(--text); }
.fa-trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin: 10px 0; }
.fa-tro { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; opacity: .55; }
.fa-tro.got { opacity: 1; border-color: rgba(255,210,63,.6); background: rgba(255,210,63,.08); }
.fa-tro .i { font-size: 1.1rem; } .fa-tro b { display: block; font-size: .82rem; } .fa-tro small { color: var(--muted); font-size: .7rem; line-height: 1.2; display: block; }
.fa-gtable { width: 100%; border-collapse: collapse; font-size: .85rem; margin: 6px 0; }
.fa-gtable th, .fa-gtable td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.fa-rank { display: grid; gap: 4px; margin: 10px 0; max-height: 520px; overflow-y: auto; }
.fa-rank-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.fa-rank-row .pos { font-weight: 900; text-align: center; color: var(--muted); }
.fa-rank-row .pts { color: var(--neon); font-weight: 800; font-size: .9rem; }
.fa-rank-row.me { border-color: var(--neon); }
.fa-rank-row.top1 { border-color: var(--gold); }
.fa-empty { color: var(--muted); text-align: center; padding: 14px; }
.fa-account { border-top: 1px solid var(--line); padding-top: 12px; }
.fa-account p { color: #d2e3d8; font-size: .92rem; }
.fa-gbtn { min-height: 44px; margin-top: 8px; }
.fa-name { display: grid; gap: 10px; }
.fa-name label { font-weight: 800; }
.fa-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500 !important; font-size: .88rem; color: var(--muted); }
.fa-err { color: #ff8a8a; margin: 0; }

.fa-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--card2); border: 1px solid var(--neon); color: var(--text); padding: 10px 16px; border-radius: 12px; font-weight: 700; opacity: 0; transition: .25s; z-index: 80; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.fa-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* fin de partida */
.fa-end { border: 1px solid var(--neon); background: var(--bg2); color: var(--text); border-radius: 22px; padding: 0; width: min(440px, calc(100% - 28px)); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.fa-end::backdrop { background: rgba(0,0,0,.65); }
.fa-end-in { padding: 22px; text-align: center; }
.fa-end-k { margin: 0; color: var(--neon); font: 800 .8rem var(--mono); letter-spacing: 2px; text-transform: uppercase; }
.fa-end h2 { margin: 6px 0; font-size: 1.5rem; }
.fa-end-d { color: var(--muted); margin: 0 0 12px; }
.fa-end-pts b { display: block; font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; }
.fa-end-pts span { color: var(--muted); font-size: .9rem; }
.fa-lvl { margin: 16px 0 6px; text-align: left; }
.fa-lvl-n { font-weight: 800; }
.fa-bar { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; border: 1px solid var(--line); }
.fa-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon-d), var(--neon)); }
.fa-lvl small { color: var(--muted); }
.fa-streak { margin: 8px 0; font-weight: 700; }
.fa-trophy { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: rgba(255,210,63,.12); border: 1px solid rgba(255,210,63,.4); font-weight: 700; font-size: .9rem; }
.fa-end-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* textos de cada juego */
.fa-help { margin-top: 26px; }
.fa-help h2 { font-size: 1.35rem; margin: 26px 0 8px; }
.fa-help p, .fa-help li { color: #d2e3d8; }
.fa-help ul, .fa-help ol { padding-left: 1.2rem; }
.fa-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.fa-more a { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 800; }
.fa-more a small { display: block; color: var(--muted); font-weight: 500; }
.fa-more a:hover { border-color: var(--neon); }

@media (max-width: 560px) {
  .fa-board { padding: 12px; }
  .fa-grid { gap: 5px; grid-template-columns: 62px repeat(3, minmax(0, 1fr)); }
  .fa-grid .hd { font-size: .72rem; min-height: 54px; padding: 2px; }
  .fa-cell { font-size: .74rem; border-radius: 10px; }
  .fa-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fa-cards.fa-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .fa-ccard { padding: 6px 3px; min-height: 58px; } .fa-ccard b { font-size: .7rem; }
  .fa-bingo { gap: 5px; } .fa-bcell { font-size: .64rem; padding: 3px; }
  .fa-slot b { font-size: .68rem; } .fa-row { gap: 4px; }
}
