#competitionDifficulty{width:min(600px,90vw);max-height:92dvh;overflow:auto;padding:24px 32px;color:#f4f3e8;border:2px solid #777c53;background:radial-gradient(ellipse at 90% 30%,#23493470,transparent 65%),#10160c;box-shadow:0 16px 80px #000b}
#competitionDifficulty::backdrop{background:#000c;backdrop-filter:blur(3px)}
#difficultyTitle{font-size:clamp(24px,4vw,34px);font-weight:normal;background:#e8443e;text-align:center;padding:14px 6px;margin:0 -10px 14px;transform:rotate(-1deg);box-shadow:6px 5px #9f302c}
.difficulty-context{text-align:center;color:#d8d39f;font-size:14px}.difficulty-levels{display:grid;gap:8px;margin:22px 0}.difficulty-choice{display:flex;align-items:center;gap:18px;padding:10px 14px;cursor:pointer;font-size:clamp(20px,3vw,28px);position:relative}.difficulty-choice:hover{background:#ffffff0a}.difficulty-trophy{width:42px;text-align:center}.difficulty-choice input{position:absolute;left:75px;width:40px;height:40px;opacity:0}.difficulty-check{width:40px;height:40px;box-sizing:border-box;border:3px solid #edca1c;border-radius:50%;background:#45483c;flex-shrink:0}.difficulty-choice input:checked+.difficulty-check::after{content:'✓';display:block;color:#f4d21e;font:38px/30px Arial;text-align:center}.difficulty-choice input:focus-visible+.difficulty-check{outline:2px solid #fff;outline-offset:5px}.difficulty-actions{display:flex;justify-content:center;gap:16px;padding-top:10px}.difficulty-actions button{min-width:140px}
@media(max-height:500px) and (orientation:landscape){#competitionDifficulty{padding:12px 28px;width:min(560px,86vw)}#difficultyTitle{padding:6px;font-size:25px;margin-bottom:7px}.difficulty-context{margin:5px}.difficulty-levels{margin:7px 0;gap:0}.difficulty-choice{font-size:21px;padding:5px 14px;gap:14px}.difficulty-check{width:30px;height:30px}.difficulty-choice input:checked+.difficulty-check::after{font-size:29px;line-height:23px}.difficulty-choice input{height:30px}.difficulty-actions{padding:4px}.difficulty-actions button{min-height:34px;padding:4px 18px}}

/* Three levels per column, IMPOSIBLE centred underneath. */
.difficulty-levels{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,auto);grid-auto-flow:column;column-gap:10px}
.difficulty-choice[data-level=impossible]{grid-column:1/-1;grid-row:4;justify-self:center}
.difficulty-choice{font-size:clamp(18px,2.4vw,24px)}
.difficulty-choice > span:last-child{display:flex;flex-direction:column;line-height:1.05}
.difficulty-recommended{font-size:.5em;letter-spacing:.04em;text-transform:uppercase;color:#f4d21e}
.difficulty-choice[data-level=ultimate]{background:#f4d21e14;border-radius:8px}
#competitionDifficulty{width:min(680px,94vw)}
@media(max-width:520px){#competitionDifficulty{padding:18px 10px}.difficulty-levels{column-gap:4px}.difficulty-choice{gap:6px;padding:6px 4px;font-size:16px}.difficulty-choice .difficulty-check{width:28px;height:28px;flex:0 0 28px}.difficulty-choice input:checked+.difficulty-check::after{font-size:26px;line-height:26px}.difficulty-trophy{font-size:15px}.difficulty-choice input{left:28px;width:28px;height:28px}}
@media(max-width:400px){.difficulty-trophy{display:none}.difficulty-choice{font-size:15px;gap:5px;padding:6px 2px}.difficulty-choice input{left:2px}.difficulty-recommended{font-size:8px}}
@media(max-width:400px){#competitionDifficulty button{min-width:0;padding:10px 12px;font-size:14px}#competitionDifficulty form>div:last-child,#competitionDifficulty .difficulty-actions{gap:8px;flex-wrap:wrap;justify-content:center}}
/* Retro TV graphics use the original matchup DOM, with a layout for each edition. */
#hud[data-retro]{overflow:visible}
#hud[data-retro] .tv-board{
 --retro-text:clamp(12px,2.22cqw,25px);
 --retro-row:clamp(18px,3.10cqw,36px);
 --retro-pad:clamp(4px,.75cqw,9px);
 position:relative;
 width:max-content;height:auto;display:flex;gap:0;align-items:center;
 transform:none;font:800 var(--retro-text)/1 Arial,Helvetica,sans-serif;
 filter:drop-shadow(0 2px 3px #0009);pointer-events:none;
}
#hud[data-retro] #aggregateScore{
 position:absolute;right:1.5cqw;z-index:1;
}
@container (max-width:520px){
 #hud[data-retro] .tv-board{--retro-text:clamp(8.5px,2.56cqw,13px);--retro-row:clamp(14px,3.8cqw,21px)}
}
#hud[data-retro] :is(.tv-match,.tv-clock){height:var(--retro-row);background:none}
#hud[data-retro] .tv-team{
 flex:0 0 auto;min-width:3.25em;padding:0 var(--retro-pad);gap:0;background:none;color:inherit;
}
#hud[data-retro] .tv-team span{font:inherit;letter-spacing:.02em;overflow:visible}
#hud[data-retro] .tv-team img{display:none}
#hud[data-retro] .tv-result{
 align-self:center;width:auto;height:100%;border:0;padding:0 .25em;
 gap:.15em;font:inherit;color:inherit;background:none;
}
#hud[data-retro] .tv-result b{flex:0 0 auto;min-width:.75em}
#hud[data-retro] .tv-dash{font:inherit;font-weight:400}
#hud[data-retro] .tv-clock{
 min-width:3.7em;padding:0 .45em;gap:.35em;letter-spacing:.035em;font-size:.93em;
}
#hud[data-retro] .tv-clock #period{font-size:.74em}
#hud[data-retro] :is(.tv-brand,.tv-season){display:none}
#hud[data-retro] .tv-brand{font:inherit}
#hud[data-retro] .tv-brand img{width:64%;height:64%;object-fit:contain}
#hud[data-retro][data-golden="true"] .tv-clock{font-size:.8em!important}

/* France 1998 · the international feed's blue ribbon, gold scores and hanging flags. */
#hud[data-retro=mundial1998] .tv-board{
 --retro-text:clamp(9px,1.92cqw,21px);
 display:grid;grid-template-areas:'time' 'match';justify-items:stretch;
 width:min(48cqw,22em);gap:.16em;padding-bottom:.95em;color:#fcfcfa;
}
#hud[data-retro=mundial1998] .tv-match{
 grid-area:match;position:relative;isolation:isolate;align-items:center;height:1.65em;
}
#hud[data-retro=mundial1998] .tv-match::before{
 content:'';position:absolute;inset:0;z-index:-1;
 background:linear-gradient(#2843727a,transparent 22%,#00153912 67%,#142327b0),linear-gradient(96deg,#131b24 1%,#122341 45%,#173eae 100%);
 clip-path:polygon(0 0,25% 13%,50% 24%,75% 13%,100% 0,100% 100%,75% 88%,50% 77%,25% 88%,0 100%);
}
#hud[data-retro=mundial1998] .tv-team{
 position:relative;flex:1;height:100%;min-width:0;padding:0 .44em;
 font-style:italic;text-shadow:0 1px 2px #020811;
}
#hud[data-retro=mundial1998] .tv-team-left{justify-content:flex-start}
#hud[data-retro=mundial1998] .tv-team-right{justify-content:flex-end}
#hud[data-retro=mundial1998] .tv-team span{letter-spacing:.12em}
#hud[data-retro=mundial1998] .tv-team img{
 position:absolute;top:calc(100% - .1em);display:block;width:1.68em;height:1.06em;
 object-fit:cover;clip-path:polygon(0 3%,32% 10%,63% 3%,100% 0,100% 94%,66% 100%,34% 93%,0 100%);
}
#hud[data-retro=mundial1998] #leftBadge{left:.12em}
#hud[data-retro=mundial1998] #rightBadge{right:.12em}
#hud[data-retro=mundial1998] .tv-result{
 gap:.22em;color:#ffce55;font-style:italic;letter-spacing:.06em;text-shadow:0 1px 2px #100d0b;
}
#hud[data-retro=mundial1998] .tv-clock{
 grid-area:time;position:relative;justify-self:end;margin-right:.35em;
 min-width:3.6em;height:1.45em;padding:0 .3em;
 border-top:.25em solid #233661;background:#efedf2;color:#121a31;font-size:.8em;
}
#hud[data-retro=mundial1998] #period{
 position:absolute;right:100%;bottom:56%;padding:.06em .22em;
 background:#f5f4f2;color:#171c2b;font-size:.78em;
}

