.match-pitches{--disk-primary:#263e75;--disk-secondary:#fff;display:grid;gap:1rem;margin:1rem 0;min-width:0;color:#fff}
.match-pitches__toolbar,.match-pitches__board,.match-pitches__panels{min-width:0}
.match-pitches__instructions{margin:.6rem 0 0;color:#e8e8e8;line-height:1.5}
.match-pitches__graphic{min-width:0;background:#101b14;border:1px solid #6d8b71;border-radius:2px;padding:0 0 14px}
.match-pitches__graphic-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 12px;background:#191919}
.match-pitches__graphic-title{flex:1;margin:0;font-size:14px;color:#ccc}
.match-pitches__graphic-tools .match-pitches__action{min-height:36px;padding:6px 10px;font-size:14px}
.match-pitches__graphic-tools-status{width:100%;font-size:14px;color:#ffdf00}
.match-pitches__graphic-tools-status:empty{display:none}
.match-pitches__scroll{overflow-x:auto;overscroll-behavior-inline:contain;padding:0 14px 6px;scrollbar-color:#ffdf00 #153720}
.match-pitches__scroll:focus-visible{outline:3px solid #ffdf00;outline-offset:-4px}
.match-pitches__canvas{min-width:900px}
.match-pitches__banner{min-height:108px;display:grid;grid-template-columns:minmax(0,1fr) 240px minmax(0,1fr);align-items:center;gap:18px;padding:12px 0;background:#0b2c19}
.match-pitches__club-header{display:flex;flex-direction:column;gap:6px;min-width:0;padding:0 12px}
.match-pitches__club-header--right{text-align:right;align-items:flex-end}
.match-pitches__club-name{color:#fff;font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:34px;font-weight:900;line-height:1.05;text-transform:uppercase;letter-spacing:.02em;text-shadow:2px 2px #111,3px 3px #005e36;overflow-wrap:anywhere}
.match-pitches__club-header--right .match-pitches__club-name{text-shadow:2px 2px #111,3px 3px #c61c2d}
.match-pitches__club-coach{font-family:'Arial Narrow',Arial,sans-serif;font-size:14px;line-height:1.3;color:#e4f0e7}
.match-pitches__match-meta{display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;min-width:0}
.match-pitches__badge{background:#ffdf00;color:#07170e;padding:3px 8px;border-radius:2px;font:900 14px/1.2 'Arial Narrow',Arial,sans-serif;letter-spacing:.04em}
.match-pitches__versus{color:#ffdf00;font:900 25px/1 Impact,Arial,sans-serif}
.match-pitches__competition{font:700 14px/1.2 'Arial Narrow',Arial,sans-serif;letter-spacing:.02em}
.match-pitches__kickoff,.match-pitches__owner{font-size:14px;line-height:1.2;color:#d8e9de}
.match-pitches__owner{color:#ffdf00;font-weight:bold}
.match-pitches__field{position:relative;height:var(--pitch-height,460px);isolation:isolate;border:2px solid #dce9d9;overflow:visible;background:repeating-linear-gradient(90deg,#2b963c 0,#2b963c 8.333%,#258635 8.333%,#258635 16.666%)}
.match-pitches__field::before{position:absolute;z-index:0;inset:0 50% 0 auto;border-left:2px solid #d9ecd7;content:''}
.match-pitches__field::after{position:absolute;z-index:0;left:50%;top:50%;width:138px;height:138px;border:2px solid #d9ecd7;border-radius:50%;transform:translate(-50%,-50%);content:''}
.match-pitches__penalty,.match-pitches__six-yard,.match-pitches__goal{position:absolute;z-index:0;top:50%;transform:translateY(-50%);border:2px solid #d9ecd7;pointer-events:none}
.match-pitches__penalty{height:48%;width:12%}
.match-pitches__penalty--left{left:-2px;border-left:0}.match-pitches__penalty--right{right:-2px;border-right:0}
.match-pitches__six-yard{height:24%;width:5%}
.match-pitches__six-yard--left{left:-2px;border-left:0}.match-pitches__six-yard--right{right:-2px;border-right:0}
.match-pitches__goal{height:19%;width:10px;background:#08221380}
.match-pitches__goal--left{left:-10px}.match-pitches__goal--right{right:-10px}
.match-pitches__center-brand{position:absolute;z-index:2;left:50%;top:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;width:132px;height:132px;border:5px solid #ffdf00;border-radius:50%;outline:2px solid #111;box-shadow:0 0 0 5px #e6efd1,0 5px 12px #0008;background:#080808;transform:translate(-50%,-50%) rotate(-4deg);text-align:center;pointer-events:none}
.match-pitches__brand-overline{font:700 10px/1.2 'Arial Narrow',Arial,sans-serif;letter-spacing:.12em;color:#fff}
.match-pitches__brand-name{font:900 27px/1.2 Impact,'Arial Narrow',Arial,sans-serif;color:#ffdf00;text-shadow:1px 2px #777}
.match-pitches__brand-tagline{font:700 10px/1.2 'Arial Narrow',Arial,sans-serif;color:#fff}
.match-pitches__half{position:absolute;z-index:1;top:0;bottom:0;width:50%;pointer-events:none}
.match-pitches__half--left{left:0}.match-pitches__half--right{right:0}
.match-pitches__team--palmeiras{--disk-primary:#006437;--disk-secondary:#eaffef}
.match-pitches__team--estudiantes{--disk-primary:#c51d2c;--disk-secondary:#111}
.match-pitches__row{position:absolute;top:4%;bottom:4%;left:var(--column-x,53%);width:92px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;justify-content:space-around;gap:10px;pointer-events:none}
.match-pitches__half--right .match-pitches__row{left:calc(100% - var(--column-x,53%))}
.match-pitches__player{flex:none;width:100%;min-width:0;text-align:center;pointer-events:auto}
.match-pitches__button{display:flex;flex-direction:column;align-items:center;gap:5px;width:100%;min-height:44px;margin:0;border:0;border-radius:4px;padding:0;background:transparent;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent}
.match-pitches__button:hover{background:transparent;color:#fff}
.match-pitches__disk{display:block;box-sizing:border-box;flex:none;width:38px;height:38px;border:3px solid var(--disk-secondary);border-radius:50%;background:radial-gradient(circle at 35% 25%,#ffffff45 0,transparent 47%),var(--disk-primary);box-shadow:0 0 0 2px #111,0 4px 0 #18361d,0 5px 7px #000a,inset 0 0 0 2px #ffffff69;transition:transform 120ms ease}
.match-pitches__team--estudiantes .match-pitches__disk{background:radial-gradient(circle at 35% 25%,#ffffff4a 0,transparent 48%),repeating-linear-gradient(90deg,#c51d2c 0,#c51d2c 8px,#fff 8px,#fff 14px)}
.match-pitches__disk--goalkeeper,.match-pitches__team--estudiantes .match-pitches__disk--goalkeeper{background:radial-gradient(circle at 35% 25%,#f9eb76 0,#d2aa05 65%,#8c6900 100%);border-color:#253723}
.match-pitches__half--right .match-pitches__disk--goalkeeper{background:radial-gradient(circle at 35% 25%,#a3acb5 0,#58616b 60%,#292f38 100%);border-color:#1d2c22}
.match-pitches__button:hover .match-pitches__disk{transform:translateY(-2px)}
.match-pitches__button:active .match-pitches__disk{transform:translateY(2px)}
.match-pitches__button:focus-visible{outline:3px solid #ffdf00;outline-offset:3px}
.match-pitches__player-name{display:block;max-width:100%;border-radius:2px;padding:2px 4px;background:#073316f2;color:#fff;font:900 14px/1.15 'Arial Narrow',Arial,sans-serif;text-transform:uppercase;overflow-wrap:anywhere;text-shadow:0 1px #000}
.match-pitches__position{position:absolute;overflow:hidden;clip-path:inset(50%);width:1px;height:1px;white-space:nowrap}
.match-pitches__panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}
.match-pitches__team{min-width:0;margin:0;border:1px solid #555;border-radius:8px;padding:1rem;background:#202820;color:#fff}
.match-pitches__heading{margin:0 0 .7rem;color:#ffdf00;font-size:1.25rem}
.match-pitches__meta{margin:.35rem 0;line-height:1.4}
.match-pitches__note{margin:.8rem 0 .5rem;color:#ffed8a;font-size:14px;line-height:1.5}
.match-pitches__sources{margin:0 0 1rem;color:#ddd;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.match-pitches__source-link{color:#a8dbff;text-decoration:underline;text-underline-offset:3px}
.match-pitches__source-link:focus-visible{outline:3px solid #ffdf00;outline-offset:3px}
.match-pitches__status{min-height:2.4em;margin:.9rem 0 0;color:#e8e8e8;font-size:14px;line-height:1.5}
.match-pitches__empty{padding:1rem;color:#fff}
.match-pitches__control{display:flex;flex-direction:column;align-items:stretch;gap:.4rem;min-width:0;margin:0 0 .9rem;font-size:1rem}
.match-pitches__control>span{font-weight:700}
.match-pitches__select,.match-pitches__input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #888;border-radius:6px;padding:.65rem;background:#fff;color:#171717;font:inherit;font-size:1rem;text-align:left}
.match-pitches__select{appearance:none;padding-right:2rem;background-image:linear-gradient(45deg,transparent 50%,#171717 50%),linear-gradient(135deg,#171717 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px;background-repeat:no-repeat}
.match-pitches__select:focus-visible,.match-pitches__input:focus-visible,.match-pitches__action:focus-visible{outline:3px solid #ffdf00;outline-offset:3px}
.match-pitches__team-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:.9rem 0}
.match-pitches__action{min-height:44px;max-width:100%;border:1px solid #ffdf00;border-radius:6px;padding:.65rem .8rem;background:#ffdf00;color:#111;font:inherit;font-weight:700;line-height:1.4;cursor:pointer}
.match-pitches__action--secondary{border-color:#aaa;background:#343434;color:#fff}
.match-pitches__action--secondary:hover{background:#454545;color:#fff}
.match-pitches__action:disabled,.match-pitches__button:disabled{cursor:not-allowed;opacity:.55}
.match-pitches__editor{margin:.9rem 0;border:1px solid #808080;border-radius:8px;padding:.8rem;background:#191919}
.match-pitches__editor[hidden]{display:none}
.match-pitches__editor-heading{margin:0 0 1rem;color:#ffdf00;font-size:1rem;overflow-wrap:anywhere}
.match-pitches__editor-status{margin:.5rem 0;color:#ffed8a;font-size:14px;line-height:1.5}
.match-pitches__editor-help{margin:.7rem 0 0;color:#ddd;font-size:14px;line-height:1.5}
.match-pitches__bench{margin-top:1rem;border-top:1px solid #555;padding-top:.9rem;font-size:14px;line-height:1.5}
.match-pitches__bench>summary{color:#ffed8a;cursor:pointer;font-size:1rem}
.match-pitches__bench>summary:focus-visible{outline:3px solid #ffdf00;outline-offset:3px}
.match-pitches__bench-list{padding-left:1.2rem}.match-pitches__bench-list li{margin:.4rem 0;overflow-wrap:anywhere}
.match-pitches__graphic:fullscreen{overflow:auto;width:100%;height:100%;padding:18px;background:#101810;box-sizing:border-box}
.match-pitches__graphic:fullscreen .match-pitches__canvas{width:min(1450px,100%);margin:auto}
.match-pitches__graphic:fullscreen .match-pitches__field{height:max(var(--pitch-height,460px),65vh)}
.match-pitches__graphic--expanded{position:fixed;inset:0;z-index:10000;width:100%;height:100%;overflow:auto;border:0;padding:12px;background:#101810;box-sizing:border-box}
.match-pitches__graphic--expanded .match-pitches__graphic-tools{position:sticky;top:-12px;z-index:5;margin-bottom:8px;background:#151d17;border:1px solid #657b65}
.match-pitches__graphic--expanded .match-pitches__scroll{overflow:auto;max-height:calc(100dvh - 92px)}
.match-pitches__graphic--expanded .match-pitches__canvas{width:min(1450px,100%);margin:auto}
.match-pitches__graphic--expanded .match-pitches__field{height:max(var(--pitch-height,460px),65vh)}
@media(max-width:700px){.match-pitches__panels{grid-template-columns:minmax(0,1fr)}.match-pitches__scroll{padding-left:10px;padding-right:10px}.match-pitches__graphic-tools{align-items:flex-start}.match-pitches__graphic-tools .match-pitches__action{white-space:nowrap}.match-pitches__graphic-title{min-width:100%}}
@media(prefers-reduced-motion:reduce){.match-pitches__disk{transition:none}}
.match-pitches__player-name{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-weight:400;letter-spacing:.035em;overflow-wrap:normal}
.match-pitches__half{width:100%;left:0;right:0;z-index:3}
.match-pitches__half--left,.match-pitches__half--right{left:0;right:0}
.match-pitches__player--free{position:absolute;left:clamp(46px,var(--player-x),calc(100% - 46px));top:clamp(var(--player-half-height,46px),var(--player-y),calc(100% - var(--player-half-height,46px)));width:92px;transform:translate(-50%,-50%)}
.match-pitches__button{touch-action:none;user-select:none;cursor:grab}
.match-pitches--dragging,.match-pitches--dragging .match-pitches__button{user-select:none;cursor:grabbing}
.match-pitches__player--dragging{z-index:20;filter:drop-shadow(0 3px 4px #0008)}
.match-pitches__half--dragging{z-index:6}
.match-pitches__graphic-tools-status,.match-pitches__graphic-tools-status:empty{display:block;min-height:1.2em;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-pitches__banner{height:156px;min-height:156px;box-sizing:border-box}
.match-pitches__club-coach{height:2.6em;min-height:2.6em;overflow:hidden}
.match-pitches__owner{display:block;width:100%;height:1.2em;min-height:1.2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
