:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#343434;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#4a9eff;text-decoration:none;position:relative;padding-right:.8em}a:hover{color:#7bb8ff;text-decoration:underline}a[target=_blank]:after{content:"↗";position:absolute;right:0;top:.1em;font-size:.7em;opacity:.7;margin-left:.2em}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}body{margin:0;min-height:100vh;background-image:linear-gradient(rgba(0,0,0,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.08) 1px,transparent 1px);background-size:20px 20px;background-position:center center}#root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}:root{--definition-bg: #f8f8f8;--definition-border: #e0e0e0;--definition-text: #333;--definition-emphasis: #222;--scorebug-bg: #1a1a1a;--scorebug-text: white;--controls-bg: #f5f5f5;--controls-text: #333}:root.dark{--definition-bg: #2a2a2a;--definition-border: #404040;--definition-text: #e0e0e0;--definition-emphasis: #fff;--scorebug-bg: #1a1a1a;--scorebug-text: white;--controls-bg: #2a2a2a;--controls-text: #e0e0e0}@media (prefers-color-scheme: dark){:root{--definition-bg: #2a2a2a;--definition-border: #404040;--definition-text: #e0e0e0;--definition-emphasis: #fff}}.app-container{max-width:1000px;margin:0 auto;padding:20px;display:flex;flex-direction:column;gap:20px}.scorebug{background-color:var(--scorebug-bg);color:var(--scorebug-text);padding:20px;border-radius:8px;width:100%;font-family:Arial,sans-serif}.scorebug-grid{display:grid;grid-template-columns:auto 1fr min-content min-content 3fr min-content;align-items:start}.scorebug-section{display:flex;flex-direction:column;padding:0 10px;justify-content:center;height:100%}.scorebug-section.duel-state-section{justify-content:flex-start}.teams-section{min-width:200px}.field-section{min-width:150px}.field-state-section{min-width:100px;padding:0}.game-state-section{padding:0 0 0 20px}.series-info-section{min-width:100px}.series-info,.series-details{display:flex;flex-direction:column;align-items:center}.series-title{font-size:.9em;color:#999;text-transform:uppercase;letter-spacing:1px}.series-record{display:flex;align-items:center;gap:5px;font-size:1.2em;font-weight:700;color:#fff}.series-record .separator{color:#666}.teams{display:flex;flex-direction:column;align-items:center}.team{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;padding:10px;gap:15px}.team-divider{width:100%;height:2px;background-color:#fff3;margin:5px 0}.team-logo{width:40px;height:40px;object-fit:contain;flex-shrink:0}.team-name{font-size:1.6em;font-weight:700;color:#fff;flex-grow:1;text-align:left}.score{font-size:1.8em;font-weight:700;color:#fff;flex-shrink:0;min-width:40px;text-align:right}.game-info{display:flex;justify-content:space-between;font-size:1.2em;padding:0 4px!important}.bases{display:flex;justify-content:space-between;position:relative;height:100px}.base{width:30px;height:30px;border:2px solid white;border-radius:50%;display:flex;align-items:center;justify-content:center;background-color:transparent}.base.occupied{background-color:#f44}.base.first{position:absolute;bottom:0;left:50%;transform:translate(-50%)}.base.second{position:absolute;top:0;left:50%;transform:translate(-50%)}.base.third{position:absolute;top:0;right:0}.players{display:flex;flex-direction:column;align-items:center;width:100%}.player{display:flex;flex-direction:column;align-items:center;width:100%;padding:4px}.player-info{display:flex;align-items:center;gap:10px;width:100%;font-size:1.5em}.player-image{width:48px;height:48px;border-radius:50%;object-fit:cover;border:1px solid #777}.player-details{display:flex;flex-direction:column;gap:2px;flex:1}.player-label{font-size:.9em;font-weight:700;color:#666;min-width:20px}.player-name{font-size:.85em;font-weight:600;color:#fff;text-align:left;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-number{font-size:.8em;color:#fff;opacity:.8;min-width:40px;text-align:left}.player-divider{width:100%;height:2px;background-color:#fff3;margin:5px 0}.controls{background:#1e1e1ed9;color:#ccc;padding:18px 24px;border-radius:10px;box-shadow:0 2px 8px #00000014;width:80%;margin:0 auto 32px;border:1px solid rgba(80,80,80,.18)}.controls-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:18px;padding:0 10px}.control-group{gap:8px}.control-group h3{margin:0 0 8px;color:#aaa;font-size:1.08em;font-weight:500;letter-spacing:.5px}.control-group.series-info-controls{min-width:100px}.control-group.teams-controls{min-width:200px}.control-group.game-state-controls{min-width:100px;padding:0 0 0 20px}.control-group.field-state-controls{min-width:100px;padding:0 10px 0 0}.control-group.duel-controls{min-width:200px}.control-group.duel-state-controls{min-width:100px}.score-controls,.team-controls,.game-controls,.base-controls,.player-controls,.series-controls,.count-controls{display:flex;flex-direction:column;gap:10px}button{background-color:#333;color:#e0e0e0;border:1px solid #444;padding:7px 0;border-radius:5px;cursor:pointer;font-size:15px;width:100%;transition:background .15s,color .15s,border .15s;box-shadow:none}button:hover{background-color:#444;color:#fff;border:1px solid #666}input{padding:8px;margin:4px;border:1px solid #ddd;border-radius:4px;width:100%}.team-inputs,.player-inputs{display:flex;flex-direction:column;gap:10px}.inning-display{display:flex;flex-direction:column;align-items:center;gap:2px}.arrow{font-size:.9em;color:#666;transition:color .2s ease;font-weight:900;line-height:1}.arrow.active{color:#f44}.arrow.up,.arrow.down{transform:scaleY(.8)}.inning-number{font-size:1.8em;font-weight:700;color:#fff;line-height:1}.field-state{display:flex;flex-direction:column;align-items:center}.at-bat-info{display:flex;flex-direction:column;gap:5px;align-items:center}.outs{font-size:1.1em;color:#fff}.count{font-size:1.4em;font-weight:700;color:#fff}.bases-diamond{display:grid;grid-template-columns:30px 30px 30px;grid-template-rows:30px 30px 30px;width:90px;height:90px;justify-content:center;align-items:center;margin:0 auto;position:relative}.bases-diamond .base{width:28px;height:28px;border:2px solid white;border-radius:50%;display:flex;align-items:center;justify-content:center;background-color:transparent;color:#fff;font-size:1em;grid-column:2;grid-row:2}.bases-diamond .base.second{grid-column:2;grid-row:1}.bases-diamond .base.first{grid-column:3;grid-row:2}.bases-diamond .base.third{grid-column:1;grid-row:2}.bases-diamond .base.empty{display:none}.count-display{display:flex;flex-direction:column;align-items:flex-start;line-height:.95;margin-bottom:5px}.count-row{display:flex;align-items:center;justify-content:flex-start}.count-label{font-weight:700;margin-right:4px;font-size:.9em;color:#666}.dot{color:#888;font-size:1.2em}.dot.filled{color:#f44}.count-dots.horizontal{flex-direction:row!important;gap:4px}.diamond-svg{display:block;margin:0 auto}.duel-state{display:flex;flex-direction:column;height:100%;justify-content:flex-start;min-width:100px}.duel-state-header{font-size:.9em;color:#999;text-align:left;width:auto;min-width:0;align-self:flex-start}.pitch-history{display:flex;flex-direction:column;width:100%;height:40px;max-height:100px;overflow-y:auto}.pitch-box{display:inline-flex;align-items:center;justify-content:center;color:#fff;text-align:center;font-size:.8em;box-shadow:0 2px 4px #322f2f33;transition:transform .2s ease}.pitch-box:hover{transform:scale(1.02)}.stadium-info{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:50px}.stadium-name{font-size:.8em;font-weight:700;color:#fff}.stadium-location{font-size:.7em;color:#999}.pitch-history-item{display:flex;align-items:center;gap:4px}.pitch-number{color:#999;font-size:.9em;min-width:20px}.legend{display:grid;grid-template-columns:auto 1fr min-content min-content 3fr min-content;gap:10px;padding:0 20px}.legend-item{display:flex;align-items:center;justify-content:center;padding:0 10px}.legend-item:nth-child(1){min-width:100px}.legend-item:nth-child(2){min-width:200px}.legend-item:nth-child(3){min-width:100px;padding:0 0 0 20px}.legend-item:nth-child(4){min-width:100px;padding:0 10px 0 0}.legend-item:nth-child(5){min-width:200px}.legend-item:nth-child(6){min-width:100px}.definition{background-color:var(--definition-bg);border:1px solid var(--definition-border);border-radius:8px;padding:20px;margin:20px 0;font-family:Georgia,Times New Roman,serif;text-align:left;box-shadow:0 2px 4px #0000001a;color:var(--definition-text);transition:background-color .3s ease,border-color .3s ease,color .3s ease}.definition em{font-style:italic;color:var(--definition-emphasis);font-weight:700}.footer{background-color:var(--definition-bg);border-top:1px solid var(--definition-border);padding:1rem;display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:2rem}.theme-toggle{display:flex;align-items:center;gap:.5rem;cursor:pointer;padding:.5rem 1rem;border-radius:4px;background-color:var(--definition-bg);border:1px solid var(--definition-border);color:var(--definition-text);transition:all .3s ease}.theme-toggle:hover{background-color:var(--definition-border)}.theme-toggle svg{width:1.2rem;height:1.2rem}p{max-width:80ch}.base-controls{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:10px}.base-controls label{color:#bbb;font-size:1em;font-weight:400}.base-controls input[type=checkbox]{width:18px;height:18px;cursor:pointer}.game-controls{display:flex;flex-direction:column;gap:10px;margin-top:10px}