/* Champions 2004/05 · pale stopwatch panel and an uninterrupted dark score bar. */
#hud[data-retro="2005"] .tv-board{
 --retro-text:clamp(9px,1.93cqw,21px);
 --retro-row:1.17em;
 border-block:1px solid #a9afbdc7;color:#f4f5fa;background:#111628;
}
#hud[data-retro="2005"] .tv-clock{
 order:-1;min-width:4.55em;padding:0 .57em;font-size:.9em;font-weight:600;letter-spacing:0;
 color:#1b1c29;background:linear-gradient(90deg,#b4b4c4,#cccbd3 82%,#9296ad);
}
#hud[data-retro="2005"] .tv-match{background:linear-gradient(90deg,#101429,#0b0e1b 50%,#16192b)}
#hud[data-retro="2005"] .tv-team{min-width:3.3em;padding:0 .45em}
#hud[data-retro="2005"] .tv-result{gap:.13em;color:#d2d5dd;font-weight:500}
#hud[data-retro="2005"] .tv-result b{font-weight:600}

/* Copa América 2011 · Univision's blue wings, round flags and clock below. */
#hud[data-retro=copaamerica2011] .tv-board{
 --retro-text:clamp(9px,1.9cqw,22px);
 --retro-row:1.6em;
 --copa-metal:linear-gradient(#f8ffff,#c5eff3 21%,#eefcf7 70%,#c7e9ef);
 display:grid;grid-template-columns:auto auto;grid-template-areas:'brand match' 'time time';
 align-items:stretch;color:#f8ffff;
}
#hud[data-retro=copaamerica2011] .tv-brand{
 display:flex;grid-area:brand;width:1.65em;height:var(--retro-row);
 border:1px solid #a1bdc7;border-right:0;border-radius:.27em 0 0 .22em;background:var(--copa-metal);
}
#hud[data-retro=copaamerica2011] .tv-brand img{width:73%;height:77%}
#hud[data-retro=copaamerica2011] .tv-match{
 grid-area:match;overflow:hidden;align-items:center;
 border:1px solid #8bb6cf;border-left:0;border-radius:0 .28em .22em 0;background:var(--copa-metal);
}
#hud[data-retro=copaamerica2011] .tv-team{
 min-width:0;height:100%;gap:.27em;padding:0 .25em 0 .46em;
 color:#f5fcff;background:linear-gradient(#3976e1,#184ab9 48%,#103286);
}
#hud[data-retro=copaamerica2011] .tv-team-left{background:linear-gradient(90deg,transparent 62%,#d7f4ef 100%),linear-gradient(#3976e1,#184ab9 48%,#103286)}
#hud[data-retro=copaamerica2011] .tv-team-right{
 padding:0 .46em 0 .25em;
 background:linear-gradient(270deg,transparent 62%,#d7f4ef 100%),linear-gradient(#3976e1,#184ab9 48%,#103286);
}
#hud[data-retro=copaamerica2011] .tv-team-left span{order:-1}
#hud[data-retro=copaamerica2011] .tv-team span{
 min-width:2.3em;text-align:center;font-size:.96em;text-shadow:0 1px 2px #102560;
}
#hud[data-retro=copaamerica2011] .tv-team img{
 display:block;width:1.2em;height:1.2em;object-fit:cover;border:1px solid #ddfbf8;border-radius:50%;
}
#hud[data-retro=copaamerica2011] .tv-result{gap:0;padding:0;color:#161d21;font-size:1.14em}
#hud[data-retro=copaamerica2011] .tv-result b{
 display:grid;place-items:center;min-width:1.74em;height:100%;padding-inline:.12em;
}
#hud[data-retro=copaamerica2011] #rightScore{border-left:1px solid #a5cfde}
#hud[data-retro=copaamerica2011] .tv-dash{display:none}
#hud[data-retro=copaamerica2011] .tv-clock{
 grid-area:time;justify-self:start;min-width:5em;height:1.2em;padding:0 .42em;
 background:linear-gradient(#26364c,#10141d 76%);border:1px solid #90acb7;border-top:0;
 border-radius:0 0 .18em .18em;color:#fff;font-size:.83em;
}

/* Champions 2003/04 · original broadcast of the Porto–Monaco final. */
#hud[data-retro="2004"] .tv-board{
 --retro-row:clamp(16px,2.95cqw,33px);
 gap:0;background:#090d18e8;border-radius:.2em;overflow:hidden;
}
#hud[data-retro="2004"] .tv-brand{
 display:flex;order:-2;width:1.23em;height:var(--retro-row);
 overflow:hidden;background:#25385b;
}
#hud[data-retro]:is([data-retro="2004"],[data-retro="2012"]) .tv-brand img{
 flex:none;width:92%;height:92%;object-fit:contain;
 filter:drop-shadow(0 1px 2px #9cbcff);
}
#hud[data-retro="2004"] .tv-clock{
 order:-1;min-width:3.35em;padding-inline:.25em;
 color:#eef3ff;background:linear-gradient(115deg,#283b66,#1b2848 78%,#101a36);
}
#hud[data-retro="2004"] .tv-match{background:#0a1021e8}
#hud[data-retro="2004"] .tv-team{min-width:2.65em;padding-inline:.36em}
#hud[data-retro="2004"] .tv-result{
 color:#fff;background:#010406;padding-inline:.22em;font-size:.96em;
}

