/* Letras incluidas en la app (licencia OFL, uso comercial libre): Anton para títulos y DM Sans para textos */
@font-face { font-family: 'Anton'; src: url('./fonts/Anton.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('./fonts/DMSans.ttf') format('truetype'); font-weight: 100 1000; font-display: swap; }
/* Gol Gol Story — azul marino con acentos neón, pensado para móvil en horizontal (844×390 de base) */
:root {
  --bg: #0b1020; --bg2: #0e1530; --card: #111a33; --line: #1f2b4d; --line2: #2a3a66; --chip: #1c2a52;
  --text: #e8ecf6; --dim: #9aa6c7; --acc: #b6f23a; --acc2: #ffb020; --good: #7ef0a0; --bad: #ff6b6b;
  --cond: 'Anton', 'Barlow Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif-condensed, sans-serif;
  --sans: 'DM Sans', Inter, Roboto, 'Segoe UI', system-ui, sans-serif;
  --ink: #0b1020; /* texto encima del color de acento */
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #070b16; color: var(--text); font: 13px/1.35 var(--sans); overflow: hidden; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line2); border-radius: 7px; height: 30px; padding: 0 8px; min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
h1, h2, h3, h4 { font-family: var(--cond); letter-spacing: .03em; margin: 0 0 6px; font-weight: 800; }
h3 { font-size: 15px; text-transform: uppercase; display: flex; align-items: baseline; gap: 6px; }
h3 small { color: var(--dim); font: 600 11px var(--sans); text-transform: none; }
h4 { font-size: 13px; text-transform: uppercase; color: var(--dim); }
.mt { margin-top: 10px; }
.dim { color: var(--dim); }
.neg, .bad { color: var(--bad) !important; }
.warn { color: var(--acc2); }
.up { color: var(--good); font-size: 9px; } .down { color: var(--bad); font-size: 9px; } .flat { color: var(--dim); font-size: 9px; }
.hint { color: var(--dim); font-size: 11px; }
.empty { color: var(--dim); text-align: center; padding: 18px; }
.empty.small { padding: 6px; font-size: 12px; }

/* Botones */
.go { height: 32px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--acc); color: var(--ink); font: 800 15px var(--cond); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.go:active { transform: translateY(1px); filter: brightness(.95); }
.go.small { height: 28px; font-size: 13px; padding: 0 10px; }
.go.big { height: 46px; font-size: 22px; padding: 0 28px; }
.ghost { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; font-weight: 700; font-size: 12px; white-space: nowrap; }
.ghost.small { height: 26px; padding: 0 8px; font-size: 11px; }
.ghost:disabled { opacity: .45; }
.row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.wide-btn { width: 100%; height: 40px; border-radius: 9px; border: 1px solid var(--line2); background: var(--card); font-weight: 700; margin-bottom: 6px; }

/* Marco: barra superior + menú lateral */
#app { height: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: 40px 28px 1fr; }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 calc(10px + var(--safe-r)) 0 calc(10px + var(--safe-l)); background: var(--bg2); border-bottom: 1px solid var(--line); }
.club-btn { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; min-width: 0; }
.cname { font: 800 17px var(--cond); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
.top-info { display: flex; flex-direction: column; line-height: 1.15; font-size: 11px; color: var(--dim); margin-left: auto; text-align: right; white-space: nowrap; }
.top-info span:last-child { color: var(--text); font-weight: 700; }
.rail { display: flex; flex-direction: column; background: var(--bg2); border-right: 1px solid var(--line); padding: 4px 0 4px var(--safe-l); overflow-y: auto; }
.rail button { border: 0; background: none; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; font-size: 9.5px; font-weight: 700; border-left: 3px solid transparent; }
.rail button.on { color: var(--text); border-left-color: var(--acc); background: color-mix(in srgb, var(--acc) 6%, transparent); }
main { overflow-y: auto; padding: 8px calc(8px + var(--safe-r)) 10px calc(8px + var(--safe-l)); -webkit-overflow-scrolling: touch; min-height: 0; }

/* Tarjetas y rejillas */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-width: 0; }
.card.full { min-height: 100%; }
.grid { display: grid; gap: 10px; }
.grid.home { grid-template-columns: 1.1fr 1fr 1fr; }
.grid.home .inbox { grid-column: 1 / -1; }
.grid.club { grid-template-columns: 1fr 1.4fr; }
.grid.news { grid-template-columns: 1.2fr 1fr 1.2fr; }
.bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.bar b { font: 800 15px var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.bar small { color: var(--dim); }
.pill, .rt { display: inline-block; padding: 0 5px; border-radius: 4px; font-weight: 800; font-size: 11px; color: #0b1020; min-width: 24px; text-align: center; }
.tag { display: inline-block; padding: 1px 6px; border-radius: 5px; background: var(--chip); color: var(--text); font-size: 10px; font-weight: 700; margin-left: 3px; white-space: nowrap; }
.tag.good { background: #12361f; color: var(--good); } .tag.bad { background: #3d1520; color: #ff9aa5; }
.rl { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--chip); color: #cfe0ff; font-weight: 800; font-size: 10px; min-width: 30px; text-align: center; }
.pot { color: var(--dim); font-weight: 700; font-size: 11px; }
.kv { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.kv span { color: var(--dim); }
.board { padding: 6px 8px; border-radius: 7px; background: #12361f; color: var(--good); font-weight: 700; }
.board.warning { background: #3a2a08; color: var(--acc2); } .board.embargo, .board.forcedSales, .board.fired { background: #3d1520; color: #ff9aa5; }
.stars { color: var(--acc2); letter-spacing: -1px; font-size: 11px; } .stars .dim { color: #2a3768; }

/* Inicio */
.next .vs { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; }
.next .mid { display: flex; flex-direction: column; align-items: center; text-align: center; }
.next .mid b { font: 800 24px var(--cond); letter-spacing: .03em; }
.next .mid small { color: var(--dim); font-size: 11px; }
.next .names { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-bottom: 8px; }
.res { display: flex; align-items: center; gap: 5px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.res small { color: var(--dim); width: 44px; flex-shrink: 0; }
.res .cn { width: 110px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.res .tm { width: 40px; font-weight: 700; }
.res b { font: 800 15px var(--cond); min-width: 34px; text-align: center; background: var(--chip); border-radius: 5px; }
.res.up b { background: transparent; color: var(--dim); }
.msgs { display: flex; flex-direction: column; }
.msg { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 12px; align-items: baseline; }
.msg small { color: var(--dim); flex-shrink: 0; width: 44px; }
.msg b { margin-left: auto; }
.msg.offerReceived, .msg.preContractAlert { color: var(--acc2); }
.msg.injury, .msg.intlInjury, .msg.fired, .msg.forcedSale { color: #ff9aa5; }
.msg.trophy, .msg.youthGem { color: var(--acc); }
.offer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; margin-bottom: 6px; border-radius: 8px; background: #2a2208; border: 1px solid #5a4510; }
.fired .jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 8px; }

/* Tablas */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { text-align: left; color: var(--dim); font-weight: 700; font-size: 10.5px; padding: 4px 5px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td { padding: 4px 5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr.me td { background: color-mix(in srgb, var(--acc) 9%, transparent); font-weight: 700; }
.tbl tbody tr[data-id] { cursor: pointer; }
.tbl tbody tr[data-id]:active td { background: var(--chip); }
.tbl .cl { display: flex; align-items: center; gap: 6px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tbl.compact td { padding: 3px 4px; }
.tbl .nmcell b { display: block; } .tbl .nmcell small { color: var(--dim); font-size: 10px; }
.tbl .st { color: var(--dim); font-size: 11px; }
.sort { border: 0; background: none; color: var(--dim); font-weight: 700; font-size: 10.5px; padding: 0; }
.sort.on { color: var(--acc); }
.chips-list { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { border: 1px solid var(--line2); background: var(--bg2); border-radius: 14px; padding: 3px 10px; font-size: 11px; }

/* Alineación */
.lineup { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; height: 100%; }
.pitch-col, .bench-col { display: flex; flex-direction: column; min-height: 0; }
.bench-col { overflow-y: auto; }
.bar select { height: 26px; margin-left: auto; }
.pitch { position: relative; flex: 1; min-height: 250px; border-radius: 10px; overflow: hidden; background: repeating-linear-gradient(90deg, #1d6b34 0 8.5%, #22783b 8.5% 17%); border: 1px solid #2c8a47; }
.pitch .lines { position: absolute; inset: 8px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 3px; background:
  linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)) center / 2px 100% no-repeat; }
.pitch .lines::before { content: ''; position: absolute; left: 50%; top: 50%; width: 16%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.4); border-radius: 50%; }
.pitch .lines::after { content: ''; position: absolute; left: 0; top: 25%; height: 50%; width: 15%; border: 2px solid rgba(255,255,255,.4); border-left: 0; }
.tok { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 0; border: 0; background: none; padding: 2px; border-radius: 8px; width: 78px; }
.tok.sel { background: color-mix(in srgb, var(--acc) 25%, transparent); outline: 2px solid var(--acc); }
.tok .nm { padding: 0 5px; border-radius: 3px; background: rgba(7, 11, 22, .85); font-size: 9.5px; font-weight: 700; white-space: nowrap; max-width: 76px; overflow: hidden; text-overflow: ellipsis; }
.tok .chips { display: flex; gap: 2px; align-items: center; font-size: 8.5px; font-weight: 800; margin-top: 1px; }
.tok .ps { padding: 0 3px; border-radius: 3px; background: var(--chip); color: #cfe0ff; }
.tok .rt { font-size: 8.5px; min-width: 0; padding: 0 3px; }
.tok .ft { background: rgba(7, 11, 22, .85); border-radius: 3px; padding: 0 2px; }
.tok .arrow { background: rgba(7, 11, 22, .85); border-radius: 3px; }
.tok.empty { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.5); color: #fff; font-weight: 800; font-size: 10px; justify-content: center; }
.tactics { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; font-size: 11px; color: var(--dim); }
.tactics select { height: 26px; margin-left: 4px; }
.bench { display: grid; grid-template-columns: 1fr; gap: 4px; margin-bottom: 8px; }
.bcard { display: flex; align-items: center; gap: 5px; padding: 5px 6px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-align: left; min-width: 0; min-height: 40px; }
.bcard.sel { border-color: var(--acc); background: #1a2a1a; }
.bcard.out { opacity: .55; }
.bcard .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bcard .nm b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .nm small { color: var(--dim); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .ft { font-size: 10px; font-weight: 700; }

/* Competiciones */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 8px; padding-bottom: 2px; }
.tabs button { flex-shrink: 0; height: 28px; padding: 0 10px; border-radius: 7px; border: 0; background: var(--card); color: var(--dim); font-weight: 700; font-size: 12px; }
.tabs button.on { background: var(--chip); color: var(--text); }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.ko { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 5px; }
.tie { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 8px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); font-size: 12px; }
.tie span { display: flex; align-items: center; gap: 4px; } .tie .w { color: var(--acc); font-weight: 800; }
.tie b { font: 800 14px var(--cond); }
.champ { margin: 10px 0; padding: 8px; border-radius: 8px; background: #2a2208; color: var(--acc2); font: 800 18px var(--cond); text-align: center; }
.rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.round { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.round small { color: var(--dim); }
.round .g { display: grid; grid-template-columns: 1fr 46px 1fr; gap: 4px; font-size: 12px; padding: 2px 0; }
.round .g span:first-child { text-align: right; } .round .g b { text-align: center; font-family: var(--cond); font-size: 14px; }
.round .g.me { color: var(--acc); font-weight: 700; }
.cal .res .cn { color: var(--dim); }

/* Mercado */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.filters input { width: 96px; } .filters #fName { width: 120px; }
.chk { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--dim); }
.chk input { height: 16px; width: 16px; }

/* Club */
.facs { display: flex; flex-direction: column; gap: 6px; }
.fac { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; background: var(--bg2); }
.fac div { display: flex; flex-direction: column; } .fac small { font-size: 11px; }
.building { padding: 6px 8px; border-radius: 7px; background: #2a2208; color: var(--acc2); margin-bottom: 6px; display: flex; justify-content: space-between; }

/* Ventanas */
.modal-wrap { position: fixed; inset: 0; background: rgba(4, 7, 16, .72); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 10px; }
.modal { position: relative; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 14px; width: min(420px, 96vw); max-height: 94vh; overflow-y: auto; }
.modal.wide { width: min(780px, 98vw); }
.modal .x { position: absolute; right: 6px; top: 4px; border: 0; background: none; font-size: 24px; color: var(--dim); width: 36px; height: 36px; }
.menu-list { margin-top: 8px; }
.pcard { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.ut { border-radius: 12px; padding: 8px; display: flex; flex-direction: column; align-items: center; color: #1b1405; background: linear-gradient(160deg, #f8e7a6, #c9a227 55%, #8a6a10); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); align-self: start; }
.ut.silver { background: linear-gradient(160deg, #f1f4f8, #aab3c0 55%, #6d7684); }
.ut.bronze { background: linear-gradient(160deg, #f0c8a0, #b0773f 55%, #6e4521); }
.ut-top { align-self: stretch; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--cond); }
.ut-top b { font-size: 30px; font-weight: 800; line-height: 1; } .ut-top span { font-weight: 800; font-size: 14px; }
.face { margin: 2px 0; }
.ut-name { font: 800 18px var(--cond); text-transform: uppercase; letter-spacing: .03em; text-align: center; }
.ut-sub { font-size: 10.5px; font-weight: 600; } .ut-pot { font-size: 11px; font-weight: 800; margin-top: 2px; } .ut-pot .pot { color: inherit; }
.pinfo h2 { font-size: 22px; padding-right: 30px; }
.pinfo .meta { color: var(--dim); font-size: 12px; margin: 4px 0; } .pinfo .meta b { color: var(--text); }
.attrs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px 12px; margin: 6px 0; }
.attr { display: grid; grid-template-columns: 74px 1fr 24px; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); }
.attr i { height: 6px; border-radius: 3px; display: block; } .attr b { color: var(--text); text-align: right; }
.scout { margin: 8px 0; padding: 8px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.proj { display: grid; grid-template-columns: 1fr 44px 80px; gap: 6px; align-items: center; font-size: 12px; padding: 2px 0; }
.proj b { font: 800 16px var(--cond); text-align: center; } .proj small { color: var(--dim); } .proj.you { color: var(--acc); }
.actions { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.form-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.form-row label { display: flex; flex-direction: column; font-size: 10.5px; color: var(--dim); gap: 2px; }
.form-row input { width: 120px; }

/* Avisos */
#toasts { position: fixed; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 80; pointer-events: none; }
.toast { background: var(--bg2); border: 1px solid var(--line2); border-left: 4px solid var(--acc); padding: 8px 12px; border-radius: 8px; max-width: 360px; box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: opacity .5s, transform .5s; }
.toast.bad { border-left-color: var(--bad); } .toast.good { border-left-color: var(--good); }
.toast.out { opacity: 0; transform: translateX(20px); }
#busy { position: fixed; right: 14px; top: 52px; z-index: 90; display: none; }
body.busy #busy { display: block; }
body.simulating #continue { opacity: .5; pointer-events: none; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--acc); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-msg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; grid-column: 1 / -1; grid-row: 1 / -1; color: var(--dim); }
#rotate { display: none; }
@media (orientation: portrait) and (max-width: 600px) {
  #rotate { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--dim); text-align: center; padding: 20px; }
}

/* Portada */
.title { grid-column: 1 / -1; grid-row: 1 / -1; display: flex; align-items: center; justify-content: space-around; gap: 20px; padding: 20px; background:
  radial-gradient(ellipse at 20% 0%, rgba(47,107,255,.25), transparent 55%), radial-gradient(ellipse at 90% 100%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 50%), var(--bg); }
.logo { display: flex; flex-direction: column; font: 800 64px/0.9 var(--cond); letter-spacing: .02em; transform: skew(-6deg); }
.logo .g1 { color: var(--text); } .logo .g2 { color: var(--acc); } .logo .g3 { color: var(--dim); font-size: 34px; letter-spacing: .3em; margin-top: 6px; }
.title-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; width: min(360px, 48vw); }
.saves { display: flex; flex-direction: column; gap: 5px; }
.save-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line2); background: var(--card); text-align: left; }
.save-row span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .save-row small { color: var(--dim); }
.save-row .del { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 18px; }

/* Elegir club */
.pick { grid-column: 1 / -1; grid-row: 1 / -1; display: flex; flex-direction: column; height: 100%; }
.pick-head { display: flex; align-items: center; gap: 12px; padding: 6px 12px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.pick-head h1 { margin: 0; font-size: 20px; text-transform: uppercase; }
.pick-body { flex: 1; display: grid; grid-template-columns: 170px 200px 1fr; min-height: 0; }
.pick .col { overflow-y: auto; border-right: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.pick .col > button { border: 0; background: none; text-align: left; padding: 6px 8px; border-radius: 7px; color: var(--dim); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pick .col > button.on { background: var(--chip); color: var(--text); }
.pick .col .code { font: 800 11px var(--cond); color: var(--acc); width: 28px; }
.pick .tiers button { flex-direction: column; align-items: flex-start; gap: 0; } .pick .tiers small { font-weight: 500; font-size: 10.5px; }
.club-pick { display: flex !important; align-items: center; gap: 8px; padding: 6px 8px !important; border: 1px solid var(--line) !important; background: var(--card) !important; color: var(--text) !important; border-radius: 9px; }
.club-pick .nm { flex: 1; display: flex; flex-direction: column; } .club-pick small { color: var(--dim); font-weight: 500; }
.pick .clubs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }

/* Partido */
.match { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; }
.m-top { height: 42px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 calc(10px + var(--safe-r)) 0 calc(10px + var(--safe-l)); background: var(--bg2); border-bottom: 1px solid var(--line); }
.m-top .tn { font: 800 15px var(--cond); text-transform: uppercase; letter-spacing: .03em; max-width: 120px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-top .score { font: 800 22px var(--cond); padding: 0 10px; border-radius: 6px; background: var(--chip); white-space: nowrap; flex-shrink: 0; }
.m-top .clock { font: 800 15px var(--sans); color: var(--acc); min-width: 34px; }
.m-comp { color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.m-ctrl { margin-left: auto; display: flex; gap: 4px; }
.m-ctrl button { height: 28px; min-width: 34px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line2); background: transparent; font-weight: 700; font-size: 12px; }
.m-ctrl button.on { background: var(--chip); border-color: var(--acc); }
.m-ctrl .tac { border: 0; background: var(--acc2); color: #0b1020; font: 800 13px var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.m-field { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.m-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-stats { position: absolute; top: 8px; width: 118px; padding: 6px 8px; border-radius: 8px; background: rgba(11, 16, 32, .78); border: 1px solid var(--line); font-size: 10.5px; }
.m-stats.left { left: calc(8px + var(--safe-l)); } .m-stats.right { right: calc(8px + var(--safe-r)); }
.m-stats div { display: flex; justify-content: space-between; } .m-stats span { color: var(--dim); }
.m-banner { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(110%); transition: transform .3s; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: linear-gradient(90deg, #2a3768, #1c2a52); border-top: 3px solid var(--dim); }
.m-banner.show { transform: none; }
.m-banner.goal.mine { background: linear-gradient(90deg, #2f6bff, #163ba8); border-top-color: var(--acc); }
.m-banner.goal { background: linear-gradient(90deg, #5a1a26, #2a0f16); border-top-color: var(--bad); }
.m-banner .big { font: 800 38px var(--cond); letter-spacing: .04em; }
.m-banner .who { display: flex; flex-direction: column; } .m-banner .who b { font: 800 19px var(--cond); } .m-banner .who small { color: #dbe6ff; }
.m-banner.ht { justify-content: center; font: 800 26px var(--cond); }
.m-comment { height: 54px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 14px; background: var(--card); border-top: 1px solid var(--line); }
.m-comment .l1 { font-size: 13.5px; font-weight: 600; } .m-comment .l2 { font-size: 12px; color: var(--dim); }
.m-comment .mn { color: var(--acc); }
.m-tac, .m-end { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 14px; z-index: 5; min-width: 340px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.m-tac .opts { display: flex; align-items: center; gap: 6px; margin: 8px 0; } .m-tac .opts span { width: 90px; color: var(--dim); font-size: 12px; }
.m-tac .opts button { flex: 1; height: 34px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); font-weight: 700; }
.m-tac .opts button.on { border-color: var(--acc); background: #1a2a1a; color: var(--acc); }
.m-end { width: min(640px, 94vw); max-height: 90vh; overflow-y: auto; }
.m-end .verdict { font: 800 30px var(--cond); text-transform: uppercase; margin: 2px 0 8px; } .verdict.w { color: var(--acc); } .verdict.l { color: var(--bad); } .verdict.d { color: var(--acc2); }
.ratings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; margin-bottom: 10px; }
.ratings div { display: flex; gap: 6px; align-items: center; font-size: 12px; border-bottom: 1px solid var(--line); padding: 2px 0; }
.ratings span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ratings .motm { color: var(--acc); font-weight: 800; }

/* Pantallas estrechas (móviles pequeños en horizontal) */
@media (max-width: 760px) {
  .grid.home, .grid.news { grid-template-columns: 1fr 1fr; }
  .pick-body { grid-template-columns: 130px 150px 1fr; }
  .pick .clubs { grid-template-columns: 1fr; }
  .m-stats { display: none; }
}
@media (min-width: 1100px) { html, body { font-size: 14px; } }

.pre { display: flex; flex-direction: column; gap: 2px; padding: 8px; margin: 6px 0 8px; border-radius: 8px; background: var(--bg2); border: 1px dashed var(--line2); }
.pre b { font: 800 16px var(--cond); text-transform: uppercase; color: var(--acc); } .pre small { color: var(--dim); }

/* ===== Cabecera tipo manager de PC ===== */
.top { gap: 6px; background: linear-gradient(90deg, #13204a, #0e1530 60%); }
.mainnav { display: flex; gap: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav button { border: 0; background: none; color: var(--dim); font: 800 13px var(--cond); letter-spacing: .05em; text-transform: uppercase; padding: 0 8px; height: 40px; border-bottom: 3px solid transparent; white-space: nowrap; }
.mainnav button.on { color: var(--text); border-bottom-color: var(--acc); }
.go .chev { font-size: 18px; line-height: 0; }
.subnav { display: flex; align-items: center; gap: 2px; padding: 0 calc(8px + var(--safe-r)) 0 calc(8px + var(--safe-l)); background: #0c1328; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subnav .clubname { font: 800 12px var(--cond); letter-spacing: .04em; text-transform: uppercase; color: var(--acc); margin-right: 10px; white-space: nowrap; }
.subnav button { border: 0; background: none; color: var(--dim); font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.subnav button.on { background: var(--chip); color: var(--text); }
.club-btn .crest { flex-shrink: 0; }

/* ===== Portal ===== */
.portal { display: grid; grid-template-columns: minmax(170px, .9fr) minmax(200px, 1.15fr) minmax(200px, 1.15fr) minmax(165px, .85fr); gap: 8px; height: 100%; }
.pcol { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; min-width: 0; }
.ph { font: 800 12px var(--cond); letter-spacing: .06em; color: var(--acc); text-transform: uppercase; margin: 0 0 5px; display: flex; gap: 6px; align-items: baseline; }
.ph small { color: var(--dim); font: 600 10px var(--sans); }
.panel .msgs .msg { flex-direction: column; gap: 1px; align-items: stretch; padding: 4px 0; font-size: 11px; }
.msg .mh { display: flex; justify-content: space-between; align-items: center; }
.mtag { font-size: 9px; font-weight: 700; padding: 0 5px; border-radius: 4px; background: var(--chip); color: #cfe0ff; }
.mtag.transfers { background: #2a2208; color: var(--acc2); } .mtag.medical { background: #3d1520; color: #ff9aa5; } .mtag.board { background: #2a1d4d; color: #c9b5ff; } .mtag.youth { background: #12361f; color: var(--good); }
.chips-f { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 5px; }
.chips-f button { border: 1px solid var(--line2); background: transparent; color: var(--dim); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.chips-f button.on { background: var(--chip); color: var(--text); border-color: var(--acc); }
.link { border: 0; background: none; color: var(--acc); font-weight: 700; font-size: 11px; padding: 4px 0 0; }
.news-hero { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 7px; background: linear-gradient(135deg, #1c2a52, #111a33); margin-bottom: 4px; }
.news-hero b { font-size: 12.5px; display: block; } .news-hero small { color: var(--dim); font-size: 10.5px; }
.news-row { display: flex; gap: 6px; align-items: center; font-size: 11px; padding: 3px 0; border-top: 1px solid var(--line); }
.news-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .news-row small { color: var(--dim); }
.tbl.fx td, .tbl.fx th { font-size: 11px; padding: 3px 4px; }
.tbl.fx .cl { max-width: 120px; }
.tbl.fx tr.up td { color: var(--dim); }
.rdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.rdot.W, .fd.W { background: #2fd36b; } .rdot.D, .fd.D { background: #9aa6c7; } .rdot.L, .fd.L { background: #ff4d5e; }
.r-W { color: #2fd36b; } .r-D { color: var(--dim); } .r-L { color: #ff6b6b; }
.tbl.lt td, .tbl.lt th { font-size: 10.5px; padding: 2px 4px; }
.tbl.lt .cl { max-width: 120px; }
.tbl.lt tr.z-cont td:first-child { box-shadow: inset 3px 0 #2f6bff; } .tbl.lt tr.z-up td:first-child { box-shadow: inset 3px 0 #2fd36b; } .tbl.lt tr.z-down td:first-child { box-shadow: inset 3px 0 #ff4d5e; }
.legend { display: flex; gap: 8px; margin-top: 4px; font-size: 9.5px; color: var(--dim); }
.legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 3px; vertical-align: -1px; }
.legend .z-cont::before { background: #2f6bff; } .legend .z-up::before { background: #2fd36b; } .legend .z-down::before { background: #ff4d5e; }
.lead { display: flex; align-items: center; gap: 7px; width: 100%; border: 0; background: none; text-align: left; padding: 4px 0; border-bottom: 1px solid var(--line); }
.lead > span:not(.av) { flex: 1; min-width: 0; display: flex; flex-direction: column; } .lead small { color: var(--dim); font-size: 10px; } .lead b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead em { font-style: normal; font: 800 16px var(--cond); color: var(--text); }
.opp { display: flex; gap: 8px; align-items: center; border: 0; background: none; text-align: left; padding: 0 0 4px; width: 100%; }
.opp > span:not(.av) { display: flex; flex-direction: column; min-width: 0; } .opp b { font-size: 12px; } .opp small { color: var(--dim); font-size: 10.5px; }
.panel .kv { font-size: 11px; align-items: center; }
.fdots { display: inline-flex; gap: 2px; } .fd { font-style: normal; width: 15px; height: 15px; border-radius: 3px; font-size: 9px; font-weight: 800; color: #0b1020; display: inline-flex; align-items: center; justify-content: center; }
.hub { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.verdict-chip { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--chip); text-align: center; }
.verdict-chip.great, .verdict-chip.good { background: #12361f; color: var(--good); } .verdict-chip.bad { background: #3d1520; color: #ff9aa5; }
.big-money { font: 800 22px var(--cond); color: #d9ff7a; letter-spacing: .02em; }
.pbar { display: block; height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; margin-top: 4px; } .pbar i { display: block; height: 100%; border-radius: 3px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 0; border-radius: 5px; background: var(--bg2); font-size: 8.5px; color: var(--dim); }
.day i { font-style: normal; font-size: 13px; } .day.s-match { background: #3a1d4d; color: #f0c8ff; } .day.s-rest { opacity: .7; } .day span { font-size: 8px; text-align: center; line-height: 1.05; }
.pre { margin: 0; }
.av { display: inline-block; flex-shrink: 0; vertical-align: middle; border-radius: 6px; overflow: hidden; }
.av svg { width: 100%; height: 100%; display: block; }
td.avc { width: 28px; padding-right: 0 !important; }
.avn { display: flex; align-items: center; gap: 6px; } .avn span { display: flex; flex-direction: column; }
.rbars { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; vertical-align: middle; } .rbars i { width: 5px; border-radius: 1px; display: block; }
.tabs.inline { margin: 0; }

/* ===== Perfil del jugador ===== */
.profile { display: grid; grid-template-columns: 150px 1fr 220px; gap: 12px; }
.face-big { margin: 2px 0; border-radius: 10px; overflow: hidden; }
.pf-club { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 6px; font-size: 11.5px; font-weight: 700; }
.pf-mid h2 { font-size: 22px; padding-right: 30px; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.badge { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); color: var(--dim); display: inline-flex; gap: 4px; align-items: center; } .badge b { color: var(--text); }
.attr-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.attr-groups h4 { margin-bottom: 3px; }
.attr-groups .attr { grid-template-columns: 1fr 24px; grid-template-rows: auto 4px; gap: 1px 6px; margin-bottom: 4px; }
.attr-groups .attr i { grid-column: 1 / -1; height: 4px; }
.pf-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin-top: 8px; font-size: 12px; }
.pf-right { font-size: 12px; border-left: 1px solid var(--line); padding-left: 10px; }
.hist { display: flex; gap: 6px; align-items: center; font-size: 11px; padding: 2px 0; } .hist span { flex: 1; } .hist small { color: var(--dim); }

/* ===== Cantera, rival, entrenamiento, club ===== */
.youth { display: grid; grid-template-columns: 220px 1fr; gap: 8px; }
.ygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; align-content: start; }
.ycard { display: flex; gap: 8px; align-items: center; text-align: left; padding: 6px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); }
.ycard .yi { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ycard small { color: var(--dim); font-size: 10.5px; } .yr { display: flex; gap: 5px; align-items: center; font-size: 11px; }
.grid.two { grid-template-columns: 1fr 1fr; } .grid.opp-grid { grid-template-columns: 1fr 1.1fr; }
.opp-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .opp-head div { display: flex; flex-direction: column; } .opp-head small { color: var(--dim); }
.levels { display: flex; gap: 10px; } .levels div { flex: 1; padding: 6px; border-radius: 8px; background: var(--bg2); text-align: center; } .levels small { display: block; color: var(--dim); font-size: 10.5px; } .levels b { font: 800 24px var(--cond); }
.advice { padding: 8px; border-radius: 8px; background: #1a2a1a; border-left: 3px solid var(--acc); font-size: 12px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 5px; }
.seg button { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); }
.seg button.on { border-color: var(--acc); background: #1a2a1a; } .seg small { color: var(--dim); font-size: 10.5px; }
.fin-row { display: grid; grid-template-columns: 100px 1fr 80px; gap: 8px; align-items: center; font-size: 12px; padding: 3px 0; } .fin-row .pbar { margin: 0; height: 8px; } .fin-row b { text-align: right; }
.facility { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 100%; }
.iso-map { border-radius: 12px; background: #17482a; border: 1px solid #2c6a3e; overflow: hidden; min-height: 240px; }
.fac-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.fac2 { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); }
.fac2 .fbar { width: 6px; align-self: stretch; border-radius: 3px; }
.fac2 .fi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; } .fac2 .fi small { font-size: 10.5px; }
.go.up { display: flex; flex-direction: column; height: auto; padding: 3px 9px; line-height: 1.1; } .go.up small { font: 700 9.5px var(--sans); letter-spacing: 0; text-transform: none; }
.subs-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 150px; overflow-y: auto; }
.subs-pick button { display: flex; justify-content: space-between; width: 100%; border: 1px solid var(--line2); background: var(--card); border-radius: 6px; padding: 4px 6px; font-size: 11.5px; margin-bottom: 3px; }
.subs-pick button.on { border-color: var(--acc); color: var(--acc); } .subs-pick small { color: var(--dim); }
.m-tac { max-height: 92vh; overflow-y: auto; }
@media (max-width: 760px) {
  .portal { grid-template-columns: 1fr 1fr; height: auto; } .pcol { overflow: visible; }
  .profile { grid-template-columns: 120px 1fr; } .pf-right { grid-column: 1 / -1; border: 0; padding: 0; }
  .youth, .facility { grid-template-columns: 1fr; }
  .mainnav button { font-size: 12.5px; padding: 0 6px; }
}

.pcol .offer { flex-direction: column; align-items: stretch; font-size: 11px; }
.pcol .offer .row-btns { justify-content: flex-end; }

/* Estadísticas 1-20 */
.a20g { gap: 4px 12px; }
.a20 { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; padding: 1.5px 6px; border-radius: 4px; }
.a20:nth-child(even) { background: rgba(255,255,255,.035); }
.a20 span { color: #c7d0e6; } .a20 b { font: 800 14px var(--cond); min-width: 18px; text-align: right; }
.profile { grid-template-columns: 140px 1fr 210px; }

/* Comentarios y goles abajo en el centro, sobre el campo (como en los managers de PC) */
.m-center { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: min(560px, 66%); display: flex; flex-direction: column; align-items: stretch; pointer-events: none; z-index: 3; }
.match .m-comment { height: auto; min-height: 44px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(11, 16, 32, .9); text-align: center; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.match .m-comment .l1 { font-size: 13px; } .match .m-comment .l2 { font-size: 11px; }
.match .m-banner { position: static; transform: none; display: none; border-radius: 10px; justify-content: center; text-align: center; margin-bottom: 0; padding: 8px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.match .m-banner.show { display: flex; animation: pop .35s ease-out; }
.match .m-banner.show + .m-comment { display: none; }
.match .m-banner .big { font-size: 34px; } .match .m-banner .who { text-align: left; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.mgmt { margin-bottom: 8px; } .ghost.on { border-color: var(--acc); color: var(--acc); } .ghost.danger { border-color: #6a2533; color: #ff9aa5; }
input.flash { outline: 2px solid var(--acc2); }
.objective { padding: 6px 8px; border-radius: 7px; background: var(--bg2); display: flex; flex-direction: column; gap: 2px; margin-bottom: 5px; border-left: 3px solid var(--dim); }
.objective.ok { border-left-color: var(--good); } .objective.bad { border-left-color: var(--bad); } .objective b { font-size: 12px; } .objective small { color: var(--dim); font-size: 10.5px; }
.board.small { font-size: 11px; padding: 4px 6px; }
.wk-mine { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--card); border-left: 4px solid var(--dim); margin: 6px 0; }
.wk-mine.W { border-left-color: #2fd36b; } .wk-mine.L { border-left-color: #ff4d5e; }
.wk-mine small { grid-column: 1 / -1; color: var(--dim); font-size: 10.5px; }
.wk-mine span { display: flex; align-items: center; gap: 6px; } .wk-mine span:last-child { justify-content: flex-end; }
.wk-mine em { font: 800 26px var(--cond); font-style: normal; }
.wk-pos { margin: 4px 0 8px; font-weight: 700; }
.wk-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; }
.wk-grid .g { display: grid; grid-template-columns: 1fr 40px 1fr; font-size: 11.5px; padding: 2px 0; } .wk-grid .g span:first-child { text-align: right; } .wk-grid .g b { text-align: center; }
.guide { padding-left: 18px; line-height: 1.5; } .guide li { margin-bottom: 6px; }

.pcol .offer .go, .pcol .offer .ghost { height: 24px; font-size: 11px; padding: 0 8px; }
.tbl.fx .vn { font-size: 9px; font-weight: 800; color: var(--dim); background: var(--chip); border-radius: 3px; padding: 0 3px; }
.tbl.fx .cl { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.toast .msg { border: 0; padding: 0; } .toast .msg .mh { display: none; }

.m-team { position: absolute; top: 8px; width: 150px; padding: 6px 8px; border-radius: 8px; background: rgba(11, 16, 32, .9); border: 1px solid var(--line); font-size: 11px; z-index: 2; max-height: calc(100% - 70px); overflow-y: auto; }
.m-team.left { left: calc(8px + var(--safe-l)); } .m-team.right { right: calc(8px + var(--safe-r)); }
.show-team .m-stats.mine { display: none; }
.m-team h4 { margin: 0 0 3px; font-size: 11px; } .m-team div { display: flex; gap: 4px; align-items: center; padding: 1px 0; } .m-team span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .m-team b { font: 800 13px var(--cond); } .m-team .off { opacity: .4; }
.m-stats[hidden], .m-team[hidden] { display: none; }

/* ---- Más intuitivo ---- */
.mainnav button i { font-style: normal; margin-right: 5px; font-size: 13px; }
.todo .todo-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 7px 9px; margin: 0 0 5px; color: inherit; font-size: 12px; line-height: 1.25; }
.todo .todo-row span:first-child { font-size: 15px; }
.todo .todo-row span:nth-child(2) { flex: 1; }
.todo .todo-row em { font-style: normal; color: var(--accent, var(--acc)); font-size: 18px; }
.todo .todo-row.p0 { border-color: rgba(255,90,90,.55); background: rgba(255,90,90,.09); }
.todo .todo-row.p1 { border-color: rgba(255,190,60,.5); background: rgba(255,190,60,.07); }
.lineup .steps { font-size: 12px; padding: 6px 9px; margin-bottom: 6px; border-radius: 8px; background: color-mix(in srgb, var(--acc) 8%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 25%, transparent); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lineup .steps > b { background: var(--acc); color: var(--ink); border-radius: 50%; width: 18px; height: 18px; display: inline-grid; place-items: center; font-size: 11px; }
.tok.warn .nm::after { content: ' ⚠'; color: #ffbe3c; }
.tac-seg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; align-items: center; }
.tac-seg > div { display: flex; gap: 3px; align-items: center; }
.tac-seg small { opacity: .7; margin-right: 4px; }
.tac-seg button { padding: 5px 9px; border-radius: 6px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); color: inherit; font-size: 11px; }
.tac-seg button.on { background: var(--acc); color: var(--ink); border-color: var(--acc); font-weight: 700; }
.tac-seg .hint { flex-basis: 100%; margin: 0; font-size: 11px; opacity: .75; }
.advice-box { font-size: 12px; line-height: 1.35; padding: 8px 10px; border-radius: 8px; background: rgba(80,160,255,.09); border: 1px solid rgba(80,160,255,.3); margin-bottom: 8px; }
.advice-box h4 { margin: 0 0 4px; font-size: 12px; }
.advice-box > div { margin-bottom: 3px; }
.advice-box.ok { background: rgba(80,220,120,.08); border-color: rgba(80,220,120,.3); }
.advice-box button { margin-top: 4px; }
.bcard .atslot { font-size: 10px; opacity: .85; white-space: nowrap; }
.bcard .atslot b { font-size: 13px; }
.presets { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.presets button { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 7px 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: inherit; max-width: 170px; }
.presets button b { font-size: 12px; }
.presets button small { font-size: 10px; opacity: .7; white-space: normal; }
.presets button.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.more-f summary { font-size: 11px; opacity: .75; cursor: pointer; margin: 2px 0 6px; }
.market tr.better td:nth-child(2) b { color: var(--acc); }
.mainnav button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 10px; padding: 0 7px; line-height: 1; }
.mainnav button i { margin: 0; font-size: 15px; }
.lineup .steps { font-size: 11px; padding: 4px 8px; margin-bottom: 4px; flex-wrap: nowrap; }
.lineup .steps .small { padding: 2px 8px; font-size: 11px; height: auto; }
.market, .market .presets { min-width: 0; max-width: 100%; }
.presets button { max-width: 150px; }
.leaders3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lead-col h4 { margin: 0 0 4px; font-size: 12px; }
.lead-row { display: flex; align-items: center; gap: 5px; width: 100%; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); color: inherit; padding: 3px 2px; font-size: 11px; text-align: left; }
.lead-row > span { width: 14px; opacity: .6; }
.lead-row b { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-row em { font-style: normal; font-weight: 800; color: var(--acc); }
.tbl.seasons tr.now td { background: color-mix(in srgb, var(--acc) 6%, transparent); }
.todo .todo-row { font-size: 11.5px; padding: 6px 8px; }

/* ---- Tanda 10: aún más intuitivo ---- */
#continue { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; height: 40px; line-height: 1.05; padding: 0 14px; }
#continue small { font: 700 9.5px var(--sans, system-ui); letter-spacing: 0; text-transform: none; opacity: .8; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
/* recorrido guiado */
.coach { position: fixed; inset: 0; z-index: 90; }
.coach-hole { position: absolute; border-radius: 10px; box-shadow: 0 0 0 4000px rgba(4, 8, 20, .78); border: 2px solid var(--acc); transition: all .25s; pointer-events: none; }
.coach-bubble { position: absolute; width: 320px; background: #16214a; border: 1px solid var(--acc); border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.coach-bubble p { margin: 4px 0 8px; font-size: 13px; line-height: 1.35; }
.coach-bubble small { color: var(--acc); font-weight: 700; }
.coach-bubble .row-btns { justify-content: flex-end; }
/* glosario */
.gloss { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; font-size: 12px; }
.gloss dt { font-weight: 800; color: var(--acc); } .gloss dd { margin: 0; color: var(--text); opacity: .9; }
/* elegir club */
.pick-hint { grid-column: 1 / -1; margin: 0 0 6px; font-size: 11px; color: var(--dim); }
.club-pick .stars { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.diff { font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.diff.d0 { background: rgba(47,211,107,.15); color: #2fd36b; } .diff.d1 { background: color-mix(in srgb, var(--acc) 13%, transparent); color: #b6f23a; }
.diff.d2 { background: rgba(255,190,60,.14); color: #ffbe3c; } .diff.d3 { background: rgba(255,90,90,.15); color: #ff6b6b; }
/* ficha */
.pf-tabs { margin: 4px 0 6px; }
.report { border-radius: 9px; padding: 7px 10px; margin-bottom: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.report.good { border-color: rgba(47,211,107,.4); background: rgba(47,211,107,.07); } .report.bad { border-color: rgba(255,140,80,.4); background: rgba(255,140,80,.06); }
.report .verdict { font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.chips-l { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 2px 0; } .chips-l small { color: var(--dim); margin-right: 2px; min-width: 62px; }
.chip.good { background: rgba(47,211,107,.15); color: #2fd36b; border: 0; } .chip.bad { background: rgba(255,140,80,.15); color: #ff9a5c; border: 0; }
.chips-l .chip { padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.afford { margin-top: 4px; font-size: 11px; font-weight: 700; } .afford.yes, .afford.free { color: #2fd36b; } .afford.stretch { color: #ffbe3c; } .afford.no { color: #ff6b6b; }
.keys .kbar { display: grid; grid-template-columns: 92px 1fr 20px; gap: 6px; align-items: center; font-size: 11px; margin: 2px 0; }
.kbar i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; } .kbar em { display: block; height: 100%; border-radius: 3px; }
.kbar b { text-align: right; }
.act-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.act { display: flex; align-items: center; gap: 8px; text-align: left; padding: 7px 9px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: inherit; font-size: 16px; }
.act span { display: flex; flex-direction: column; } .act b { font-size: 12px; } .act small { font-size: 10px; color: var(--dim); }
.act.go-act { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.act.on { border-color: var(--acc); } .act.danger b { color: #ff8a7a; } .act:disabled { opacity: .45; }
.pf-right .quick { display: flex; gap: 5px; margin: 6px 0; flex-wrap: wrap; }
.pf-right .quick.q3 button { flex: 1; display: flex; flex-direction: column; align-items: center; height: auto; padding: 5px 4px; gap: 1px; }
.pf-right .quick.q3 button small { font-size: 9.5px; opacity: .8; } .pf-right .quick button.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.pf-right .fl { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--dim); margin: 5px 0; }
.pf-right .fl input, .pf-right .fl select { height: 30px; } .pf-right .fl small { font-size: 10px; }
.pf-right .fl2 { display: flex; gap: 8px; } .pf-right .fl2 .fl { flex: 1; }
.pf-right > .go { width: 100%; margin-top: 6px; }
/* partido: órdenes rápidas y consejo del asistente */
.m-shout { position: absolute; bottom: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 4; }
.m-shout.left { left: calc(8px + var(--safe-l)); } .m-shout.right { right: calc(8px + var(--safe-r)); }
.m-shout button { display: flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); background: rgba(11,16,32,.82); color: var(--text); font-size: 14px; }
.m-shout button span { font: 800 10.5px var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.m-shout button.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 18%, transparent); }
.m-tip { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: #16214a; border: 1px solid var(--acc); font-size: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.4); animation: pop .25s; }
.m-ctrl button { white-space: nowrap; }
.m-comp { display: none; }
.subs-pick button.warn { border-color: rgba(255,150,60,.6); }
.m-tac .hint { font-size: 10.5px; color: var(--dim); margin: 6px 0 0; }
/* plantilla y finanzas */
.chips-f.grp { margin-left: 8px; }
.sq-hint { margin: 0 0 4px; font-size: 10.5px; color: var(--dim); }
.kv span small { display: block; font-size: 10px; color: var(--dim); opacity: .85; }
.pre-btns { flex-wrap: wrap; margin-top: 8px; }
.m-tip { animation: tipIn .25s; }
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
[hidden] { display: none !important; }
.m-shout { bottom: auto; top: 176px; }
.m-shout button { padding: 4px 8px; font-size: 12px; background: rgba(11,16,32,.7); }
.diff { font-size: 10px; letter-spacing: .01em; }
.club-pick .stars .st { white-space: nowrap; }
.pf-right .quick.q3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pf-right .quick.q3 button { min-width: 0; }
.pf-right .fl { margin: 3px 0; }
#oChance { display: block; font-size: 10.5px; margin-bottom: 2px; }

/* ---- Tanda 11: pantalla de táctica ---- */
.tactic { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 10px; }
.tactic .tcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tactic .panel { padding: 10px; }
.tactic .acc { color: var(--acc); }
.forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin: 8px 0 4px; }
.form-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: inherit; font-size: 11px; }
.form-card.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.mini-pitch { width: 100%; height: auto; }
.mini-pitch rect { fill: #1d6b3a; stroke: rgba(255,255,255,.35); stroke-width: .6; }
.mini-pitch line, .mini-pitch circle:not([class]) { stroke: rgba(255,255,255,.25); stroke-width: .5; fill: none; }
.mini-pitch circle[class=""] , .mini-pitch circle:not(:first-of-type) { fill: #fff; stroke: none; }
.mini-pitch circle.gk { fill: #ffd23a; }
.mini-pitch.on rect { fill: #24834a; }
.styles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.style-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 7px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: inherit; position: relative; }
.style-card .si { font-size: 18px; } .style-card b { font-size: 12px; } .style-card small { font-size: 10px; color: var(--dim); line-height: 1.25; }
.style-card em { font-style: normal; font-size: 9.5px; font-weight: 800; color: #7ec8ff; margin-top: 2px; }
.style-card.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.vs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 2px; font-size: 11px; font-weight: 700; }
.vs .good { color: #2fd36b; } .vs .bad { color: #ff9a5c; }
.trow { display: grid; grid-template-columns: 110px auto 1fr; gap: 4px 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.trow .tl { font-size: 12px; font-weight: 700; }
.trow .segs { display: flex; gap: 3px; }
.trow .segs button { padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); color: inherit; font-size: 11px; }
.trow .segs button.on { background: var(--acc); color: var(--ink); border-color: var(--acc); font-weight: 800; }
.trow .td { font-size: 10.5px; color: var(--dim); line-height: 1.25; }
.takers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.taker { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--dim); }
.taker select { height: 30px; }
.sets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.set { display: flex; flex-direction: column; gap: 3px; padding: 7px; border-radius: 9px; border: 1px solid var(--line); }
.set small { color: var(--dim); font-size: 10.5px; } .set > div { display: flex; gap: 4px; flex-wrap: wrap; }
.tactic .hint { display: block; font-size: 10.5px; color: var(--dim); margin-top: 6px; }
body:has(.match) #toasts { display: none; }

/* ---- Tanda 12: vida del club ---- */
.title-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.share-btn { margin-left: auto; }
.deadline { margin: 8px 0; padding: 8px; border-radius: 9px; border: 1px solid rgba(255,190,60,.4); background: rgba(255,190,60,.07); }
.deadline h4 { margin: 0 0 4px; }
.dl { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 6px; align-items: center; font-size: 11.5px; padding: 2px 0; }
.dl small { color: #ffbe3c; font-weight: 800; } .dl.mine { background: color-mix(in srgb, var(--acc) 10%, transparent); border-radius: 5px; }
.trophy-modal { text-align: center; } .big-cup { font-size: 64px; animation: pop .5s; }
.chapter small, .chap small { color: var(--acc); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }
.chapter p, .chap p { font-size: 13px; line-height: 1.5; margin: 6px 0; }
.book { display: flex; flex-direction: column; gap: 10px; }
.chap { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.chap h3 { margin: 4px 0; }
.slider, .check { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 13px; }
.slider span { width: 140px; } .slider input { flex: 1; }
.code-in { width: 100%; height: 40px; font-size: 18px; text-align: center; letter-spacing: .1em; text-transform: uppercase; margin: 8px 0; }
.weekly-club { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 6px 0; }
.derby-bar { margin-bottom: 8px; padding: 7px 10px; border-radius: 9px; background: linear-gradient(90deg, rgba(255,90,60,.25), rgba(255,190,60,.12)); border: 1px solid rgba(255,120,60,.5); font-weight: 800; font-size: 12px; }
.wx { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.04); margin: 8px 0; font-size: 18px; }
.wx b { font-size: 12px; } .wx small { font-size: 11px; color: var(--dim); }
.coach-q { margin: 6px 0; padding: 7px 10px; border-left: 3px solid var(--acc); background: rgba(255,255,255,.03); border-radius: 0 8px 8px 0; }
.coach-q small { color: var(--dim); font-size: 10.5px; } .coach-q p { margin: 3px 0 0; font-style: italic; font-size: 12px; }
.talks { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.talks button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: auto; padding: 7px 8px; text-align: left; }
.talks button b { font-size: 12px; } .talks button small { font-size: 10px; color: var(--dim); }
.talks button.sugg { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.m-ht { max-width: 560px; } .m-ht h4 { margin: 8px 0 6px; }
.m-wx { font-size: 15px; margin-left: 4px; }
.m-derby { font: 800 10px var(--cond); background: rgba(255,90,60,.3); border: 1px solid rgba(255,120,60,.6); padding: 2px 6px; border-radius: 6px; letter-spacing: .05em; }
.rec-row { display: grid; grid-template-columns: 18px 1fr auto 80px; gap: 6px; align-items: center; font-size: 12px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.rec-row span { color: var(--dim); } .rec-row em { font-style: normal; font-weight: 800; color: var(--acc); } .rec-row small { color: var(--dim); text-align: right; }
.legends { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.legend { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 6px; border-radius: 9px; background: linear-gradient(180deg, rgba(255,210,58,.12), transparent); border: 1px solid rgba(255,210,58,.3); }
.legend b { font-size: 11.5px; } .legend small { font-size: 9.5px; color: var(--dim); }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.acard { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); min-height: 84px; }
.acard .ai { font-size: 22px; } .acard b { font-size: 11.5px; line-height: 1.25; } .acard small { color: var(--dim); font-size: 10px; margin-top: auto; }
.acard.title { border-color: rgba(255,210,58,.6); background: linear-gradient(160deg, rgba(255,210,58,.18), rgba(255,255,255,.02)); }
.acard.legend, .acard.promotion { border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.st-card { display: flex; flex-direction: column; gap: 6px; }
.st-top { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; }
.st-top .si { font-size: 22px; } .st-top div { display: flex; flex-direction: column; } .st-top small { font-size: 10px; color: var(--dim); } .st-top b { font-size: 13px; }
.lv { display: inline-grid; place-items: center; min-width: 26px; height: 22px; border-radius: 6px; color: #0b1020; font-weight: 900; font-size: 12px; }
.cands { display: flex; flex-direction: column; gap: 4px; }
.cand { display: grid; grid-template-columns: 30px 1fr auto; gap: 6px; align-items: center; text-align: left; padding: 5px 7px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: inherit; }
.cand span { display: flex; flex-direction: column; } .cand b { font-size: 11.5px; } .cand small { font-size: 10px; color: var(--dim); }
.cand.armed { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); } .cand .up { color: #2fd36b; font-style: normal; }
.scout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
.world-map { position: relative; width: 100%; aspect-ratio: 100 / 62; border-radius: 10px; background: radial-gradient(ellipse at center, #13306a, #0b1636); overflow: hidden; }
.world-map .wm { position: absolute; inset: 0; width: 100%; height: 100%; } .world-map .wm path { fill: #1f4b8f; stroke: #2d63b5; stroke-width: .5; }
.pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; background: none; border: 0; color: #fff; font-size: 18px; padding: 0; }
.pin span { font-size: 9.5px; font-weight: 800; background: rgba(11,16,32,.8); padding: 1px 5px; border-radius: 5px; white-space: nowrap; }
.pin.busy span { color: #ffbe3c; }
.mission { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 12px; }
.filial { grid-column: 1 / -1; } .filial table { margin-top: 6px; } .filial tr.me td { background: color-mix(in srgb, var(--acc) 8%, transparent); font-weight: 800; }
.traits { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.trait { display: flex; flex-direction: column; padding: 5px 8px; border-radius: 8px; background: rgba(126,200,255,.1); border: 1px solid rgba(126,200,255,.35); font-size: 11.5px; font-weight: 800; }
.trait small { font-weight: 500; font-size: 10px; color: var(--dim); }
.msg.link { cursor: pointer; } .msg.link:after { content: '›'; margin-left: auto; color: var(--acc); }
.m-ht .talks { grid-template-columns: 1fr 1fr; }
.talks button b, .talks button small { white-space: normal; text-align: left; line-height: 1.2; }
.wk-mine .share-btn { grid-column: 1 / -1; justify-self: end; height: 26px; padding: 0 10px; font-size: 11px; }


/* ---- Tanda 13: letras, tarjetas con más vida y opciones elegidas que se ven de un vistazo ---- */
:root { --bg: #0a0f22; --card: #121b38; --line: #22305a; }
html, body { background: radial-gradient(ellipse at 20% -10%, #16235a 0%, #0a0f22 45%, #070b18 100%); }
/* Anton es muy alta: un poco más pequeña y más separada para que respire */
h1, h2, h3, h4, .go, .cname, .bar b { font-weight: 400; letter-spacing: .045em; }
h3 { font-size: 14px; } h4 { font-size: 12px; }
.go { font-weight: 400; font-size: 14px; }
.card, .panel { background: linear-gradient(165deg, #16214a 0%, var(--card) 55%, #0f1730 100%); border-color: var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04); }
.card:hover, .panel:hover { border-color: var(--line2); }
button { transition: background-color .15s, border-color .15s, transform .08s, box-shadow .15s; }
button:active { transform: scale(.98); }
/* elegido = relleno con el color de acento, texto oscuro y una ✓ */
.segs button.on, .tac-seg button.on, .talks button.sugg, .quick button.on, .presets button.on, .style-card.on, .form-card.on, .opts button.on, .chips-f button.on, .tabs.inline button.on, .m-shout button.on, .act.on {
  background: var(--acc) !important; color: var(--ink) !important; border-color: var(--acc) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc) 35%, transparent), 0 4px 14px color-mix(in srgb, var(--acc) 30%, transparent);
}
.segs button.on::before, .tac-seg button.on::before, .quick button.on b::before, .opts button.on::before, .style-card.on b::before, .form-card.on b::before { content: '✓ '; }
.style-card.on small, .presets button.on small, .form-card.on small, .talks button.sugg small, .act.on small { color: color-mix(in srgb, var(--ink) 75%, transparent) !important; }
.style-card.on em { color: var(--ink) !important; }
.form-card.on .mini-pitch rect { fill: #1d6b3a; }
/* las opciones sin elegir, un poco más apagadas para que la elegida resalte */
.segs button:not(.on), .tac-seg button:not(.on), .opts button:not(.on) { opacity: .82; }
.mainnav button.on, .mainnav button[aria-current] { color: var(--acc); }
.subnav button.on { background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc); border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.todo .todo-row { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.todo .todo-row:active { background: color-mix(in srgb, var(--acc) 18%, transparent); }
.modal { box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px color-mix(in srgb, var(--acc) 18%, transparent); }
.world-map.real { aspect-ratio: 1000 / 470; background: radial-gradient(ellipse at center, #0f2552, #081430); }
.world-map.real path { stroke: #0b1636; stroke-width: .6; }
.world-map.real path.sc { cursor: pointer; }
.world-map.real path.sc:hover { filter: brightness(1.2); }
.world-map.real .rl { font: 700 13px var(--sans); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(8,14,32,.85); stroke-width: 3.5px; pointer-events: none; }
.world-map.real .rl.on { fill: var(--acc); }
.reg-panel .chips-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.reg-panel .go { width: 100%; margin-top: 8px; }
.world-map.real .rl { font-size: 19px; font-weight: 800; }

/* ---------------- Online (tanda C) ---------------- */
#app.has-online { grid-template-rows: 40px 26px 28px 1fr; }
.online-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 calc(10px + var(--safe-r)) 0 calc(10px + var(--safe-l)); background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 18%, #0e1530), #0e1530 70%); border-bottom: 1px solid var(--line); font-size: 11.5px; overflow: hidden; white-space: nowrap; }
.online-bar .ob-name { font-weight: 800; }
.ob-members { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.ob-m { padding: 1px 7px; border-radius: 10px; background: var(--chip); color: var(--dim); font-weight: 700; font-size: 11px; }
.ob-m.ready { background: color-mix(in srgb, var(--good) 22%, var(--chip)); color: var(--text); }
.ob-m.off { opacity: .55; } .ob-m.me { outline: 1px solid var(--acc); }
.ob-timer { font: 800 13px var(--cond); color: var(--acc2); }
#continue.is-ready { background: color-mix(in srgb, var(--acc) 35%, #1c2a52); color: var(--text); }
#continue .rc { font: 700 11px var(--sans); opacity: .8; }
.online-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; line-height: 1.05; background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 55%, #4fc3ff)); }
.online-btn small { font: 700 10.5px var(--sans); letter-spacing: 0; text-transform: none; opacity: .85; }
.online-hub, .lobby, .duel { grid-column: 1 / -1; grid-row: 1 / -1; display: flex; flex-direction: column; height: 100%; min-height: 0; }
.hub-me { margin-left: auto; color: var(--dim); font-size: 12px; }
.hub-body { flex: 1; display: grid; grid-template-columns: 170px 1fr; min-height: 0; }
.hub-tabs { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-right: 1px solid var(--line); }
.hub-tabs button { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; background: none; color: var(--dim); text-align: left; padding: 9px 10px; border-radius: 9px; font-weight: 800; }
.hub-tabs button i { font-style: normal; font-size: 16px; }
.hub-tabs button.on { background: color-mix(in srgb, var(--acc) 16%, var(--card)); border-color: color-mix(in srgb, var(--acc) 55%, transparent); color: var(--text); }
.hub-main { overflow-y: auto; padding: 10px 14px; }
.hub-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.join-box { display: flex; gap: 6px; align-items: center; }
.code-in.small { width: 120px; height: 32px; font-size: 14px; margin: 0; }
.league-list, .ghost-list { display: flex; flex-direction: column; gap: 6px; }
.league-row, .ghost-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--bg2)); border-radius: 10px; text-align: left; }
.league-row span:nth-child(2), .ghost-row span { flex: 1; display: flex; flex-direction: column; } .league-row small, .ghost-row small { color: var(--dim); }
.league-row em { font: 800 14px var(--cond); color: var(--acc); font-style: normal; letter-spacing: .08em; }
.lg-ic { font-size: 20px; }
.hub-explain { background: var(--bg2); border: 1px dashed var(--line2); border-radius: 10px; padding: 8px 12px; margin: 12px 0; color: var(--dim); }
.hub-explain p { margin: 0; }
.big-empty { padding: 40px 20px; font-size: 15px; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.mode-card { text-align: left; border: 1px solid var(--line2); background: var(--card); border-radius: 10px; padding: 8px 10px; }
.mode-card p { margin: 4px 0 0; color: var(--dim); font-size: 11.5px; }
.mode-card.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, var(--card)); box-shadow: 0 0 0 1px var(--acc) inset; }
.mode-card.on b::after { content: ' ✓'; color: var(--acc); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 10px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--dim); font-weight: 700; }
.field input, .field select { width: 100%; }
.field.inline { flex-direction: row; align-items: center; gap: 6px; }
.lobby-code { color: var(--dim); } .lobby-code b, .big-code { font: 800 22px var(--cond); color: var(--acc); letter-spacing: .14em; }
.big-code { display: block; text-align: center; font-size: 38px; margin: 10px 0; }
.lobby-body { flex: 1; display: grid; grid-template-columns: 230px 170px 1fr; min-height: 0; }
.lobby .col { overflow-y: auto; border-right: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.lobby .tiers button { border: 0; background: none; text-align: left; padding: 7px 8px; border-radius: 7px; color: var(--dim); font-weight: 700; }
.lobby .tiers button.on { background: var(--chip); color: var(--text); }
.lobby .clubs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.club-pick.taken { opacity: .45; } .club-pick.mine { border-color: var(--acc) !important; box-shadow: 0 0 0 1px var(--acc) inset; }
.club-pick em { font-style: normal; font-size: 11px; color: var(--acc); font-weight: 800; }
.member { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 8px; background: var(--card); }
.member small { margin-left: auto; color: var(--dim); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member.me { outline: 1px solid color-mix(in srgb, var(--acc) 60%, transparent); }
.member .kick { margin-left: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #55607e; flex: none; } .dot.on { background: var(--good); box-shadow: 0 0 6px var(--good); }
.member-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.waiting-others { text-align: center; padding: 6px 10px; }
.waiting-others #woList { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 8px; }
.react-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.react-pick button { font-size: 28px; height: 54px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); }
.reaction-fly { position: absolute; bottom: 60px; z-index: 50; display: flex; flex-direction: column; align-items: center; animation: flyUp 2.6s ease-out forwards; pointer-events: none; }
.reaction-fly span { font-size: 34px; filter: drop-shadow(0 2px 4px #0008); } .reaction-fly small { background: #0009; padding: 0 6px; border-radius: 8px; font-weight: 700; }
body > .reaction-fly { position: fixed; }
@keyframes flyUp { 0% { transform: translateY(20px) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { transform: translateY(-160px) scale(1); opacity: 0; } }
.m-react { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; z-index: 6; }
.m-react button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ffffff30; background: #0b1020c0; font-size: 16px; }
.m-vs { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); background: #0b1020d0; border: 1px solid var(--acc); color: var(--text); padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 800; z-index: 6; white-space: nowrap; }
.match.read-only .m-ctrl .tac { display: none; }
.duel-turn { text-align: center; padding: 6px; font: 800 15px var(--cond); letter-spacing: .05em; background: var(--bg2); border-bottom: 1px solid var(--line); }
.duel-turn.mine { background: color-mix(in srgb, var(--acc) 22%, var(--bg2)); color: var(--text); }
.duel-body { flex: 1; display: grid; grid-template-columns: 170px 1fr 170px; min-height: 0; }
.duel-picks { padding: 8px; overflow-y: auto; border-right: 1px solid var(--line); font-size: 12px; } .duel-picks div { display: flex; gap: 6px; } .duel-picks em { margin-left: auto; font-style: normal; color: var(--acc); font-weight: 800; }
.duel-picks:last-child { border-right: 0; border-left: 1px solid var(--line); }
.duel-pool { overflow-y: auto; padding: 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-content: start; }
.dp-group { display: flex; flex-direction: column; gap: 3px; } .dp-group > small { color: var(--dim); font-weight: 800; }
.dp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; text-align: left; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); font-size: 11.5px; }
.dp b { font: 800 14px var(--cond); color: var(--acc); } .dp small { width: 100%; color: var(--dim); font-size: 10px; }
.dp.gone { opacity: .3; } .dp.mine { border-color: var(--acc); opacity: 1; }
.duel-setup, .duel-done { padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.duel-setup .quick { justify-content: center; }
.ranking div { display: grid; grid-template-columns: 30px 1fr 60px 40px; padding: 4px 6px; border-bottom: 1px solid var(--line); } .ranking em { font-style: normal; color: var(--acc); font-weight: 800; } .ranking small { color: var(--dim); }
.invite-box { max-width: 520px; }
.rewards { display: flex; flex-direction: column; gap: 6px; } .reward { padding: 8px 10px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); opacity: .7; } .reward.got { opacity: 1; border-color: var(--acc); }
.reward small { display: block; color: var(--dim); }

/* ---------------- Tienda, pase y estética (tanda D) ---------------- */
.shop { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.shop.from-title { grid-column: 1 / -1; grid-row: 1 / -1; }
.shop.from-game { height: min(78vh, 360px); }
.go .coins { color: inherit; }
.coins { font-weight: 800; color: #ffd23f; white-space: nowrap; }
.pass-head { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: linear-gradient(120deg, #19245a, #0f1838); border: 1px solid var(--line2); }
.pass-head.theme-winter { background: linear-gradient(120deg, #1b3a5a, #0f1838); } .pass-head.theme-derby { background: linear-gradient(120deg, #5a1b2a, #0f1838); }
.pass-head.theme-summer { background: linear-gradient(120deg, #5a4a1b, #0f1838); } .pass-head.theme-academy { background: linear-gradient(120deg, #1b5a3a, #0f1838); }
.pass-head h2 { margin: 2px 0; font-size: 24px; } .pass-head > div:first-child { flex: 1; }
.pbar.big { height: 10px; display: block; margin: 4px 0; }
.pass-buy { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: 0 0 min(300px, 42%); } .pass-buy small { color: var(--dim); font-size: 10.5px; }
.go.plus { background: linear-gradient(135deg, #ffd23f, #ff8a3d); color: #1a1000; }
.good { color: var(--good); }
.missions { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; margin-bottom: 10px; }
.mission { padding: 7px 9px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.mission.done { border-color: var(--good); } .mission.done b::after { content: ' ✓'; color: var(--good); } .mission small { color: var(--dim); }
.pass-track { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.pt-col { display: flex; flex-direction: column; gap: 4px; align-items: center; min-width: 74px; opacity: .65; } .pt-col.open { opacity: 1; } .pt-col > b { font: 800 14px var(--cond); color: var(--dim); } .pt-col.open > b { color: var(--acc); }
.pr { width: 74px; height: 74px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; padding: 2px; }
.pr small { font-size: 9px; color: var(--dim); line-height: 1.05; text-align: center; } .pr.premium { background: linear-gradient(160deg, #2b2006, var(--card)); border-color: #7a5a12; }
.pr.empty { border-style: dashed; opacity: .3; } .pr i { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: 11px; } .pr.claimed { opacity: .5; } .pr:not(:disabled):not(.empty) { box-shadow: 0 0 0 2px var(--acc) inset; animation: pulseAcc 1.6s infinite; }
@keyframes pulseAcc { 50% { box-shadow: 0 0 0 2px transparent inset; } }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 10px; background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); text-align: center; }
.item.own { border-color: color-mix(in srgb, var(--acc) 60%, transparent); } .item small { color: var(--dim); font-size: 10.5px; }
.kit-prev { display: inline-block; border-radius: 8px 8px 12px 12px; background: linear-gradient(90deg, var(--k1) 0 35%, var(--k2) 35% 65%, var(--k1) 65%); clip-path: polygon(20% 0, 80% 0, 100% 20%, 88% 38%, 80% 30%, 80% 100%, 20% 100%, 20% 30%, 12% 38%, 0 20%); }
.stad-prev { display: inline-block; border-radius: 6px; background: linear-gradient(#0b1020 0 30%, #17602d 30%); }
.stad-prev.stadium_neon { background: linear-gradient(#1b0b3a 0 30%, #1b6e48 30%); box-shadow: 0 0 12px #c878ff; } .stad-prev.stadium_snow { background: linear-gradient(#2c3b55 0 30%, #fff 30% 34%, #3a7d53 34%); }
.stad-prev.stadium_retro { background: linear-gradient(#2c2214 0 30%, #577a31 30%); filter: sepia(.4); } .stad-prev.stadium_sunset { background: linear-gradient(#5b2340 0 30%, #25804a 30%); box-shadow: 0 0 12px #ffaa78; }
.card-prev { display: inline-block; border-radius: 6px; border: 3px solid; } .card-prev.card_gold { background: linear-gradient(135deg, #2a1f05, #5a4210); border-color: #f2c94c; } .card-prev.card_neon { background: linear-gradient(135deg, #1a0638, #0b2a4a); border-color: #38f6ff; } .card-prev.card_retro { background: linear-gradient(135deg, #2b1a0e, #4a2e18); border-color: #f2e6c9; }
.goal-prev { display: inline-flex; align-items: center; justify-content: center; font-size: 28px; border-radius: 50%; background: radial-gradient(#2a3768, #0b1020); }
.title-prev { font: 800 14px var(--cond); color: var(--acc); letter-spacing: .04em; }
.crest-frame { display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; padding: 3px; }
.crest-frame.frame_bronze { box-shadow: 0 0 0 2px #cd7f32, 0 0 8px #cd7f3299; }
.crest-frame.frame_neon { box-shadow: 0 0 0 2px #38f6ff, 0 0 12px #38f6ff; }
.crest-frame.frame_fire { box-shadow: 0 0 0 2px #ff6b1a, 0 0 14px #ff3d00; animation: fireGlow 1.2s infinite alternate; }
.crest-frame.frame_ice { box-shadow: 0 0 0 2px #bfefff, 0 0 12px #7fd8ff; }
.crest-frame.frame_gold { box-shadow: 0 0 0 2px #ffd23f, 0 0 16px #ffb300; animation: goldSpin 3s linear infinite; }
.crest-frame.frame_friend { box-shadow: 0 0 0 2px #7ef0a0, 0 0 10px #7ef0a0; }
@keyframes fireGlow { to { box-shadow: 0 0 0 2px #ffb020, 0 0 20px #ff6b1a; } }
@keyframes goldSpin { 0%, 100% { box-shadow: 0 0 0 2px #ffd23f, 0 0 10px #ffb300; } 50% { box-shadow: 0 0 0 3px #fff2b0, 0 0 22px #ffd23f; } }
.club-btn { position: relative; } .club-btn .crown { position: absolute; top: -6px; right: -6px; font-size: 12px; font-style: normal; }
.buy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.buy-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line2); }
.buy-card .bc-ic { font-size: 26px; } .buy-card p { margin: 0; color: var(--dim); font-size: 11px; flex: 1; } .buy-card.own { border-color: var(--good); }
.editor { display: grid; grid-template-columns: 140px 1fr; gap: 14px; } .editor.locked { opacity: .5; pointer-events: none; }
.ed-prev { display: flex; align-items: center; justify-content: center; background: var(--bg2); border-radius: 12px; min-height: 140px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; } .swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ffffff30; }
.swatches button.on { outline: 3px solid var(--acc); outline-offset: 1px; }
.ad-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 2px 4px; padding: 6px 10px; border-radius: 10px; border: 1px dashed var(--line2); background: var(--bg2); font-size: 11.5px; }
.ad-strip .as-t { font-weight: 800; color: var(--dim); } .ad-strip .as-i { display: flex; align-items: center; gap: 6px; } .ad-strip small { color: var(--dim); }
.ad-btn small { margin-left: 4px; opacity: .7; font-size: 9.5px; }
.ad-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--dim); }
.ad-wait { text-align: center; padding: 14px; }
.free-toggle.on { background: linear-gradient(135deg, #ffd23f, #ff8a3d); color: #1a1000; border-color: transparent; }
.free-note { padding: 4px 12px; background: #3a2a06; color: #ffd23f; font-size: 11.5px; font-weight: 700; }
.free-edit { margin-top: 8px; } .free-edit summary { cursor: pointer; font-weight: 800; color: #ffd23f; }
.fe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 6px 0; } .fe-grid label { display: flex; flex-direction: column; font-size: 10.5px; color: var(--dim); }
.election .cand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--bg2); margin: 4px 0; }
.election .cand span { display: flex; flex-direction: column; } .election .cand small { color: var(--dim); } .election .cand.on { outline: 1px solid var(--acc); }
.rules-box { margin-top: 8px; } .rules-box .msg { flex-direction: column; align-items: flex-start; }
.derby-bar.studied { background: linear-gradient(90deg, #3a2a66, #1c2a52); } .derby-bar.studied.soft { background: var(--bg2); color: var(--dim); }
.ob-code b { font: 800 16px var(--cond); color: var(--acc); letter-spacing: .12em; }
/* ---------------- Ordenador ---------------- */
.keys-help { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kh { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
kbd { display: inline-block; min-width: 92px; text-align: center; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line2); border-bottom-width: 3px; background: var(--bg2); font: 700 12px var(--sans); }
body.desktop button:hover:not(:disabled) { filter: brightness(1.12); }
body.desktop ::-webkit-scrollbar { width: 9px; height: 9px; } body.desktop ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 6px; } body.desktop ::-webkit-scrollbar-track { background: transparent; }
body.desktop #rotate { display: none !important; }
