:root{color-scheme:dark;--bg: #101922;--bg-elevated: #020617;--panel: #0b1120;--panel-soft: #111827;--border-subtle: #1f2937;--accent: #60a5fa;--accent-soft: #1d4ed8;--danger: #f97373;--text-main: #e5e7eb;--text-muted: #9ca3af}*,*:before,*:after{box-sizing:border-box}html,body,#root{margin:0;padding:0;width:100%;height:100%}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:radial-gradient(circle at top,#101922 0,transparent 50%),radial-gradient(circle at bottom,#1d283a 0,transparent 55%),var(--bg);color:var(--text-main)}a{color:inherit;text-decoration:none}button{font-family:inherit}.gs-container{display:flex;flex-direction:column;gap:40px;padding:20px;align-items:center;color:#fff}.gs-hero-bg{width:100%;max-width:960px;min-height:420px;background-image:linear-gradient(#10192299,#101922e6),url(/background.png);background-size:cover;background-position:center;background-repeat:no-repeat;border-radius:20px;padding:150px 20px;display:flex;justify-content:center;align-items:center;box-shadow:0 20px 50px #0006}.gs-hero-content{text-align:center}.gs-title{font-size:40px;font-weight:900;margin-bottom:8px}.gs-subtitle{font-size:16px;color:#d1d5db;margin-bottom:32px}.gs-mode-container{display:flex;gap:16px;justify-content:center}.gs-mode-btn{padding:14px 28px;font-size:16px;font-weight:700;background:#283039cc;color:#fff;border:none;border-radius:12px;cursor:pointer;transition:.25s ease}.gs-mode-btn:hover{background:#3c4655e6}.gs-mode-btn.selected{background:#137fec;color:#fff}.player-select-section{width:100%;max-width:960px;display:flex;gap:20px;justify-content:center;align-items:stretch}.player-select-wrapper{flex:1;background:#ffffff0f;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.12);padding:20px;border-radius:14px;display:flex;flex-direction:column;min-height:120px;justify-content:center}.player-label{color:#e6e6e6;font-weight:600;font-size:15px;margin-bottom:6px}.player-select{padding:12px 14px;border-radius:10px;background:#ffffff2e;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;font-weight:600;font-size:15px;border:1px solid rgba(255,255,255,.25);transition:all .2s ease}.player-select:hover{background:#ffffff40}.player-select:focus{border-color:#1d8fff;box-shadow:0 0 0 3px #1d8fff4d}.player-select option{background:#1e293b;color:#fff}.player-stats-grid{flex:2;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;min-height:120px}.player-stat-box{background:#ffffff0d;padding:20px;border-radius:14px;border:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;justify-content:center}.player-stat-label{font-size:15px;color:#cbd5e1;margin-bottom:8px}.player-stat-value{font-size:28px;font-weight:800}.gs-start-container{width:100%;max-width:400px}.gs-start-btn{width:100%;padding:14px 0;border-radius:12px;font-size:18px;font-weight:700;border:none;color:#fff;background:#137fec;cursor:pointer;transition:.25s ease}.gs-start-btn:hover{background:#0f6cd0}.gs-start-btn.disabled,.gs-start-btn:disabled{background:#475569;cursor:not-allowed}.admin-btn{position:absolute;top:16px;right:20px;background:#ffffff26;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);padding:8px 10px;border-radius:8px;color:#fff;text-decoration:none;font-size:18px;cursor:pointer;display:flex;align-items:center;gap:6px;transition:background .2s ease}.admin-btn:hover{background:#ffffff40}.admin-label{opacity:0;font-size:14px;transition:opacity .25s ease}.admin-btn:hover .admin-label{opacity:1}.gb-layout{display:flex;flex-direction:column;align-items:center;height:100vh;padding:24px;background:#101922;color:#fff;gap:20px}.gb-panels-row{display:flex;gap:20px;justify-content:center;width:100%}.gb-zone-wrapper{display:flex;justify-content:center;width:100%}.gb-player-name{text-align:center;font-size:20px;font-weight:700;margin-top:12px}.gb-modal-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;justify-content:center;align-items:center;z-index:999}.gb-modal{background:#0f172ae6;border:1px solid rgba(255,255,255,.2);border-radius:20px;padding:30px;width:360px;text-align:center;animation:fadeIn .25s ease-out;color:#e2e8f0}@keyframes fadeIn{0%{opacity:0;transform:scale(.95) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}.gb-score{font-size:40px;font-weight:800;margin:16px 0;color:#38bdf8}.gb-result-text{font-size:24px;font-weight:700;margin-bottom:20px}.game-over-buttons{display:flex;gap:12px;margin-top:24px}.game-over-btn{flex:1;padding:14px 0;border-radius:12px;font-size:18px;font-weight:700;cursor:pointer;border:none;transition:.2s ease}.game-over-btn.retry{background:#3b82f6;color:#fff}.game-over-btn.retry:hover{background:#2563eb}.game-over-btn.home{background:#137fec;color:#fff}.game-over-btn.home:hover{background:#0f6cd0}.game-stats-section{margin-top:18px;padding:18px 20px 16px;background:linear-gradient(145deg,#0f172ad9,#1e293bf2);border-radius:18px;border:1px solid rgba(148,163,184,.35)}.game-stats-title{font-size:22px;font-weight:700;margin-bottom:14px;color:#e5f0ff}.game-stats-category{margin-top:16px}.game-stats-category h3{font-size:16px;font-weight:600;margin-bottom:8px;color:#cbd5e1}.game-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.outs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:10px}.stat-box{background:#ffffff1a;border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:10px 6px;text-align:center}.stat-label{font-size:14px;color:#cbd5e1;margin-bottom:4px;display:block}.stat-value{font-size:18px;font-weight:700;color:#e5f2ff}.game-stats-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.stat-highlight{background:#ffffff1f;border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:14px 10px;text-align:center}.stat-value-big{font-size:20px;font-weight:800;color:#38bdf8;margin-top:4px;display:block}.gb-center-panel{max-height:260px}.left-panel{display:flex;flex-direction:column;gap:20px;padding:20px;width:220px;background:#0003;border:1px solid #3b4754;border-radius:12px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff}.lp-section{padding:14px;background:#00000040;border:1px solid rgba(255,255,255,.1);border-radius:10px}.lp-stats-grid{display:flex;flex-direction:column;gap:8px}.lp-section{padding:10px;background:#00000040;border:1px solid #3b4754;border-radius:10px}.lp-stat-box{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:#0000004d;border:1px solid rgba(255,255,255,.08);border-radius:6px;transition:all .2s ease}.lp-stat-label{font-size:14px;color:#9dabb9;font-weight:500}.lp-stat-value{font-size:16px;font-weight:700;color:#fff}.lp-section-title{font-size:16px;font-weight:700;text-align:center;margin:15px}.lp-counts{display:flex;gap:12px}.lp-count-box{flex:1;padding:5px;border-radius:10px;background:#00000040;border:1px solid #3b4754;text-align:center}.lp-count-box.out{flex:1;border-radius:10px;background:#00000040;border:1px solid #3b4754;color:#ef4444;text-align:center;margin-bottom:20px}.lp-count-label.out{color:#ef4444;font-size:18px;font-weight:700;margin-bottom:4px}.lp-count-label{color:#9dabb9;font-size:18px;font-weight:700;margin-bottom:4px}.lp-count-value{font-size:22px;font-weight:700}.lp-quit-button{width:100%;padding:10px 14px;margin-bottom:20px;background:#ef444433;border:1px solid rgba(239,68,68,.5);border-radius:8px;color:#ef4444;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s ease}.lp-quit-button:hover{background:#ef44444d;border-color:#ef4444;transform:translateY(-1px)}.lp-quit-button:active{transform:translateY(0)}.center-panel{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:16px;padding:20px;min-width:260px;background:#0003;border:1px solid #3b4754;border-radius:10px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.center-mode-badge{background:#00f5d41a;border:1px solid rgba(0,245,212,.3);padding:6px 16px;border-radius:20px;font-size:15px;font-weight:600;color:#00f5d4}.center-score-box{width:100%;max-width:240px;display:flex;flex-direction:column;background:#0003;border:1px solid #3b4754;border-radius:10px;padding:16px;gap:6px}.center-score-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0}.center-score-label{color:#9dabb9;font-size:14px}.center-score-value{color:#fff;font-size:18px;font-weight:700}.center-divider{border-top:1px solid rgba(255,255,255,.1);margin:6px 0}.center-game-id{color:#8fa4b6;font-size:14px;margin-top:4px}.center-result-box{margin-top:8px;padding:10px 14px;width:100%;max-width:240px;text-align:center;background:#0003;border-radius:8px;border:1px solid #3b4754;font-weight:800}.center-result-text{font-size:16px;color:#fff;font-weight:800}.right-panel{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:18px;min-width:220px;max-height:400px;background:#0003;border:1px solid #3b4754;border-radius:10px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);gap:20px}.right-panel-title{color:#fff;font-size:16px;font-weight:700;border-bottom:1px solid rgba(255,255,255,.15);padding-bottom:6px;width:100%;text-align:center}.base-diamond{position:relative;width:130px;height:130px}.base-second{position:absolute;top:0;left:50%;transform:translate(-50%) rotate(45deg);width:40px;height:40px;border:2px solid #3b4754;background:#0003;display:flex;align-items:center;justify-content:center}.base-third{position:absolute;left:0;top:50%;transform:translateY(-50%) rotate(45deg);width:40px;height:40px;border:2px solid #3b4754;background:#0003;display:flex;align-items:center;justify-content:center}.base-first{position:absolute;right:0;top:50%;transform:translateY(-50%) rotate(45deg);width:40px;height:40px;border:2px solid #3b4754;background:#0003;display:flex;align-items:center;justify-content:center}.base-home{position:absolute;bottom:0;left:50%;transform:translate(-50%);width:30px;height:30px;border:2px solid #3b4754;background:#0003}.runner-off{background:#ffffff0f}.runner-on{background:#00b5d7}.base-label{font-size:12px;font-weight:600;color:#fff;transform:rotate(-45deg)}.zone-legend{margin-top:24px;padding:16px;background:#0003;border-radius:12px;border:1px solid rgba(255,255,255,.1)}.legend-item{display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:13px;color:#e2e8f0}.legend-item:last-child{margin-bottom:0}.legend-color{width:20px;height:20px;border-radius:4px;flex-shrink:0}.legend-color.hot{background:#ef444499;border:1px solid #ef4444;box-shadow:0 0 8px #ef444466}.legend-color.cold{background:#3b82f699;border:1px solid #3b82f6;box-shadow:0 0 8px #3b82f666}.legend-color.ball{background:transparent;border:none;font-size:16px;display:flex;align-items:center;justify-content:center}.zone-container{text-align:center;margin-top:20px;width:100%;max-width:420px;margin-left:auto;margin-right:auto}.zone-title{font-size:20px;font-weight:700;color:#fff;margin-bottom:20px;letter-spacing:-.02em}.zone-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:400px;margin:0 auto}.zone-btn{position:relative;width:120px;height:120px;font-size:32px;font-weight:700;border-radius:12px;background:#0003;border:2px solid #3b4754;color:#e2e8f0;cursor:pointer;transition:all .2s ease;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.zone-btn:hover:not(.disabled):not(.selected){transform:translateY(-2px);background:#0000004d;border-color:#4a5a6a;box-shadow:0 4px 12px #0000004d}.zone-btn.hot-zone{background:#ef44444d;border-color:#ef4444;box-shadow:0 0 16px #ef444480}.zone-btn.cold-zone{background:#3b82f64d;border-color:#3b82f6;box-shadow:0 0 16px #3b82f680}.zone-btn.selected:not(.hot-zone):not(.cold-zone){background:#00f5d433!important;border-color:#00f5d4!important;border-width:3px!important;transform:scale(.98);color:#00f5d4;box-shadow:0 0 20px #00f5d499!important}.zone-btn.hot-zone.selected{background:#ef444480!important;border-color:#ef4444!important;border-width:3px!important;transform:scale(.98);color:#fff;box-shadow:0 0 24px #ef4444cc!important}.zone-btn.cold-zone.selected{background:#3b82f680!important;border-color:#3b82f6!important;border-width:3px!important;transform:scale(.98);color:#fff;box-shadow:0 0 24px #3b82f6cc!important}.zone-btn.disabled{opacity:.4;cursor:not-allowed}.zone-number{position:relative;z-index:1}.baseball{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:2.5rem;z-index:2;animation:pitch .5s ease-out;filter:drop-shadow(0 4px 6px rgba(0,0,0,.5))}@keyframes pitch{0%{transform:translate(-50%,-200%) scale(0);opacity:0}50%{opacity:1}to{transform:translate(-50%,-50%) scale(1);opacity:1}}.playertable-wrapper{background:#ffffff0f;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);padding:20px;border-radius:12px;border:1px solid rgba(255,255,255,.12);margin-top:10px}.playertable{width:100%;border-collapse:collapse;color:#fff}.playertable th{padding:12px;background:#ffffff14;font-weight:700;border-bottom:1px solid rgba(255,255,255,.15)}.playertable td{padding:12px;border-bottom:1px solid rgba(255,255,255,.08)}.playertable th,.playertable td{text-align:center}.playertable-actions{display:flex;justify-content:center;gap:10px}.playertable-btn{padding:6px 12px;font-weight:600;border-radius:8px;cursor:pointer;border:0}.playertable-btn.edit{background:#137fec;color:#fff}.playertable-btn.edit:hover{background:#0f6cd0}.playertable-btn.delete{background:#e11d48;color:#fff}.playertable-btn.delete:hover{background:#be123c}.playerform-card{background:#ffffff12;border:1px solid rgba(255,255,255,.12);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:12px;padding:20px;color:#fff}.playerform-title{font-size:20px;font-weight:700;margin-bottom:16px;color:#fff}.playerform-card>div{margin-bottom:18px}.playerform-label{display:block;font-weight:600;margin-top:10px;margin-bottom:6px;color:#e2e8f0}.playerform-input{width:100%;background:#ffffff26;border:1px solid rgba(255,255,255,.25);border-radius:8px;padding:10px 12px;color:#fff;font-size:15px;outline:none;transition:.2s}.playerform-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f640}.playerform-warning{margin-top:6px;color:#fb7185;font-size:14px;font-weight:600}.playerform-buttons{display:flex;gap:10px;margin-top:20px}.playerform-btn{flex:1;padding:10px 0;border:0;border-radius:8px;cursor:pointer;font-weight:600;transition:.15s;text-align:center}.playerform-btn-primary{background:#137fec;color:#fff;font-weight:700;padding:12px 16px;border-radius:10px;transition:background .2s ease;width:100%}.playerform-btn-primary:hover{background:#0f6cd0}.playerform-btn-primary:disabled{background:#475569}.playerform-btn-gray{background:#ffffff40;color:#fff;font-weight:700;padding:12px 16px;border-radius:10px;transition:background .2s ease;width:100%}.playerform-btn-gray:hover{background:#ffffff59}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.admin-container{max-width:1000px;margin:40px auto;padding:20px;color:#fff}.admin-title{font-size:32px;font-weight:800;margin-bottom:20px;padding-left:10px;border-left:4px solid #3b82f6}.admin-message{padding:12px;background:#22c55e26;color:#4ade80;text-align:center;border-radius:8px;margin-bottom:20px}.admin-card{background:#ffffff12;border:1px solid rgba(255,255,255,.12);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:12px;padding:24px;margin-bottom:24px}.admin-section-title{font-size:20px;font-weight:700;margin-bottom:16px}.admin-input{width:100%;background:#ffffff26;border:1px solid rgba(255,255,255,.25);padding:10px 12px;border-radius:8px;color:#fff;margin-bottom:10px}.admin-input::placeholder{color:#cbd5e1}.admin-btn{border:0;padding:8px 16px;border-radius:8px;font-weight:600;cursor:pointer;margin-right:8px;transition:.2s}.admin-btn-primary{background:#137fec;border:0;color:#fff;font-weight:700;padding:12px 16px;border-radius:10px;transition:background .2s ease;width:100%}.admin-btn-primary:hover{background:#0f6cd0}.admin-btn-secondary{background:#ffffff40;color:#fff;font-weight:700;padding:12px 16px;border-radius:10px;transition:background .2s ease;width:100%}.admin-btn-secondary:hover{background:#ffffff59}.admin-form-wrapper{padding:20px 0}.admin-table{width:100%;border-collapse:collapse;font-size:15px}.admin-table th,.admin-table td{padding:12px 10px;border-bottom:1px solid rgba(255,255,255,.08)}.admin-table th{color:#94a3b8;font-weight:600;background:#ffffff0d}.admin-table td{color:#e2e8f0}.admin-table tr:hover td{background:#ffffff14}.admin-back-btn{display:inline-block;margin-bottom:16px;padding:8px 14px;background:#ffffff1f;border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:8px;color:#fff;font-weight:600;font-size:14px;text-decoration:none;transition:.25s}.admin-back-btn:hover{background:#ffffff38}
