:root{color-scheme:light;--bg:#f3f8ff;--surface:#fff;--surface2:#e8f1fc;--line:#d0deef;--text:#21354c;--muted:#536981;--accent:#1967d2;--accent-dark:#144da4;--coral:#df6144;--green:#16694d;--danger:#b33445;font-family:"Segoe UI",Arial,sans-serif;font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;transition:background .18s,box-shadow .18s,transform .18s}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}a{color:inherit;text-decoration:none}.skip{position:fixed;top:-100px;left:20px;z-index:100;padding:15px;background:var(--accent);color:#fff;border-radius:12px}.skip:focus{top:10px}
.topbar,main,footer{width:91%;max-width:1500px;margin-left:auto;margin-right:auto}.topbar{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:13px;font-weight:800;letter-spacing:.02em;font-size:19px}.brand b{font-weight:500}.brand small{display:block;font-size:10px;font-weight:650;letter-spacing:.17em;margin-top:5px;color:var(--muted)}.brand-symbol{width:45px;height:45px;background:var(--accent);color:#fff;border-radius:14px;display:flex;align-items:center;justify-content:center;position:relative;font-size:18px;letter-spacing:-1px;transform:rotate(-5deg);box-shadow:3px 3px 0 #c9e1ff}.brand-symbol>span{position:absolute;top:2px;right:5px;font-size:14px;color:#ffe38b}.top-actions{display:flex;align-items:center;gap:12px}.connection{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px;margin-right:8px}.connection:before{content:'';width:7px;height:7px;background:#26845d;border-radius:50%;box-shadow:0 0 0 4px #def2e8}.connection.offline:before{background:#b55b1c;box-shadow:0 0 0 4px #ffe9d4}
.button{border:1px solid transparent;border-radius:12px;padding:11px 17px;display:inline-flex;justify-content:center;align-items:center;gap:9px;font-weight:650;font-size:16px;background:transparent;color:var(--text);white-space:nowrap;min-height:44px}.button.primary{background:var(--accent);color:#fff;box-shadow:0 3px 0 #144da4}.button.primary:hover:not(:disabled){background:var(--accent-dark);box-shadow:0 4px 10px #1967d224}.button.outline{border-color:#c3d2e5;background:#ffffffa6}.button.outline:hover:not(:disabled),.button.subtle:hover:not(:disabled){background:#e5effc}.button.subtle{color:var(--accent-dark)}.button.danger{background:#b33445;color:#fff}.button.danger:hover:not(:disabled){background:#972a39}.button>span[aria-hidden]{font-size:21px;line-height:16px}
/* Una bienvenida alegre, sin quitarle espacio al torneo. */
.hero{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:290px;padding:30px 38px;margin:10px 0 22px;border:1px solid #d8e8fb;border-radius:26px;background:#dbeeff;position:relative;overflow:hidden}.hero:before{content:'';position:absolute;width:380px;height:380px;right:-100px;top:-115px;border:62px solid #b9ddff;border-radius:50%;pointer-events:none}.hero:after{content:'';position:absolute;width:11px;height:27px;right:45%;top:32px;border-radius:4px;transform:rotate(28deg);background:#f9bc62;box-shadow:35px 165px 0 -1px #e486a5,-15px 190px 0 -2px #a0c5f2;pointer-events:none}.hero-copy{position:relative;z-index:1}.eyebrow{font-size:12px;font-weight:750;letter-spacing:.12em;color:var(--accent-dark);display:flex;align-items:center;gap:8px}.hero .eyebrow{margin:0}.party-spark{color:var(--coral);font-size:25px;line-height:1}h1{font-size:clamp(40px,4.7vw,60px);letter-spacing:-.055em;font-weight:800;margin:15px 0 16px;line-height:1.06}h1 em{font-style:normal;color:var(--accent)}.intro{color:#49596c;font-size:18px;line-height:1.6;margin:0}.hero-tags{display:flex;gap:8px;margin-top:22px;flex-wrap:wrap}.hero-tags span{font-size:12px;font-weight:600;color:#485d76;background:#ffffffb5;padding:6px 11px;border-radius:20px}.hero-tags span:first-child{color:#753e16;background:#ffe3ac}
.pitch-art{width:320px;margin:15px 16px 0 0;transform:rotate(-7deg);position:relative;flex-shrink:0;z-index:1}.pitch{height:170px;border:6px solid #fff;border-radius:15px;position:relative;background:repeating-linear-gradient(90deg,#4ea58a,#4ea58a 40px,#5ab094 40px,#5ab094 80px);box-shadow:0 9px 0 #3c796c,0 11px 0 #306558,0 24px 28px #354d6b25}.pitch:before{content:'';position:absolute;inset:10px;border:2px solid #c6f2dfc9;border-radius:2px}.halfway{position:absolute;left:50%;top:10px;bottom:10px;border-left:2px solid #c6f2dfc9}.circle{position:absolute;left:calc(50% - 27px);top:calc(50% - 27px);width:54px;height:54px;border:2px solid #c6f2dfc9;border-radius:50%}.area{position:absolute;top:40px;height:78px;width:39px;border:2px solid #c6f2dfc9}.area.left{left:10px}.area.right{right:10px}.rod{height:204px;width:5px;position:absolute;top:-23px;background:linear-gradient(90deg,#a2adbb,#fff,#a5afbc);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;box-shadow:3px 2px 4px #244c4830}.rod-one{left:82px}.rod-two{right:82px}.rod:after{content:'';position:absolute;bottom:-17px;width:13px;height:34px;border-radius:5px;background:#43556b;box-shadow:2px 2px 0 #2b3848}.rod-two:after{top:-17px;bottom:auto}.rod i{width:18px;height:25px;background:#ffcb65;border:1px solid #ffe3a5;border-radius:5px 5px 3px 3px;box-shadow:3px 4px 0 #285b4966;position:relative}.rod i:before{content:'';position:absolute;width:12px;height:12px;border-radius:50%;top:-8px;left:2px;background:#ffe0a0}.rod-two i{background:#ff806f;border-color:#ffc3af}.rod-two i:before{background:#ffc3af}.ball{position:absolute;width:17px;height:17px;left:55%;top:61%;border-radius:50%;background:#fff7e6;border:3px solid #fff;box-shadow:3px 4px 3px #23583d66}.party-sticker{position:absolute;z-index:3;top:-24px;right:-20px;background:#ffe086;color:#5a3e23;padding:12px 16px;font-size:22px;font-weight:800;border:3px solid #fff;border-radius:15px;transform:rotate(14deg);box-shadow:2px 4px 0 #4360831a}.party-sticker span{color:#c66b28;margin-left:4px}.art-label{font-size:9px;font-weight:700;letter-spacing:.06em;margin:35px 4px 0;color:#546982;display:flex;justify-content:space-between}
.stats{display:grid;grid-template-columns:1fr 1fr 1.25fr 1.5fr;gap:12px;margin:0 0 28px}.stats>div{position:relative;padding:18px 23px;border:1px solid #dce4ed;border-radius:17px;background:#fff;overflow:hidden}.stats>div:after{content:'';position:absolute;width:4px;height:32px;top:23px;left:0;background:#8ab3e5;border-radius:0 4px 4px 0}.stats>div:nth-child(2):after{background:#f8a18c}.stats>div:nth-child(3):after{background:#7ac4a6}.stats>div:last-child{background:#fff3d7;border-color:#f0e1bb}.stats>div:last-child:after{background:#e4b353}.stats>div>span{display:block;font-size:34px;letter-spacing:-.04em;font-weight:750;line-height:1.2}.stats small{display:block;font-size:12px;font-weight:600;letter-spacing:.07em;color:var(--muted);margin-top:8px}.muted{color:var(--muted)}#completedCount .muted{font-size:22px;font-weight:400}.stats .status-stat>span{font-size:23px;color:#765315;letter-spacing:-.025em;padding-top:6px}
.section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.tabs{display:flex;gap:26px;align-self:stretch}.tab{background:none;color:var(--muted);border:0;border-bottom:3px solid transparent;border-radius:0;padding:16px 0;font-size:17px;font-weight:650;min-height:61px}.tab.active{color:var(--accent-dark);border-color:var(--accent)}.tab span{display:inline-block;margin-left:5px;background:#e1ebf8;color:var(--accent-dark);font-size:12px;padding:3px 7px;border-radius:7px}.toolbar-actions{display:flex;gap:8px;padding-bottom:8px}.helper{display:flex;align-items:center;gap:10px;font-size:15px;line-height:1.5;color:var(--muted);margin:17px 0 23px}.helper-dot{width:7px;height:7px;background:#8a9eb6;border-radius:50%;flex-shrink:0}.helper.editing{color:var(--accent-dark)}.helper.editing .helper-dot{background:var(--accent);box-shadow:0 0 0 4px #dfebfa}
.empty-state{text-align:center;border:1px dashed #b4ccea;border-radius:22px;padding:35px 20px 25px;background:#ffffffa6}.empty-state .eyebrow{justify-content:center;font-size:12px;margin:20px 0 12px}.empty-icon{margin:auto;width:60px;height:60px;border-radius:19px;background:#ffe3ac;color:#926119;font-size:36px;display:grid;place-items:center;transform:rotate(-7deg)}.empty-state h2{font-size:32px;font-weight:750;letter-spacing:-.04em;margin:12px 0}.empty-state>p:not(.eyebrow){font-size:18px;color:var(--muted);line-height:1.7}.empty-state .button{margin:13px 0 20px}.empty-footer{border-top:1px solid var(--line);padding-top:21px;display:flex;justify-content:center;flex-wrap:wrap;gap:15px 30px;font-size:12px;letter-spacing:.04em;color:var(--muted);margin-top:6px}
/* El cuadro conserva todas las rondas en flujo vertical. */
.bracket-caption{display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:15px;line-height:1.5;margin-bottom:12px}.legend{display:flex;align-items:center;gap:7px;white-space:nowrap}.legend i{width:9px;height:9px;border-radius:50%;background:#2e8a66}.legend span{margin-left:12px}.round-nav{position:sticky;top:0;z-index:10;display:flex;gap:9px;flex-wrap:wrap;padding:12px 0;margin:0 0 12px;background:#f3f8fff5;backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.round-nav button{border:1px solid #ccdaeb;background:#fff;color:#475e7b;padding:9px 16px;border-radius:22px;font-size:16px;font-weight:600;min-height:42px}.round-nav button:hover{background:#deebfb;border-color:#8db4e3}.round-nav button:last-child{background:#ffe6a9;border-color:#ebcc80;color:#78541d}.scroll-tip{color:var(--muted);font-size:14px;line-height:1.5;margin:14px 0 22px}.bracket-scroll{overflow:visible;width:100%;padding:4px 1px 22px}.bracket{display:block;width:100%;min-width:0}
.round{--round-color:#1967d2;--round-soft:#dfecfc;width:100%;position:relative;scroll-margin-top:90px}.round:nth-of-type(2){--round-color:#b65232;--round-soft:#ffe5d7}.round:nth-of-type(3){--round-color:#276c9e;--round-soft:#dceefa}.round:nth-of-type(4){--round-color:#9c3978;--round-soft:#f9dfef}.round:last-of-type{--round-color:#89601a;--round-soft:#ffe8b1}.round-heading{display:flex;align-items:center;gap:12px;margin:0 0 18px;font-size:24px;font-weight:750;letter-spacing:-.025em;color:var(--round-color)}.round-heading>span{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;font-size:15px;background:var(--round-soft);border-radius:12px;letter-spacing:0}.round-count{margin-left:auto;color:var(--muted);font-size:14px;font-weight:500;letter-spacing:0}.round-note{font-size:15px;color:var(--muted);line-height:1.6;margin:-5px 0 18px}.round-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.round-body.single-match{grid-template-columns:minmax(0,620px);justify-content:center}
.match{position:relative;width:100%;display:flex;flex-direction:column;border:1px solid #cfd9e5;border-radius:17px;background:#fff;box-shadow:0 4px 12px #314d7008;overflow:hidden;scroll-margin-top:90px}.match.ready{border-color:#a0bcdf;box-shadow:0 3px 0 #d9e7f7}.match.complete{border-color:#c1dece}.match-meta{display:flex;justify-content:space-between;align-items:center;min-height:37px;padding:9px 15px;font-size:12px;font-weight:650;letter-spacing:.03em;color:var(--muted);background:#fafcff}.match-meta>span:first-child{font-weight:800;color:var(--round-color)}.match-meta .match-state{font-size:11px;letter-spacing:.045em}.match.complete .match-state{color:var(--green)}.match.ready .match-state{color:var(--accent-dark)}.correct-match{background:#e8eff8;color:var(--accent-dark);border:0;border-radius:6px;font-size:12px;font-weight:650;padding:4px 8px;margin:-4px -3px;min-height:28px}.correct-match:hover{background:#d3e3f7}
.player{display:flex;align-items:center;flex:1;gap:11px;min-height:56px;padding:10px 14px;border:0;background:transparent;color:var(--text);width:100%;text-align:left;font-size:18px;font-weight:600;line-height:1.35}.player:disabled{opacity:1}.player+.player{border-top:1px solid #e9edf2}.player.clickable:hover{background:#e7f0fb}.player.clickable:focus-visible{outline-offset:-4px}.player .seed{font-size:12px;font-weight:600;color:#627080;background:#ebf0f7;width:27px;height:27px;flex-shrink:0;display:grid;place-items:center;border-radius:8px}.player .player-name{flex:1;overflow-wrap:anywhere}.player .check{font-size:17px;font-weight:800;color:#fff;width:24px;height:24px;flex-shrink:0;display:grid;place-items:center;border-radius:50%}.player.winner{background:#e2f4e9;color:#19593f}.player.winner .seed{background:#cce8d7;color:#286447}.player.winner .check{background:#28815b}.player.winner.clickable:hover{background:#cfead9}.player.loser{color:#67717d;font-weight:450}.player.tbd{color:#717c89;font-style:italic;font-weight:400}
.match-route{min-height:38px;padding:9px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:550;color:#557193;background:#f5f8fc;border-top:1px solid #e8edf4}a.match-route:hover{background:#e0ebf8;color:#375477}.match-route>span{font-size:19px;line-height:1}.match-route.final-route{color:#7b5419;background:#fff1ce;border-color:#f3e4be}.round-flow{display:flex;justify-content:center;align-items:center;gap:13px;margin:26px 0;color:#667c97;font-size:13px;font-weight:600}.round-flow:before,.round-flow:after{content:'';height:1px;flex:1;max-width:120px;background:#cbd9e9}.round-flow>span{font-size:25px;color:#86a1c2}
.champion{padding:23px 28px;border:1px solid #e8cb7a;border-radius:21px;margin:0 0 25px;background:#fff0c3;display:flex;align-items:center;gap:22px;position:relative;overflow:hidden}.champion:after{content:'✦';position:absolute;right:24px;top:-20px;font-size:150px;color:#e8b4543b;transform:rotate(15deg);pointer-events:none}.champion>*{position:relative;z-index:1}.champion .cup{font-size:44px;background:#ffffffb3;padding:10px;border-radius:20px;transform:rotate(-7deg)}.champion small{font-size:13px;font-weight:750;letter-spacing:.1em;color:#80601e}.champion h2{font-size:32px;letter-spacing:-.035em;margin:6px 0 0;color:#5d4217}.champion p{margin:6px 0 0;font-size:17px;color:#80652f}
.players-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:32px 0 24px}.players-heading h2{font-size:29px;letter-spacing:-.04em;margin:0}.players-heading p{color:var(--muted);font-size:17px}.players-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.person{border:1px solid #dae2ec;background:#fff;border-radius:16px;display:flex;gap:13px;padding:18px;align-items:center}.avatar{width:42px;height:42px;background:#deebfa;color:#4c709c;display:grid;place-items:center;font-size:16px;font-weight:700;border-radius:14px;flex-shrink:0}.person:nth-child(3n+2) .avatar{background:#ffe5d6;color:#a45637}.person:nth-child(3n+3) .avatar{background:#daf0e7;color:#35765d}.person-name{font-size:18px;font-weight:550;line-height:1.5;overflow-wrap:anywhere}.person small{font-size:11px;font-weight:500;color:var(--muted);display:block;margin-top:4px}.person.special{border-color:#e2bf65;background:#fff8e4}.person.special .avatar{background:#ffe39b;color:#805d1d}
footer{margin-top:40px;padding:25px 0 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;align-items:center;font-size:12px;font-weight:600;letter-spacing:.04em;color:#6c7a8c}footer>span:nth-child(2){letter-spacing:0;font-size:13px;font-weight:400}.text-button{background:transparent;color:var(--muted);border:0;padding:10px;font-size:15px}.text-button:hover{color:var(--accent-dark)}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:60;border:1px solid #bcdccc;background:#f2fff7;padding:15px 23px;border-radius:15px;color:#235b40;font-size:16px;line-height:1.5;max-width:min(90%,720px);box-shadow:0 10px 45px #20334b22}.error-banner{border:1px solid #e7b5ba;background:#fff0f1;color:#9e3040;padding:15px;border-radius:12px;margin-bottom:20px;font-size:16px;line-height:1.5}.error-banner button{margin-left:10px;text-decoration:underline;background:none;border:0;color:inherit}
dialog{background:#fff;color:var(--text);border:1px solid #d0deee;border-radius:23px;padding:27px;width:560px;max-width:calc(100% - 32px);max-height:85vh;overflow-y:auto;box-shadow:0 25px 100px #20304438}dialog::backdrop{background:#20304480;backdrop-filter:blur(5px)}.modal-top{display:flex;align-items:center;justify-content:space-between}.modal-top .eyebrow{font-size:12px}.icon-button{font-size:31px;color:#657890;background:#eff4fa;border:0;border-radius:50%;line-height:1;padding:4px 10px}.modal-top .icon-button{margin-right:-7px}dialog h2{font-size:29px;letter-spacing:-.035em;margin:16px 0}dialog p{color:var(--muted);font-size:18px;line-height:1.65}dialog label{font-size:16px;color:var(--muted);display:block;margin-bottom:9px}dialog input{width:100%;border:1px solid #bbcbdf;border-radius:10px;background:#fafcff;color:var(--text);padding:13px;font-size:18px;outline-color:var(--accent)}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.form-error{color:var(--danger);font-size:15px;min-height:18px;margin-top:12px}.winner-option{display:flex;align-items:center;gap:13px;width:100%;background:#f7fbff;color:var(--text);text-align:left;border:1px solid #c7d6e8;border-radius:14px;margin-top:10px;padding:16px;font-size:20px;line-height:1.4;min-height:74px}.winner-option:hover{background:#e5f0fd}.winner-option.selected{border-color:#8ec4a6;background:#e2f4e9;color:#235f42}.winner-option span:last-child{margin-left:auto;color:#477d5f}.edit-row{display:flex;align-items:center;gap:9px;margin:8px 0}.edit-row>span{font-size:13px;color:var(--muted);width:20px;flex-shrink:0}.edit-row input{font-size:16px;padding:10px}.edit-row button{border:0;background:none;color:var(--danger);font-size:24px;padding:6px}.wide{width:100%}
/* En videobeam se priorizan los cruces, conservando el desplazamiento vertical. */
.presentation .hero,.presentation .stats,.presentation footer{display:none}.presentation .topbar{min-height:74px;padding:12px 0;gap:16px}.presentation .brand{display:none}.presentation .topbar:after{content:'✦ REFLEJOS RELÁMPAGO';font-size:22px;font-weight:750;letter-spacing:-.02em;color:var(--accent);order:-1}.presentation .connection{display:none}.presentation main{margin-top:8px}.presentation .toolbar-actions{padding-bottom:6px}.presentation .tab{min-height:50px}.presentation .player{font-size:20px;min-height:64px}.presentation .round-heading{font-size:26px}.presentation .helper{margin:12px 0 18px}.presentation .person-name{font-size:19px}
@media(max-width:1100px){.connection{display:none}.top-actions{gap:10px}.hero{padding:28px;gap:20px}.pitch-art{width:270px;margin-right:5px}.rod-one{left:68px}.rod-two{right:68px}.party-sticker{right:-12px;font-size:20px}.art-label{font-size:8px}.stats>div{padding:17px}.stats .status-stat>span{font-size:21px}.players-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.hero{padding:27px}.pitch-art{width:210px;margin-right:0}.pitch{height:145px}.rod{height:180px}.rod-one{left:49px}.rod-two{right:49px}.area{top:30px;height:68px;width:30px}.art-label{display:none}.hero .eyebrow{font-size:10px}.section-toolbar{flex-wrap:wrap;gap:8px}.toolbar-actions{margin-left:auto}.bracket-caption{flex-wrap:wrap;gap:10px}}
@media(max-width:700px){.topbar{min-height:85px;flex-wrap:wrap;padding:15px 0;gap:16px}.top-actions{width:100%;justify-content:space-between;gap:10px}.top-actions .button{font-size:14px;min-height:44px;padding:9px 12px;flex:1;white-space:normal;min-width:0}.brand{font-size:18px}.hero{padding:27px 22px;min-height:auto;border-radius:22px;margin-top:5px}.hero:before{right:-275px}.hero:after{right:25px;top:20px;box-shadow:-15px 180px 0 -2px #e486a5}.pitch-art{display:none}.hero .eyebrow{font-size:10px;letter-spacing:.07em}.party-spark{font-size:21px}h1{font-size:42px}.intro{font-size:17px}.hero-tags{gap:6px}.hero-tags span{font-size:11px;padding:6px 8px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stats>div>span{font-size:30px}.stats .status-stat>span{font-size:21px}.stats small{font-size:11px;line-height:1.4}.tabs{gap:16px}.tab{font-size:16px}.tab span{font-size:12px}.toolbar-actions{width:100%;justify-content:flex-end;padding:4px 0 12px}.toolbar-actions .button{font-size:15px;min-height:44px}.helper{font-size:14px}.empty-state h2{font-size:27px}.empty-state .eyebrow{font-size:11px}.empty-state>p:not(.eyebrow){font-size:17px}.empty-footer{font-size:11px}.bracket-caption{font-size:13px}.round-nav{gap:7px;padding:10px 0}.round-nav button{font-size:14px;padding:8px 12px;min-height:40px}.scroll-tip{font-size:13px}.round,.match{scroll-margin-top:125px}.round-heading{font-size:22px;flex-wrap:wrap;gap:9px}.round-heading>span{width:34px;height:34px;border-radius:10px}.round-count{font-size:12px}.round-note{font-size:14px}.round-body,.round-body.single-match{grid-template-columns:minmax(0,1fr);gap:14px}.player{font-size:17px;min-height:57px;gap:9px;padding:10px 12px}.match-meta,.match-meta .match-state{font-size:11px}.match-route{font-size:12px}.players-grid{grid-template-columns:1fr}.person-name{font-size:17px}.players-heading{flex-wrap:wrap}.players-heading h2{font-size:26px}.players-heading p{font-size:16px}footer{font-size:11px}footer>span:nth-child(2){font-size:12px}.champion{padding:20px 17px;gap:14px;align-items:flex-start}.champion .cup{font-size:32px;padding:7px;border-radius:14px}.champion h2{font-size:26px}.champion small{font-size:11px;letter-spacing:.05em}.champion p{font-size:15px}dialog{padding:22px}dialog h2{font-size:26px}dialog p{font-size:17px}.modal-actions{flex-wrap:wrap}.modal-actions .button{font-size:15px}.winner-option{font-size:18px}.presentation .topbar:after{font-size:23px}.presentation .round-heading{font-size:24px}.presentation .player{font-size:18px;min-height:60px}.presentation .person-name{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}


/* Participantes: edición directa, numerada y en flujo de página. */
.view-players .hero,.view-players .stats{display:none}.view-players .section-toolbar{margin-top:8px}.view-players .helper{display:none}.view-players #shuffleButton{display:none}.view-players .toolbar-actions{padding:0}.view-players .players-heading{margin:20px 0 15px;gap:15px}.view-players .players-heading h2{font-size:25px}.view-players .players-heading p{font-size:14px;margin:6px 0 0}.roster-count{font-size:14px;color:var(--accent-dark);background:#e1ecfa;padding:9px 13px;border-radius:20px;white-space:nowrap}
.roster-add{display:flex;align-items:center;gap:12px;padding:13px 16px;background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:14px}.roster-add label{font-size:14px;font-weight:650;white-space:nowrap}.roster-add input{min-width:0;flex:1;border:1px solid #ccd9e9;background:#fafcff;color:var(--text);border-radius:9px;font-size:17px;padding:10px 12px;outline-color:var(--accent)}.roster-add .button{padding:10px 16px;font-size:15px}
.inline-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}.roster-row{display:grid;grid-template-columns:28px 23px minmax(0,1fr) 34px;gap:9px;align-items:center;padding:6px 10px;background:#fff;border:1px solid #d7e1ed;border-radius:11px;min-height:55px}.roster-number{font-size:14px;font-weight:750;color:#516c8e;text-align:center;font-variant-numeric:tabular-nums;background:#ebf1f9;border-radius:7px;min-height:26px;display:grid;place-items:center}.roster-row input[type=checkbox]{width:21px;height:21px;margin:0;accent-color:var(--accent);cursor:pointer}.roster-name{width:100%;min-width:0;min-height:40px;font:inherit;font-size:17px;line-height:1.4;color:var(--text);border:1px solid transparent;background:transparent;padding:7px 5px;border-radius:7px;resize:none;overflow:hidden;outline-color:var(--accent)}.roster-name:hover{border-color:#dbe5f1}.roster-name:focus{background:#fafcff;border-color:#a0bbdc}.roster-row.unchecked{background:#ebeff4;border-style:dashed}.roster-row.unchecked .roster-name{color:#68727e}.remove-player{border:0;border-radius:8px;background:#fbf0f3;color:#a13c51;font-size:25px;line-height:1;min-height:36px}.remove-player:hover{background:#f3d6df}.roster-empty{grid-column:1/-1;color:var(--muted);font-size:16px;padding:20px;border:1px dashed var(--line);border-radius:12px;text-align:center}
#rosterError:empty{display:none}#rosterError{margin:12px 0}.roster-savebar{position:sticky;bottom:12px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 16px;margin-top:16px;box-shadow:0 5px 25px #30455e14}.roster-savebar>span{font-size:14px;color:var(--muted);line-height:1.4}.roster-savebar>div{display:flex;gap:9px;flex-shrink:0}.roster-savebar .button{font-size:14px;min-height:40px;padding:9px 13px}.roster-savebar.has-changes{border-color:#91b2db}.roster-savebar.has-changes>span{color:var(--accent-dark);font-weight:600}
@media(max-width:1000px){.inline-roster{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.view-players .players-heading{margin-top:15px;gap:10px}.view-players .players-heading h2{font-size:23px}.view-players .players-heading p{font-size:13px}.roster-count{font-size:13px;padding:7px 11px}.roster-add{flex-wrap:wrap;gap:8px;padding:10px}.roster-add label{width:100%;font-size:13px}.roster-add input{font-size:16px;padding:10px;flex-basis:120px}.roster-add .button{font-size:14px;padding:10px}.roster-row{grid-template-columns:23px 21px minmax(0,1fr) 30px;gap:7px;padding:5px 7px}.roster-name{font-size:16px;padding:7px 3px}.roster-number{font-size:13px}.roster-savebar{flex-wrap:wrap;gap:8px;padding:10px;bottom:6px}.roster-savebar>span{font-size:12px}.roster-savebar>div{width:100%;justify-content:flex-end;gap:7px}.roster-savebar .button{font-size:13px;padding:9px 11px}.view-players footer{margin-top:24px}}

/* Detalles gráficos para la fiesta; los nombres mantienen su protagonismo. */
.hero-tags i,.tab-icon,.round-icon{font-style:normal}.hero-tags i{font-size:15px;margin-right:3px}.hero-cup{position:absolute;z-index:3;left:-38px;top:-27px;width:82px;height:82px;transform:rotate(12deg);filter:drop-shadow(0 6px 4px #30476225)}.party-sticker>span{font-size:23px}.party-spark{font-size:24px}.art-label>span{font-size:16px}
.stats>div>.stat-illustration{position:absolute;right:17px;top:19px;width:42px;height:42px;display:grid;place-items:center;font-size:26px;background:#e7f0fb;border-radius:14px;letter-spacing:0;transform:rotate(6deg)}.stats>div:nth-child(2)>.stat-illustration{background:#ffebdf;transform:rotate(-6deg)}.stats>div:nth-child(3)>.stat-illustration{background:#e5f4ec;transform:rotate(4deg)}.stats>div:not(.status-stat)>span[id]{padding-right:42px}.stats small>span[aria-hidden]{font-size:15px;vertical-align:middle}
.tab-icon{font-size:19px;vertical-align:-1px;margin-right:4px}.round-icon{font-size:25px;line-height:1;flex-shrink:0;margin-right:-4px}.state-emoji{font-size:13px;vertical-align:middle;margin-right:3px}.match.ready .match-meta{background:#ecf5ff}.match.complete .match-meta{background:#f5fbf7}.round:last-of-type .match{border:2px solid #eac465;box-shadow:0 5px 20px #bb872614}.round:last-of-type .match-meta{background:#fff7df}
.heading-emoji{display:inline-grid;place-items:center;width:36px;height:36px;margin-right:5px;background:#ffe5b1;border-radius:12px;font-size:24px;vertical-align:middle;transform:rotate(-6deg)}.roster-row:nth-child(4n+2) .roster-number{background:#ffeadb;color:#a15d30}.roster-row:nth-child(4n+3) .roster-number{background:#def0e8;color:#3b755e}.roster-row:nth-child(4n+4) .roster-number{background:#f9e1ed;color:#a44778}.roster-row.unchecked .roster-number{background:#dfe5ec;color:#697685}
.empty-state .empty-icon{width:86px;height:86px;background:transparent;transform:rotate(-5deg)}.empty-icon img{display:block}.champion .cup{width:88px;height:88px;flex-shrink:0;padding:0;background:transparent;transform:rotate(-6deg);border-radius:0}.champion>div{flex:1;min-width:0}.champion-confetti{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.55;background-image:radial-gradient(circle at 89% 24%,#a3c6f1 0 4px,transparent 5px),radial-gradient(circle at 94% 72%,#ed997f 0 4px,transparent 5px),radial-gradient(circle at 80% 85%,#78bca1 0 3px,transparent 4px),radial-gradient(circle at 72% 16%,#e1b552 0 3px,transparent 4px)}.champion-confetti:before,.champion-confetti:after{content:'';position:absolute;width:8px;height:22px;border-radius:3px;background:#e09cab;right:19%;top:45%;transform:rotate(30deg)}.champion-confetti:after{background:#97b7df;right:6%;top:22%;transform:rotate(-32deg)}
@media(max-width:1100px){.hero-cup{width:68px;height:68px;left:-20px;top:-22px}.stats>div>.stat-illustration{right:12px;width:34px;height:34px;font-size:22px}.stats>div:not(.status-stat)>span[id]{padding-right:32px}}
@media(max-width:700px){.tabs{gap:12px}.tab{font-size:15px}.tab-icon{font-size:17px;margin-right:1px}.tab span{margin-left:3px}.stats>div>.stat-illustration{top:18px;right:10px;width:30px;height:30px;font-size:21px;border-radius:10px}.stats>div:not(.status-stat)>span[id]{padding-right:28px}.hero-tags i{font-size:13px;margin-right:1px}.hero-tags span{padding:6px 7px}.round-heading{gap:7px}.round-icon{font-size:21px;margin-right:0}.round-heading>span{width:30px;height:30px}.round-count{font-size:11px}.heading-emoji{width:31px;height:31px;font-size:21px;margin-right:3px}.view-players .players-heading h2{font-size:22px}.champion .cup{width:64px;height:64px;padding:0}.champion h2{overflow-wrap:anywhere}.champion-confetti{opacity:.35}.roster-savebar .button>span[aria-hidden]{font-size:17px}.roster-savebar .button{gap:6px;padding:9px 10px}}

/* Illustration for this game; preserve the approved layout. */
.game-art{display:block;width:100%;height:auto;filter:drop-shadow(0 9px 10px #354d6b15)}.pitch-art .art-label{margin-top:13px}.pitch-art .hero-cup{left:-36px;top:6px}.pitch-art .party-sticker{top:-12px}

/* Keep clear and shuffle controls visible, including on the projector. */
.section-toolbar{flex-wrap:wrap}.toolbar-actions{flex-wrap:wrap;justify-content:flex-end}.view-players #resetButton{display:none}
@media(max-width:700px){.toolbar-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.toolbar-actions .button{white-space:normal;min-width:0;padding:10px;line-height:1.25}.toolbar-actions #undoButton{grid-column:1/-1;justify-self:end}.view-players .toolbar-actions{display:flex}}

/* Game color identity, shared across full and projector views. */
.round:nth-of-type(2){--round-color:#08778c;--round-soft:#d6f3f7}.round:nth-of-type(3){--round-color:#2456b7;--round-soft:#dfe9ff}.round:nth-of-type(4){--round-color:#176d8d;--round-soft:#d9f0fa}.round:last-of-type{--round-color:#89601a;--round-soft:#ffe8b1}
/* Keep secondary text dark enough for projection across all palettes. */
.intro,.hero-tags span,.art-label,.round-nav button,.player .seed,.player.loser,.player.tbd,.match-route,.round-flow,footer,.icon-button,.roster-number,.roster-row.unchecked .roster-name,.roster-row.unchecked .roster-number{color:var(--muted)}