.game-count-dialog { padding:0; width:600px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; border:1px solid #c5d3e7; border-top:4px solid #f2b800; border-radius:8px; color:#12355b; background:#fff; box-shadow:0 16px 48px #112c4f40; }
.game-count-dialog::backdrop { background:#18385980; }
.game-count-dialog header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; border-bottom:1px solid #d9e2ee; }
.game-count-dialog h2 { font-size:22px; margin:0; }
.game-count-dialog h3 { margin:0; font-size:19px; overflow-wrap:anywhere; }
.game-count-dialog .icon-button, .game-count-edit { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; padding:8px; }
.game-count-dialog svg, .game-count-edit svg { width:18px; height:18px; }
.game-count-body { padding:20px; }
.game-count-season { margin:5px 0 20px; color:#536b85; }
.game-count-fields { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.game-count-dialog label { display:flex; flex-direction:column; gap:8px; font-weight:700; font-size:14px; min-width:0; }
.game-count-fields label { display:grid; grid-template-rows:auto 20px 44px; gap:4px; }
.game-count-fields label:first-child input { grid-row:3; }
.game-count-fields label span { font-weight:400; font-size:12px; }
.game-count-dialog input, .game-count-dialog textarea { box-sizing:border-box; width:100%; min-width:0; padding:10px 12px; border:1px solid #a7bed9; border-radius:4px; background:white; color:#12355b; font:inherit; }
.game-count-dialog textarea { resize:vertical; min-height:88px; }
.game-count-dialog input:focus, .game-count-dialog textarea:focus { outline:2px solid #f2b800; outline-offset:2px; }
.game-count-dialog footer { display:flex; justify-content:flex-end; gap:10px; padding:16px 20px; border-top:1px solid #d9e2ee; background:#f5f8fc; }
.game-count-dialog button { cursor:pointer; }
.game-count-dialog button:disabled { opacity:.6; cursor:wait; }
.game-count-error { color:#a12821; background:#fff1ef; padding:10px; border-left:3px solid #ba3d30; }
.game-count-error[hidden] { display:none; }
.game-count-history { margin-top:20px; border-top:1px solid #d9e2ee; padding-top:16px; }
.game-count-history summary { cursor:pointer; font-size:14px; font-weight:700; }
.game-count-history ol { list-style:none; margin:0; padding:0; }
.game-count-history li { padding:14px 0; border-bottom:1px solid #d9e2ee; font-size:13px; overflow-wrap:anywhere; }
.game-count-history time, .game-count-history span { display:block; margin-top:5px; }
.game-count-history p { margin:8px 0 0; }
@media(max-width:480px) { .game-count-fields { grid-template-columns:1fr; gap:14px; } .game-count-body { padding:16px; } .game-count-dialog header { padding:14px 16px; } }
