:root{--bg:#071f20;--card:#123a35;--edge:#326153;--muted:#adcbbd;--ivory:#f6f0df;--mint:#4ed9a6;--yellow:#ffd044;color-scheme:dark}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 82% 0,#214a41c9,transparent 50%),var(--bg);color:var(--ivory);font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.5}.top{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#0b2928;border-bottom:1px solid var(--edge);padding:10px max(15px,calc((100vw - 1170px)/2))}.brand{display:flex;align-items:center;gap:9px}.brand img{width:110px;height:40px;object-fit:contain}.brand .xi{color:var(--yellow);font-size:23px;letter-spacing:-1px}.tag{font-size:10px;color:#ffe39c;font-weight:900;letter-spacing:.4px;border:1px solid #756539;background:#3b3422;padding:7px 9px;border-radius:7px}.exit,.subtle{border:1px solid #517e6a;background:#16493f;color:#f2f6e7;border-radius:9px;padding:10px 13px;font-size:12px;font-weight:800;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}.shell{max-width:1170px;margin:0 auto;padding:22px 16px 40px}.hero{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:20px}.eyebrow{font-size:10px;color:#aaf1c8;letter-spacing:1.25px;font-weight:900}.hero h1{font-size:clamp(23px,3.7vw,40px);font-weight:1000;letter-spacing:-1.5px;margin:8px 0;line-height:1.1}.hero h1 em{font-style:normal;color:var(--yellow)}.hero p{margin:0;color:var(--muted);font-size:13px;line-height:1.55;max-width:650px}.layout{display:grid;grid-template-columns:minmax(290px,.95fr) minmax(0,1.05fr);align-items:start;gap:17px}.market-column{display:flex;flex-direction:column;gap:12px}.market-card,.progress-card,.rules-card,.stadium{background:#10332f;border:1px solid var(--edge);border-radius:15px;padding:17px}.market-card{border-color:#568168}.section-head,.split{display:flex;align-items:center;justify-content:space-between;gap:12px}.pill{background:#255449;color:#c7f6d7;border-radius:20px;padding:7px 10px;font-size:10px;font-weight:900;white-space:nowrap;font-variant-numeric:tabular-nums}.pill.neutral{background:#274b43;color:#d1d9c9}.market-card h2{font-size:clamp(19px,2.6vw,26px);font-weight:1000;letter-spacing:-.7px;margin:16px 0 7px}.muted{color:var(--muted);line-height:1.5;font-size:12px}.offer-actions{display:flex;flex-direction:column;gap:11px;margin:18px 0 8px}.offer{display:flex;align-items:stretch;justify-content:space-between;text-align:left;gap:12px;width:100%;border:2px solid #5e936d;background:#174d3b;color:#f7f9e9;padding:15px;border-radius:11px;min-height:106px;transition:background .15s,border-color .15s}.offer:hover,.offer:focus-visible{border-color:#a3efc2;background:#1f6248}.offer.risk{background:#463d23;border-color:#957b41}.offer.risk:hover,.offer.risk:focus-visible{border-color:#f7d676;background:#615029}.offer small{font-size:10px;letter-spacing:1px;font-weight:900;display:block;margin-bottom:8px;color:#b7eecb}.offer.risk small{color:#ffe29d}.offer strong{font-size:16px;line-height:1.45;display:block}.offer b{font-size:18px;color:#f8d378;white-space:nowrap}.offer .go{margin-top:6px;display:block;font-weight:900;font-size:11px;opacity:.8}.selectedoffer{padding:13px 15px;border-radius:11px;margin:14px 0 10px;background:#1b5a46;border:1px solid #6d987b}.selectedoffer.risk{background:#544326;border-color:#a58c50}.selectedoffer .eyebrow{color:#ffde8b}.selectedoffer strong{font-size:16px;line-height:1.5;display:block;margin:7px 0}.player-label{display:block;margin:14px 0 7px;font-size:11px;font-weight:900;letter-spacing:.7px}.player-input{display:block;min-height:51px;width:100%;background:#f4f5e9;color:#113e2e;border:2px solid #b4ccb5;border-radius:9px;font-size:17px;padding:12px}.player-input::placeholder{color:#627e6c}.primary{border:0;background:var(--yellow);color:#143d2a;font-size:13px;font-weight:1000;border-radius:10px;box-shadow:0 4px 0 #917838;min-height:48px;padding:12px 14px}.primary:disabled{box-shadow:none}.answer-actions{display:flex;gap:9px;margin-top:13px}.answer-actions>*{flex:1}.quiet{border:1px solid #4c7463;background:#153f36;color:#d9efe2;border-radius:9px;padding:11px;font-size:12px;font-weight:800}.status{padding:10px 12px;border-radius:9px;border:1px solid #7d9d84;background:#214737;margin:12px 0;font-size:12px;line-height:1.5}.status.error{background:#5b302d;border-color:#b26f65;color:#ffe1d9}.status.ok{background:#235c42;border-color:#76ad89;color:#e4f9e1}.progress-card,.rules-card{padding:15px}.progress-card strong,.rules-card strong{font-size:13px}.progress-card .split span{font-size:11px;font-weight:800;color:#f5db94}.progress-track{background:#2b5547;border-radius:15px;height:9px;overflow:hidden;margin:12px 0}.progress-track div{width:0;height:100%;background:var(--yellow);transition:width .15s}.stats{font-size:11px;color:#b3d4c1;flex-wrap:wrap}.rules-card p,.pitchnote{font-size:12px;line-height:1.55;color:#accdba;margin:9px 0 0}.mini-tag{font-size:10px;color:#ffdc80;font-weight:900}.stadium{padding:11px}.stadium-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:5px 5px 12px;font-size:11px;font-weight:900;letter-spacing:.5px}.pitch{height:clamp(470px,49vw,660px);border-radius:10px;background:repeating-linear-gradient(0deg,#205d45 0%,#205d45 14.28%,#26714f 14.28%,#26714f 28.56%);position:relative;overflow:hidden}.pitch-lines{position:absolute;inset:0;width:100%;height:100%;opacity:.45;pointer-events:none}.shirt{width:clamp(63px,18%,103px);height:68px;position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:#255145d9;color:#eaf1e9;border-radius:9px;border:1px dashed #83ac91;padding:3px;z-index:1;box-shadow:0 3px 11px #092d2580}.shirt .jersey{width:28px;height:25px;display:flex;justify-content:center;align-items:center;color:white;background:#287755;font-size:11px;font-weight:900;clip-path:polygon(20% 0,42% 0,46% 9%,55% 9%,60% 0,80% 0,100% 25%,87% 44%,80% 40%,80% 100%,20% 100%,20% 40%,13% 44%,0 25%)}.shirt .short{display:block;font-size:10px;font-weight:900;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%}.shirt small{font-size:9px;font-weight:900;opacity:.85}.shirt.filled{background:#bcf1d1;color:#183d2f;border-color:#fff}.shirt.filled .jersey{background:#226f53}.shirt.allowed{background:#ffe08a;color:#183e2d;border:2px solid #fff0b0;box-shadow:0 0 0 3px #fff0ae55,0 4px 13px #06271e78}.shirt.allowed .jersey{background:#8b6b1e}.shirt:disabled{opacity:1;cursor:default}.shirt.filled:not(:disabled):hover{outline:2px solid #fff}.dot{display:inline-block;height:10px;width:10px;border-radius:2px}.empty-dot{background:#255145}.filled-dot{background:#bcf1d1}.allowed-dot{background:#ffe08a}.legend{display:flex;flex-wrap:wrap;gap:14px;color:#c6e2cb;font-size:11px;padding:12px 4px 4px}.legend span{display:flex;align-items:center;gap:5px}.pitchnote{padding:0 4px 5px;min-height:38px}.bottom{margin-top:22px;padding:15px 0;border-top:1px solid var(--edge);display:flex;gap:12px;align-items:center;flex-wrap:wrap}.bottom>div{flex:1 1 390px}.bottom p{color:#98bdb0;font-size:11px;line-height:1.5;margin:6px 0 0}.bottom strong{font-size:11px;letter-spacing:.7px}.toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:100;max-width:92vw;border-radius:8px;background:#e0f9df;color:#0e3c25;font-size:12px;font-weight:900;box-shadow:0 6px 20px #0008}.toast:not(:empty){padding:12px 18px}.overlay{position:fixed;inset:0;background:#041b19d9;z-index:90;display:flex;justify-content:center;align-items:center;padding:16px}.dialog-card{width:min(100%,530px);max-height:90dvh;overflow:auto;background:#133a31;border:1px solid #5e9575;padding:20px;border-radius:15px;box-shadow:0 12px 50px #0009}.dialog-card h2{font-size:23px;margin:10px 0}.dialog-card p{font-size:13px;line-height:1.6;color:#c2ddce}.dialog-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.dialog-actions>*{flex:1}.result-score{font-size:clamp(47px,8vw,68px);font-weight:1000;letter-spacing:-3px;color:#f5d36c;text-align:center}.result-score small{color:#bcd6c7;font-size:17px;letter-spacing:0}.result-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #476c58;font-size:13px}.result-chips{display:flex;gap:5px;flex-wrap:wrap;margin:15px 0}.result-chip{padding:7px;border:1px solid #54816b;background:#235343;color:#e8f5e5;border-radius:6px;font-size:11px;font-weight:750}.result-rank{font-size:19px;text-align:center;color:#ffdf87;font-weight:1000;margin:10px 0}.result-layout{display:flex;flex-direction:column;gap:10px}.empty-round{font-size:14px;color:#b6cebd;margin:14px 0}.deal-complete{padding:15px;background:#214a3a;border:1px solid #588568;border-radius:10px;margin:16px 0;font-size:13px;line-height:1.6}.mini-head{font-size:10px;color:#c1e8cf;font-weight:900;letter-spacing:1px}.action-link{font-size:12px;color:#d4efdf;text-decoration:underline}.position-reminder{color:#f5df96;font-size:12px;margin:10px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(max-width:760px){.layout{display:flex;flex-direction:column}.market-column{order:1;width:100%}.stadium{order:2;width:100%}.shell{padding:14px 11px 30px}.hero{align-items:start}.hero h1{font-size:26px}.hero p{font-size:12px}.market-card{padding:14px}.pitch{height:min(131vw,590px);min-height:430px}.tag{font-size:9px}.stadium .shirt{width:clamp(62px,18%,92px)}.bottom{align-items:stretch}.bottom .subtle{flex:1}.offer{min-height:90px}.top{padding:9px 12px}.exit{font-size:11px}.dialog-card{padding:17px}.overlay{align-items:flex-end;padding:0}.dialog-card{width:100%;border-radius:17px 17px 0 0;max-height:85dvh;padding-bottom:30px}}@media(max-width:365px){.tag{display:none}.hero{display:block}.hero>.subtle{margin-top:10px}.shirt{height:60px}.shirt .short{font-size:9px}.offer strong{font-size:14px}.market-card h2{font-size:21px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* ---- v0.6 ---- */
.hero-actions{display:flex;gap:8px;flex-wrap:wrap}.hud{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.chip{background:#16443b;border:1px solid #3f6f5d;color:#d8eee0;border-radius:20px;padding:7px 12px;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}.chip.gold{background:#3b3422;border-color:#8b7440;color:#ffe08a;margin-left:auto}.chip.warn{background:#5a4a14;border-color:#c9a53a;color:#ffe9a6}.chip.timer.warn{background:#5b302d;border-color:#d0786b;color:#ffe1d9;animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.6}}
.status.neutral{background:#1d4351;border-color:#5f8fa0;color:#e2f2f7}.wide{width:100%;margin-top:6px}
.last-card{background:#0f2f3a;border:1px solid #3f6f86;border-radius:15px;padding:15px}.last-card p{margin:8px 0 0;font-size:13px;line-height:1.5}.last-card .last-offer{color:#cfe6ef;font-weight:700}.last-card .muted{font-size:12px}
.timeline{display:flex;gap:4px;list-style:none;padding:0;margin:12px 0 0;flex-wrap:nowrap}.timeline li{flex:1 1 0;min-width:0;max-width:40px;white-space:nowrap;overflow:hidden;height:26px;border-radius:6px;background:#1c4a3f;display:flex;align-items:center;justify-content:center;font-size:12px;color:#9dc2b0;padding:0 3px}.timeline li.current{outline:2px solid var(--yellow);color:var(--yellow);font-weight:900}
.start-options{display:flex;flex-direction:column;gap:10px;margin-top:14px}.level-btn{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%;border:2px solid #4f8a6d;background:#174d3b;color:#f2f7ea;border-radius:12px;padding:13px 14px;min-height:64px}.level-btn strong{font-size:14px;letter-spacing:.3px}.level-btn span{font-size:12px;color:#c3dfcf;line-height:1.45}.level-btn em{font-style:normal;font-size:11px;color:#ffe08a;font-weight:800}.level-btn:hover,.level-btn:focus-visible{border-color:#a3efc2;background:#1f6248}.level-btn.daily{background:#3b3422;border-color:#a58c50}.level-btn.daily:hover{background:#4d4229}.level-btn.legend{background:#3a2430;border-color:#9a5a78}.level-btn.legend:hover{background:#4a2d3d}.start-options .mini-head{margin-top:6px}
.result-list{list-style:none;padding:0;margin:14px 0;display:flex;flex-direction:column;gap:6px}.result-list li{display:flex;justify-content:space-between;gap:10px;font-size:12px;line-height:1.4;padding:7px 9px;background:#19463a;border-radius:7px}.result-list li span:first-child{color:#b9d6c6}.result-list li span:last-child{text-align:right}.rar{color:#ffe08a;font-size:11px}.center{text-align:center}.eyebrow.center{display:block}
.shirt.filled.risky{background:#ffe9b0;border-color:#fff4d1}.shirt.moving{outline:3px solid var(--yellow)}.shirt small{white-space:nowrap}.noscript{padding:20px;text-align:center}
@media(max-width:760px){.hud{margin-bottom:10px}.chip{font-size:11px;padding:6px 10px}.hero-actions{width:100%}.hero-actions .subtle{flex:1}.result-list li{flex-direction:column;gap:2px}.result-list li span:last-child{text-align:left}}
@media(max-width:480px){.top .tag{display:none}}
/* durante la partida: el título se achica para dejar a la vista la decisión y la cancha */
body.en-juego .hero{margin-bottom:12px;align-items:center}body.en-juego .hero h1,body.en-juego .hero p{display:none}
#offer-actions .start-options{margin-top:0}
/* desafío de hoy ya jugado: bloqueado con cuenta regresiva */
.level-btn.locked{cursor:default;background:#2c2a20;border-style:dashed;border-color:#8b7a4a}.level-btn.locked:hover{background:#2c2a20;border-color:#8b7a4a}.level-btn.locked strong{color:#cfe9d6}.countdown{color:#ffe08a!important;font-weight:900;font-variant-numeric:tabular-nums}.small-btn{align-self:flex-start;margin-top:6px;padding:8px 12px;min-height:40px}
/* ---- pantalla cómoda (pedido de Felo): la partida entra en una pantalla, sin ruedita ---- */
/* Alto disponible = pantalla − barra de PIQUE (o − cabecera propia si el juego se abre suelto). */
body{--xi-top:0px}
body:not(.con-pique-barra){--xi-top:61px}
body.con-pique-barra .bottom a[href="../../index.html"],body.con-pique-barra .xi-volver{display:none!important} /* un solo «volver»: la barra */
.overlay{top:var(--pique-barra-alto,0px)}
@media(min-width:761px){
  body.en-juego .shell{height:calc(100dvh - var(--pique-barra-alto,0px) - var(--xi-top));display:flex;flex-direction:column;padding-top:10px;padding-bottom:10px;overflow:hidden}
  body.en-juego .hero{margin-bottom:6px;flex:none}
  body.en-juego .hud{margin-bottom:8px;flex:none}
  body.en-juego .layout{flex:1;min-height:0;grid-template-rows:minmax(0,1fr)}
  body.en-juego .market-column{min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain;padding-right:2px}
  body.en-juego .stadium{height:100%;min-height:0;display:flex;flex-direction:column}
  body.en-juego .pitch{flex:1;height:auto;min-height:0}
  body.en-juego .pitchnote{min-height:0}
  body.en-juego .bottom{display:none}
  body.en-juego .market-card h2{margin:10px 0 5px}
  body.en-juego .offer{min-height:84px;padding:12px}
  body.en-juego .offer-actions{margin:12px 0 6px;gap:9px}
}
@media(max-width:760px){
  /* celular: primero la decisión, después la cancha compacta, lo demás abajo */
  body.en-juego .shell{padding-top:8px}
  body.en-juego .hero{margin-bottom:6px}
  body.en-juego .hero .eyebrow{display:none}
  body.en-juego .hero-actions .subtle{padding:8px 10px;font-size:11px}
  body.en-juego .hud{margin-bottom:8px;gap:6px}
  body.en-juego .market-column{display:contents}
  body.en-juego .market-card{order:1}
  body.en-juego .stadium{order:2}
  body.en-juego .last-card{order:3}
  body.en-juego .progress-card{order:4}
  body.en-juego .rules-card{order:5}
  body.en-juego .layout{gap:10px}
  body.en-juego .market-card{padding:12px}
  body.en-juego .market-card h2{font-size:19px;margin:8px 0 4px}
  body.en-juego .offer{min-height:0;padding:11px 12px}
  body.en-juego .offer strong{font-size:14px;line-height:1.35}
  body.en-juego .offer small{margin-bottom:4px}
  body.en-juego .offer .go{display:none}
  body.en-juego .offer-actions{margin:10px 0 6px;gap:8px}
  body.en-juego .selectedoffer{margin:8px 0 6px;padding:10px 12px}
  body.en-juego .selectedoffer strong{font-size:14px;margin:4px 0}
  body.en-juego .player-label{margin:8px 0 5px}
  body.en-juego .answer-actions{margin-top:9px}
  body.en-juego .pitch{height:min(100vw,400px);min-height:330px}
  body.en-juego .stadium .shirt{height:54px;width:clamp(56px,17%,84px)}
  body.en-juego .stadium .shirt .jersey{width:22px;height:20px}
  body.en-juego .legend{display:none}
  body.en-juego #player-name{scroll-margin-top:calc(var(--pique-barra-alto,0px) + 12px)}
}
#pitch,#market-card{scroll-margin-top:calc(var(--pique-barra-alto,0px) + 8px)}

/* ayudas apagadas: sin textos de ayuda dentro de la partida */
body.sin-ayudas #market-hint,body.sin-ayudas #pitchnote,body.sin-ayudas .rules-card,body.sin-ayudas .legend{display:none!important}
/* reloj de Leyenda en pausa con un cartel abierto: la decisión queda tapada */
body.xi-reloj-pausa #market-card,body.xi-reloj-pausa #shirts{visibility:hidden}

/* «Seguir» una partida a medias: el primer botón de la pantalla inicial */
.level-btn.resume{background:#1f5c48;border-color:#a3efc2}.level-btn.resume strong{color:#fff}

/* otros juegos de PIQUE dentro de la tarjeta del desafío jugado */
.level-btn.locked .pique-otros{margin-top:8px;width:100%}
#answer-area .pique-otros{margin-top:10px}

/* ---- plan de mejoras: pasos chicos ---- */
/* 2.3 colores de clubes y selecciones (sin escudos) */
.club{white-space:nowrap}.club-dot{display:inline-block;width:.8em;height:.8em;border-radius:50%;margin:0 .28em 0 .05em;vertical-align:-.05em;background:linear-gradient(90deg,var(--c1) 50%,var(--c2) 50%);box-shadow:0 0 0 1.5px #0b2f28,0 0 0 2.5px #ffffff55}
/* 2.2 festejo: la camiseta recién fichada gira; papelitos con el once completo */
@keyframes xi-giro{0%{transform:translate(-50%,-50%) rotateY(90deg) scale(.8)}60%{transform:translate(-50%,-50%) rotateY(-12deg) scale(1.08)}100%{transform:translate(-50%,-50%) rotateY(0) scale(1)}}
.shirt.recien-fichado{animation:xi-giro .6s ease-out}
.papelitos{position:fixed;left:0;right:0;bottom:0;top:var(--pique-barra-alto,0px);pointer-events:none;overflow:hidden;z-index:95}
.papelitos i{position:absolute;top:-12px;width:8px;height:13px;border-radius:2px;animation:xi-cae linear forwards}
@keyframes xi-cae{to{transform:translateY(110vh) rotate(var(--giro))}}
@media(prefers-reduced-motion:reduce){.shirt.recien-fichado{animation:none}.papelitos{display:none}}
/* 1.5 pantalla inicial más corta en el celular */
@media(max-width:760px){
  body:not(.en-juego) .shell{padding-top:10px}
  body:not(.en-juego) .hero{margin-bottom:8px;flex-wrap:wrap}
  body:not(.en-juego) .hero h1{font-size:22px;margin:4px 0}
  body:not(.en-juego) .hero p{font-size:12px;line-height:1.4}
  body:not(.en-juego) .hero-actions .subtle{padding:8px 10px;font-size:11px}
  body:not(.en-juego) .hud{margin-bottom:8px}
  body:not(.en-juego) .market-card{padding:12px}
  body:not(.en-juego) .market-card h2{font-size:19px;margin:8px 0 4px}
  body:not(.en-juego) #offer-actions{margin:10px 0 6px}
  body:not(.en-juego) .start-options{gap:8px}
  body:not(.en-juego) .level-btn{padding:10px 12px;min-height:0}
  body:not(.en-juego) .stadium{order:2}
  body:not(.en-juego) .pitch{height:min(90vw,340px);min-height:280px}
}

/* 1.2 avisar un error en los datos */
.aviso-btn{display:inline-block;margin:6px 0 0;padding:5px 10px;border-radius:999px;border:1px solid currentColor;background:transparent;color:inherit;font:inherit;font-size:12px;font-weight:700;cursor:pointer;opacity:.9}
.aviso-btn:hover,.aviso-btn:focus-visible{opacity:1;background:#ffffff1a}
.aviso-ok{display:inline-block;margin:6px 0 0;font-size:12px;font-weight:700;opacity:.9}

/* Días anteriores: calendario de desafíos pasados */
.dias-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;margin:10px 0 4px;max-height:min(52vh,420px);overflow-x:hidden;overflow-y:auto;padding:2px}
.dia{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:left;padding:9px 10px;border-radius:12px;border:1px solid #ffffff2e;background:#ffffff10;color:inherit;font:inherit;cursor:pointer}
.dia b{font-size:13px;text-transform:capitalize}.dia span{font-size:12px;opacity:.85}
button.dia:hover,button.dia:focus-visible{background:#ffffff22;border-color:#ffd044}
.dia.new span{color:#ffd044;font-weight:700;opacity:1}.dia.going{border-color:#ffd044}
.dia.hecho{background:#4ed9a614;border-color:#4ed9a655}.dia.hecho span{color:#4ed9a6;opacity:1}
div.dia.hecho{cursor:default}
.dia small{font-size:11px;opacity:.7}
/* ---- Revisión 17/11: en el celular, letra de 14 px o más y botones de 44 px de alto o más ----
   Excepción: los rótulos dentro de las camisetas de la cancha (11 camisetas en 375 px no entran con letra más grande). */
@media(max-width:760px){
  .tag,.exit,.subtle,.eyebrow,.hero p,.pill,.muted,.offer small,.offer .go,.player-label,.primary,.quiet,.status,
  .progress-card strong,.rules-card strong,.progress-card .split span,.stats,.rules-card p,.pitchnote,.mini-tag,.stadium-head,
  .legend,.bottom p,.bottom strong,.toast,.dialog-card p,.result-row,.result-chip,.deal-complete,.mini-head,.action-link,
  .position-reminder,.chip,.last-card p,.last-card .muted,.timeline li,.level-btn span,.level-btn em,.result-list li,.rar,
  .aviso-btn,.aviso-ok,.dia b,.dia span,.dia small,
  body.en-juego .hero-actions .subtle,body:not(.en-juego) .hero p,body:not(.en-juego) .hero-actions .subtle{font-size:14px}
  .subtle,.exit,.quiet,.primary,.aviso-btn,.small-btn,#new-game,#restart{min-height:44px}
  .dia{min-height:58px}
  .eyebrow,.mini-tag,.pill,.mini-head,.offer small,.stadium-head{letter-spacing:.04em}
}
/* En la portada, «Nueva partida» repite lo que ya está a la vista (desafío de hoy y días anteriores). */
body:not(.en-juego) #new-game{display:none}
#offer-actions > .pique-otros{margin-top:12px}
/* «¿Está mal? Avisanos» en su propia línea, debajo del aviso de tarjeta */
.aviso-btn,.aviso-ok{display:flex;width:max-content;max-width:100%;align-items:center;margin:8px 0 0}

/* Aviso en la oferta: nadie de esta oferta entra en los puestos libres */
.aviso-puesto{display:block;margin-top:6px;font-size:13px;font-weight:700;color:#ffb84d}
@media(max-width:760px){.aviso-puesto{font-size:14px}}

/* Capitán: se elige al final; su camiseta lleva la cinta «C» */
.capitanes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.capitan-btn{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:48px;padding:8px 12px;border-radius:12px;border:1px solid #ffd04466;background:#ffd04414;color:inherit;font:inherit;cursor:pointer;text-align:left}
.capitan-btn b{font-size:14px}.capitan-btn span{font-size:13px;color:#ffd044}
.capitan-btn:hover,.capitan-btn:focus-visible{background:#ffd04430;border-color:#ffd044}
.shirt.elegible{outline:2px dashed #ffd044;outline-offset:2px;cursor:pointer}
.shirt.capitan{box-shadow:0 0 0 3px #ffd044}
.shirt .cinta{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;background:#ffd044;color:#0b2f28;font:800 11px/18px system-ui,sans-serif;font-style:normal;text-align:center}
.manana{margin:8px 0;font-weight:700;color:#ffd044}
@media(max-width:760px){.capitan-btn span{font-size:14px}}
.ficha{margin:6px 0;font-size:13px;line-height:1.5;color:#e6f3ea}
@media(max-width:760px){.ficha{font-size:14px}}

/* ---- Cancha y camisetas dibujadas (17/11) ---- */
.pitch{background:
  radial-gradient(ellipse at 50% 50%,#ffffff12,transparent 60%),
  repeating-linear-gradient(0deg,#1f6a4a 0 7.14%,#247753 7.14% 14.28%);
  box-shadow:inset 0 0 40px #04201a99}
.pitch-lines{opacity:.62}
.shirt .jersey{display:none}
.jersey-svg{width:30px;height:27px;display:block;filter:drop-shadow(0 1px 1px #0006)}
.jersey-svg .tela{fill:#2a8a62;stroke:#0d3b2c;stroke-width:1.2;stroke-linejoin:round}
.jersey-svg .cuello{stroke:#0d3b2c;stroke-width:1.2}
.jersey-svg text{font:900 12px system-ui,sans-serif;fill:#fff}
.jersey-svg.arquero .tela{fill:#e9822f}
.shirt.empty .jersey-svg .tela{fill:#ffffff22;stroke:#ffffff66;stroke-dasharray:2 2}
.shirt.allowed .jersey-svg .tela{fill:#c99a2a}
.shirt.filled .jersey-svg .tela{fill:#1f7a55}.shirt.filled .jersey-svg.arquero .tela{fill:#e9822f}
.shirt.filled.risky .jersey-svg .tela{fill:#b8862a}
.shirt.capitan .jersey-svg .tela{fill:#ffd044}.shirt.capitan .jersey-svg text{fill:#0b2f28}
/* el apellido entero: puede salir un poco del recuadro, sobre una franja */
.shirt .short{overflow:visible;text-overflow:clip;max-width:none;padding:1px 5px;border-radius:5px}
.shirt.filled .short{background:#ffffffd9}
.shirt .short.largo{letter-spacing:-.3px;font-size:9px}

/* ---- Celular, jugando: botones de arriba en una sola fila, con íconos ---- */
@media(max-width:760px){
  body.en-juego .hero-actions{flex-wrap:nowrap;gap:6px}
  body.en-juego .hero-actions .txt{display:none}
  body.en-juego .hero-actions .subtle{flex:0 0 auto;min-width:44px;padding:8px 12px}
  body.en-juego .hero-actions .pique-ayudas-boton{flex:1 1 auto}
}
body:not(.en-juego) #new-game .ico{display:none}
/* Desafío especial (primer sábado del mes): ilustración en la portada y como cabecera de la jugada */
.tema-banner{position:relative;margin:0 0 12px;border-radius:12px;overflow:hidden;border:1px solid #ffd04466;background:#3b3422}
.tema-banner img{display:block;width:100%;height:auto;aspect-ratio:12/5;object-fit:cover}
.tema-banner figcaption{position:absolute;left:0;right:0;bottom:0;padding:22px 12px 9px;background:linear-gradient(transparent,#0b2f28e6);color:#ffd044;font-weight:900;font-size:14px;letter-spacing:.06em}
.tema-banner:not(:has(img)) figcaption{position:static;background:none}
body.en-juego[data-tema="tema-uy"] .market-card{background:linear-gradient(#10332f40,#10332fb3 70px,#10332f 150px),url(img/tema-uy.webp) top/100% auto no-repeat}

/* ---- Dibujos de ChatGPT (20/11): fondos, temas, íconos y figuras ---- */
/* fondo de la pantalla inicial, a la hora dorada (solo antes de empezar) */
body:not(.en-juego){background:linear-gradient(90deg,#071f20f2 0%,#071f20cc 38%,#071f2066 70%,#071f2033),url(img/fondo-inicio.webp) center top/cover fixed no-repeat,var(--bg)}
@media(max-width:760px){body:not(.en-juego){background:linear-gradient(#071f20cc 0%,#071f20b3 35%,#071f20e6 75%),url(img/fondo-inicio-celu.webp) center top/cover fixed no-repeat,var(--bg)}}
/* cabecera del desafío especial mientras se juega (cualquier tema) */
body.en-juego[data-tema] .market-card{background:linear-gradient(#10332f40,#10332fb3 70px,#10332f 150px),var(--tema-img) top/100% auto no-repeat}
/* íconos dibujados */
.ico{display:inline-block;width:1.35em;height:1.35em;vertical-align:-.32em;margin-right:.3em;object-fit:contain;flex:none}
.ico.mini{width:1.15em;height:1.15em;vertical-align:-.25em;margin-right:.18em}
.offer small .ico{width:1.6em;height:1.6em;vertical-align:-.5em}
.hero-actions .subtle .ico{width:22px;height:22px;margin-right:6px;vertical-align:middle}
.hero-actions .subtle{gap:0}
.timeline li .ico{width:20px;height:20px;margin:0;vertical-align:middle}
.timeline li .ico.mini{width:12px;height:12px;position:relative;left:-4px;top:-6px}
.level-btn strong .ico{width:1.5em;height:1.5em}
.dia small .ico.mini{width:14px;height:14px}
@media(max-width:760px){body.en-juego .hero-actions .subtle .ico{margin-right:0}}
body:not(.en-juego) #new-game .ico{display:none}
/* figuras: mediocampista al elegir capitán; delantero (o defensor) en el resultado */
.figura{display:block;pointer-events:none;user-select:none}
.figura-capitan{float:right;width:84px;height:auto;margin:0 0 4px 8px;filter:drop-shadow(0 4px 6px #0007)}
.result-score{position:relative}
.figura-fin{position:absolute;left:4px;top:-4px;width:auto;height:118px;filter:drop-shadow(0 4px 6px #0007)}
@media(max-width:760px){.figura-fin{height:96px}.figura-capitan{width:64px}}

/* aviso por mail cuando el servidor no recibe avisos */
.aviso-mail{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;padding:6px 12px;border-radius:999px;border:1px solid currentColor;color:inherit;font-weight:700;text-decoration:none}
.aviso-mail:hover,.aviso-mail:focus-visible{background:#ffffff1a}
