:root{--bg:#0a0f0d;--card:#101915;--panel:#15221c;--green:#22a45a;--green-dark:#11713b;--text:#f7f7f2;--muted:#aab7af;--danger:#b93c3c}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:radial-gradient(circle at top,#183127 0,var(--bg) 55%);color:var(--text);min-height:100vh}button,input{font:inherit}button{cursor:pointer}main{min-height:100vh;padding:24px;display:grid;place-items:center}.scoreboard-card{width:min(980px,100%);background:rgba(16,25,21,.96);border:1px solid rgba(255,255,255,.08);border-radius:26px;padding:22px;box-shadow:0 24px 80px rgba(0,0,0,.35)}.topbar{display:grid;grid-template-columns:1fr auto 1fr;grid-gap:16px;gap:16px;align-items:center;padding-bottom:20px;border-bottom:1px solid rgba(255,255,255,.08)}.brand-mark{width:58px;height:58px;border-radius:50%;background:var(--green);display:grid;place-items:center;font-weight:900;letter-spacing:.5px}.match-status{font-weight:800;letter-spacing:1.5px;color:var(--muted);text-align:center}.clock{justify-self:end;font-size:2rem;font-weight:900;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.teams{display:grid;grid-template-columns:1fr auto 1fr;grid-gap:18px;gap:18px;align-items:center;padding:32px 0}.team-panel{text-align:center;min-width:0}.team-name{width:100%;border:0;outline:none;background:transparent;color:white;text-align:center;font-size:clamp(1.4rem,4vw,2rem);font-weight:800;padding:8px;border-bottom:1px solid rgba(255,255,255,.12)}.gaa-score{font-size:clamp(3.2rem,10vw,6.5rem);line-height:.95;font-weight:950;letter-spacing:-4px;margin-top:14px}.points-total{margin-top:10px;color:var(--muted);font-weight:700}.divider{font-size:1.4rem;color:var(--muted);font-weight:900}.admin-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;gap:16px}.control-card{background:var(--panel);border-radius:18px;padding:18px}.control-card h3{margin:0 0 14px;text-align:center}.button-row{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px}.button-row.compact{margin-top:10px}button{border:0;border-radius:12px;padding:14px 16px;background:#23332b;color:white;font-weight:800}button:hover{filter:brightness(1.08)}.score-btn{font-size:1.05rem}.goal,.primary{background:var(--green)}.point{background:var(--green-dark)}.match-controls{margin-top:18px;display:grid;grid-template-columns:repeat(6,1fr);grid-gap:10px;gap:10px}.danger{background:var(--danger)}.display-toggle{width:100%;margin-top:16px;background:transparent;border:1px solid rgba(255,255,255,.15)}.display-page{padding:0}.display-page .scoreboard-card{width:100%;min-height:100vh;border-radius:0;display:flex;flex-direction:column;justify-content:center}.display-page .topbar{position:absolute;top:20px;left:24px;right:24px}.display-page .teams{padding:80px 20px 20px}.display-page .gaa-score{font-size:clamp(5rem,16vw,12rem)}.display-page .display-toggle{position:fixed;bottom:18px;right:18px;width:auto;opacity:.25}@media (max-width:760px){main{padding:10px}.scoreboard-card{border-radius:18px;padding:16px}.topbar{grid-template-columns:auto 1fr auto}.brand-mark{width:44px;height:44px}.clock{font-size:1.4rem}.match-status{font-size:.75rem}.teams{gap:8px;padding:24px 0}.admin-grid{grid-template-columns:1fr}.match-controls{grid-template-columns:1fr 1fr}}.setup-page{min-height:100vh;padding:24px;display:grid;place-items:center}.setup-card{width:min(760px,100%);background:rgba(16,25,21,.97);border:1px solid rgba(255,255,255,.09);border-radius:28px;padding:30px;box-shadow:0 24px 80px rgba(0,0,0,.4)}.setup-brand{display:flex;align-items:center;gap:16px;padding-bottom:22px;border-bottom:1px solid rgba(255,255,255,.09)}.setup-brand img{width:76px;height:76px;object-fit:contain;background:transparent;border-radius:0;padding:0}.setup-brand p{margin:0 0 4px;color:#f6bd16;font-size:.76rem;letter-spacing:1.6px;font-weight:900}.setup-brand h1{margin:0;font-size:2rem}.setup-heading{padding:28px 0 20px}.setup-heading span{color:#f6bd16;font-weight:900;font-size:.75rem;letter-spacing:1.8px}.setup-heading h2{margin:6px 0;font-size:2.3rem}.setup-heading p{margin:0;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:18px;gap:18px}.field{display:flex;flex-direction:column;gap:8px}.field.full{grid-column:1/-1}.field>span{font-size:.8rem;font-weight:900;color:#d7e0da;letter-spacing:.4px}.field input,.field select{width:100%;background:#16241d;color:white;border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:14px;outline:none}.field input:focus,.field select:focus{border-color:#f6bd16}.side-picker{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px}.side-picker button{border:1px solid rgba(255,255,255,.12)}.side-picker button.selected{background:#f6bd16;color:#102017}.start-setup{width:100%;margin-top:26px;padding:17px;background:#168044;font-size:1.05rem}.start-setup:disabled{opacity:.35;cursor:not-allowed}.crest-small{width:52px;height:52px}.match-status{display:flex;flex-direction:column;gap:4px}.match-status span{font-size:.62rem;letter-spacing:1px;color:#f6bd16}.match-meta{text-align:center;color:var(--muted);font-size:.82rem;padding-top:14px}.team-crest{width:68px;height:68px;margin-bottom:5px}.team-panel h2{margin:0 0 12px;font-size:clamp(1.6rem,5vw,2.4rem)}@media(max-width:600px){.setup-page{padding:10px}.setup-card{padding:20px;border-radius:18px}.setup-brand img{width:62px;height:62px}.setup-brand h1{font-size:1.55rem}.setup-heading h2{font-size:1.8rem}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.team-crest{width:48px;height:48px}.match-meta{font-size:.7rem}}.team-setup-row{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;gap:16px;margin:0 0 24px}.crest-preview-card{min-height:180px;background:#15221c;border:1px solid rgba(255,255,255,.09);border-radius:18px;padding:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center}.crest-preview-card>span{font-weight:900}.crest-placeholder,.crest-preview-card img{width:92px;height:92px}.crest-placeholder{border:1px dashed rgba(255,255,255,.22);border-radius:50%;display:grid;place-items:center;font-size:2rem;color:var(--muted)}.upload-button{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:10px 14px;background:#23332b;color:white;font-weight:800;cursor:pointer}.upload-button input{display:none}.remove-crest{padding:7px 10px;background:transparent;border:1px solid rgba(255,255,255,.12);font-size:.75rem}.crest-preview-card small,.date-preview{color:var(--muted);font-size:.72rem}.date-preview{padding-left:2px}@media(max-width:600px){.team-setup-row{grid-template-columns:1fr 1fr;gap:10px}.crest-preview-card{padding:12px;min-height:165px}.crest-placeholder,.crest-preview-card img{width:72px;height:72px}}.crest-preview-card{min-height:300px}.crest-preview-card img{width:min(210px,72%);height:210px;object-fit:contain;background:transparent}.team-crest{width:150px;height:150px}.crest-small,.team-crest{object-fit:contain;background:transparent;border-radius:0;padding:0}.crest-small{width:58px;height:58px}@media(max-width:600px){.crest-preview-card{min-height:230px}.crest-preview-card img{width:min(150px,78%);height:150px}.team-crest{width:105px;height:105px}.crest-small{width:48px;height:48px}}.crest-image-wrap{width:260px;height:260px;background:#f7f7f2;border-radius:24px;display:grid;place-items:center;padding:18px}.crest-image-wrap img{width:100%;height:100%;object-fit:contain}