﻿/* ==========================================================================
   멀티보드 관리자 — board-score.css (좌측 스코어보드/컨트롤/이벤트 로그)
   ========================================================================== */

/* --------------------------------------------------------------------------
   스코어 보드 — 옵션 바
   -------------------------------------------------------------------------- */

/* 옵션 바 공통 */
.score-option-bar { display: flex; position: relative; z-index: 20; flex-shrink: 0; align-items: center; gap: 6px; width: 100%; min-width: 0; }

/* 옵션 토글 버튼 */
button.score-option-item { position: relative; flex-shrink: 0; gap: 8px; height: 32px; padding: 0 10px 0 12px; background: var(--mb-surface-2); border: 1px solid var(--mb-line); border-radius: 4px; font-weight: 600; transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease, box-shadow 0.08s ease; }
button.score-option-item:hover { background: var(--mb-surface-hover); }
button.score-option-item:active { transform: scale(0.97); background: #0A0E14; box-shadow: inset 0 1px 3px #000000; transition-duration: 0.05s; }
button.score-option-item:focus-visible { border-color: rgba(255,255,255,0.85); box-shadow: 0 0 0 2px rgba(255,255,255,0.08); }
.score-option-txt { font-size: 1.3rem; font-weight: 600; line-height: 1; color: #FFFFFF; white-space: nowrap; }
.score-option-state { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 38px; height: 22px; padding: 0; border-radius: 3px; font-size: 1.2rem; font-weight: 700; line-height: 1; color: #FFFFFF; text-align: center; }
.score-option-item .score-option-state { background: #3A4450; color: #BFC7CE; }
.score-option-item.active .score-option-state { background: #0D5C54; color: #FFFFFF; }

/* 이미지 미리보기 툴팁 — active(ON) 상태의 제작사/스폰서 버튼 hover 시 표시 */
.score-option-preview { position: absolute; top: calc(100% + 8px); left: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 8px 12px; background: #0A0E14; border: 1px solid #2b3740; border-radius: 6px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55); transform: translateY(-4px); opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; white-space: nowrap; }
/* 위 방향 화살표 — 버튼 중앙(20px)에 고정 */
.score-option-preview::after { content: ''; position: absolute; bottom: 100%; left: 20px; border: 5px solid transparent; border-bottom-color: #2b3740; }
/* 이미지 */
.score-option-preview img { display: block; max-width: 180px; max-height: 90px; object-fit: contain; border-radius: 2px; }
/* 텍스트 미리보기 전용 */
.score-option-preview--text { font-size: 1.3rem; font-weight: 700; color: #FFFFFF; letter-spacing: 0.01em; }
/* 미등록 안내 — 텍스트/이미지 공통 */
.score-option-preview-empty { display: flex; align-items: center; justify-content: center; padding: 8px 16px; border: 1px dashed #3A4652; border-radius: 4px; font-size: 1.2rem; font-weight: 500; line-height: 1.6; color: #6B7580; text-align: center; }
/* 이미지 영역용 — 좀 더 큰 박스 */
.score-option-preview-empty.type-image { width: 160px; height: 72px; padding: 0; }
/* ON/OFF 관계없이 hover 시 미리보기 표시 */
button.score-option-item:hover .score-option-preview { opacity: 1; transform: translateY(0); }

/* 테마 셀렉트 — 공통 */
.theme-select { position: relative; flex: 1; min-width: 0; }

/* 테마 셀렉트 — 트리거 */
button.theme-select-trigger { justify-content: flex-start; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 10px 0 12px; background: var(--mb-surface-2); border: 1px solid var(--mb-line); border-radius: 4px; font-size: 1.3rem; font-weight: 600; color: var(--mb-text); transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease, box-shadow 0.08s ease; }
button.theme-select-trigger:hover,
.theme-select.open button.theme-select-trigger { background: var(--mb-surface-hover); }
button.theme-select-trigger:active { transform: scale(0.99); background: #0A0E14; box-shadow: inset 0 1px 3px #000000; transition-duration: 0.05s; }
button.theme-select-trigger:focus-visible { border-color: rgba(255,255,255,0.85); box-shadow: 0 0 0 2px rgba(255,255,255,0.08); }
.theme-select-label { flex-shrink: 0; }
.theme-select-chip-group { display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; }
.theme-select-arrow { flex-shrink: 0; width: 0; height: 0; margin-left: auto; border-top: 5px solid #FFFFFF; border-right: 4px solid transparent; border-left: 4px solid transparent; opacity: 0.85; transition: transform 0.15s ease; }
.theme-select.open .theme-select-arrow { transform: rotate(180deg); }

/* 테마 셀렉트 — 컬러칩 */
.theme-select-chip,
.theme-option-chip { flex-shrink: 0; width: 12px; height: 12px; border: 1px solid; border-radius: 2px; }
.theme-chip-classic-primary { background: #0D5C54; border-color: #2E3339; }
.theme-chip-classic-secondary { background: #2A3440; border-color: #2E3339; }
.theme-chip-light-primary { background: #6d92ff; border-color: #92aeff; }
.theme-chip-light-secondary { background: #FFFFFF; border-color: #2E3339; }
.theme-chip-purple-primary { background: #6112E4; border-color: #722CE7; }
.theme-chip-purple-secondary { background: #FFFFFF; border-color: #2E3339; }

/* 테마 셀렉트 — 드롭다운 */
.theme-select-dropdown { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; display: flex; flex-direction: column; gap: 2px; min-width: 100%; width: max-content; padding: 4px; background: #111820; border: 1px solid #404B57; border-radius: 6px; box-shadow: 0 8px 20px #000000; }
.theme-select-dropdown[hidden] { display: none; }
button.theme-option { justify-content: flex-start; align-items: center; gap: 4px; width: 100%; min-width: 200px; height: 32px; padding: 0 10px 0 12px; border-radius: 4px; background: transparent; font-size: 1.2rem; font-weight: 600; color: var(--mb-text); white-space: nowrap; transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.08s ease; }
button.theme-option:hover { background: #1A1F26; }
button.theme-option:active { transform: scale(0.98); background: #0E1014; box-shadow: inset 0 1px 3px #000000; transition-duration: 0.05s; }
button.theme-option.selected { background: #1A3D34; box-shadow: inset 2px 0 0 #0D9B7A; }
button.theme-option:focus-visible { background: #1A1F26; box-shadow: inset 2px 0 0 var(--mb-accent), 0 0 0 2px rgba(255,255,255,0.08); }
button.theme-option.selected:focus-visible { background: #1A3D34; box-shadow: inset 2px 0 0 #0D9B7A, 0 0 0 2px rgba(255,255,255,0.08); }
.theme-option-name { flex-shrink: 0; min-width: 70px; font-size: 1.3rem; font-weight: 600; line-height: 1; color: #FFFFFF; text-align: left; }
.theme-option-type { flex-shrink: 0; min-width: 52px; font-size: 1.3rem; font-weight: 500; line-height: 1; color: #6B7580; text-align: left; }
.theme-option-chips { display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; margin-left: auto; }
.theme-option-check { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: 8px; opacity: 0; }
.theme-option-check::after { content: ''; display: block; width: 6px; height: 10px; margin: 0; border-right: 2px solid #0D9B7A; border-bottom: 2px solid #0D9B7A; transform: rotate(45deg); }
button.theme-option.selected .theme-option-check { opacity: 1; }

/* --------------------------------------------------------------------------
   스코어 보드 — 미리보기
   -------------------------------------------------------------------------- */

/* 미리보기 공통 */
.scoreboard-preview { display: flex; flex: 1; width: 100%; min-width: 0; min-height: 124px; }
.scoreboard-main { display: flex; flex: 1; width: 100%; min-height: 0; background: #0A0E14; border: 1px solid #1E2833; border-radius: 4px; overflow: hidden; }

/* 팀 / 점수 */
.scoreboard-team-list { display: flex; flex: 1; flex-direction: column; min-width: 0; border-right: 1px solid #1E2833; }
.scoreboard-team-row { display: flex; flex: 1; align-items: center; gap: 10px; min-height: 0; padding: 0 12px; }
.scoreboard-team-row + .scoreboard-team-row { border-top: 1px solid #1E2833; }
/* wrapper — flex 자리 차지 + empty 상태 처리 */
.scoreboard-team-logo-wrap { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.scoreboard-team-logo-wrap.empty { background: url('../img/team_logo_default.png') center / cover no-repeat; }
.scoreboard-team-logo-wrap.empty .scoreboard-team-logo { display: none; }

.scoreboard-team-logo { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.scoreboard-team-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.score-team-name-text { display: inline-block; max-width: 100%; font-size: 2rem; font-weight: 700; line-height: 1.2; color: #FFFFFF; white-space: nowrap; transform-origin: left center; transition: transform 0.15s ease; }
.score-team-name-text.compressed { transform: scaleX(0.698288); }
.scoreboard-team-score { flex-shrink: 0; font-size: 2.4rem; font-weight: 800; line-height: 1; color: #FFFFFF; }

/* 이닝 */
.scoreboard-inning { display: flex; flex-direction: column; flex-shrink: 0; align-items: center; justify-content: center; gap: 10px; width: 57px; border-right: 1px solid #1E2833; }
.scoreboard-inning-up,
.scoreboard-inning-down { display: block; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; }
.scoreboard-inning-up { border-bottom: 11px solid #3A4450; }
.scoreboard-inning-down { border-top: 11px solid #3A4450; }
.scoreboard-inning-up.active { border-bottom-color: #00D4F0; }
.scoreboard-inning-down.active { border-top-color: #00D4F0; }
.scoreboard-inning-value { font-size: 2.7rem; font-weight: 800; line-height: 1; color: #FFFFFF; }

/* B / S / O */
.scoreboard-main .count { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; justify-content: center; width: 150px; padding: 0 13px; border-left: 1px solid #1E2833; box-sizing: border-box; }
.scoreboard-main .count .count-area { display: flex; align-items: center; gap: 10px;}
.scoreboard-main .count .count-area .text { flex-shrink: 0; width: 18px; font-size: 2.4rem; font-weight: 700; line-height: 1; color: #6B7580; }
.scoreboard-main .count .count-area .circle { flex-shrink: 0; width: 18px; height: 18px; border-radius: 300px; background: #2A3440; box-shadow: inset 0 -1px 2px #000000; }
.scoreboard-main .count .count-area.ball .circle.active { background: #A3E635; box-shadow: 0 0 10px #7BA832, inset 0 1px 0 #4A4F55; }
.scoreboard-main .count .count-area.strike .circle.active { background: #FACC15; box-shadow: 0 0 10px #B89418, inset 0 1px 0 #5A5340; }
.scoreboard-main .count .count-area.out .circle.active { background: #DC2626; box-shadow: 0 0 8px #9C2A2A, inset 0 1px 0 #4A4545; }
.scoreboard-main .count .count-area.ball:has(.circle.active) .text,
.scoreboard-main .count .count-area.strike:has(.circle.active) .text,
.scoreboard-main .count .count-area.out:has(.circle.active) .text { color: #FFFFFF; }

/* --------------------------------------------------------------------------
   스코어 보드 — 컨트롤 패널
   -------------------------------------------------------------------------- */
.score-control-panel { display: flex; flex: 0 0 auto; flex-direction: column; gap: 6px; width: 100%; min-width: 0; }
/* .score-count-control 너비는 grid-template-columns: 320px 에서 결정 — 별도 width 불필요 */
.score-control-top { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 6px; min-width: 0; }
.score-control-section { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 6px; background: #0A0E14; border: 1px solid #1E2833; border-radius: 4px; box-sizing: border-box; }
.score-control-section-title { font-size: 1.2rem; font-weight: 700; line-height: 1.2; color: #8B949E; white-space: nowrap; }
.score-control-section-body { flex: 1; min-height: 48px; min-width: 0; }
.score-count-control .score-control-section-body { min-height: 0; }

/* BSO / 투구수 */
.score-bso-panel { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; }
.score-bso-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.score-bso-row { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; min-width: 0; }
.score-pitch-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; min-width: 0; margin-top: 8px; padding-top: 10px; border-top: 1px solid #1E2833; }
.score-bso-label { font-size: 2rem; font-weight: 700;  color: #6B7580; white-space: nowrap; }
.score-pitch-row .score-bso-label { font-size: 1.7rem; }
.score-bso-dots { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.score-bso-dot { flex-shrink: 0; width: 17px; height: 17px; border-radius: 50%; background: #2A3440; box-shadow: inset 0 -1px 2px #000000; }
.score-bso-row.ball .score-bso-dot.active { background: #A3E635; box-shadow: 0 0 8px #7BA832, inset 0 1px 0 #4A4F55; }
.score-bso-row.strike .score-bso-dot.active { background: #FACC15; box-shadow: 0 0 8px #B89418, inset 0 1px 0 #5A5340; }
.score-bso-row.out .score-bso-dot.active { background: #DC2626; box-shadow: 0 0 8px #9C2A2A, inset 0 1px 0 #4A4545; }
.score-bso-row.ball:has(.score-bso-dot.active) .score-bso-label,
.score-bso-row.strike:has(.score-bso-dot.active) .score-bso-label,
.score-bso-row.out:has(.score-bso-dot.active) .score-bso-label { color: #FFFFFF; }
.score-pitch-input { justify-self: end; width: 48px; height: 30px; margin-right: 4px; padding: 0 6px; background: #1A2430; border: 1px solid #5F6872; border-radius: 3px; font-size: 1.5rem; font-weight: 700; line-height: 1; color: #FFFFFF; text-align: center; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.score-pitch-input:focus { outline: none; border: 1px solid rgba(255,255,255,0.85); box-shadow: 0 0 0 2px rgba(255,255,255,0.1); }
.score-pitch-actions { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; }
.score-pitch-sync { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 30px; min-width: 34px; padding: 0 6px; background: #1A2430; border: 1px solid #3A4450; border-radius: 3px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.score-pitch-sync-txt { font-size: 1.0rem; font-weight: 600; color: #6B7580; line-height: 1; white-space: nowrap; }
.score-pitch-sync-state { font-size: 1.1rem; font-weight: 700; color: #6B7580; line-height: 1; }
.score-pitch-sync.active { background: #1A2C1A; border-color: #4A8040; }
.score-pitch-sync.active .score-pitch-sync-txt,
.score-pitch-sync.active .score-pitch-sync-state { color: #A3E635; }
.score-bso-actions { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; justify-self: end; }

/* 수치 조작 버튼 — 영역별 크기 */
.btn.control-btn.score-bso-btn,
.btn.control-btn.score-pitch-btn,
.btn.control-btn.inning-step-btn { width: 28px; height: 28px; font-size: 1.4rem; }
.btn.control-btn.score-step-btn { width: auto; height: 28px; min-width: 0; padding: 0 2px; font-size: 1.3rem; font-weight: 600; }
.team-score-actions .btn.control-btn.score-step-btn { width: 100%; }

/* 루상 / 아웃 */
.score-base-panel { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; width: 100%; min-width: 0; flex: 1; }
.score-base-diamond { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 96px; flex-shrink: 0; }
.score-base-diamond .runner-area { position: absolute; top: calc(50% - 3px); left: calc(50% + 8px); transform: translate(-50%, -50%); }
.score-base-diamond .runner { position: absolute; width: 30px; height: 30px; background: #2A3440; border-radius: 2px; transform: rotate(-45deg); box-shadow: inset 0 -1px 2px #000000; pointer-events: none; }
.score-base-diamond .runner.active { background: #FACC15; box-shadow: 0 0 10px #B89418, inset 0 1px 0 #5A5340; }
.score-base-diamond .runner.first { right: -31px; }
.score-base-diamond .runner.second { left: -23px; top: -24px; }
.score-base-diamond .runner.third { left: -47px; }

/* 루 버튼 — 다이아몬드 안에 절대 배치 */
.btn.score-base-btn { position: absolute; height: 22px; padding: 0 7px; border-radius: 3px; font-size: 1.2rem; font-weight: 600; color: var(--mb-text-muted); white-space: nowrap; }
/* 1루: first runner(right: -31px) 바로 우측, 수직 중심 맞춤 */
.btn.score-base-btn.base-pos-1 { right: 25px; top: 65%; transform: translateY(-50%); }
/* 2루: second runner(left:-23px, top:-24px) 바로 위, 수평 중심 맞춤 */
.btn.score-base-btn.base-pos-2 { top: -10px; left: 50%; transform: translateX(-50%); }
/* 3루: third runner(left: -47px) 바로 좌측, 수직 중심 맞춤 */
.btn.score-base-btn.base-pos-3 { left: 25px; top: 65%; transform: translateY(-50%); }
.btn.score-base-btn.active { background: var(--mb-surface-2); border-color: #A68315; color: #FACC15; }
.btn.score-base-btn.active:hover { background: var(--mb-surface-hover); border-color: #C9AD38; color: #FDE047; }
.score-base-diamond .btn.score-base-btn.base-pos-1:active,
.score-base-diamond .btn.score-base-btn.base-pos-3:active { transform: translateY(-50%) scale(0.96); }
.score-base-diamond .btn.score-base-btn.base-pos-2:active { transform: translateX(-50%) scale(0.96); }

/* 아웃/볼넷 버튼 — 강조 */
.score-out-actions { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.btn.score-out-btn { flex: 1; height: 36px; padding: 0 8px; border-radius: 4px; font-size: 1.4rem; font-weight: 700; color: #C8D4DF; border-color: #2E3E50; background: #111A24; }
.btn.score-out-btn:hover { background: #1A2638; border-color: #3D5166; color: #E8F0F7; }
.btn.score-out-btn:active { transform: scale(0.96); transition-duration: 0.05s; }

.score-base-control .score-control-section-body { min-height: 0; display: flex; flex-direction: column; }

/* 이벤트 */
.event-control .score-control-section-body { min-height: 0; }
.event-control-header { display: flex; align-items: center; gap: 8px; }
.event-control-title { flex-shrink: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: #FFFFFF; }
.btn.event-btn:focus-visible { border-color: rgba(255,255,255,0.85); box-shadow: 0 0 0 2px rgba(255,255,255,0.1); }
.event-btn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; }
.event-btn-grid--row2 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 4px; }
.btn.event-btn { width: 100%; height: 34px; padding: 0 8px; border-radius: 3px; font-size: 1.3rem; font-weight: 600; color: #C0C8D2; background: #121A23; border-color: #2b3740; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.event-btn:hover { color: #FFFFFF; background: var(--mb-surface-hover); border-color: #2b3740; }
.btn.event-btn.active { color: #6AE1BF; background: #0D2620; border-color: #0D9B7A; }

/* 이닝 / 공수교대 */
.inning-control .score-control-section-body { min-height: 0; padding: 0; }
.inning-change-control { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.inning-change-control .inning-section-header { flex-shrink: 0; }
.inning-change-control .inning-section-title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: #FFFFFF; white-space: nowrap; }
.inning-input-wrap { display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; }
.inning-input { width: 44px; height: 28px; margin: 0; padding: 0 4px; background: #1A2430; border: 1px solid #5F6872; border-radius: 3px; font-size: 1.4rem; font-weight: 700; line-height: 1; color: #FFFFFF; text-align: center; transition: border-color 0.15s ease, box-shadow 0.15s ease; -moz-appearance: textfield; appearance: textfield; }
.inning-input:focus { outline: none; border: 1px solid rgba(255,255,255,0.85); box-shadow: 0 0 0 2px rgba(255,255,255,0.1); }
.inning-input::-webkit-inner-spin-button,
.inning-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.inning-unit { flex-shrink: 0; font-size: 1.2rem; font-weight: 600; line-height: 1; color: #BFC7CE; white-space: nowrap; }
.inning-step-actions { display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; }
.inning-side-btns { display: inline-flex; flex-shrink: 0; align-items: center; gap: 3px; }
.btn.inning-side-btn { height: 26px; padding: 0 9px; border-radius: 3px; font-size: 1.2rem; font-weight: 600; color: #6B7580; background: transparent; border-color: #2b3740; white-space: nowrap; }
.btn.inning-side-btn:hover { color: #C0C8D2; background: var(--mb-surface-hover); border-color: #3B4752; }
.btn.inning-side-btn.active { color: #6AE1BF; background: #0D2620; border-color: #0D9B7A; }
.btn.inning-side-btn:focus-visible { border-color: #2b3740; box-shadow: none; }
.btn.inning-side-btn.active:focus-visible { border-color: #0D9B7A; box-shadow: none; }
.btn.side-change-btn { flex-shrink: 0; gap: 6px; height: 28px; margin-left: auto; padding: 0 12px; background: #151D26; border-color: var(--mb-line-strong); font-size: 1.3rem; }
.btn.side-change-btn:hover { background: var(--mb-surface-raised); border-color: #8B949E; }
.side-change-btn img { display: block; width: 18px; height: 10px; }
.team-score-control .score-control-section-body { min-height: 0; padding: 0; }

/* 팀별 점수 */
.team-score-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; min-width: 0; }
.team-score-card { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 5px; background: #111820; border: 1px solid #1E2833; border-radius: 4px; box-sizing: border-box; }
.team-score-card.active { border-left: 2px solid #A68315; }
.team-score-header { display: flex; align-items: center; gap: 6px; min-width: 0; padding-bottom: 5px; border-bottom: 1px solid #1E2833; }
.team-side-badge { flex-shrink: 0; padding: 2px 5px; border-radius: 2px; font-size: 1.2rem; font-weight: 700; line-height: 1.2; white-space: nowrap; border: 1px solid #5F6872; color: #BFC7CE; }
.team-score-card.active .team-side-badge { border-color: #A68315; color: #FACC15; }
.team-name { flex: 1; min-width: 0; font-size: 1.4rem; font-weight: 700; line-height: 1.2; color: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-score-input { flex-shrink: 0; width: 40px; height: 28px; margin: 0; padding: 0 4px; background: #1A2430; border: 1px solid #5F6872; border-radius: 3px; font-size: 1.4rem; font-weight: 700; line-height: 1; color: #FFFFFF; text-align: center; transition: border-color 0.15s ease, box-shadow 0.15s ease; -moz-appearance: textfield; appearance: textfield; }
.team-score-input:focus { outline: none; border: 1px solid rgba(255,255,255,0.85); box-shadow: 0 0 0 2px rgba(255,255,255,0.1); }
.team-score-input::-webkit-inner-spin-button,
.team-score-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.team-score-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; min-width: 0; }

/* --------------------------------------------------------------------------
   이벤트 로그 — 타자 기준 그룹 + 스택형
   -------------------------------------------------------------------------- */

/* 스크롤 체인: zone-event(flex col) → panel(flex:1 min-h:0) → scroll(flex:1 min-h:0 overflow) */
.event-log-panel { display: flex; flex: 1; flex-direction: column; min-height: 0; width: 100%; }
.event-log-head { flex-shrink: 0; padding: 10px 14px 8px; border-bottom: 1px solid #1E2833; }
.event-log-title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: #FFFFFF; }

.event-log-scroll { list-style: none; margin: 0; flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 10px; display: flex; flex-direction: column; gap: 0; }
.event-log-scroll::-webkit-scrollbar { width: 3px; }
.event-log-scroll::-webkit-scrollbar-thumb { background: #3A4652; border-radius: 999px; }
.event-log-scroll::-webkit-scrollbar-track { background: transparent; }

/* 개별 엔트리 */
.el-entry { display: flex; align-items: center; padding: 5px 4px 5px 0; border-bottom: 1px solid #0E1820; }
.el-entry:hover { background: rgba(255,255,255,0.025); }

/* 타입 배지 — 좌측 컬러 바 + 알약형 레이블 */
.el-entry-type { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 18px; border-radius: 3px; font-size: 1.0rem; font-weight: 700; margin: 0 8px 0 8px; }

/* 본문 */
.el-entry-body { flex: 1; min-width: 0; font-size: 1.25rem; font-weight: 500; color: #9AAABB; line-height: 1.4; }
.el-entry-body em.el-val { font-style: normal; font-weight: 800; font-size: 1.3rem; }

/* 시각 */
.el-entry-time { flex-shrink: 0; margin-left: 6px; font-size: 1.2rem; color: #3c5164; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 수치 강조 */
.el-val-plus  { color: #3DBF7A; }
.el-val-minus { color: #E05C5C; }

/* ── 타입별 컬러 ── */
/* A. 중계 — 파랑 */
.el-type-score .el-entry-type { background: rgba(58,130,196,0.15); color: #5BA8E0; border: 1px solid rgba(58,130,196,0.25); }
.el-type-score .el-entry-body { color: #8AAEC8; }

/* B. 교체/필드 — 주황 */
.el-type-field .el-entry-type { background: rgba(196,130,58,0.15); color: #E09A50; border: 1px solid rgba(196,130,58,0.25); }
.el-type-field .el-entry-body { color: #B0906A; }

/* C. 기록 — 초록 */
.el-type-record .el-entry-type { background: rgba(58,180,100,0.15); color: #4DC87A; border: 1px solid rgba(58,180,100,0.25); }
.el-type-record .el-entry-body { color: #7AB898; font-weight: 600; }

/* D. 상태 — 회색 */
.el-type-state .el-entry-type { background: rgba(100,115,130,0.15); color: #7A8C9A; border: 1px solid rgba(100,115,130,0.25); }
.el-type-state .el-entry-body { color: #5A6A78; }