/* Champions 2011/12 · NOS broadcast of the Bayern–Chelsea final. */
#hud[data-retro="2012"] .tv-board{gap:0}
#hud[data-retro="2012"] .tv-clock{
 order:-1;background:linear-gradient(#3175b7,#145084 58%,#0b315d);
 border-radius:0;padding-left:.22em;
}
#hud[data-retro="2012"] .tv-match{background:#09101bdf;border-radius:0 .3em .3em 0}
#hud[data-retro="2012"] .tv-result{
 height:80%;padding:0 .36em;border-radius:.34em;
 color:#171f2c;background:linear-gradient(#fff,#d9dfeb);
 box-shadow:inset 0 -2px 0 #a2adbd;
}

/* South Africa 2010 · orange clock and cream team panels. */
#hud[data-retro=mundial2010] .tv-board{
 --retro-text:clamp(11px,2.3cqw,25px);
 display:grid;justify-items:center;color:#fff;
}
#hud[data-retro=mundial2010] .tv-clock{
 grid-row:1;width:84%;height:1.1em;min-width:0;padding-inline:.9em;
 border-radius:.95em .95em 0 0;color:#fff7e8;text-shadow:0 1px 2px #501103;
 background:linear-gradient(#ffbd55 0%,#fa781d 18%,#ed4c04 48%,#b02c02 85%,#8c2103);
 clip-path:polygon(0 100%,5% 24%,10% 0,90% 0,95% 24%,100% 100%);
 font-size:.99em;letter-spacing:0;
}
#hud[data-retro=mundial2010] .tv-match{
 grid-row:2;height:1.38em;overflow:hidden;border-radius:0 0 1.36em 1.36em;
 background:linear-gradient(#b7826c 0%,#e6b9a4 14%,#fff0dc 58%,#dfaf98 100%);
}
#hud[data-retro=mundial2010] .tv-team{
 min-width:3.55em;padding-inline:.46em;color:#29120f;text-shadow:0 1px 0 #fff1;
}
#hud[data-retro=mundial2010] .tv-result{
 min-width:4.25em;padding-inline:.68em;gap:.68em;margin-inline:-.23em;
 border-radius:0 0 1.18em 1.18em;color:#fff6e7;text-shadow:0 1px 2px #671b02;
 background:linear-gradient(#fabb52 0%,#ff8a26 22%,#e64c04 65%,#ba2900 90%,#8e2209);
 box-shadow:inset 0 1px 2px #963804,inset 0 -2px 2px #842503;
 clip-path:polygon(0 0,100% 0,92% 88%,86% 100%,14% 100%,8% 88%);
}
#hud[data-retro=mundial2010] .tv-dash{display:none}
@container (max-width:520px){#hud[data-retro=mundial2010] .tv-board{--retro-text:clamp(9px,2.65cqw,13px)}}

/* Brazil 2014 · Globo broadcast, with flags outside the pale score cells. */
#hud[data-retro=mundial2014] .tv-board{
 --flag-width:2.42em;
 display:grid;justify-items:center;padding:.14em calc(var(--flag-width) - .12em) 0;
}
#hud[data-retro=mundial2014] .tv-match{
 position:relative;z-index:1;height:1.42em;color:#112e4b;
 background:linear-gradient(#acb6bd,#fff 27%,#edf2f3 69%,#9caab2);
 border-block:1px solid #c2cbd0;border-radius:.18em;
}
#hud[data-retro=mundial2014] .tv-team{
 position:relative;z-index:-1;padding:0 .42em;min-width:2.7em;
}
#hud[data-retro=mundial2014] .tv-team img{
 position:absolute;display:block;top:50%;height:1.73em;width:var(--flag-width);
 transform:translateY(-50%);object-fit:cover;border:0;
 filter:brightness(.92) drop-shadow(0 1px 0 #151d27aa);
}
#hud[data-retro=mundial2014] #leftBadge{right:calc(100% - .12em);border-radius:.47em .12em .14em .47em}
#hud[data-retro=mundial2014] #rightBadge{left:calc(100% - .12em);border-radius:.12em .47em .47em .14em}

#hud[data-retro=mundial2014] .tv-result{
 padding:0 .67em;color:#fff;gap:.08em;font-size:1.14em;
 background:linear-gradient(#499bcd,#3178b0 52%,#1b527d);
 clip-path:polygon(0 0,100% 0,91% 73%,83% 100%,17% 100%,9% 73%);
}
#hud[data-retro=mundial2014] .tv-clock{
 width:calc(100% - 1.45em);height:1.36em;margin-top:-.11em;
 color:#fff;background:linear-gradient(#214512,#4c852b 65%,#325f1d);font-size:.86em;
 clip-path:polygon(0 0,100% 0,98% 84%,96% 100%,4% 100%,2% 84%);
}

/* Korea/Japan 2002 · two rows of silver ovals and round flags. */
#hud[data-retro=mundial2002] .tv-board{
 --retro-text:clamp(10px,2.02cqw,22px);
 --medallion:linear-gradient(165deg,#e8eef1,#b2bec8 50%,#d8e0e6);
 display:grid;grid-template-columns:auto auto;grid-template-areas:'left left-score' 'right right-score' 'time time';
 gap:.13em .05em;color:#111e29;
}
#hud[data-retro=mundial2002] :is(.tv-match,.tv-result){display:contents}
#hud[data-retro=mundial2002] .tv-dash{display:none}
#hud[data-retro=mundial2002] .tv-team-left{grid-area:left}
#hud[data-retro=mundial2002] .tv-team-right{grid-area:right}
#hud[data-retro=mundial2002] .tv-team{
 display:flex;justify-content:flex-start;gap:0;padding:0;color:inherit;
}
#hud[data-retro=mundial2002] .tv-team img{
 display:block;width:1.45em;height:1.45em;object-fit:cover;object-position:42% center;
 border:.13em solid #cbd3d9;border-radius:50%;
 box-shadow:inset 0 0 0 1px #29343c,0 0 0 1px #58636b;
}
#hud[data-retro=mundial2002] .tv-team span{
 display:grid;place-items:center;width:3.15em;height:1.08em;margin-left:-.1em;
 border-radius:50%;background:var(--medallion);letter-spacing:.015em;
 box-shadow:inset 0 1px 1px #fff9,0 1px 1px #0006;
}
#hud[data-retro=mundial2002] #leftScore{grid-area:left-score}
#hud[data-retro=mundial2002] #rightScore{grid-area:right-score}
#hud[data-retro=mundial2002] .tv-result b{
 display:grid;place-items:center;align-self:center;width:1.08em;height:1.08em;
 border-radius:50%;background:var(--medallion);color:inherit;
 box-shadow:inset 0 1px 1px #fff9,0 1px 1px #0006;
}
#hud[data-retro=mundial2002] .tv-clock{
 grid-area:time;justify-self:center;min-width:0;height:1.2em;border-radius:1em;
 color:#f3f6f7;background:#27333deb;font-size:.55em;
}

