/* «Simular partido» (carrera de DT): misma estética que los diálogos de la carrera. */
#simulateMatch[hidden]{display:none}
dialog.sim-dialog{padding:0;border:0;background:transparent;max-width:96vw;max-height:96dvh;overflow:visible;color-scheme:dark}
dialog.sim-dialog::backdrop{background:#000c}
.sim-card{box-sizing:border-box;width:min(600px,94vw);max-height:94dvh;overflow:auto;padding:16px 22px 18px;border:3px solid #e8e8df;background:linear-gradient(180deg,#141a06f2,#0b0e01f7);color:#f3f2e7;font-family:'Century Gothic',Arial,sans-serif;text-align:center;box-shadow:0 12px 45px #000a}
.sim-title{display:block;color:#d5cf93;letter-spacing:.14em;font-size:12px}
.sim-odds{display:flex;justify-content:center;gap:8px;margin:8px 0 4px;flex-wrap:wrap}
.sim-odd{padding:3px 10px;border-radius:14px;font-size:12px;border:1px solid currentColor}
.sim-odd.w{color:#9be27b}.sim-odd.d{color:#f3cb19}.sim-odd.l{color:#ff8a7a}
.sim-board{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:10px 0 6px}
.sim-team{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:13px;min-width:0}
.sim-team span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sim-crest{width:46px;height:50px;object-fit:contain}
.sim-mid{display:flex;flex-direction:column;align-items:center}
.sim-score{font-size:44px;font-weight:400;color:#fff;text-shadow:2px 3px #000;line-height:1.1}
.sim-score.pop{animation:sim-pop .45s ease-out}
@keyframes sim-pop{0%{transform:scale(1.35);color:#f3cb19}100%{transform:scale(1)}}
.sim-clock{font-size:14px;color:#f3cb19;letter-spacing:.06em}
.sim-progress{height:6px;border-radius:3px;background:#0009;border:1px solid #69684c;overflow:hidden;margin:4px 0 10px}
.sim-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#f3cb19,#9be27b);transition:width .09s linear}
.sim-feed{list-style:none;margin:0 0 10px;padding:0;min-height:96px;max-height:180px;overflow:auto;text-align:left}
.sim-feed li{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px;align-items:center;padding:5px 8px;margin:3px 0;border-left:4px solid #69684c;background:#0006;font-size:13px;animation:sim-in .3s ease-out}
.sim-feed li.mine{border-left-color:#9be27b}.sim-feed li.theirs{border-left-color:#ff8a7a}
.sim-feed li b{color:#f3cb19;font-weight:700}.sim-feed li small{color:#a9a68a;font-size:11px}
.sim-feed li.sim-half{display:block;text-align:center;color:#d5cf93;border-left-color:#d5cf93;font-size:12px}
@keyframes sim-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1}}
.sim-actions{display:flex;justify-content:center;gap:10px}
.sim-actions button{font-size:14px;padding:7px 18px;border-width:2px}
.sim-actions button[hidden]{display:none}
.sim-outcome{margin:10px 0 0;font-size:13px}.sim-outcome.w{color:#9be27b}.sim-outcome.d{color:#f3cb19}.sim-outcome.l{color:#ff8a7a}
@media(max-height:500px) and (orientation:landscape){.sim-card{padding:8px 14px 10px}.sim-score{font-size:30px}.sim-crest{width:30px;height:32px}.sim-feed{min-height:60px;max-height:110px}.sim-board{margin:4px 0}}
/* En la pantalla previa: a la izquierda de «JUGAR», en celeste para distinguirlo. */
#simulateMatch{background:linear-gradient(180deg,#8fd3ff,#3c9fd9);border-color:#e9f7ff;color:#06263a;text-shadow:none}
#simulateMatch:hover,#simulateMatch:focus-visible{background:linear-gradient(180deg,#b3e2ff,#55b3ea)}
/* Copas que se miran sin jugarlas. */
#careerCompetitions button.watch-only-cup{opacity:.85;border-style:dashed}
body.watching-cup #simulateMatch{display:none!important}
/* Carrera de DT: oferta de selección y cargo. */
dialog.mn-offer{padding:0;border:0;background:transparent;max-width:96vw;max-height:96dvh;color-scheme:dark}
dialog.mn-offer::backdrop{background:#000c}
.mn-card{box-sizing:border-box;width:min(560px,94vw);max-height:94dvh;overflow:auto;padding:18px 24px;border:3px solid #e8e8df;background:linear-gradient(180deg,#141a06f2,#0b0e01f7);color:#f3f2e7;font-family:'Century Gothic',Arial,sans-serif;text-align:center;box-shadow:0 12px 45px #000a}
.mn-kicker{display:block;color:#8fd3ff;letter-spacing:.14em;font-size:12px}
.mn-flag{width:72px;height:48px;object-fit:cover;margin:10px auto 4px;display:block;border:2px solid #e8e8df}
.mn-card h2{margin:6px 0;font-size:22px;font-weight:400;color:#fff}
.mn-text{font-size:13px;color:#e9e6c8;margin:4px 0 8px}
.mn-facts{list-style:none;padding:0;margin:6px 0 12px;display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.mn-facts li{padding:3px 10px;border:1px solid #69684c;border-radius:12px;font-size:12px}
.mn-actions{display:flex;justify-content:center;gap:10px}.mn-actions button{font-size:14px;padding:7px 20px;border-width:2px}
.mn-note{font-size:11px;color:#a9a68a;margin:8px 0 0}
.mn-note-line{margin:6px 0 0;font-size:13px;color:#8fd3ff;text-align:center}.mn-note-line[hidden]{display:none}
.mn-history{margin:8px 0;padding:8px 12px;border:1px solid #69684c;border-left:4px solid #8fd3ff;background:#0006;text-align:left}
.mn-history h3{margin:0 0 4px;font-size:15px;font-weight:400;color:#8fd3ff}.mn-history p,.mn-history li{font-size:12px;color:#e9e6c8;margin:2px 0}
@media(max-height:500px) and (orientation:landscape){.mn-card{padding:8px 14px}.mn-card h2{font-size:16px}.mn-flag{width:48px;height:32px;margin:4px auto}.mn-facts{margin:4px 0 6px}}
/* Pelota pixel art delante del goleador. */
.sim-goal .px-label{display:inline-flex;align-items:center;gap:6px}
.sim-goal .px-icon{width:14px;height:14px;image-rendering:pixelated;flex:none}

/* Cabezones runtime recovery epoch 1 */
