/* ===== バスケットボール スコアボード（カスタマイズ対応） ===== */
:root {
  --team-home: #5dade2;
  --team-away: #48c9b0;
  --color-accent: #85c1e9;
}

.basketball-board {
  background: linear-gradient(135deg, rgba(26, 26, 62, 0.95), rgba(46, 26, 71, 0.95));
  border-radius: 12px;
  display: inline-flex;
  align-items: stretch;
  min-width: 930px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  font-family: 'Segoe UI', 'Hiragino Sans', sans-serif;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.basketball-board > .lineup-panel {
  width: 120px;
  min-height: auto;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.basketball-board > .lineup-panel.home-lineup {
  border-right: 1px solid rgba(255,255,255,0.1);
}
.basketball-board > .lineup-panel.away-lineup {
  border-left: 1px solid rgba(255,255,255,0.1);
}

.basketball-board > .scoreboard-main {
  flex: 1;
  min-width: 0;
  padding: 12px 54px;
}

/* グラデーションライン（上部） */
.basketball-board::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--team-home), var(--color-accent), var(--team-away));
}

.bb-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.bb-quarter {
  background: rgba(255,255,255,0.12);
  padding: 3px 18px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.bb-timer {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-shadow: 0 0 10px color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.bb-scores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.bb-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 160px;
  padding: 0;
}

.bb-team-name {
  font-size: 1.3rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 0px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bb-score {
  font-size: 6.75rem;
  font-weight: 900;
  line-height: 1;
  transition: color 0.3s;
}

.bb-score.home {
  color: var(--team-home);
  text-shadow: 0 0 20px color-mix(in srgb, var(--team-home) 40%, transparent);
}

.bb-score.away {
  color: var(--team-away);
  text-shadow: 0 0 20px color-mix(in srgb, var(--team-away) 40%, transparent);
}

.bb-foul {
  margin-top: 2px;
  font-size: 1rem;
  opacity: 0.5;
}

.bb-foul span {
  font-weight: 700;
  font-size: 1.35rem;
  opacity: 1;
  color: var(--color-accent);
}

.bb-divider {
  font-size: 3.75rem;
  opacity: 0.2;
  font-weight: 300;
}

/* スコアアニメーション */
@keyframes scorePop {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.score-pop {
  animation: scorePop 0.35s ease-out;
}

/* 表示画面用 */
.display-body {
  margin: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}