/* Libertadores 2000 · metallic frame, black panels and separate period. */
#hud[data-retro=libertadores2000] .tv-board{
 --retro-text:clamp(10px,2.0cqw,22px);
 --metal:linear-gradient(#dfe2e1,#6b716d 24%,#c3c7c5 43%,#656b68 74%,#e5e6db);
 display:grid;grid-template-columns:1.75em 1fr;grid-template-areas:'score score' 'period time';
 gap:.11em 0;color:#ede2bd;font-style:italic;
}
#hud[data-retro=libertadores2000] .tv-match{
 grid-area:score;position:relative;justify-content:center;align-items:center;
 height:1.48em;min-width:9.5em;padding-inline:1.4em;
 border-block:.13em solid #69726e;background:linear-gradient(#191b19,#030404 33%,#030404 83%,#222723);
}
#hud[data-retro=libertadores2000] .tv-match::before,
#hud[data-retro=libertadores2000] .tv-match::after{
 content:'';position:absolute;bottom:-.12em;width:1.35em;height:1.92em;
 border-radius:46% 25% 4% 4%;
 background:linear-gradient(90deg,#444b48,#d0d5d2 15%,#f1f1ec 27%,#656d67 46%,#c6cbc6 58%,#858b87 76%,#262c29 92%);
 transform:skew(-13deg);box-shadow:inset 0 1px 1px #fff9;
}
#hud[data-retro=libertadores2000] .tv-match::before{left:.08em}
#hud[data-retro=libertadores2000] .tv-match::after{right:.08em;transform:scaleX(-1) skew(-13deg)}
#hud[data-retro=libertadores2000] .tv-team{min-width:0;padding:0 .16em}
#hud[data-retro=libertadores2000] .tv-result{display:contents}
#hud[data-retro=libertadores2000] .tv-dash{display:none}
#hud[data-retro=libertadores2000] .tv-result b{min-width:.65em;color:#c8aa64}
#hud[data-retro=libertadores2000] #leftScore{order:1}
#hud[data-retro=libertadores2000] .tv-team-right{order:2}
#hud[data-retro=libertadores2000] #rightScore{order:3}
#hud[data-retro=libertadores2000] .tv-brand{
 display:flex;grid-area:period;height:1.23em;
 background:linear-gradient(#313330,#121514 45%,#353c38);
 border:.12em solid #adafaa;font:bold italic .97em/1 Georgia,serif;color:#f0e7ce;
}
#hud[data-retro=libertadores2000] .tv-brand img{display:none}
#hud[data-retro=libertadores2000] .tv-brand::after{content:'1T'}
#hud[data-retro=libertadores2000] .tv-clock{
 grid-area:time;position:relative;height:1.32em;min-width:0;padding:0 1.9em 0 1em;
 border:.12em solid transparent;background:linear-gradient(#101111,#020303) padding-box,var(--metal) border-box;
 color:#f7f7ee;font-size:.9em;font-style:normal;letter-spacing:.16em;
}
#hud[data-retro=libertadores2000] .tv-clock::before{
 content:'';width:.62em;height:.65em;clip-path:polygon(0 0,100% 50%,0 100%);background:#c5aa66;
}
#hud[data-retro=libertadores2000] .tv-clock::after{
 content:'';position:absolute;inset:0 0 0 auto;width:1.17em;
 background:repeating-linear-gradient(#777c76 0 2px,#c1c5be 2px 4px);border-left:.12em solid #b1b4ac;
}

/* Libertadores 2005 · pale team rows, diagonal club colours and gold clock. */
#hud[data-retro=libertadores2005] .tv-board{
 --retro-text:clamp(10px,1.9cqw,21px);
 --retro-row:1.16em;
 display:grid;grid-template-columns:1fr auto;grid-template-areas:'match match' 'network time';
 width:min(48cqw,12.5em);gap:.09em;background:#77773d;border:.13em solid #858546;
 color:#131712;
}
#hud[data-retro=libertadores2005] .tv-match{
 grid-area:match;display:grid;height:auto;grid-template-columns:minmax(0,1fr) 2.05em;
 grid-template-rows:repeat(2,var(--retro-row));gap:.08em .1em;
}
#hud[data-retro=libertadores2005] .tv-team{
 position:relative;min-width:0;padding:0 .28em 0 1.72em;
 justify-content:flex-start;background:linear-gradient(#ffffed,#ecefd7 72%,#c4c9ab);
}
#hud[data-retro=libertadores2005] .tv-team::before{
 content:'';position:absolute;left:0;top:0;bottom:0;width:1.46em;
 background:linear-gradient(135deg,var(--club-primary) 50%,var(--club-secondary) 51%);
}
#hud[data-retro=libertadores2005] .tv-team span{
 min-width:0;overflow:hidden;font-family:'Arial Narrow',Impact,Arial,sans-serif;font-weight:800;
 font-size:.96em;letter-spacing:.035em;text-transform:uppercase;
}
#hud[data-retro=libertadores2005] .tv-team-left{grid-area:1/1}
#hud[data-retro=libertadores2005] .tv-team-right{grid-area:2/1}
#hud[data-retro=libertadores2005] .tv-result{display:contents}
#hud[data-retro=libertadores2005] .tv-dash{display:none}
#hud[data-retro=libertadores2005] .tv-result b{
 display:grid;place-items:center;grid-column:2;
 background:linear-gradient(#fafced,#fbfde9 64%,#d6d9b8);color:#11140e;
}
#hud[data-retro=libertadores2005] #leftScore{grid-row:1}
#hud[data-retro=libertadores2005] #rightScore{grid-row:2}
#hud[data-retro=libertadores2005] .tv-brand{
 display:flex;grid-area:network;height:var(--retro-row);
 background:#080b08;color:#fff;font-size:.82em;letter-spacing:.055em;
}
#hud[data-retro=libertadores2005] .tv-brand img{display:none}
#hud[data-retro=libertadores2005] .tv-brand::after{content:'FOX SPORTS'}
#hud[data-retro=libertadores2005] .tv-clock{
 grid-area:time;padding:0 .38em;min-width:0;
 color:#231a08;background:linear-gradient(#fff3ae,#e7bd4b 72%,#bb8a32);letter-spacing:.04em;
}

/* Libertadores 2018 · black and gold CONMEBOL banner. */
#hud[data-retro=libertadores2018] .tv-board{
 --retro-text:clamp(9px,1.61cqw,18px);
 --retro-row:1.42em;
 --libertadores-gold:linear-gradient(#a9844a,#f9dda0 52%,#ab8144);
 display:grid;width:min(58cqw,32em);grid-template-columns:3.2em auto minmax(0,1fr);
 grid-template-areas:'. . title' 'logo clock match' '. . tag';color:#fff;
}
#hud[data-retro=libertadores2018] .tv-season{
 display:flex;grid-area:title;justify-self:center;width:94%;height:1.26em;
 padding:0 .8em;color:#2c1c0b;background:var(--libertadores-gold);font-size:.84em;
 clip-path:polygon(3% 0,97% 0,100% 100%,0 100%);
}
#hud[data-retro=libertadores2018] .tv-brand{
 display:flex;grid-area:logo;align-self:end;height:var(--retro-row);background:#10110f;
}
#hud[data-retro=libertadores2018] .tv-brand img{
 align-self:end;width:92%;height:auto;max-height:3.2em;object-fit:contain;
}
#hud[data-retro=libertadores2018] .tv-clock{
 grid-area:clock;min-width:3.65em;padding:0 .38em;color:#261a0b;background:var(--libertadores-gold);
 letter-spacing:0;font-size:.9em;
}
#hud[data-retro=libertadores2018] .tv-match{
 grid-area:match;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
 background:linear-gradient(#262620,#090a09);box-shadow:inset 0 1px 0 #c5a477;
}
#hud[data-retro=libertadores2018] .tv-team{
 position:relative;min-width:0;padding-inline:.7em;text-transform:uppercase;
}
#hud[data-retro=libertadores2018] .tv-team span{min-width:0;font-size:.86em;overflow:hidden}
#hud[data-retro=libertadores2018] .tv-team::before{
 position:absolute;inset-block:0;content:'';width:.37em;
 background:linear-gradient(to bottom,var(--club-color) 50%,var(--club-secondary) 50%);
}
#hud[data-retro=libertadores2018] .tv-team-left::before{left:0}
#hud[data-retro=libertadores2018] .tv-team-right::before{right:0}
#hud[data-retro=libertadores2018] .tv-result{
 min-width:4.1em;justify-content:space-evenly;padding-inline:.58em;
 color:#2d1d0e;background:var(--libertadores-gold);
 clip-path:polygon(0 0,100% 0,84% 100%,16% 100%);
}
#hud[data-retro=libertadores2018] .tv-dash{display:none}
#hud[data-retro=libertadores2018] .tv-board::after{
 content:'#LibertadoresxFOX';grid-area:tag;justify-self:center;
 padding:.14em 1em;background:#12160fdf;color:#f6f3e9;font-size:.76em;
}

