@font-face { font-family: 'Questrial'; src: url(../assets/fonts/questrial-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
:root { --bg1:#123a7a; --bg2:#06142e; --ink:#f3f1e4; --mut:#a9bedf; --line:rgba(255,255,255,.18); --gold:#f5cf2b; --red:#e2472a; --red2:#b8300f;
  --font: 'Century Gothic', 'Questrial', 'Avenir', 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
html { background: var(--bg2); } body { margin: 0; min-height: 100vh; background: radial-gradient(1200px 700px at 50% 0%, #1d4f9e 0%, var(--bg1) 35%, var(--bg2) 100%) no-repeat, var(--bg2); color: var(--ink); font-family: var(--font); font-size: 17px; }
#app { max-width: 1280px; margin: 0 auto; padding: 14px 22px 40px; }
a { color: #9fd8ff; } code { background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 4px; }
kbd { border: 1px solid #8a8870; border-bottom-width: 3px; border-radius: 5px; padding: 0 6px; font-family: inherit; font-size: .85em; margin: 0 2px; background: rgba(0,0,0,.25); }
button { font-family: var(--font); }
.screen { animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.title { text-align: center; font-size: 66px; font-weight: 700; letter-spacing: .02em; margin: 6px 0 14px; color: #fff; text-shadow: 3px 4px 0 #000, 0 0 2px #000; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.title.sm { font-size: 40px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.back { background: none; border: 0; color: var(--mut); font-size: 16px; cursor: pointer; }
.back:hover { color: #fff; }
.muted, .foot { color: var(--mut); } .foot { font-size: 14px; text-align: center; margin: 6px 0; } .foot.left { text-align: left; }
.pend { color: #ffcf66; } .ok { color: #7be08a; font-size: .8em; } .gen { color: #9fd8ff; font-size: .8em; }
.lbl { color: #e9e3b8; margin: 4px 0 8px; font-size: 15px; }
/* pastillas */
.pill { border: 2px solid #f2efe2; border-radius: 30px; background: linear-gradient(180deg, #5b5c4a, #2f3025); color: #fff; font-weight: 700; font-size: 18px; padding: 12px 22px; cursor: pointer; transition: transform .12s, filter .12s; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.pill:hover:not(:disabled) { filter: brightness(1.15); transform: translateY(-1px); }
.pill.sel, .pill.red { background: linear-gradient(180deg, #ee6236, #c43a12); border-color: #f6c768; }
.pill.red { border-color: #fff; }
.pill.gray { background: linear-gradient(180deg, #6a6a5c, #3d3d33); }
.pill.blue { background: linear-gradient(180deg, #3f5468, #24323f); border-color: #b8d6ee; }
.pill.big { font-size: 22px; padding: 14px 44px; letter-spacing: .03em; }
.pill.sm { font-size: 14px; padding: 6px 14px; }
.pill.wide { width: 100%; margin: 4px 0; }
.pill:disabled { opacity: .45; cursor: not-allowed; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.modes .pill { padding: 14px; }
.comps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.cpill { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 26px; border: 2px solid rgba(255,255,255,.75); color: #fff; font-weight: 700; font-size: 15px; padding: 9px 12px; cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,.6); transition: transform .12s, filter .12s; min-height: 46px; }
.cpill:hover { transform: translateY(-1px); filter: brightness(1.12); } .cpill.on { outline: 3px solid var(--gold); outline-offset: 1px; }
.cpill.gold { background: linear-gradient(180deg, #8a7514, #574708); border-color: #f2d35a; } .cpill.teal { background: linear-gradient(180deg, #2a6f78, #174249); border-color: #8fd6df; }
.cpill.navy { background: linear-gradient(180deg, #1f4f9b, #0f2c5c); border-color: #9cc0ff; } .cpill.copper { background: linear-gradient(180deg, #a85a2a, #6a3212); border-color: #f2b07a; }
.cpill.green { background: linear-gradient(180deg, #3f7c3a, #22471f); border-color: #9be291; } .cpill.brown { background: linear-gradient(180deg, #876737, #4f3a1b); border-color: #e3c58f; }
.cpill.slate { background: linear-gradient(180deg, #5d6878, #353d48); border-color: #c9d2de; } .cpill.lilac { background: linear-gradient(180deg, #dfe3ff, #aab3ee); color: #13205a; text-shadow: none; border-color: #fff; }
.cpill.rust { background: linear-gradient(180deg, #c06a2c, #7d3a10); border-color: #ffc28a; } .cpill.lime { background: linear-gradient(180deg, #c8f0b4, #86c46a); color: #173b10; text-shadow: none; border-color: #effce6; }
.ic { font-style: normal; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 6px; font-size: 13px; font-weight: 800; }
.ic-lub { background: #fff; color: #0b3d91; padding: 0 4px; } .ic-metro { background: #1b9fb0; color: #fff; } .ic-bcla { background: #fff; color: #0f2c5c; } .ic-lsa { background: #ffcf66; color: #6a3212; }
.sect { display: flex; align-items: center; gap: 12px; color: #e9e3b8; margin: 8px 0; font-size: 15px; }
.sect::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.regions { display: flex; gap: 10px; margin-bottom: 12px; }
.region { width: 150px; background: linear-gradient(180deg, #4a4b3b, #2e2f25); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; color: #fff; padding: 12px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.region.on { background: linear-gradient(180deg, #9a4b22, #6f2e0f); border-color: #f5c768; } .region:disabled { opacity: .4; cursor: not-allowed; }
.region small { color: #ddd; font-size: 12px; }
.flag { width: 36px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.flag.uy { background: repeating-linear-gradient(180deg, #fff 0 2.66px, #2a5db0 2.66px 5.33px); position: relative; }
.flag.uy::before { content: "☀"; position: absolute; left: 0; top: 0; width: 15px; height: 13px; background: #fff; color: #f2b705; font-size: 11px; line-height: 13px; text-align: center; }
.divbox { border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; background: rgba(0,0,0,.12); }
.divs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.div { background: linear-gradient(180deg, #4a4b3b, #2e2f25); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; color: #fff; padding: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 16px; }
.div.on { background: linear-gradient(180deg, #a2552a, #6e3212); border-color: #f5c768; } .div small { color: #ddd; font-size: 12px; }
.camp-box { border: 1px solid rgba(245,207,43,.5); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; background: rgba(0,0,0,.18); }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pick.single { grid-template-columns: minmax(0, 600px); justify-content: center; }
.pick .col { border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 18px 22px; background: rgba(0,0,0,.14); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bigcrest { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.pick label { width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 18px; }
select { width: 100%; background: linear-gradient(180deg, #45463a, #2b2c22); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 17px; }
input[type=range] { width: 200px; accent-color: var(--gold); }
.bottom-actions { display: flex; gap: 22px; justify-content: center; margin: 20px 0 8px; flex-wrap: wrap; }
.bottom-actions.col { flex-direction: column; align-items: stretch; gap: 10px; }
.bottom-actions .pill { min-width: 200px; }
.hint { text-align: center; color: var(--mut); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: #c43a12; color: #fff; padding: 10px 22px; border-radius: 24px; border: 2px solid #fff; z-index: 99; }
/* panel y banner rojo */
.panel { max-width: 860px; margin: 18px auto; background: linear-gradient(180deg, rgba(12,34,74,.96), rgba(5,15,36,.97)); border: 1px solid #3f6fb5; border-radius: 6px; padding: 26px 34px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.panel.wide { max-width: 1000px; }
.banner { position: relative; margin: 0 -10px 10px; height: 82px; }
.banner::before { content: ""; position: absolute; inset: 8px -2px -6px 8px; background: #a52a22; transform: skewY(-1.2deg); }
.banner span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #e5473d; color: #fff; font-size: 40px; transform: skewY(-1.2deg); letter-spacing: .01em; }
.sub { text-align: center; color: #e9e3b8; font-size: 16px; margin: 4px 0 18px; }
.radio { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--gold); background: #4a4b40; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.radio.on::after { content: "✓"; color: var(--gold); font-size: 42px; font-weight: 700; line-height: 1; transform: translateY(-2px); }
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; }
.drow { width: 100%; display: flex; align-items: center; gap: 18px; background: none; border: 0; color: #fff; padding: 12px 14px; border-radius: 8px; cursor: pointer; text-align: left; }
.drow:hover { background: rgba(255,255,255,.05); } .drow.rec { background: rgba(200,190,90,.12); }
.drow .di { font-size: 30px; width: 34px; text-align: center; }
.drow .dl { font-size: 30px; display: flex; flex-direction: column; line-height: 1.05; }
.drow .dl small { color: var(--gold); font-size: 13px; letter-spacing: .04em; }
.dlast { display: flex; justify-content: center; } .dlast .drow { width: auto; }
/* pantalla terreno/balón/jugador */
.orbit { background: radial-gradient(ellipse at 75% 60%, transparent 38%, rgba(255,210,120,.08) 38.3%, transparent 38.8%, transparent 45%, rgba(255,210,120,.06) 45.3%, transparent 45.8%); }
.setup { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 34px; }
.sdiv { border-left: 2px dashed rgba(255,255,255,.35); }
.lined { text-align: center; font-weight: 400; font-size: 38px; margin: 10px 0 14px; padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #fff; }
h3.lined { font-size: 24px; text-align: left; border-top: 0; color: #e9e3b8; }
.vcar { display: flex; align-items: center; justify-content: center; gap: 14px; }
.vprev { border: 6px solid #e7e7e2; border-radius: 6px; background: #ddd; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.vprev img { display: block; width: 400px; max-width: 100%; }
.arrow { width: 0; height: 0; border: 0; background: none; cursor: pointer; border-top: 20px solid transparent; border-bottom: 20px solid transparent; padding: 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.arrow.l { border-right: 34px solid #e6e3cf; } .arrow.r { border-left: 34px solid #e6e3cf; }
.arrow:hover.l { border-right-color: #fff; } .arrow:hover.r { border-left-color: #fff; }
.cap { text-align: center; font-size: 14px; color: #ddd; margin: 8px 0; }
.balls { display: flex; justify-content: space-around; padding-top: 14px; }
.ballbtn { position: relative; width: 74px; height: 74px; border-radius: 50%; border: 5px solid #f4f4f0; background: #2e2f25; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.ballbtn img { width: 58px; height: 58px; }
.ballbtn.on::before { content: ""; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 16px solid var(--gold); }
.trow { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; color: #fff; font-size: 22px; padding: 9px 0; cursor: pointer; text-align: left; }
.trow span { display: flex; flex-direction: column; } .trow small { font-size: 13px; color: var(--mut); }
.trow.dark { background: rgba(0,0,0,.45); padding: 10px 14px; margin-top: 14px; font-size: 17px; }
.trow .radio { width: 46px; height: 46px; } .trow .radio.on::after { font-size: 38px; }
.toggles { margin-top: 8px; }
.pcar { display: flex; align-items: center; justify-content: center; gap: 18px; }
.pc-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pc-tag { font-size: 14px; color: #ddd; display: flex; align-items: center; gap: 6px; }
.pc-face { width: 124px; height: 124px; border-radius: 50%; border: 6px solid #f4f4f0; background: radial-gradient(circle at 50% 40%, #6c6e5a, #34352a); object-fit: cover; }
.pc-mid b { font-size: 22px; font-weight: 400; } .pc-mid small { color: var(--mut); font-size: 13px; }
.mini-attrs { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; font-size: 12px; color: var(--mut); margin: 8px 0; } .mini-attrs b { color: var(--gold); }
/* resultado */
.final { display: flex; align-items: center; justify-content: center; gap: 30px; }
.final .crest { width: 110px; height: 110px; }
.final .sc { font-size: 84px; font-weight: 700; display: flex; gap: 14px; } .final .sc .w { color: var(--gold); } .final .sc i { font-style: normal; color: #888; }
/* tablas */
.tbl { width: 100%; border-collapse: collapse; background: rgba(0,0,0,.25); margin: 8px 0; font-size: 15px; border-radius: 6px; overflow: hidden; }
.tbl th { background: rgba(255,255,255,.08); color: #e9e3b8; text-align: left; padding: 7px 8px; font-weight: 400; }
.tbl td { padding: 6px 8px; border-top: 1px solid rgba(255,255,255,.08); }
.tbl.tiny { font-size: 13px; } .tbl.tiny td { padding: 3px 5px; }
.tbl tr.me td { background: rgba(245,207,43,.16); font-weight: 700; }
.tbl tr.q td:first-child { box-shadow: inset 4px 0 #59c56a; } .tbl tr.pi td:first-child { box-shadow: inset 4px 0 #f5cf2b; } .tbl tr.rel td:first-child { box-shadow: inset 4px 0 #e2472a; }
.crest { vertical-align: middle; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.kv { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0; } .kv td { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.08); } .kv td:first-child { color: var(--mut); width: 40%; }
.tabs { display: flex; gap: 8px; justify-content: center; margin: 4px 0 14px; flex-wrap: wrap; }
.rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
.round { background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 10px; }
.round h4 { margin: 0 0 6px; font-weight: 400; font-size: 19px; color: #e9e3b8; }
.fx { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; gap: 6px; padding: 4px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.fx .h { text-align: right; } .fx .r { text-align: center; display: flex; flex-direction: column; } .fx .r small { color: var(--mut); font-size: 11px; } .fx.me { background: rgba(245,207,43,.1); }
.series-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.series { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 10px; }
.series.done { border-color: #6a8f4a; } .series .sh { display: flex; justify-content: space-between; } .series .sh small { color: var(--mut); }
.series .sr { padding: 3px 0; } .series .sr.w { color: var(--gold); font-weight: 700; } .series .ss { font-size: 26px; font-weight: 700; }
.series .games { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--mut); } .series .games span { background: rgba(0,0,0,.3); padding: 2px 6px; border-radius: 6px; }
.panel-s { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.news { margin: 0; padding-left: 18px; } .news li { margin: 5px 0; }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; } .leaders .panel-s { margin: 0; }
/* campeonato */
.hubhead { display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-radius: 8px; background: linear-gradient(100deg, var(--c1) 0%, rgba(0,0,0,.4) 55%); border: 1px solid rgba(255,255,255,.2); margin-top: 6px; }
.hubhead h2 { margin: 0; font-size: 40px; text-shadow: 2px 3px 0 #000; } .hubhead p { margin: 2px 0 0; color: #eee; }
.hubface { width: 84px; height: 84px; margin-left: auto; border-radius: 50%; border: 4px solid #f4f4f0; background: #3b3c30; }
.hubgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-top: 14px; }
.nextm { background: linear-gradient(180deg, rgba(12,34,74,.96), rgba(5,15,36,.96)); border: 1px solid #3f6fb5; border-radius: 8px; padding: 16px; }
.vsrow { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0; }
.vsrow div { display: flex; flex-direction: column; text-align: center; } .vsrow b { font-size: 24px; } .vsrow small { color: var(--mut); }
.vs { font-size: 34px; font-weight: 700; color: var(--red); }
.hubbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .hubbtns .pill { font-size: 16px; padding: 10px; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.roster.small { max-height: 340px; overflow: auto; }
.pcard { background: rgba(0,0,0,.25); border: 2px solid rgba(255,255,255,.18); border-radius: 10px; color: #fff; padding: 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pcard img { width: 76px; height: 76px; border-radius: 50%; background: #3b3c30; } .pcard b { font-size: 13px; font-weight: 400; text-align: center; line-height: 1.1; } .pcard small { color: var(--gold); }
.pcard.sel { border-color: var(--gold); } .pcard:disabled { opacity: .4; }
.ficha { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 14px; display: grid; grid-template-columns: 120px 1fr; gap: 14px; position: sticky; top: 10px; }
.ficha > img { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #f4f4f0; background: #3b3c30; } .ficha h3 { margin: 0; font-size: 26px; font-weight: 400; }
.attr { display: grid; grid-template-columns: 120px 1fr 30px; align-items: center; gap: 6px; font-size: 13px; }
.attr i { height: 7px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; } .attr i b { display: block; height: 100%; background: linear-gradient(90deg, #f5cf2b, #ee6236); } .attr em { font-style: normal; color: var(--gold); text-align: right; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tcard { background: linear-gradient(180deg, #4a4b3b, #2e2f25); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; color: #fff; padding: 12px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tcard small { color: var(--mut); font-size: 12px; } .tcard:hover { border-color: var(--gold); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; z-index: 60; }
@media (max-width: 900px) { .modes, .comps { grid-template-columns: repeat(2, 1fr); } .pick, .setup, .hubgrid, .split, .dgrid { grid-template-columns: 1fr; } .sdiv { display: none; } .title { font-size: 44px; } }
/* partido */
#game { display: none; position: fixed; inset: 0; background: #000; align-items: center; justify-content: center; }
#game .stage { position: relative; width: min(100vw, calc(100vh * 16 / 9)); width: min(100vw, calc(100dvh * 16 / 9)); aspect-ratio: 16 / 9; }
#cv { width: 100%; height: 100%; display: block; }
.gbtns { position: absolute; top: 1.6%; right: 1%; display: flex; gap: 8px; }
.gbtns button { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #f2f2f2; background: #1d2a26; color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.gbtns button.wide { width: 82px; border-radius: 26px; font-size: 16px; font-weight: 700; }
.gbtns button:hover { background: #2c3d37; }
#ovl { display: none; position: absolute; inset: 0; background: rgba(0,0,0,.6); align-items: center; justify-content: center; z-index: 5; }
#ovl .panel { width: min(640px, 92%); max-height: 92%; overflow: auto; }
.touch { display: none; }

/* ===== Menú uruguayo ===== */
.uy-home { position: relative; max-width: 1080px; margin: 0 auto; padding-bottom: 20px; overflow: hidden; }
.uy-flag { position: fixed; inset: 0; z-index: -1; background:
  repeating-linear-gradient(180deg, rgba(255,255,255,.07) 0 44px, rgba(117,170,219,.10) 44px 88px),
  radial-gradient(900px 500px at 50% 20%, rgba(117,170,219,.35), transparent 70%); }
.sol { position: absolute; right: -40px; top: -30px; width: 240px; opacity: .9; filter: drop-shadow(0 0 30px rgba(245,196,0,.45)); animation: spin 60s linear infinite; z-index: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.uy-top { position: relative; display: flex; align-items: center; gap: 22px; padding: 26px 0 10px; z-index: 1; }
.uy-top .fubb { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.brand h1 { margin: 0; font-size: 92px; line-height: .9; font-weight: 700; color: #fff; letter-spacing: -.01em; text-shadow: 4px 5px 0 #0a2a5e, 0 0 24px rgba(117,170,219,.6); }
.brand h1 span { color: #75aadb; text-shadow: 4px 5px 0 #0a2a5e; }
.brand p { margin: 6px 0 0; color: #d7e6fb; font-size: 17px; }
.uy-continue { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 20px; margin: 10px 0; border-radius: 16px; border: 2px solid #f5c400; background: linear-gradient(90deg, rgba(245,196,0,.22), rgba(10,42,94,.7)); color: #fff; cursor: pointer; text-align: left; }
.uy-continue b { font-size: 22px; display: block; } .uy-continue small { color: #d7e6fb; } .uy-continue i { margin-left: auto; font-style: normal; font-size: 30px; color: #f5c400; }
.uy-continue:hover { filter: brightness(1.12); }
.uy-lbl { color: #f5c400; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; margin: 18px 0 10px; position: relative; z-index: 1; }
.leagues { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; z-index: 1; }
.league { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 20px 20px; border-radius: 22px; border: 3px solid #fff; cursor: pointer; color: #fff; text-align: center; transition: transform .15s, box-shadow .15s; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.league.lub { background: linear-gradient(160deg, #1f5fbf 0%, #0d3b8c 60%, #082a66 100%); }
.league.lua { background: linear-gradient(160deg, #22a7e0 0%, #1374b3 55%, #0b4b7d 100%); }
.league:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 0 4px rgba(245,196,0,.6); }
.league .llogo { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.league .lt b { display: block; font-size: 26px; } .league .lt small { color: #dcebff; font-size: 14px; }
.league .go { margin-top: 6px; padding: 10px 46px; border-radius: 30px; border: 2px solid #fff; background: linear-gradient(180deg, #ee6236, #c43a12); font-weight: 700; font-size: 20px; }
.uy-minor { display: flex; gap: 16px; justify-content: center; margin: 22px 0 8px; position: relative; z-index: 1; } .uy-minor .pill { min-width: 230px; }
.pill.blue { background: linear-gradient(180deg, #2a64b8, #12397a); border-color: #cfe3ff; }
.uy-cups { display: flex; align-items: center; gap: 12px; justify-content: center; color: #cfe0f8; font-size: 14px; max-width: 820px; margin: 10px auto; position: relative; z-index: 1; }
.mini { width: 44px; height: 44px; object-fit: contain; }
.pick-head { display: flex; align-items: center; justify-content: center; gap: 18px; } .pick-head .llogo { width: 90px; height: 90px; object-fit: contain; } .pick-head .title { border: 0; margin: 0; padding: 0; }
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 16px; }
.club { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 16px; border: 2px solid rgba(255,255,255,.35); background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 55%, #06142e), #06142e 85%); color: #fff; cursor: pointer; transition: transform .12s; }
.club img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.club b { font-size: 18px; } .club small { color: #b9cbe6; font-size: 11px; text-align: center; }
.club:hover { transform: translateY(-3px); } .club.on { border-color: #f5c400; box-shadow: 0 0 0 3px rgba(245,196,0,.5); }
.cupbanner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; margin-top: 8px; border-radius: 12px; background: linear-gradient(90deg, #f5c400, #d18b00); color: #1a1200; } .cupbanner b { font-size: 20px; }
.hublogo { width: 64px; height: 64px; }
@media (max-width: 900px) { .leagues { grid-template-columns: 1fr; } .brand h1 { font-size: 60px; } .sol { width: 150px; } }

/* editor de caras */
.fe-top { display: flex; gap: 12px; justify-content: center; margin-bottom: 12px; } .fe-top select { max-width: 340px; }
.fe { display: grid; grid-template-columns: 260px 300px 1fr; gap: 18px; align-items: start; }
.fe-list { max-height: 560px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.fe-p { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.25); border: 2px solid rgba(255,255,255,.15); border-radius: 10px; color: #fff; padding: 4px 8px; cursor: pointer; text-align: left; }
.fe-p img { width: 44px; height: 44px; border-radius: 50%; background: #1d3f7a; } .fe-p.on { border-color: #f5c400; } .fe-p i { margin-left: auto; color: #f5c400; font-style: normal; }
.fe-prev { display: flex; flex-direction: column; align-items: center; gap: 6px; position: sticky; top: 10px; }
.fe-prev > img { width: 260px; height: 260px; border-radius: 50%; border: 6px solid #fff; background: radial-gradient(circle at 50% 40%, #3f73c4, #0d2b5c); }
.fe-prev b { font-size: 24px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; } .sw { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); cursor: pointer; } .sw.on { border-color: #f5c400; box-shadow: 0 0 0 3px rgba(245,196,0,.5); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.fe-out { width: 100%; height: 220px; background: #06142e; color: #cfe0f8; border: 1px solid #3f6fb5; border-radius: 8px; font-family: monospace; font-size: 12px; }
@media (max-width: 1000px) { .fe { grid-template-columns: 1fr; } }

/* ---------- 2 jugadores ---------- */
.league.duo { position: relative; z-index: 1; width: 100%; margin-top: 18px; flex-direction: row; justify-content: flex-start; text-align: left; padding: 16px 22px; gap: 18px; background: linear-gradient(100deg, #f5c400 0%, #d18b00 30%, #0a2a5e 31%, #0d3b8c 100%); }
.league.duo .duo-ic { font-size: 54px; width: 90px; text-align: center; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.league.duo .lt { flex: 1; } .league.duo .go { margin: 0; }
.duo-screen .banner { margin-top: 4px; }
.duo { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 14px; align-items: start; margin-top: 10px; }
.duo-col { border-radius: 18px; padding: 12px 14px 14px; background: linear-gradient(170deg, color-mix(in srgb, var(--c1) 45%, #06142e), #06142e 80%); border: 3px solid #ffd54a; }
.duo-col.j2 { border-color: #7fd3ff; }
.duo-h { margin: 0 0 8px; text-align: center; color: #ffd54a; font-size: 22px; letter-spacing: .06em; } .duo-col.j2 .duo-h { color: #7fd3ff; } .duo-h small { color: #cfe0f8; font-size: 12px; font-weight: 400; }
.duo-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.duo-tabs button { padding: 5px 16px; border-radius: 20px; border: 2px solid rgba(255,255,255,.4); background: rgba(0,0,0,.3); color: #fff; cursor: pointer; font: inherit; }
.duo-tabs button.on { background: #fff; color: #0a2a5e; border-color: #fff; font-weight: 700; }
.duo-crests { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 10px; }
.duo-crests .dc { aspect-ratio: 1; padding: 3px; border-radius: 10px; border: 2px solid transparent; background: rgba(255,255,255,.08); cursor: pointer; }
.duo-crests .dc img { width: 100%; height: 100%; object-fit: contain; }
.duo-crests .dc.on { border-color: #fff; background: rgba(255,255,255,.28); box-shadow: 0 0 0 2px rgba(255,213,74,.6); }
.duo-keys { text-align: center; color: #d7e6fb; font-size: 13px; margin: 10px 0 0; }
.duo-vs { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 110px; font-size: 54px; font-weight: 700; color: #fff; text-shadow: 3px 4px 0 #0a2a5e; }
.duo-vs .pill { min-width: 0; font-size: 14px; padding: 8px 14px; }
.duo-venue { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 0; color: #fff; }
.duo-win { text-align: center; font-size: 22px; color: #ffd54a; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } .duo-vs { padding-top: 0; flex-direction: row; } }
.league.duo { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; }
.league.duo .lt { min-width: 0; } .league.duo .lt b { font-size: 24px; } .league.duo .go { width: auto; padding: 10px 40px; }
.league.duo { background: linear-gradient(100deg, #f5c400 0%, #d18b00 12%, #0a2a5e 12.2%, #0d3b8c 100%); }

/* ---------- Controles (teclas dibujadas) ---------- */
.ctl-wrap { margin: 8px 0 12px; }
.ctl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ctl-mode { margin: 6px 0 12px; } .ctl-mode > b { display: block; color: #ffd54a; margin: 4px 0 6px; letter-spacing: .04em; }
.ctl-card { border-radius: 14px; padding: 12px 16px; background: rgba(0,0,0,.28); border: 3px solid #ffd54a; }
.ctl-card.j2 { border-color: #7fd3ff; }
.ctl-card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: .08em; color: #ffd54a; } .ctl-card.j2 h3 { color: #7fd3ff; }
.ctl-row { display: flex; align-items: center; gap: 14px; margin: 7px 0; }
.ctl-keys { min-width: 150px; display: flex; gap: 6px; }
.ctl-what { color: #eef4ff; font-size: 16px; }
.ctl-note { margin: 8px 0 0; font-size: 12px; color: #c9d7ee; }
.ctl-foot { text-align: center; color: #c9d7ee; font-size: 13px; margin: 10px 0 0; }
.kc { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 8px; background: linear-gradient(180deg, #ffffff, #d8dde6); color: #111; font-weight: 700; font-size: 17px; box-shadow: 0 4px 0 #7d8796, 0 5px 8px rgba(0,0,0,.4); border: 1px solid #9aa4b2; }
.kc.wide { min-width: 96px; font-size: 14px; }
/* versus */
.duo-club { margin: 0 0 8px; padding: 6px; border-radius: 10px; text-align: center; } .duo-club span { background: rgba(0,0,0,.55); color: #fff; padding: 2px 10px; border-radius: 8px; font-weight: 700; }
.duo-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 8px 0; }
.duo-attrs span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #dce8fb; } .duo-attrs i { font-style: normal; width: 62px; }
.duo-attrs em { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #ffd54a, #ff8a3a); max-width: 100%; }
.duo-roster { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.duo-roster button { font: inherit; font-size: 12px; padding: 3px 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.3); color: #fff; cursor: pointer; }
.duo-roster button.on { background: #fff; color: #0a2a5e; font-weight: 700; }
.duo-crests .dc:disabled { opacity: .25; cursor: not-allowed; }
.series { margin: 12px auto; max-width: 640px; padding: 10px 16px; border-radius: 12px; background: rgba(0,0,0,.3); color: #fff; }
.series ol { margin: 6px 0 0; padding-left: 22px; } .series li { margin: 3px 0; } .series small { color: #c9d7ee; }
@media (max-width: 900px) { .ctl-two { grid-template-columns: 1fr; } }

/* ---------- Botones del partido: barra compacta tipo "cristal" ---------- */
.gbtns { top: 14px; right: 14px; gap: 4px; padding: 5px; border-radius: 16px; background: rgba(10,14,24,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 6px 18px rgba(0,0,0,.35); align-items: center; }
.gbtns button { width: 40px; height: 40px; border: 0; border-radius: 11px; background: transparent; color: #e8eef8; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0; cursor: pointer; box-shadow: none; transition: background .15s, transform .1s, color .15s; font: 700 14px/1 inherit; }
.gbtns button svg { width: 21px; height: 21px; }
.gbtns button:hover { background: rgba(255,255,255,.13); color: #fff; }
.gbtns button:active { transform: scale(.92); }
.gbtns button:focus-visible { outline: 2px solid #ffd54a; outline-offset: 1px; }
.gbtns button.main { background: #ff7a2f; color: #fff; }
.gbtns button.main:hover { background: #ff8f4f; }
.gbtns button.wide { width: auto; padding: 0 10px; font-size: 13px; letter-spacing: .02em; }
.gbtns button.wide svg { width: 18px; height: 18px; }
.gbtns .gsep { width: 1px; height: 24px; background: rgba(255,255,255,.18); margin: 0 3px; }
.duo-venue .vbtn { font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 20px; border: 2px solid rgba(255,255,255,.35); background: rgba(0,0,0,.3); color: #fff; cursor: pointer; }
.duo-venue .vbtn.on { background: #fff; color: #0a2a5e; border-color: #fff; font-weight: 700; }

/* ===================== CELULAR / TABLET ===================== */
#game { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; height: 100dvh; }
.is-touch .touch { display: block; position: absolute; inset: 0; pointer-events: none; }
.touch .tpad { position: absolute; bottom: 3%; display: grid; gap: 1.6vmin; pointer-events: auto; touch-action: none; padding: 1.2vmin; }
.touch.m1p .tpad { grid-template-columns: repeat(2, auto); }
.touch .tpad.l { left: 1.5%; } .touch .tpad.r { right: 1.5%; }
.touch.m2p .tpad { grid-template-columns: repeat(2, auto); bottom: 2%; }
.touch .tpad button { width: clamp(52px, 11vmin, 92px); height: clamp(52px, 11vmin, 92px); border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: rgba(10,16,30,.42); color: #fff; font-size: clamp(22px, 5vmin, 38px); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); touch-action: none; padding: 0; }
.touch .tpad button.shoot { background: rgba(255,122,47,.75); border-color: #ffd0b0; width: clamp(62px, 13.5vmin, 110px); height: clamp(62px, 13.5vmin, 110px); }
.touch .tpad button.jump { background: rgba(40,110,220,.6); }
.touch .tpad button.on { transform: scale(.9); filter: brightness(1.35); }
.touch.m2p .tpad button { width: clamp(44px, 9vmin, 72px); height: clamp(44px, 9vmin, 72px); font-size: clamp(18px, 4vmin, 28px); }
.touch.m2p .tpad button.shoot { width: clamp(48px, 10vmin, 80px); height: clamp(48px, 10vmin, 80px); }
.touch .ttag { position: absolute; top: -22px; font-style: normal; font-weight: 800; font-size: 14px; padding: 2px 8px; border-radius: 8px; color: #111; }
.touch .ttag.l { left: 6px; background: #ffd54a; } .touch .ttag.r { right: 6px; background: #7fd3ff; }
/* barra de botones y paneles en pantallas bajitas */
html.lowh .gbtns { top: 6px; right: 6px; padding: 3px; gap: 2px; border-radius: 12px; }
html.lowh .gbtns button { width: 32px; height: 32px; border-radius: 9px; }
html.lowh .gbtns button svg { width: 17px; height: 17px; }
html.lowh .gbtns button.wide { font-size: 11px; padding: 0 6px; }
html.lowh #ovl .panel { max-height: calc(var(--H, 100vh) * .92); overflow-y: auto; transform: scale(.82); transform-origin: center; }
html.lowh .banner span { font-size: 26px; }
html.lowh .ctl-card { padding: 8px 10px; }
html.lowh .kc { min-width: 30px; height: 30px; font-size: 14px; }
html.lowh .kc.wide { min-width: 70px; }
/* menús en celular */
html.narrow .brand h1 { font-size: 44px !important; }
html.narrow .uy-top .fubb { width: 60px; height: 60px; }
html.narrow .brand p { font-size: 13px; }
html.narrow .league { padding: 16px 12px; }
html.narrow .league .llogo { width: 90px; height: 90px; }
html.narrow .league .lt b { font-size: 20px; }
html.narrow .league.duo { grid-template-columns: 50px 1fr auto; padding: 10px 12px; }
html.narrow .league.duo .duo-ic { font-size: 32px; width: 50px; }
html.narrow .league.duo .lt b { font-size: 17px; }
html.narrow .league.duo .go { padding: 8px 16px; font-size: 16px; }
html.narrow .uy-minor { flex-wrap: wrap; gap: 10px; }
html.narrow .uy-minor .pill { min-width: 0; flex: 1 1 140px; }
html.narrow .uy-cups { font-size: 12px; }
html.narrow .duo-crests { grid-template-columns: repeat(5, 1fr); }
html.narrow .duo-vs { font-size: 34px; }
html.narrow .bottom-actions { flex-wrap: wrap; }
html.narrow .pill { font-size: 15px; }
html.narrow .tbl { font-size: 12px; }
html.narrow .screen { padding-left: 8px; padding-right: 8px; }
html.lowh .brand h1 { font-size: 48px !important; }
html.lowh .leagues { grid-template-columns: 1fr 1fr !important; }
html.lowh .league .llogo { width: 70px; height: 70px; }
html.lowh .league { gap: 6px; padding: 12px; }
.is-touch .hint, .is-touch .duo-keys { display: none; }

/* celular en vertical: todo el juego se gira 90° solo (se abre horizontal de una) */
html.rot, html.rot body { overflow: hidden; height: 100%; }
html.rot body { position: fixed; top: 0; left: 100vw; width: var(--W); height: var(--H); min-height: 0; transform: rotate(90deg); transform-origin: top left; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
html.rot #game { height: 100%; }
html.rot #game .stage { width: min(var(--W), calc(var(--H) * 16 / 9)); }
/* logo */
.uy-top .home-logo { width: 200px; height: 200px; border-radius: 22px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.45); flex: none; }
html.lowh .uy-top .home-logo, html.narrow .uy-top .home-logo { width: 110px; height: 110px; border-radius: 14px; }
html.lowh .uy-top { padding-top: 10px; }

/* ===================== CELULAR: interfaz propia (html.mob) ===================== */
html.mob, html.mob body { overflow: hidden; overscroll-behavior: none; }
html.mob body { min-height: 0; height: var(--H); -webkit-tap-highlight-color: transparent; }
html.mob #app { max-width: none; margin: 0; padding: 0; height: var(--H); overflow-y: auto; }
html.mob .screen:not(.mob) { padding: calc(2 * var(--u)) calc(3 * var(--u)); }
.screen.mob { height: 100%; animation: none; }
