:root{color-scheme:dark;--bg:#0c1611;--text:#eff7ed;--muted:#9bad9f;--mint:#b1f0bd;--border:#ffffff19;--red:#ff7f87;--blue:#8bbcff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
/* Full time stays on the pitch. Detailed statistics open only on request. */
.match-summary{position:fixed;inset:0;z-index:8;display:grid;place-items:center;padding:24px;pointer-events:none;background:transparent}
.match-summary-content{text-align:center;max-width:620px;pointer-events:auto;text-shadow:0 2px 18px #07100de0}
.match-summary .eyebrow{color:#e2d8b3;letter-spacing:.24em;font-size:11px;margin:0 0 15px}
.match-summary h2{font-size:clamp(46px,7vw,82px);font-weight:850;line-height:1.04;color:#fffdf0;letter-spacing:-.05em;margin:0}
.summary-caption{font-size:12px;color:#e0e5d5;line-height:1.6;margin:16px 0 0}
.match-summary-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:28px;text-shadow:none}
.match-summary-actions .primary,.match-summary-actions .secondary{width:auto;min-width:130px;letter-spacing:0;border-radius:8px;font-size:12px;padding:12px 18px}
.match-summary-actions .primary{background:#e2d8ae;color:#1b3023}
.match-summary-actions .quiet,.match-summary-actions .secondary{color:#f1efdf;background:#14291b80;border:1px solid #e0e5cf66;padding:12px 18px;border-radius:8px}
.match-summary-actions button:hover{filter:brightness(1.12)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.match-summary-actions{gap:8px;margin-top:22px}.match-summary-actions .primary,.match-summary-actions .secondary,.match-summary-actions .quiet{font-size:11px;padding:11px 14px;min-width:0}}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--mint);outline-offset:3px}button:disabled{cursor:default}button{transition:background .15s,border-color .15s,transform .12s}button:active{transform:translateY(1px)}[hidden]{display:none!important}#game{position:relative;width:100%;height:100%;isolation:isolate}canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}.hud{position:absolute;top:15px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:24px;background:transparent;border:0;box-shadow:none;padding:10px 22px;border-radius:11px;pointer-events:none;font-variant-numeric:tabular-nums}.score{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:850;min-width:44px}.score i{width:8px;height:8px;border-radius:50%;background:currentColor}.red{color:var(--red)}.blue{color:var(--blue)}.time{text-align:center;display:grid;gap:3px}#clock{font:700 17px ui-monospace,Consolas,monospace;color:#f2e9b8}.time small{color:#9bad9f;font-size:9px;font-weight:750;letter-spacing:.12em;white-space:nowrap}.top-button{position:absolute;top:22px;left:22px}.quiet{border:1px solid var(--border);background:#14221ac9;color:#c6d6c8;padding:9px 13px;border-radius:7px;font-size:12px}.quiet:hover{background:#24382c}.quiet kbd{font-size:10px;color:#8b9e90;margin-left:12px}.build{position:absolute;top:28px;right:24px;letter-spacing:.14em;font-size:10px;font-weight:750;color:#8ea895}.hint{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);font-size:11px;color:#d8f0da;background:transparent;border:0;padding:8px 15px;border-radius:20px;white-space:nowrap;pointer-events:none}.modal{position:absolute;inset:0;z-index:5;display:grid;place-items:center;padding:22px;background:#050e09bd;backdrop-filter:blur(6px);overflow:auto}.card{width:min(450px,100%);padding:30px;border:1px solid #d4ffdc24;border-radius:18px;background:linear-gradient(145deg,#192b20,#101e17 65%);box-shadow:0 24px 80px #0009}.card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.eyebrow{color:#a7c3ae;font-size:10px;letter-spacing:.18em;font-weight:800;margin:0 0 10px}.card-top .eyebrow{margin:0}.badge{color:#c6e8cc;background:#b3e2bf0d;border:1px solid #bbeac52a;border-radius:4px;font-size:9px;font-weight:750;letter-spacing:.1em;padding:5px 7px;white-space:nowrap}h1,h2{margin:0;letter-spacing:-.055em}h1{font-size:45px;line-height:1.12;font-weight:900}h2{font-size:30px}.title-dot{color:var(--mint)}.sub{color:var(--muted);font-size:13px;line-height:1.6;margin:10px 0 25px}.group{display:block;padding:0;border:0;margin:20px 0}.label{display:block;color:#b2c5b8;font-size:10px;letter-spacing:.12em;font-weight:800;text-transform:uppercase;margin:0 0 9px}input[type=text],input:not([type]){display:block;width:100%;border:1px solid #ffffff22;background:#0b1911;color:#eff7ed;border-radius:7px;padding:11px 13px;font-size:14px}.pills{display:flex;gap:6px}.pills button{min-width:0;flex:1;border:1px solid #ffffff21;background:#102018;color:#bcd0c1;border-radius:7px;padding:11px 4px;font-weight:750;font-size:13px}.pills button:hover{background:#253d2e}.pills button[aria-pressed=true]{background:#9ce4af16;border-color:#b1f0bd;box-shadow:inset 0 0 0 1px #b1f0bd1a;color:#d9f7dc}.teams button{display:flex;align-items:center;gap:8px;text-align:left;padding:11px 12px}.teams button span{font-size:10px;color:#91a899;margin-left:auto;font-weight:550}.team-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.red-dot{background:var(--red)}.blue-dot{background:var(--blue)}.actions{display:grid;gap:9px;margin-top:24px}.primary,.secondary{width:100%;border:1px solid transparent;border-radius:7px;padding:13px 16px;font-size:12px;letter-spacing:.04em;font-weight:850}.primary{background:#b1f0bd;color:#0d2917}.primary:hover{background:#cbf8d2}.primary span{float:right;font-size:17px;line-height:15px}.secondary{background:#22372a;border-color:#ffffff12;color:#d5e6d8}.secondary:hover{background:#2b4635}.menu-footer{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:10px;color:#81998a;margin-top:23px}.text-button{border:0;background:none;padding:3px 0;color:#b6cfbd;font-size:11px;text-decoration:underline;text-underline-offset:4px}.tabs{display:flex;gap:20px;border-bottom:1px solid #ffffff1c;margin:23px 0 16px}.tabs button{border:0;border-bottom:2px solid transparent;background:none;color:#94ac9b;padding:0 0 10px;font-size:12px}.tabs button[aria-selected=true]{color:#d8f4dc;border-color:var(--mint)}.setting{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:42px;font-size:13px;color:#c5d7ca}.setting select{max-width:175px;border:1px solid #ffffff22;background:#101f16;border-radius:5px;color:#d3e4d7;padding:7px;font-size:12px}.setting input{accent-color:var(--mint)}.setting input[type=range]{max-width:165px}.setting input[type=checkbox]{width:17px;height:17px}.bind-list{border-top:1px solid var(--border);margin-top:15px;padding-top:9px}.binding{background:#0d1c13;border:1px solid #ffffff26;color:#c5efce;padding:7px 12px;min-width:105px;border-radius:5px;font:600 11px ui-monospace,Consolas,monospace}.binding.awaiting{border-color:#f0d08a;color:#ffdda1;background:#5c492122}.movement-binds{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}details{margin-top:14px}summary{font-size:11px;color:#9eb8a6;cursor:pointer}.fine{font-size:11px;line-height:1.6;color:#8fa797;margin:10px 0}.result-card{text-align:center}.final-score{display:flex;justify-content:center;gap:22px;font-size:64px;font-weight:850;margin:16px 0}.final-score>span:nth-child(2){color:#526e5c;font-weight:400}.result-card .sub{margin:8px 0}#fatal{z-index:20}#error-message{font-size:11px;color:#e6bfa3;white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0 24px;max-height:120px;overflow:auto}
@media(max-width:600px){.modal{padding:14px}.card{padding:23px}.card-top{margin-bottom:10px}h1{font-size:39px}.hud{gap:14px;padding:8px 15px;top:12px}.score{font-size:24px;gap:8px;min-width:34px}.top-button{left:12px;top:auto;bottom:12px;padding:8px 10px}.top-button kbd{display:none}.build{font-size:8px;top:24px;right:12px;max-width:40px;line-height:1.6;text-align:right}.hint{left:auto;right:12px;transform:none;max-width:calc(100% - 100px);white-space:normal;font-size:9px;text-align:right;padding:6px 9px}.menu-footer{font-size:9px;gap:4px}.menu-footer .text-button{font-size:10px}}
@media(max-height:680px){.modal{place-items:start center}.card{margin:auto 0;padding-top:23px;padding-bottom:23px}.group{margin:15px 0}.actions{margin-top:18px}.menu-footer{margin-top:17px}}

.guide-button{position:absolute;top:22px;left:165px}.guide-button[aria-pressed=true]{color:var(--mint)}.menu-movement{border-top:1px solid var(--border);padding-top:8px}
@media(max-width:600px){.guide-button{top:20px;left:12px;font-size:10px;padding:7px 8px}.teams button{padding:11px 9px;gap:5px}.teams button span{font-size:9px}}
.secondary-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.golden-setting{min-height:30px;font-size:12px}.golden-setting input{accent-color:var(--mint)}
.result-card{width:min(1060px,100%)}.result-card .final-score{font-size:48px;margin:7px 0}
.report-grid{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(420px,1.3fr);gap:22px;margin-top:18px;text-align:left}
.heat-panel{min-width:0}.heat-panel canvas{width:100%;height:auto;margin-top:8px;border-radius:6px}
.stats-table{overflow:auto}.stats-table table{width:100%;border-collapse:collapse;font-size:11px;font-variant-numeric:tabular-nums}
.stats-table caption{text-align:left;color:#c3dccb;margin:10px 0;font-weight:700}
.stats-table th,.stats-table td{padding:9px 6px;border-bottom:1px solid var(--border);text-align:right;white-space:nowrap}
.stats-table th:first-child,.stats-table td:first-child{text-align:left}.stats-table th{color:#8fa797;font-size:10px}
.human-row{background:#b1f0bd0b}.result-actions{grid-template-columns:1fr 1fr;max-width:430px;margin:16px auto 0}.result-card .fine{font-size:10px}
.modal{grid-template-columns:minmax(0,1fr)}.card{min-width:0;max-width:100%}.report-grid>div{min-width:0}
@media(max-width:800px){.report-grid{grid-template-columns:minmax(0,1fr)}.heat-panel{max-width:440px;margin:auto;width:100%}.result-card{margin:0}.practice-tools{bottom:76px;max-width:96%;flex-wrap:wrap;justify-content:center;white-space:normal;width:max-content}.practice-tools .quiet{font-size:10px;padding:7px}.practice-tools span{width:100%;text-align:center;font-size:9px}}

.history-open{margin-top:9px;font-size:10px;padding:10px}.history-card{width:min(720px,100%)}.history-list{display:grid;gap:10px;margin:16px 0 22px;max-height:55vh;overflow:auto}.history-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--border);border-radius:9px;padding:13px;background:#102018}.history-entry strong{font-size:13px;display:block}.history-entry p{margin:5px 0 0;font-size:11px;color:#9eb8a6;line-height:1.5}.history-entry .buttons{display:flex;gap:7px;flex-shrink:0}.replay-tools{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);width:min(660px,94%);background:#0b1812f2;border:1px solid #bedfc43b;border-radius:12px;padding:14px 18px;z-index:3}.replay-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}.replay-row strong{font-size:12px}.replay-row select{color:var(--text);background:#15281c;border:1px solid var(--border);border-radius:5px;padding:5px}.replay-timeline{display:flex;align-items:center;gap:16px;font:12px ui-monospace,monospace;margin:12px 0}.replay-timeline input{min-width:0;flex:1;accent-color:var(--mint)}.storage-notice{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);max-width:90%;z-index:9;background:#3f291c;color:#ffe3bd;font-size:11px;padding:9px 14px;border-radius:7px}.history-entry .status{color:#f0d08a}
@media(max-width:600px){.history-entry{flex-wrap:wrap}.history-entry .buttons{width:100%}.history-entry .buttons button{flex:1}.replay-tools{bottom:62px;padding:11px}.replay-row .fine{display:none}.replay-timeline{font-size:10px;gap:7px}}

.score-team{display:flex;flex-direction:column;align-items:center;gap:0}.score-team small{font-size:11px;font-weight:900;letter-spacing:1.5px}

/* Personal goal celebrations, shared across the park and match menus. */
.goal-effect-picker{margin:16px 0 20px;padding:13px;border:1px solid #ffffff24;border-radius:12px;background:#09171094;color:#e8f5eb}
.goal-effect-picker-title{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:11px}
.goal-effect-picker-title strong{font-size:13px}.goal-effect-picker-title>span{color:#9ebaa8;font-size:10px}
.goal-effect-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.goal-effect-choices .goal-effect-option{display:flex;align-items:center;gap:10px;margin:0;min-width:0;text-align:left;padding:11px 9px;border:1px solid #ffffff27;border-radius:8px;background:#13281bd9;color:#e9f0dc;cursor:pointer}
.goal-effect-choices .goal-effect-option:hover{background:#234332;border-color:#d5dbad88}
.goal-effect-choices .goal-effect-option[aria-pressed=true]{background:#29402a;border-color:#e4d9a6;box-shadow:inset 0 0 0 1px #e4d9a622}
.goal-effect-copy{display:grid;gap:5px;min-width:0}.goal-effect-copy strong{font-size:11px;line-height:1.3}.goal-effect-copy small{font-size:9px;line-height:1.45;color:#b2c5ad}
.goal-effect-preview{display:block;position:relative;flex:0 0 44px;width:44px;height:52px;overflow:hidden;border-radius:8px;background:radial-gradient(ellipse at center,#49634b55,transparent 70%)}
.effect-classic:before{content:'';position:absolute;left:16px;top:20px;width:5px;height:8px;background:#fffdf3;transform:rotate(30deg);box-shadow:-11px -9px #fffdf3,11px -12px #fffdf3,13px 11px #fffdf3,-9px 15px #fffdf3}
.effect-classic:after{content:'';position:absolute;left:22px;top:17px;width:5px;height:7px;background:#111915;transform:rotate(-25deg);box-shadow:-15px 8px #111915,10px 10px #111915,-3px 24px #111915}
.effect-fire{background:radial-gradient(ellipse at center,#e574193d,transparent 74%)}
.effect-fire:before{content:'';position:absolute;left:11px;top:12px;width:25px;height:30px;border-radius:70% 10% 65% 45%;transform:rotate(-35deg);background:radial-gradient(ellipse at 40% 70%,#fff7c4 0%,#ffc85b 25%,#f97b22 60%,#ba3716 90%);box-shadow:0 0 12px #ff932c66}
.effect-fire:after{content:'';position:absolute;left:6px;top:8px;width:2px;height:3px;background:#ffe292;box-shadow:25px -1px #ffe292,31px 22px #f6b150,3px 33px #f6b150,16px -5px #ffe292}
.effect-black-hole{background:radial-gradient(ellipse at center,#9382eb55,transparent 75%)}
.effect-black-hole:before{content:'';position:absolute;left:7px;top:14px;width:30px;height:23px;border-radius:50%;background:#03040b;border:2px solid #d3c7ff;box-shadow:0 0 7px 2px #aa78ed99,inset 0 0 5px #465283;transform:rotate(-22deg)}
.effect-black-hole:after{content:'';position:absolute;left:2px;top:21px;width:39px;height:9px;border:2px solid #9ad3fc;border-left-color:transparent;border-right-color:transparent;border-radius:50%;transform:rotate(-22deg);box-shadow:0 0 5px #8b75d666}
.goal-effect-choices .goal-effect-option:last-child:nth-child(odd){grid-column:1/-1}
@media(max-width:520px){.goal-effect-choices .goal-effect-option{flex-direction:column;text-align:center;padding:8px 6px;gap:5px}.goal-effect-preview{flex-basis:46px;height:46px}.goal-effect-copy small{font-size:9px}}

/* SHIRT CUSTOMIZATION — Add new designs in js/input.mjs, register their
   sprites in js/renderer.mjs, and allow their IDs in park.mjs + online.mjs. */
.shirt-picker{margin:16px 0 20px;padding:13px;border:1px solid #ffffff24;border-radius:12px;background:#09171094;color:#e8f5eb}
.shirt-picker-title{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.shirt-picker-title strong{font-size:13px}.shirt-picker-title span{color:#9ebaa8;font-size:10px}
.shirt-picker-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
button.shirt-picker-option{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;padding:7px 11px;border:1px solid #ffffff27;border-radius:8px;background:#13281bd9;color:#dce8de;font-weight:730;font-size:12px;text-align:left}
button.shirt-picker-option:hover{background:#20402b;border-color:#b4ffc66b}
button.shirt-picker-option[aria-pressed=true]{background:#18452bc4;border-color:#b0f6bd;box-shadow:inset 0 0 0 1px #b0f6bd22}
.shirt-picker-option img{display:block;flex:0 0 58px;width:58px;height:58px;object-fit:contain}
@media(max-width:520px){button.shirt-picker-option{flex-direction:column;gap:2px;text-align:center;font-size:11px;padding:5px}.shirt-picker-option img{flex-basis:50px;width:50px;height:50px}}

/* SCOREBOARD PANEL — restore the rounded black/gray backing behind the score.
   Other HUD hints and goal text remain transparent. */
.hud{
  background:linear-gradient(135deg,rgba(15,18,19,.96),rgba(38,42,43,.94));
  border:1px solid #c8d4ce40;
  border-radius:14px;
  box-shadow:0 6px 24px #0008;
  backdrop-filter:blur(5px);
}