/* Portugal 2004 · warm copper, dark green and the tournament's heart. */
#hud[data-retro=euro2004] .tv-board{
 --retro-row:clamp(20px,3.1cqw,34px);
 display:grid;grid-template-columns:auto auto;grid-template-areas:'mark match' 'mark clock';
 border:1px solid #b9784a;border-radius:.38em;overflow:hidden;background:#142a24;color:#fff7e8;
}
#hud[data-retro=euro2004] .tv-brand{
 display:flex;grid-area:mark;align-self:stretch;width:1.94em;background:#fff8eb;border-right:1px solid #b9784a;
}
#hud[data-retro=euro2004] .tv-brand img{width:84%;height:auto;max-height:95%}
#hud[data-retro=euro2004] .tv-match{grid-area:match;background:linear-gradient(#28483d,#142a24)}
#hud[data-retro=euro2004] .tv-team{min-width:2.82em;padding-inline:.43em}
#hud[data-retro=euro2004] .tv-result{min-width:2.7em;background:#854327;color:#fff7ec;padding-inline:.25em}
#hud[data-retro=euro2004] .tv-clock{
 grid-area:clock;justify-self:center;min-width:4.25em;height:1.2em;border-radius:.28em .28em 0 0;
 font-size:.78em;background:#243c32;color:#fff7e8;border-top:1px solid #8e9a7a;
}

/* Apertura 2009 · Fútbol para Todos, Boca–Banfield. */
#hud[data-retro=apertura2009] .tv-board{
 display:grid;grid-template-areas:"brand match" "brand time";
 grid-template-columns:auto auto;align-items:stretch;row-gap:1px;
}
#hud[data-retro=apertura2009] .tv-brand{
 grid-area:brand;display:flex;align-self:center;width:2.35em;height:2.35em;
 margin-right:.12em;border:2px solid #f3eef8;border-radius:50%;
 background:radial-gradient(circle at 30% 20%,#f3eefa,#7a6b8a 80%);
}
#hud[data-retro=apertura2009] .tv-match{
 grid-area:match;height:1.2em;color:#ffe9aa;
 background:linear-gradient(#574079,#2d1e41);
}
#hud[data-retro=apertura2009] .tv-team{min-width:2.65em;padding:0 .32em}
#hud[data-retro=apertura2009] .tv-result{display:contents}
#hud[data-retro=apertura2009] .tv-dash{display:none}
#hud[data-retro=apertura2009] .tv-result b{
 display:grid;place-items:center;min-width:1.1em;padding:0 .15em;
 color:#291e35;background:linear-gradient(#fff,#cfc3df);
 clip-path:polygon(0 0,83% 0,100% 100%,14% 100%);
}
#hud[data-retro=apertura2009] #leftScore{order:1}
#hud[data-retro=apertura2009] .tv-team-right{order:2}
#hud[data-retro=apertura2009] #rightScore{order:3}
#hud[data-retro=apertura2009] .tv-clock{
 grid-area:time;justify-self:start;width:65%;height:1.2em;
 color:#ede4ff;background:linear-gradient(90deg,#543a68,#39234d);
 justify-content:flex-start;padding-inline:.5em 1em;font-size:.8em;
 clip-path:polygon(0 0,100% 0,89% 100%,0 100%);
}

/* Transición 2014 · Fútbol para Todos, Racing–Godoy Cruz. */
#hud[data-retro=transicion2014] .tv-board{
 display:grid;grid-template-areas:"brand match time" "brand edition edition";
 grid-template-columns:auto auto auto;row-gap:1px;align-items:stretch;
}
#hud[data-retro=transicion2014] .tv-brand{
 grid-area:brand;display:flex;width:1.95em;margin-right:.15em;
 border:1px solid #91def1;border-radius:.23em 0 0 .23em;
 background:linear-gradient(#6dc8ea,#2685a6);
}
#hud[data-retro=transicion2014] .tv-match{
 grid-area:match;height:1.24em;background:#131c29f2;
}
#hud[data-retro=transicion2014] .tv-team-left{border-left:.22em solid var(--club-color,#99daf8)}
#hud[data-retro=transicion2014] .tv-team-right{border-right:.22em solid var(--club-color,#3f6eb1)}
#hud[data-retro=transicion2014] .tv-result{background:#f1f3f4;color:#111c28}
#hud[data-retro=transicion2014] .tv-clock{
 grid-area:time;height:1.24em;color:#0a293a;background:#dff3f9;border-radius:0 .24em 0 0;
}
#hud[data-retro=transicion2014] .tv-season{
 grid-area:edition;display:flex;justify-content:flex-start;padding:.14em .4em;
 background:#121d25e8;color:#d7e0e3;font-size:.65em;text-transform:uppercase;
}


/* 2011/12: blue clock with the starball at its left edge. */
#hud[data-retro="2012"] .tv-brand{
 display:flex;order:-2;width:1.24em;height:var(--retro-row);overflow:hidden;
 background:linear-gradient(#3175b7,#145084 58%,#0b315d);border-radius:.25em 0 0 .25em;
}

