main{width:940px!important;grid-template-columns:245px 675px!important}main>aside.p:last-child{display:none}.card{display:block!important;padding:11px 0!important}.portrait{display:none}.flag{display:inline-block;width:18px;height:12px;border:1px solid #142820;vertical-align:middle}.f0{background:linear-gradient(#c60 0 25%,#fc0 25% 75%,#c60 75%)}.f1{background:linear-gradient(90deg,#176c42 0 35%,#d42b32 35%)}.f2{background:linear-gradient(#70c8df 0 33%,white 33% 66%,#70c8df 66%)}.f3{background:linear-gradient(#269a54 0 50%,#f3d33b 50%)}.f4{background:linear-gradient(90deg,#1c49a0 0 33%,white 33% 66%,#d63232 66%)}.f5{background:linear-gradient(#6fc6dc 0 25%,white 25% 75%,#6fc6dc 75%)}.level{display:inline-block;background:#142820;color:#fff;border-radius:4px;padding:3px 7px;font-size:11px;font-weight:900;letter-spacing:.3px;margin-top:4px}.stars{display:inline-block;color:#f4bf27;font-size:16px;line-height:1;font-weight:900;letter-spacing:1px;margin-left:5px;text-shadow:1px 1px #142820,-1px -1px #142820}.bar{height:8px;border:1px solid #142820;border-radius:4px;overflow:hidden;margin-top:4px}.bar.capped i{background:#dc3d3d}.card b{font-size:15px;line-height:1.25}.card small{font-weight:800;color:#28654a;margin-left:3px}
.match-head{margin:-2px -2px 13px;padding:0 0 11px;border-bottom:3px solid #142820}.match-head h2{margin:0 0 8px;font-size:18px}.scoreboard{display:grid;grid-template-columns:minmax(0,1fr) 48px 22px 48px minmax(0,1fr);align-items:center;gap:6px;background:#142820;color:#fff;border:3px solid #142820;padding:8px 10px;box-shadow:4px 4px #c5a33e}.scoreboard strong{display:grid;place-items:center;min-height:45px;background:#f5f0df;color:#142820;font-size:31px;line-height:1;border-radius:3px}.scoreboard i{font-style:normal;font-size:22px;text-align:center;color:#b7dc4d}.team-side{min-width:0;font-size:10px;font-weight:900;letter-spacing:.2px;text-align:center;color:#f5f0df;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-side:last-child{color:#ffb7a8}.score-pop{animation:scorePop .42s ease-out}@keyframes scorePop{0%{transform:scale(1);background:#f5f0df}45%{transform:scale(1.32);background:#b7dc4d}100%{transform:scale(1);background:#f5f0df}}#feed{margin-top:2px}.tiebreak-title{margin-top:12px;padding:6px 8px;background:#142820;color:#f5f0df;border-bottom:3px solid #c5a33e;font-size:12px;font-weight:900;text-align:center}.tiebreak-title b{margin-left:8px;color:#b7dc4d;font-size:16px}.tiebreak-duel{margin:4px 0}.tiebreak-ball{display:grid;place-items:center;font-size:17px}.tiebreak-ball.home-win{color:#23a55a}.tiebreak-ball.away-win{color:#dc3d3d}.tiebreak-note{margin:0 0 8px;font-size:11px;font-weight:900;text-align:center}#match-actions{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:13px}#match-actions button{font-size:14px;padding:9px 20px;box-shadow:3px 3px #123}
.club-name{display:inline-block;padding:4px 8px;background:var(--club-bg,#174332);border:2px solid var(--club-border,#f5f0df);box-shadow:2px 2px var(--club-border,#f5f0df);color:var(--club-text,#d9ff69)!important;font-weight:900;line-height:1;letter-spacing:.25px}.team-side.club-name{display:block;padding:5px 6px;border-width:1px;box-shadow:none;font-size:10px;line-height:1.1;justify-self:stretch}
#music-toggle{position:fixed;right:16px;bottom:14px;z-index:15;border:3px solid #142820;background:#f5f0df;color:#142820;padding:8px 11px;box-shadow:3px 3px #102c34;font:900 12px/1 Arial,sans-serif;letter-spacing:.4px;cursor:pointer}#music-toggle.playing{background:#b7dc4d}@media(max-width:720px){#music-toggle{right:10px;bottom:10px;padding:7px 9px;font-size:10px}}
.training-plan{display:inline-block;margin:0 0 10px;padding:5px 8px;background:#142820;color:#f5f0df;font-size:12px;font-weight:900;letter-spacing:.5px}
.training-results{display:grid;gap:6px;margin-bottom:14px}.training-player{padding:7px;background:#d8e5cf;border-left:4px solid #23a55a;line-height:1.2}.training-player b{font-size:13px;font-weight:900}.training-player em{color:#147a57;font-style:normal;font-weight:900}.training-gain{display:inline-block;margin-left:4px;padding:2px 5px;background:#23a55a;color:#fff;font-size:10px;font-weight:900;border-radius:3px}
.start-screen{width:500px;max-width:calc(100vw - 70px)}.start-screen h2{margin-top:0}.start-screen h3{margin:20px 0 8px;font-size:14px}.team-city{display:grid;gap:3px;padding:9px 11px;border:3px solid #142820;background:#d8e5cf}.team-city small{font-size:10px;font-weight:900;letter-spacing:.5px}.team-city strong{font-size:21px;line-height:1.05}.start-screen label{display:block;margin:9px 0;font-size:11px;font-weight:900;letter-spacing:.4px}.start-screen input,.start-screen select{display:block;box-sizing:border-box;width:100%;margin-top:4px;padding:8px;border:3px solid #142820;background:#fff;font:700 14px Arial;color:#142820}.style-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:16px}.style-options button{min-height:92px;padding:8px;background:#e4dfc8;font-size:11px}.style-options button b{display:block;font-size:13px;margin-bottom:7px}.style-options button small{display:block;line-height:1.25}.style-options button.selected{background:#b7dc4d;box-shadow:3px 3px #123;transform:translate(-1px,-1px)}#start-run{display:block;margin-left:auto;padding:10px 18px;font-size:14px;box-shadow:3px 3px #123}
.start-screen{width:500px;max-width:calc(100vw - 70px)}.start-screen h2{margin-top:0}.start-screen h3{margin:20px 0 8px;font-size:14px}.team-city{display:grid;gap:3px;padding:9px 11px;border:3px solid #142820;background:#d8e5cf}.team-city small{font-size:10px;font-weight:900;letter-spacing:.5px}.team-city strong{font-size:21px;line-height:1.05}.start-screen label{display:block;margin:9px 0;font-size:11px;font-weight:900;letter-spacing:.4px}.start-screen input,.start-screen select{display:block;box-sizing:border-box;width:100%;margin-top:4px;padding:8px;border:3px solid #142820;background:#fff;font:700 14px Arial;color:#142820}.style-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:16px}.style-options button{min-height:92px;padding:8px;background:#e4dfc8;font-size:11px}.style-options button b{display:block;font-size:13px;margin-bottom:7px}.style-options button small{display:block;line-height:1.25}.style-options button.selected{background:#b7dc4d;box-shadow:3px 3px #123;transform:translate(-1px,-1px)}#start-run{display:block;margin-left:auto;padding:10px 18px;font-size:14px;box-shadow:3px 3px #123}#donate{display:table;margin:52px auto 0;padding:8px 14px;border:2px solid #d8a300;background:#fff1b8;color:#543800;font-size:11px;font-weight:900;letter-spacing:.7px;text-decoration:none;box-shadow:3px 3px #8c6b1e}#donate:hover,#donate:focus{background:#ffd95c;color:#142820}.support-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:52px}.support-actions #donate{margin:0}.support-actions #jornada-perfecta{display:grid;place-items:center;box-sizing:border-box;height:36px;min-width:142px;padding:4px 9px;border:2px solid #142820;background:#050505;box-shadow:3px 3px #123}.support-actions #jornada-perfecta:hover,.support-actions #jornada-perfecta:focus{transform:translate(-1px,-1px);box-shadow:4px 4px #123}.support-actions #jornada-perfecta img{display:block;max-width:124px;max-height:24px;object-fit:contain}
.country-picker{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;max-height:none;overflow:visible;padding:4px;border:2px solid #142820;background:#d8e5cf}.country-choice{display:grid;place-items:center;padding:3px!important;min-height:23px!important;background:#f5f0df!important;border:1px solid #142820!important}.country-choice .country-flag{width:22px;height:14px}.country-choice.selected{background:#b7dc4d!important;outline:2px solid #142820;transform:none!important;box-shadow:none!important}
.setup-active .app{visibility:hidden}
#division{display:inline-block;margin:4px 0 8px;padding:3px 6px;background:#142820;color:#f5f0df;font-size:10px;font-weight:900;letter-spacing:.6px}.map-shell[data-division="9"]{background:repeating-linear-gradient(#75513a 0 34px,#61402f 34px 68px)!important}.map-shell[data-division="8"]{background:repeating-linear-gradient(#856143 0 34px,#6d4c34 34px 68px)!important}.map-shell[data-division="7"]{background:repeating-linear-gradient(#8b7446 0 34px,#756038 34px 68px)!important}.map-shell[data-division="6"]{background:repeating-linear-gradient(#718447 0 34px,#60753b 34px 68px)!important}.map-shell[data-division="5"]{background:repeating-linear-gradient(#548749 0 34px,#46763e 34px 68px)!important}.map-shell[data-division="4"]{background:repeating-linear-gradient(#36884c 0 34px,#2c7440 34px 68px)!important}.map-shell[data-division="3"]{background:repeating-linear-gradient(#268c53 0 34px,#207b48 34px 68px)!important}.map-shell[data-division="2"]{background:repeating-linear-gradient(#208f59 0 34px,#197c4b 34px 68px)!important}.map-shell[data-division="1"]{background:repeating-linear-gradient(#19a05e 0 34px,#138a4f 34px 68px)!important}
.title{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 0 16px!important;color:#fff!important;font-size:25px!important;letter-spacing:.5px}.title .country-flag{width:27px;height:18px;border:2px solid #142820}.title em{padding:5px 8px;background:#142820;color:#b7dc4d;font-size:11px;font-style:normal;font-weight:900;letter-spacing:.8px}
.duel-name{display:inline-block;font-size:13px;line-height:1.15;font-weight:900}.duel-name em{color:#147a57;font-style:normal;font-weight:900}.duel-level{display:inline-block;margin-top:3px;padding:2px 5px;background:#142820;color:#fff;font-size:10px;font-weight:900;line-height:1;border-radius:3px}.duel span:last-child .duel-name em{color:#b3362a}
#offers,#replace-offers{display:flex;gap:6px}.scout-offer{flex:1;min-height:65px;padding:7px 5px!important;line-height:1.2}.scout-offer b{font-size:12px;font-weight:900}.scout-offer em,.scout-target em{color:#147a57;font-style:normal;font-weight:900}.scout-level{display:inline-block;margin-top:5px;padding:2px 4px;background:#142820;color:#fff;font-size:9px;font-weight:900;border-radius:3px}.scout-stars{margin-left:3px;color:#f4bf27;font-size:13px;font-weight:900;text-shadow:1px 1px #142820,-1px -1px #142820}#skip-scout{display:block;margin:18px auto 0;background:#e5bd48;color:#142820;border-color:#142820;font-size:11px}
.upgrade-player{display:block;box-sizing:border-box;width:100%;margin:7px 0;padding:10px!important;text-align:left;font-size:13px;line-height:1.3}.upgrade-player small{font-size:11px}.upgrade-player:disabled{opacity:.45}
.app aside.p:first-child>h2,.app aside.p:first-child>#division{display:none!important}

/* Stadium-like backdrop and a high-contrast club header. */
body{min-height:100vh;background:radial-gradient(ellipse at 50% -20%,#466b65 0,#294b50 42%,#19383f 100%)}
.title{width:fit-content;max-width:calc(100% - 16px);box-sizing:border-box;margin:0 auto 18px!important;padding:9px 14px!important;border:4px solid #142820;background:#f5f0df;color:#142820!important;box-shadow:5px 5px #102c34;text-shadow:none!important;font-weight:900}.title span{font-size:26px;font-weight:900;overflow-wrap:anywhere}.title .club-name{font-size:20px}.title .country-flag{flex:0 0 auto}.title em{flex:0 0 auto;background:#1d603f;color:#f5f0df;border:2px solid #142820}
.app{--field-box-height:790px}.app>aside.p:first-child{box-sizing:border-box;align-self:start;height:var(--field-box-height);margin-top:66px;overflow:auto}.app>aside.p:first-child::before{content:'SQUAD';display:block;margin:-2px 0 8px;padding:6px 8px;background:#142820;color:#f5f0df;font-size:12px;font-weight:900;letter-spacing:1px}.app>section{min-width:0}

/* Responsive layout: the map remains the focus, with the squad and dialogs usable on touch screens. */
@media (max-width:1000px){
  main{width:calc(100% - 32px)!important;grid-template-columns:210px minmax(0,1fr)!important;gap:14px!important;padding:16px!important;--field-box-height:min(790px,calc(112vw + 10px))}
  .map-shell{height:calc(var(--field-box-height) - 10px)!important}
  .title{font-size:22px!important}
}
@media (max-width:720px){
  body{min-width:0;overflow-x:hidden}
  main.app{width:100%!important;box-sizing:border-box;display:flex!important;flex-direction:column;gap:24px!important;padding:12px!important}
  main.app>section{order:1;width:100%;min-width:0}
  main.app>aside.p:first-child{order:2;width:100%;height:auto;margin-top:0;box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;padding:10px!important}
  main.app>aside.p:first-child::before{grid-column:1/-1;margin:-2px 0 2px;padding:5px 7px}
  main.app>aside.p:first-child .card{padding:8px 0!important;min-width:0}
  main.app>aside.p:first-child .card b{font-size:13px;overflow-wrap:anywhere}
  .map-shell{height:min(175vw,780px)!important;border-width:4px!important}
  .title{flex-wrap:wrap;gap:6px;margin:0 0 10px!important;font-size:20px!important;line-height:1.05;text-align:center}
  .title em{font-size:9px;padding:4px 6px}
  .title .country-flag{width:23px;height:15px}.title .club-name{font-size:17px}
  .node{font-size:8px;letter-spacing:0;text-shadow:1px 1px 0 #142820}.node-label{display:block;width:78px;margin:0 auto;font-size:0;line-height:1.1}.node-label::after{content:attr(data-short);font-size:8px;font-weight:900}.node[data-action="train5"] .node-label::after{content:'INDIVIDUAL'}.node[data-action="train2"] .node-label::after{content:'GROUP'}
  .node b{width:34px;height:34px;margin-bottom:2px;border-width:2px;border-radius:8px;font-size:17px}
  #modal{padding:10px;box-sizing:border-box}
  #dialog{box-sizing:border-box;width:min(100%,520px);max-height:calc(100svh - 20px);overflow:auto;padding:12px!important;border-width:4px!important;box-shadow:4px 4px #123}
  .match-head{margin:0 0 10px;padding-bottom:8px}.match-head h2{font-size:16px}
  .scoreboard{grid-template-columns:minmax(0,1fr) 40px 16px 40px minmax(0,1fr);gap:4px;padding:6px;box-shadow:3px 3px #c5a33e}
  .scoreboard strong{min-height:38px;font-size:25px}.scoreboard i{font-size:18px}.team-side{font-size:8px}
  .duel{grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);min-height:46px;align-items:stretch;margin:7px 0}.duel span{display:flex;flex-direction:column;justify-content:center;padding:5px;min-width:0}.duel>b{display:grid!important;place-items:center;align-self:stretch;min-width:34px}.duel-name{font-size:11px;overflow-wrap:anywhere}.duel-level{font-size:9px}
  .country-flag{max-width:18px;max-height:12px}.duel .country-flag{width:16px;height:11px}
  #offers,#replace-offers{display:grid;grid-template-columns:1fr;gap:7px}.scout-offer{min-height:0!important;padding:9px!important;text-align:left}.scout-offer b{font-size:13px}
  .upgrade-player{display:block;width:100%;margin:8px 0;padding:11px!important;text-align:left;font-size:13px;line-height:1.35}.upgrade-player small{font-size:11px}.upgrade-player:disabled{opacity:.45}
  .training-player{padding:8px}.training-player b{font-size:12px}
  .start-screen{width:100%;max-width:none}.start-screen h2{font-size:20px}.team-city strong{font-size:18px}
  .country-picker{grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;padding:3px}.country-choice{min-height:22px!important;padding:2px!important}.country-choice .country-flag{width:18px;height:12px}
  .style-options{grid-template-columns:1fr;gap:6px;margin-bottom:12px}.style-options button{min-height:58px;display:grid;grid-template-columns:130px 1fr;align-items:center;text-align:left}.style-options button b{margin:0;font-size:12px}.style-options button small{text-align:left}
  #start-run{width:100%;margin:0;padding:11px}
}
