.shirt-number{display:inline-block;white-space:nowrap;font-size:.8em;font-weight:800;color:var(--muted,#627468);margin-right:.3em}
.goal-replay-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:24px;margin:24px 0}
.goal-replay-card{padding:20px;border:1px solid #cbd5ce;border-radius:14px;background:#fff;color:#17362b;min-width:0}
.goal-replay-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.goal-replay-heading h3{font-size:21px;font-weight:800;margin:0}
.goal-replay-heading>span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#596c61}
.goal-description{font-size:14px;line-height:1.65;margin:14px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.goal-replay-pitch{display:block;width:100%;max-height:650px;margin:auto}
.goal-replay-caption{font-size:14px;min-height:2.8em;margin:12px 0}
.goal-replay-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}
.goal-replay-controls button,.goal-replay-controls select{border:1px solid #9caf9e;border-radius:7px;padding:8px 12px;background:#fff;color:#17362b;cursor:pointer}
.goal-replay-controls button:first-child{background:#173f32;color:#fff;border-color:#173f32;min-width:80px}
.goal-replay-controls output{margin-left:auto;font-variant-numeric:tabular-nums}
.goal-replay-seek{width:100%;accent-color:#236048;margin:16px 0 8px;cursor:pointer}
.goal-replay-key{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;color:#596c61}
.goal-replay-key span:first-child{color:#063758;border-bottom:2px solid #6b1112}
.goal-replay-key span:nth-child(2){color:#5b6d80}
.match-goal-list{margin:24px 0}
.match-goal-list h3{margin-bottom:12px}
.match-goal-list ul{list-style:none;margin:0;padding:0}
.match-goal-list li{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line,#879b90)}
.match-goal-list li>div{display:grid;gap:3px}
.match-goal-list li>div>span{color:var(--muted,#627468);font-size:.85em}
.goal-replay-open{display:inline-flex;align-items:center;gap:8px;padding:8px 0;border:0;background:none;color:var(--ink,#17362b);font:inherit;font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
.goal-replay-modal{box-sizing:border-box;width:min(860px,calc(100% - 24px));max-height:92vh;max-height:92dvh;margin:auto;padding:0;border:1px solid var(--line,#879b90);border-radius:16px;background:var(--panel,#fff);color:var(--ink,#17362b);box-shadow:0 24px 80px #0008;overflow:auto}
.goal-replay-modal:not([open]){display:none}
.goal-replay-modal::backdrop{background:#00101dc2;backdrop-filter:blur(4px)}
.goal-replay-modal-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;border-bottom:1px solid var(--line,#879b90)}
.goal-replay-modal-heading h2{margin:0;font-size:20px}
.goal-replay-modal-heading button{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border:1px solid var(--line,#879b90);border-radius:8px;background:none;color:inherit;font-size:28px;cursor:pointer}
.goal-replay-modal .goal-replay-card{border:0;border-radius:0;padding:18px}
.goal-replay-modal .goal-replay-pitch{max-height:420px;max-height:min(48dvh,420px)}
.goal-replay-modal .goal-description{margin:10px 0;font-size:14px}
.goal-replay-modal :focus-visible,.goal-replay-open:focus-visible{outline:3px solid var(--accent,#a73848);outline-offset:3px}
body.goal-replay-modal-open{overflow:hidden}
.goal-layout-editor{margin-top:18px;padding-top:14px;border-top:1px solid #879b90;font-size:14px}
.goal-layout-editor summary{font-weight:700;cursor:pointer}
.goal-layout-editor p{margin:12px 0;line-height:1.5}
.goal-layout-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin:12px 0}
.goal-layout-fields label{display:grid;gap:6px}
.goal-layout-fields select,.goal-layout-fields input{min-width:0;width:100%;border:1px solid #879b90;border-radius:7px;padding:8px;background:#fff;color:#17362b}
.goal-layout-editor button:disabled{opacity:.5;cursor:not-allowed}
.replay-layout-editing .goal-replay-pitch{max-height:450px;touch-action:none}
.replay-layout-editing [data-replay-actors]>g{cursor:grab}
.replay-layout-editing [data-replay-actors]>g:active{cursor:grabbing}
.replay-player-selected>circle{stroke:#f8d45b;stroke-width:3.5}
@media(max-width:600px){.goal-layout-fields{grid-template-columns:1fr 1fr}.goal-layout-fields>label:first-child{grid-column:1/-1}}
.match-tools{display:grid;gap:24px}
.match-tools-panel{padding:24px;background:#fff;color:#17362b;border:1px solid #cbd5ce;border-radius:12px;min-width:0}
.goal-description-editor{scroll-margin-top:7rem}
.match-tools-panel h2{font-size:21px;font-weight:750;margin:0 0 12px}
.match-tools-panel p{margin:10px 0;line-height:1.6}
.match-tools-panel label{font-size:14px;display:block;font-weight:650}
.match-tools-panel input:not([type=range]),.match-tools-panel textarea,.match-tools-panel select{display:block;width:100%;margin:6px 0 16px;border:1px solid #879b90;border-radius:8px;padding:10px 12px;background:#fff;color:#17362b}
.match-tools-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:16px}
.match-tools-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.match-tools-actions button,.match-tools-actions a{padding:9px 14px;border-radius:7px;background:#194535;color:#fff;font-size:13px;cursor:pointer}
.match-tools-actions button:disabled{opacity:.5;cursor:wait}
.match-tools-error{color:#a12828;font-size:14px}
.match-tools-table{border-collapse:collapse;width:100%;font-size:14px}
.match-tools-table th,.match-tools-table td{padding:12px;text-align:left;border-bottom:1px solid #d5dfd8;vertical-align:top}
.match-tools-table small{display:block;color:#617268}
.match-tools-scroll{overflow-x:auto}
.match-tools-status{font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
:is(.dark,html[data-theme="dark"]) .match-tools-panel,:is(.dark,html[data-theme="dark"]) .goal-replay-card{background:#1e2925;color:#edf5ef;border-color:#43594a}
:is(.dark,html[data-theme="dark"]) .goal-replay-caption,:is(.dark,html[data-theme="dark"]) .goal-description{color:#edf5ef}
:is(.dark,html[data-theme="dark"]) .match-tools-table small,:is(.dark,html[data-theme="dark"]) .goal-replay-key,:is(.dark,html[data-theme="dark"]) .goal-replay-heading>span{color:#bed1c4}
.rating-page{background:#eef2ed;color:#17362b;font-family:system-ui,sans-serif;margin:0;padding:24px 16px}
.rating-shell{max-width:760px;margin:24px auto}
.rating-brand{font-weight:850;font-size:13px;letter-spacing:.12em}
.rating-page h1{font-size:clamp(28px,6vw,42px);letter-spacing:-.035em;line-height:1.15}
.rating-intro{line-height:1.7;color:#50665b}
.rating-player{background:#fff;border:1px solid #cbd5ce;border-radius:12px;margin:16px 0;padding:20px}
.rating-player legend{font-weight:750;padding:0 6px}
.rating-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.rating-options label{position:relative;cursor:pointer}
.rating-options input{position:absolute;opacity:0;width:1px;height:1px}
.rating-options span{display:block;border:1px solid #9bad9e;border-radius:7px;padding:12px;font-size:14px}
.rating-options input:checked+span{background:#194535;color:#fff;border-color:#194535}
.rating-options input:focus-visible+span{outline:3px solid #af810a;outline-offset:3px}
.rating-unrated{flex-basis:100%}
.rating-submit{background:#194535;color:#fff;font-weight:750;padding:15px 22px;border:0;border-radius:8px;font-size:16px;cursor:pointer}
.rating-error{padding:14px;border:1px solid #b83b3b;background:#fff2f2;color:#8c2323;border-radius:8px}