/* Libertadores 2009: stacked Fox-era teams with the score and clock in gold. */
#hud[data-retro=libertadores2009] .tv-board{
 display:grid;justify-items:end;gap:0;
}
#hud[data-retro=libertadores2009] .tv-match{
 height:auto;display:grid;grid-template-columns:minmax(9.4em,max-content) 2.05em;
 grid-template-rows:repeat(2,1.31em);align-items:stretch;gap:1px;
 border:2px solid #eddd9f;border-radius:.36em;overflow:hidden;
 background:linear-gradient(#fff0ac,#d49a2f 45%,#ffe589 52%,#e1a32f);box-shadow:0 0 1px #000;
}
#hud[data-retro=libertadores2009] .tv-team{
 justify-content:flex-start;min-width:0;gap:.42em;padding:0 .88em 0 0;
 position:relative;z-index:1;margin-right:-.42em;isolation:isolate;
 color:#fff;text-shadow:0 1px 1px #111;
}
#hud[data-retro=libertadores2009] .tv-team::after{
 content:'';position:absolute;inset:0;z-index:-1;
 background:linear-gradient(#687170,#303d32 55%,#141f12);
 clip-path:polygon(0 0,calc(100% - .4em) 0,100% 50%,calc(100% - .53em) 100%,0 100%);
}
#hud[data-retro=libertadores2009] .tv-team::before{
 content:'';flex:0 0 1.12em;height:100%;border-right:2px solid #f8f4e5;
 background:linear-gradient(135deg,var(--club-color,#65a8ef) 60%,var(--club-secondary,#fff) 61%);
}
#hud[data-retro=libertadores2009] .tv-team span{text-transform:uppercase}
#hud[data-retro=libertadores2009] .tv-team-left{grid-row:1;grid-column:1}
#hud[data-retro=libertadores2009] .tv-team-right{grid-row:2;grid-column:1}
#hud[data-retro=libertadores2009] .tv-result{display:contents}
#hud[data-retro=libertadores2009] .tv-result b{
 grid-column:2;display:grid;place-items:center;padding-left:.32em;color:#30200a;
 background:linear-gradient(#fff0a7,#d99120 62%,#f5c750);
}
#hud[data-retro=libertadores2009] #leftScore{grid-row:1}
#hud[data-retro=libertadores2009] #rightScore{grid-row:2}
#hud[data-retro=libertadores2009] .tv-dash{display:none}
#hud[data-retro=libertadores2009] .tv-clock{
 height:1.39em;min-width:4.25em;border-radius:0 0 .5em .5em;
 padding-left:.72em;color:#2f200a;background:linear-gradient(#ffe785,#dc9e32 64%,#f1ca67);
 clip-path:polygon(14% 0,100% 0,100% 100%,0 100%,0 66%);
}

/* Premier League 2007/08: Barclays broadcast layout from the supplied capture. */
#hud[data-retro=premier2008] .tv-board{
 --premier-silver:linear-gradient(#fdfdff 3%,#7e8391 13%,#d6dce4 24%,#6d7381 80%,#e3e7ed 100%);
 --premier-navy:linear-gradient(#121b43,#030c28 60%,#182339);
 --premier-cut:.57em;
 --premier-slope:polygon(0 0,calc(100% - var(--premier-cut)) 0,100% 100%,var(--premier-cut) 100%);
 --premier-label-width:5.02em;
 display:grid;grid-template-areas:"brand match" "brand time";grid-template-columns:3.33em auto;
 align-items:stretch;gap:0;
}
#hud[data-retro=premier2008] .tv-brand{
 grid-area:brand;display:flex;position:relative;z-index:1;overflow:visible;
 justify-content:flex-end;margin-right:-.19em;pointer-events:none;
}
#hud[data-retro=premier2008] .tv-brand::before{
 content:'';position:absolute;inset:0;z-index:-2;
 clip-path:polygon(0 0,74% 0,100% 22%,100% 75%,85% 97%,31% 100%,25% 94%);
 border-radius:3px 48% 40% 40%;background:var(--premier-silver);
}
#hud[data-retro=premier2008] .tv-brand::after{
 content:'';position:absolute;inset:.22em .44em .24em .24em;z-index:-1;
 clip-path:polygon(0 0,90% 0,100% 32%,100% 75%,83% 100%,27% 100%,22% 96%);
 border-radius:1px 28% 36% 33%;background:#070e36;
}
#hud[data-retro=premier2008] .tv-brand img{
 display:block;width:64%;height:64%;object-fit:contain;
}
#hud[data-retro=premier2008] .tv-brand .premier-ball{
 position:absolute;left:67%;top:50%;transform:translate(-50%,-50%);
 display:grid;place-items:center;width:2.19em;height:2.19em;
 font-size:var(--retro-text);border-radius:50%;
 background:radial-gradient(ellipse at 53% 4%,#32bbdf 0 13%,transparent 15%),
  radial-gradient(ellipse at 99% 48%,#33b8d9 0 14%,transparent 16%),
  radial-gradient(ellipse at 66% 100%,#4acbea 0 14%,transparent 16%),
  radial-gradient(ellipse at 26% 32%,#fff 40%,#e1f6ff 68%,#8da5bb 96%);
 box-shadow:0 .07em .18em #3c5a82;
}
#hud[data-retro=premier2008] .tv-match{
 grid-area:match;align-items:stretch;height:1.43em;padding-left:0;gap:0;
 color:#fff;font-family:'Arial Narrow','Roboto Condensed',Arial,sans-serif;
}
#hud[data-retro=premier2008] .tv-match > :not(:first-child){margin-left:calc(.12em - var(--premier-cut))}
#hud[data-retro=premier2008] :is(.tv-team,.tv-result){
 position:relative;isolation:isolate;background:var(--premier-silver);clip-path:var(--premier-slope);
}
#hud[data-retro=premier2008] :is(.tv-team,.tv-result)::before{
 content:'';position:absolute;inset:.12em .14em;z-index:-1;
 clip-path:var(--premier-slope);background:var(--premier-navy);
}
#hud[data-retro=premier2008] .tv-team{
 width:var(--premier-label-width);min-width:0;padding-inline:.42em;box-sizing:border-box;
}
#hud[data-retro=premier2008] .tv-team-left{padding-left:.72em}
#hud[data-retro=premier2008] .tv-team-right{padding-right:.57em}
#hud[data-retro=premier2008] .tv-team span{
 font-size:.93em;font-weight:750;letter-spacing:-.025em;transform:scaleX(.93);
}
#hud[data-retro=premier2008] .tv-team::after{
 content:'';position:absolute;inset:.12em .14em .12em auto;width:.42em;
 transform:skewX(28deg);background:var(--club-color,#db172d);border-left:.11em solid #f8f0ef;
}
#hud[data-retro=premier2008] .tv-team-right::after{
 inset-inline:.12em auto;border-left:none;border-right:.11em solid #e9eff4;
}
#hud[data-retro=premier2008] .tv-result{
 box-sizing:border-box;min-width:3.25em;padding:0 .57em;gap:.04em;font-size:1.08em;
}
#hud[data-retro=premier2008] .tv-result::before{
 background:linear-gradient(#bb4c52,#80171e 73%,#a02c31);
}
#hud[data-retro=premier2008] .tv-clock{
 grid-area:time;justify-self:start;height:1.11em;min-width:3.8em;justify-content:flex-start;
 padding-left:.41em;background:#09102e;color:white;letter-spacing:-.02em;
 border-radius:0 .53em .43em 0;
}
#menu .cups-carousel{
 display:grid;grid-template-columns:clamp(25px,3.1vw,38px) minmax(0,1fr) clamp(25px,3.1vw,38px);
 align-items:center;gap:5px;margin:8px 0 12px;
}
#menu .cups-track{
 display:flex;align-items:flex-start;overflow-x:auto;overscroll-behavior-x:contain;
 scroll-snap-type:x mandatory;scrollbar-width:none;
}
#menu .cups-track::-webkit-scrollbar{display:none}
#menu .cups-track>*{flex:0 0 100%;min-width:0;box-sizing:border-box;scroll-snap-align:start}
#menu .menu-cups [data-cup-entry]{
 min-height:44px;border-radius:999px;color:#fff6d9;background:linear-gradient(#5b502a,#292516);
 border-color:#b3a46a;
}
#menu .cups-carousel .cups-arrow{
 min-width:0;width:100%;height:58px;padding:0;border-radius:999px;
 background:#2d3220;border:1px solid #aba367;color:#fff0b7;font:32px/1 Arial,sans-serif;
}
#menu .cups-carousel .cups-arrow:disabled{opacity:.36}
#menu .cups-carousel .cups-arrow:focus-visible{outline:2px solid #fff}
#menu .menu-cups [data-mode=retro]{
 --cup-top:#5b4325;--cup-bottom:#2e2016;--cup-border:#ddb973;--cup-text:#ffedbe;
}
#menu .menu-cups [data-mode=retro] .competition-logo{filter:brightness(0) invert(.94)}
#menu .menu-cups [data-cup-entry].selected{outline:2px solid #f2d498;outline-offset:2px}
#menu[data-standalone-competition] .teams{display:grid;grid-template-columns:minmax(0,420px);justify-content:center}
#menu[data-standalone-competition] .teams > :is(b,.team-card:has(#team2)){display:none}
#menu .actions #standaloneCupContinue{grid-column:1/-1;grid-row:2;justify-self:center;min-height:42px}
#menu .actions #standaloneCupContinue:not([hidden])~#status{grid-row:3}
#menu[data-standalone-competition=retro] #leaguePicker :is([data-league-choice="2004"],[data-league-choice="2005"],[data-league-choice="2012"]) img{filter:brightness(0) invert(.92)}


/* Competition palettes are shared by the retro selector and standings. */
[data-retro-edition=premier2008]{
 --edition-top:#19498e;--edition-bottom:#0b1947;--edition-deep:#060e25;
 --edition-accent:#8bdcfd;--edition-highlight:#f37b80;--edition-glow:#194e9677;
}
[data-retro-edition=mundial2014]{
 --edition-top:#277e45;--edition-bottom:#103d36;--edition-deep:#06241f;
 --edition-accent:#ffe159;--edition-highlight:#70ebc9;--edition-glow:#15876b77;
}
[data-retro-edition=mundial2010]{
 --edition-top:#34662e;--edition-bottom:#14352e;--edition-deep:#0b2925;
 --edition-accent:#ffe17a;--edition-highlight:#fb9069;--edition-glow:#537c3477;
}
[data-retro-edition=mundial2002]{
 --edition-top:#315381;--edition-bottom:#1c294d;--edition-deep:#0e182d;
 --edition-accent:#eccb86;--edition-highlight:#e5a099;--edition-glow:#314d7a77;
}
[data-retro-edition=mundial1998]{
 --edition-top:#273f8d;--edition-bottom:#15234d;--edition-deep:#111d3d;
 --edition-accent:#c1d9ff;--edition-highlight:#f59498;--edition-glow:#354a8e77;
}
[data-retro-edition=euro2004]{
 --edition-top:#315447;--edition-bottom:#20332e;--edition-deep:#152824;
 --edition-accent:#e1a578;--edition-highlight:#a4c5a5;--edition-glow:#8e593c55;
}
[data-retro-edition=copaamerica2011]{
 --edition-top:#28697c;--edition-bottom:#143b4a;--edition-deep:#112f3c;
 --edition-accent:#afeaf0;--edition-highlight:#f5d48a;--edition-glow:#32788477;
}
[data-retro-edition=libertadores2009]{
 --edition-top:#a42b37;--edition-bottom:#4f1127;--edition-deep:#2a0c18;
 --edition-accent:#ffd77c;--edition-highlight:#ff9a9c;--edition-glow:#a4355277;
}
[data-retro-edition=libertadores2000]{
 --edition-top:#3d5c4c;--edition-bottom:#23382e;--edition-deep:#14261f;
 --edition-accent:#b4d1a7;--edition-highlight:#ead49f;--edition-glow:#3c624c77;
}
[data-retro-edition=libertadores2005]{
 --edition-top:#575c32;--edition-bottom:#2c351b;--edition-deep:#1f2716;
 --edition-accent:#d2d69b;--edition-highlight:#f0d67f;--edition-glow:#7b834877;
}
[data-retro-edition=libertadores2018]{
 --edition-top:#554939;--edition-bottom:#272421;--edition-deep:#191714;
 --edition-accent:#d9b47d;--edition-highlight:#f1d69e;--edition-glow:#74603f77;
}
[data-retro-edition=apertura2009]{
 --edition-top:#743f83;--edition-bottom:#371b48;--edition-deep:#21142c;
 --edition-accent:#83efed;--edition-highlight:#eec3ff;--edition-glow:#8449ae77;
}
[data-retro-edition=transicion2014]{
 --edition-top:#226c9b;--edition-bottom:#113655;--edition-deep:#0b243a;
 --edition-accent:#9ce8ff;--edition-highlight:#fada86;--edition-glow:#258cc977;
}
[data-retro-edition="2004"]{
 --edition-top:#4d5494;--edition-bottom:#20254f;--edition-deep:#111526;
 --edition-accent:#d4dcff;--edition-highlight:#d2b7ff;--edition-glow:#484c9e77;
}
[data-retro-edition="2005"]{
 --edition-top:#324b69;--edition-bottom:#18233c;--edition-deep:#101c30;
 --edition-accent:#c9e3f6;--edition-highlight:#e5c494;--edition-glow:#48638577;
}
[data-retro-edition="2012"]{
 --edition-top:#225bab;--edition-bottom:#142959;--edition-deep:#0a193a;
 --edition-accent:#b2d5ff;--edition-highlight:#f5f4ff;--edition-glow:#1c5da577;
}

#menu .cups-carousel .cups-track > .tabs.menu-cups{
 --cup-tracks:10;
 display:grid!important;grid-template-columns:repeat(var(--cup-tracks),minmax(0,1fr))!important;
 grid-auto-flow:row;grid-template-rows:none;grid-auto-rows:46px;
 gap:7px;align-content:start;margin:0;padding:5px;
}
#menu .cups-carousel .cups-track .tabs.menu-cups > button:is([data-mode],[data-cup-entry]){
 grid-column:var(--cup-button-column,span 2)!important;
 width:100%;min-width:0;max-width:none;height:46px;min-height:46px;
 box-sizing:border-box;display:grid;grid-template-columns:23px minmax(0,1fr);align-items:center;
 gap:5px;padding:5px 7px;font-size:11px;line-height:1.15;border-radius:999px;
}
#menu .cups-carousel .cups-track .tabs.menu-cups > button .competition-logo{
 width:23px;height:25px;max-width:100%;margin:0;object-fit:contain;
}
#menu .cups-carousel .cups-track .tabs.menu-cups > button .competition-label{min-height:0}
#menu .domestic-cups-menu button[data-cup-entry]{
 color:var(--cup-text,#fff);background:linear-gradient(var(--cup-top),var(--cup-bottom));
 border-color:var(--cup-border);
}
#menu .domestic-cups-menu [data-cup-entry=faCup]{--cup-top:#a82545;--cup-bottom:#531328;--cup-border:#f599ab}
#menu .domestic-cups-menu [data-cup-entry=faCup] img{filter:brightness(0) invert(1)}
#menu .domestic-cups-menu [data-cup-entry=dfbPokal]{--cup-top:#575148;--cup-bottom:#231f1e;--cup-border:#eac77b}
#menu .domestic-cups-menu [data-cup-entry=copaDelRey]{--cup-top:#a23134;--cup-bottom:#5f1c24;--cup-border:#f4bd71}
#menu .domestic-cups-menu [data-cup-entry=tacaPortugal]{--cup-top:#20725a;--cup-bottom:#103e37;--cup-border:#a0dfc0}
#menu .domestic-cups-menu [data-cup-entry=copaChile]{--cup-top:#285ca1;--cup-bottom:#182d5a;--cup-border:#a4cfff}
#menu .domestic-cups-menu [data-cup-entry=copaDoBrasil]{--cup-top:#ffe184;--cup-bottom:#cbaa39;--cup-border:#fff2ad;--cup-text:#242401}
#menu .domestic-cups-menu [data-cup-entry=copaArgentina]{--cup-top:#2782ae;--cup-bottom:#133752;--cup-border:#86dafa}
#menu .domestic-cups-menu button:hover{filter:brightness(1.15)}
@media(min-width:951px),(min-width:701px) and (orientation:portrait){
 #menu .cups-track .domestic-cups-menu > button:nth-child(6){--cup-button-column:4 / span 2}
}
@media(max-width:950px) and (orientation:landscape){
 #menu .cups-carousel .cups-track > .tabs.menu-cups{--cup-tracks:8}
 #menu .cups-track .domestic-cups-menu > button:nth-child(5){--cup-button-column:2 / span 2}
}
@media(max-width:700px) and (orientation:portrait){
 #menu .cups-carousel .cups-track > .tabs.menu-cups{--cup-tracks:4;gap:5px}
 #menu .cups-track .domestic-cups-menu > button:last-child{--cup-button-column:2 / span 2}
 #menu .cups-carousel .cups-track .tabs.menu-cups > button:is([data-mode],[data-cup-entry]){
  font-size:10px;grid-template-columns:19px minmax(0,1fr);padding:4px;gap:4px;
 }
 #menu .cups-carousel .cups-track .tabs.menu-cups > button .competition-logo{width:19px;height:23px}
}

#menu[data-standalone-competition=retro] #leaguePicker{
 padding-top:7px;margin-bottom:9px;
}
@media(min-width:951px){
 #menu[data-standalone-competition=retro] #leaguePicker .league-choices{
  grid-template-columns:repeat(auto-fit,minmax(110px,1fr));
 }
}
@media(min-width:701px) and (max-width:950px){
 #menu[data-standalone-competition=retro] #leaguePicker .league-choices{grid-template-columns:repeat(5,minmax(0,1fr))}
}
#menu[data-standalone-competition=retro] #leaguePicker button[data-retro-edition]{
 grid-template-rows:38px 3.25em 1em;gap:4px;align-items:center;min-height:106px;padding:7px 4px;
 border:1px solid color-mix(in srgb,var(--edition-accent) 65%,var(--edition-bottom));border-radius:9px;
 color:#fff;background:linear-gradient(150deg,var(--edition-top),var(--edition-bottom));
 text-shadow:0 1px 2px #0007;
}
#menu[data-standalone-competition=retro] #leaguePicker button[data-retro-edition]:hover{filter:brightness(1.13)}
#menu[data-standalone-competition=retro] #leaguePicker button[data-retro-edition].selected{
 outline:2px solid var(--edition-accent);outline-offset:-2px;
 box-shadow:inset 0 0 0 4px #ffffff20,0 3px 10px var(--edition-glow);
}
#menu[data-standalone-competition=retro] #leaguePicker button[data-retro-edition] img{
 box-sizing:border-box;width:40px;height:36px;padding:3px;object-fit:contain;
 border-radius:7px;background:#f8faf3;filter:none;
}
#menu[data-standalone-competition=retro] #leaguePicker button[data-retro-edition] .retro-card-name{
 height:100%;display:grid;grid-template-rows:1fr auto;align-items:start;line-height:1.08;
}
#menu[data-standalone-competition=retro] #leaguePicker button[data-retro-edition] .retro-card-season{display:block}
#menu[data-standalone-competition=retro] #leaguePicker button[data-retro-edition] small{color:var(--edition-accent);line-height:1}
#menu[data-retro-edition] #categoryBrand{
 display:flex;align-items:center;justify-content:center;gap:9px;
 background:linear-gradient(100deg,var(--edition-bottom),var(--edition-top),var(--edition-bottom));
 border-block:1px solid var(--edition-accent);border-radius:9px;
 color:white;font-weight:800;padding:6px 8px;
}
#menu[data-retro-edition] #categoryBrand img,#league[data-retro-edition] #leagueTitle>.competition-logo{
 box-sizing:border-box;object-fit:contain;background:#f8faf4;border-radius:11px;
 padding:5px;filter:none;
}
#menu[data-retro-edition] #categoryBrand img{width:35px;height:35px}
#menu[data-retro-edition] .team-card:has(#team1){
 border-color:color-mix(in srgb,var(--edition-accent) 55%,var(--edition-bottom));
 background:linear-gradient(155deg,var(--edition-glow),transparent 70%),var(--edition-deep);
 border-radius:12px;
}
#menu[data-retro-edition] .team-card:has(#team1) select{
 background:linear-gradient(var(--edition-bottom),var(--edition-deep));border-color:var(--edition-accent);
}
#menu[data-retro-edition] .team-card select option{background:var(--edition-deep);color:white}

/* Keep the standings layout shared. Status colors come from data-position. */
#league[data-retro-edition] #leagueTitle>.competition-logo{
 width:clamp(36px,5.2vw,58px);height:clamp(35px,5.2vw,55px);flex:none;
}
@media(max-height:600px) and (orientation:landscape){
 #league[data-retro-edition] #leagueTitle>.competition-logo{width:28px;height:27px;padding:2px}
}

.tie-break{display:flex;justify-content:center;align-items:center;gap:10px;margin:0 0 14px;padding:0;border:0}
.tie-break legend{float:left;padding:0;color:#d8d39f;font-size:14px}
.tie-break label{position:relative;cursor:pointer}
.tie-break input{position:absolute;opacity:0;inset:0}
.tie-break span{display:block;padding:6px 14px;border:1px solid #777c53;border-radius:999px;font-size:15px}
.tie-break input:checked+span{background:#f4d21e;border-color:#f4d21e;color:#1b1b12;font-weight:bold}
.tie-break input:focus-visible+span{outline:2px solid #fff;outline-offset:2px}
@media(max-height:500px) and (orientation:landscape){.tie-break{margin-bottom:6px}.tie-break span{padding:3px 12px;font-size:13px}}

.summary-penalties{margin:0 0 10px;text-align:center;font-size:20px;color:#f4d21e}

/* Cabezones runtime recovery epoch 1 */
