:root {
  --bg: #07101f;
  --panel: #111e32;
  --panel-2: #1b2b45;
  --text: #f8fafc;
  --muted: #a9b8ce;
  --line: #334865;
  --success: #14b86f;
  --warning: #f4b41a;
  --danger: #ef3340;
  --info: #3bb8f3;
  --primary: #7c6cff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}
button, input, select { font: inherit; }
button {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  background: #e8edf5;
  color: #09111e;
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #6f829e;
  border-radius: 9px;
  background: white;
  color: #101827;
}
label { display: grid; gap: 7px; font-weight: 750; }
fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
}
legend { padding: 0 7px; font-weight: 800; }
.hidden { display: none !important; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 7, 16, .94);
}
.dialog {
  width: min(900px, 100%);
  max-height: 95vh;
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
}
.dialog.compact { width: min(520px, 100%); }
.dialog h1 { margin: 5px 0 8px; }
.brand { color: #8ea8ff; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.hint, .small, .keyboard-help { color: var(--muted); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
  margin: 22px 0;
}
.full-width { grid-column: 1 / -1; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.large { padding: 15px 20px; font-size: 18px; }
.primary { background: var(--primary); color: white; }
.success { background: var(--success); color: white; }
.warning { background: var(--warning); }
.danger { background: var(--danger); color: white; }
.info { background: var(--info); color: #06263c; }
.full { width: 100%; margin-top: 9px; }

.app { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.control-panel {
  padding: 12px;
  background: #0d192b;
  border-bottom: 2px solid var(--line);
}
.control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.header-actions, .button-row { display: flex; gap: 8px; }
.control-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr .9fr;
  gap: 10px;
}
.panel {
  padding: 12px;
  border-radius: 12px;
  background: var(--panel);
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.button-row > button { flex: 1; }
.correction button { font-size: 14px; }
.scoring button { font-size: 21px; }
.keyboard-help { margin-top: 8px; text-align: right; font-size: 12px; }

.scoreboard {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(320px, .75fr) 1fr;
  align-items: center;
  gap: 28px;
  min-height: 0;
  padding: 30px 92px;
  overflow: hidden;
}
.jersey-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  box-shadow: 0 0 25px rgba(0,0,0,.45);
}
.jersey-bar.left { left: 0; }
.jersey-bar.right { right: 0; }
.team-side { text-align: center; min-width: 0; }
.team-name {
  min-height: 1.2em;
  font-size: clamp(32px, 4.4vw, 78px);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.score {
  font-size: clamp(130px, 19vw, 310px);
  line-height: .84;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.set-line {
  margin-top: 22px;
  color: #ffd34e;
  font-size: clamp(21px, 2.8vw, 44px);
  font-weight: 900;
}
.center-side { text-align: center; }
.venue {
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 35px);
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.1vw, 30px);
}
.timer {
  font-size: clamp(76px, 10.4vw, 165px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: .035em;
}
.stop-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: clamp(24px, 2.7vw, 44px);
  height: clamp(24px, 2.7vw, 44px);
  border-radius: 50%;
  background: #ff2028;
  border: 3px solid #ff7a7f;
  box-shadow: 0 0 14px #ff2028, 0 0 30px rgba(255,32,40,.95);
  opacity: 0;
  visibility: hidden;
}
.stop-dot.visible {
  opacity: 1;
  visibility: visible;
  animation: pulse .85s infinite alternate;
}
.period { font-size: clamp(25px, 3vw, 48px); font-weight: 900; }
.shootout-status { margin-top: 10px; color: #51c9ff; font-size: clamp(20px, 2vw, 34px); font-weight: 900; }
.message { min-height: 1.4em; margin-top: 12px; color: #39da8c; font-size: clamp(20px, 2.2vw, 36px); font-weight: 900; }
.meta { margin-top: 12px; color: var(--muted); font-size: clamp(14px, 1.4vw, 22px); }

.timeout-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  background: rgba(3,8,18,.96);
}
.timeout-card { text-align: center; padding: 30px; }
.timeout-title { font-size: clamp(38px, 6vw, 90px); font-weight: 950; color: #ffd34e; }
.timeout-team { font-size: clamp(34px, 5vw, 75px); font-weight: 900; margin-top: 15px; }
.timeout-clock { font-size: clamp(100px, 17vw, 260px); font-weight: 950; font-variant-numeric: tabular-nums; }

.display-only .control-panel { display: none; }
.display-only .app { grid-template-rows: 1fr; }
.display-only .scoreboard { min-height: 100vh; }

@keyframes pulse {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(.88); opacity: .5; }
}
@media (max-width: 1100px) {
  .control-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .form-grid, .control-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .scoreboard { grid-template-columns: 1fr; padding: 28px 65px; }
  .center-side { order: -1; }
  .jersey-bar { width: 48px; }
}

.correction-score {
  flex: 0 0 58px !important;
  max-width: 58px;
  font-size: 15px !important;
  opacity: .78;
}
.correction-score:hover {
  opacity: 1;
}
#correctionForm label {
  margin-bottom: 14px;
}

.team-setup-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 16px;
  align-items: end;
}
.optional-section {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.optional-section h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.optional-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
}
@media (max-width: 700px) {
  .team-setup-row,
  .optional-grid {
    grid-template-columns: 1fr;
  }
}

.team-control-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.team-control-heading h2 {
  margin: 0;
}
.team-color-chip {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 0 10px rgba(0,0,0,.35);
}

.game-actions {
  margin-top: 0;
}
.game-actions > button {
  flex: 1;
}
.final-result {
  margin-top: 12px;
  color: #ffd34e;
  font-size: clamp(28px, 3.4vw, 58px);
  font-weight: 950;
  letter-spacing: .03em;
}
.team-side {
  transition: transform .25s ease, opacity .25s ease, filter .25s ease, box-shadow .25s ease;
  border-radius: 22px;
  padding: 18px 10px;
}
.team-side.winner-team {
  transform: scale(1.035);
  box-shadow: 0 0 0 4px #39da8c, 0 0 42px rgba(57, 218, 140, .58);
  background: rgba(20, 184, 111, .09);
}
.team-side.winner-team .team-name,
.team-side.winner-team .set-line {
  color: #5df0a4;
}
.team-side.loser-team {
  opacity: .5;
  filter: grayscale(.35);
}

.connection-error { min-height: 1.4em; margin-top: 12px; color: #ff7b82; font-weight: 800; }
.connection-ok { color: #5df0a4 !important; }
.connection-bad { color: #ff7b82 !important; }
.landing-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.landing-card { width: min(680px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.link-button { display: inline-block; padding: 14px 18px; border-radius: 10px; background: #e8edf5; color: #09111e; text-decoration: none; font-weight: 900; }


/* Smartphone-optimierte Zuschaueranzeige */
@media (max-width: 820px) {
  .display-only {
    min-height: 100dvh;
    overflow: hidden;
  }

  .display-only .app,
  .display-only .scoreboard {
    min-height: 100dvh;
    height: 100dvh;
  }

  .display-only .scoreboard {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "center center"
      "teamA teamB";
    align-items: stretch;
    gap: 8px 10px;
    padding: max(10px, env(safe-area-inset-top)) 24px max(10px, env(safe-area-inset-bottom));
  }

  .display-only #teamASide { grid-area: teamA; }
  .display-only #teamBSide { grid-area: teamB; }
  .display-only .center-side { grid-area: center; order: initial; }

  .display-only .jersey-bar {
    width: 14px;
  }

  .display-only .team-side {
    min-height: 0;
    padding: 8px 5px 10px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .display-only .team-name {
    min-height: 2.45em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: clamp(18px, 5.6vw, 30px);
    line-height: 1.05;
  }

  .display-only .score {
    margin-top: 4px;
    font-size: clamp(82px, 27vw, 145px);
    line-height: .82;
  }

  .display-only .set-line {
    margin-top: 12px;
    font-size: clamp(16px, 4.8vw, 25px);
  }

  .display-only .venue {
    font-size: clamp(13px, 3.8vw, 19px);
    line-height: 1.1;
  }

  .display-only .timer-row {
    gap: 10px;
    margin-top: 1px;
  }

  .display-only .timer {
    font-size: clamp(62px, 20vw, 108px);
    line-height: .98;
    letter-spacing: .015em;
  }

  .display-only .stop-dot {
    width: clamp(15px, 4.5vw, 23px);
    height: clamp(15px, 4.5vw, 23px);
    border-width: 2px;
  }

  .display-only .period {
    font-size: clamp(19px, 5.4vw, 28px);
    line-height: 1.05;
  }

  .display-only .shootout-status {
    margin-top: 4px;
    font-size: clamp(14px, 4vw, 20px);
  }

  .display-only .final-result {
    margin-top: 4px;
    font-size: clamp(21px, 6vw, 32px);
  }

  .display-only .message {
    min-height: 1.15em;
    margin-top: 5px;
    font-size: clamp(15px, 4.2vw, 22px);
    line-height: 1.1;
  }

  .display-only .meta {
    margin-top: 5px;
    font-size: clamp(11px, 3vw, 15px);
    line-height: 1.15;
  }

  .display-only .timeout-card {
    width: 100%;
    padding: 18px;
  }

  .display-only .timeout-title {
    font-size: clamp(30px, 10vw, 50px);
  }

  .display-only .timeout-team {
    font-size: clamp(26px, 8vw, 42px);
  }

  .display-only .timeout-clock {
    font-size: clamp(95px, 30vw, 165px);
  }

  .display-only .timeout-card button {
    display: none;
  }
}

/* Smartphone im Querformat: kompakte TV-Anordnung */
@media (max-width: 950px) and (orientation: landscape) and (max-height: 540px) {
  .display-only .scoreboard {
    grid-template-columns: minmax(0, 1fr) minmax(210px, .8fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
    grid-template-areas: "teamA center teamB";
    gap: 12px;
    padding: max(8px, env(safe-area-inset-top)) 34px max(8px, env(safe-area-inset-bottom));
  }

  .display-only .jersey-bar { width: 18px; }
  .display-only .team-side { padding: 6px; }
  .display-only .team-name {
    min-height: 2.2em;
    align-items: flex-end;
    font-size: clamp(18px, 3.5vw, 29px);
  }
  .display-only .score { font-size: clamp(82px, 15vw, 145px); }
  .display-only .set-line { margin-top: 7px; font-size: clamp(15px, 2.8vw, 23px); }
  .display-only .timer { font-size: clamp(60px, 10.5vw, 105px); }
  .display-only .venue { font-size: clamp(12px, 2.2vw, 18px); }
  .display-only .period { font-size: clamp(18px, 3.2vw, 27px); }
  .display-only .message { font-size: clamp(14px, 2.4vw, 20px); }
  .display-only .meta { font-size: clamp(10px, 1.7vw, 14px); }
}

/* Turnierverwaltung */
.admin-shell, .live-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 50px;
}
.admin-header, .live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.admin-card, .live-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.admin-card.full { grid-column: 1 / -1; margin-top: 0; }
.admin-card h2, .live-card h2 { margin: 0 0 14px; }
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-form-grid .wide { grid-column: 1 / -1; }
.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.admin-item, .match-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
}
.admin-item small, .match-row small { color: var(--muted); }
.admin-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.compact-button { padding: 8px 10px; font-size: 13px; }
.status-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #31435f;
  color: #dce8fa;
  font-size: 12px;
  font-weight: 850;
}
.status-pill.live { background: #0d7548; color: white; }
.status-pill.finished { background: #536174; }
.match-selection-list {
  display: grid;
  gap: 10px;
  max-height: 52vh;
  overflow: auto;
  margin: 14px 0;
}
.match-select-button {
  width: 100%;
  text-align: left;
  padding: 14px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.match-select-button strong { display: block; font-size: 17px; margin-bottom: 4px; }
.match-select-button span { color: var(--muted); font-size: 13px; }
.manual-game-row { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.live-courts { display: grid; gap: 16px; }
.live-match {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 14px;
  border-top: 1px solid var(--line);
}
.live-match:first-child { border-top: 0; }
.live-teams { font-weight: 900; font-size: 18px; }
.live-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.live-link {
  text-decoration: none;
  color: white;
  background: var(--primary);
  padding: 9px 12px;
  border-radius: 9px;
  font-weight: 850;
}
.empty-state { color: var(--muted); padding: 18px 0; }
@media (max-width: 760px) {
  .admin-grid, .admin-form-grid { grid-template-columns: 1fr; }
  .admin-card.full, .admin-form-grid .wide { grid-column: auto; }
  .live-match { grid-template-columns: 1fr auto; }
  .live-match > :first-child { grid-column: 1 / -1; }
}

.match-code-badge {
  display: inline-block;
  min-width: 112px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #07101f;
  border: 1px solid #61738d;
  color: #ffd34e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .08em;
  text-align: center;
}
#matchCodeInput {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: .28em;
}

/* Neue Live-Score-Übersicht */
.live-page {
  background:
    radial-gradient(circle at top, rgba(46, 80, 130, .18), transparent 32rem),
    var(--bg);
}
.live-shell-wide {
  width: min(1500px, calc(100% - 28px));
}
.live-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.live-connection {
  color: var(--muted);
  font-weight: 850;
  font-size: 14px;
}
.live-connection.connected { color: #5df0a4; }
.live-connection.disconnected { color: #ff7b82; }

.live-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.live-score-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(27, 43, 69, .98), rgba(11, 23, 41, .98));
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.live-score-card.status-live {
  border-color: rgba(57, 218, 140, .7);
  box-shadow: 0 0 0 1px rgba(57, 218, 140, .18), 0 18px 50px rgba(0,0,0,.32);
}
.live-score-card.status-timeout { border-color: rgba(255, 211, 78, .82); }
.live-score-card.status-finished { border-color: rgba(142, 168, 255, .5); }
.live-score-card.status-planned { opacity: .92; }

.live-card-top, .live-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.live-card-top { border-bottom: 1px solid var(--line); }
.live-card-bottom { border-top: 1px solid var(--line); }
.live-court-name {
  font-size: 23px;
  font-weight: 950;
}
.live-match-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.live-state-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: #44546c;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
}
.live-state-badge.live {
  background: #0d8d57;
  color: white;
  animation: livePulse 1.3s infinite alternate;
}
.live-state-badge.timeout { background: #b78100; color: white; }
.live-state-badge.finished { background: #52637d; color: white; }
.live-state-badge.planned { background: #34435a; color: #dae5f4; }

.live-score-body {
  display: grid;
  grid-template-columns: 1fr minmax(180px, .8fr) 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 18px 14px;
}
.live-team-block {
  position: relative;
  min-width: 0;
  padding: 14px 10px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  transition: opacity .2s ease, transform .2s ease;
}
.live-team-block.winner {
  transform: scale(1.025);
  background: rgba(57, 218, 140, .1);
  box-shadow: inset 0 0 0 2px rgba(57, 218, 140, .65);
}
.live-team-block.loser { opacity: .55; }
.live-team-color {
  height: 12px;
  border-radius: 999px;
  margin-bottom: 11px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 0 10px rgba(0,0,0,.25);
}
.live-team-name {
  min-height: 2.6em;
  display: grid;
  place-items: center;
  font-size: clamp(17px, 2vw, 26px);
  font-weight: 950;
  overflow-wrap: anywhere;
}
.live-main-score {
  margin-top: 5px;
  font-size: clamp(66px, 8vw, 112px);
  line-height: .9;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.live-set-score {
  margin-top: 8px;
  color: #ffd34e;
  font-size: 16px;
  font-weight: 900;
}
.live-center-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.live-period {
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.live-clock {
  margin: 7px 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.live-set-summary {
  color: #ffd34e;
  font-size: 18px;
  font-weight: 950;
}
.live-shootout {
  margin-top: 8px;
  color: #51c9ff;
  font-size: 13px;
  font-weight: 850;
}
.live-timeout {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(244, 180, 26, .17);
  color: #ffd34e;
  font-size: 13px;
  font-weight: 950;
}
.live-result-text {
  min-height: 1.2em;
  color: var(--muted);
  font-weight: 850;
}
.status-finished .live-result-text { color: #5df0a4; }
.live-open-link {
  flex: 0 0 auto;
  text-decoration: none;
  color: white;
  background: var(--primary);
  padding: 10px 13px;
  border-radius: 9px;
  font-weight: 900;
}
.loading-card {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
}

@keyframes livePulse {
  from { box-shadow: 0 0 0 rgba(57,218,140,0); }
  to { box-shadow: 0 0 18px rgba(57,218,140,.48); }
}

@media (max-width: 1050px) {
  .live-score-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .live-shell-wide { width: min(100% - 16px, 1500px); padding-top: 12px; }
  .live-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .live-score-body {
    grid-template-columns: 1fr 120px 1fr;
    gap: 6px;
    padding: 12px 8px;
  }
  .live-team-block { padding: 10px 5px; }
  .live-team-name { font-size: 14px; }
  .live-main-score { font-size: 54px; }
  .live-set-score { font-size: 13px; }
  .live-period { font-size: 11px; }
  .live-clock { font-size: 33px; }
  .live-set-summary { font-size: 13px; }
  .live-card-top, .live-card-bottom { padding: 11px 12px; }
  .live-court-name { font-size: 19px; }
  .live-card-bottom {
    align-items: stretch;
    flex-direction: column;
  }
  .live-open-link { text-align: center; }
}

.scheduled-match-summary {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.scheduled-summary-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
}
.scheduled-summary-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.scheduled-summary-row strong {
  overflow-wrap: anywhere;
}
.scheduled-team-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.scheduled-team-color-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.scheduled-team-name {
  min-height: 2.5em;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 20px;
  font-weight: 950;
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  .scheduled-team-colors {
    grid-template-columns: 1fr;
  }
  .scheduled-summary-row {
    grid-template-columns: 90px 1fr;
  }
}

/* Live-Design-Finish */
.live-court-name {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: .045em;
  text-transform: uppercase;
}
.winner-symbol {
  display: inline-block;
  margin-right: 6px;
  font-size: .82em;
}
.live-clock-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1vw, 13px);
  width: 100%;
}
.live-stop-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: clamp(12px, 1.4vw, 20px);
  height: clamp(12px, 1.4vw, 20px);
  border-radius: 50%;
  background: #ff2028;
  border: 2px solid #ff7a7f;
  box-shadow: 0 0 8px #ff2028, 0 0 17px rgba(255,32,40,.9);
  visibility: hidden;
  opacity: 0;
}
.live-stop-dot.visible {
  visibility: visible;
  opacity: 1;
  animation: liveStopPulse .85s infinite alternate;
}
@keyframes liveStopPulse {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(.84); opacity: .45; }
}
.status-timeout .live-score-body {
  background: linear-gradient(180deg, rgba(183, 129, 0, .055), transparent);
}
.status-finished .live-card-top {
  background: rgba(82, 99, 125, .12);
}
@media (max-width: 620px) {
  .live-court-name { font-size: 24px; }
  .live-stop-dot {
    width: 11px;
    height: 11px;
    border-width: 1px;
  }
  .live-clock-row { gap: 5px; }
}

/* BeachScore V4: getrennte Bereiche, Branding und Sponsoren */
.admin-section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(7, 16, 31, .94);
  backdrop-filter: blur(12px);
}
.admin-section-nav a {
  flex: 1;
  padding: 11px 13px;
  border-radius: 9px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--panel-2);
  font-weight: 900;
}
.admin-section-heading {
  margin: 28px 0 12px;
  color: #dce5ff;
}
.display-option-list {
  display: grid;
  gap: 10px;
}
.radio-option {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}
.radio-option input {
  width: auto;
  margin-top: 4px;
}
.radio-option span {
  display: grid;
  gap: 3px;
}
.radio-option small {
  color: var(--muted);
  font-weight: 500;
}
.toggle-option {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}
.toggle-option input {
  width: auto;
}
.admin-divider {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.branding-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 11px;
}
.branding-logo-preview {
  width: 100px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
}
.sponsor-admin-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.sponsor-admin-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
}
.sponsor-admin-logo {
  width: 90px;
  height: 45px;
  object-fit: contain;
  padding: 4px;
  border-radius: 7px;
  background: white;
}
.live-brand-block {
  display: flex;
  align-items: center;
  gap: 15px;
}
.live-tournament-logo {
  width: clamp(58px, 8vw, 100px);
  height: clamp(58px, 8vw, 100px);
  object-fit: contain;
  padding: 6px;
  border-radius: 13px;
  background: rgba(255,255,255,.94);
}
.live-sponsor-section {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}
.sponsor-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.live-sponsor-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.live-sponsor-strip a {
  text-decoration: none;
}
.live-sponsor-item {
  display: grid;
  place-items: center;
  width: 140px;
  height: 65px;
  padding: 7px;
  border-radius: 9px;
  background: white;
}
.live-sponsor-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.display-branding {
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}
.display-tournament-logo {
  max-width: 120px;
  max-height: 70px;
  object-fit: contain;
  padding: 5px;
  border-radius: 9px;
  background: rgba(255,255,255,.93);
}
.display-sponsor-section {
  padding: 8px 76px 12px;
  background: #0a1526;
  border-top: 1px solid var(--line);
}
.display-sponsor-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  overflow: hidden;
}
.display-sponsor-strip img {
  max-width: 125px;
  max-height: 45px;
  object-fit: contain;
  padding: 4px;
  border-radius: 6px;
  background: white;
}
.display-only .app {
  grid-template-rows: 1fr auto;
}
@media (max-width: 700px) {
  .admin-section-nav {
    position: static;
    flex-direction: column;
  }
  .sponsor-admin-item {
    grid-template-columns: 75px 1fr;
  }
  .sponsor-admin-item button {
    grid-column: 1 / -1;
  }
  .sponsor-admin-logo {
    width: 70px;
  }
  .live-brand-block {
    align-items: flex-start;
  }
  .display-branding {
    top: 8px;
  }
  .display-tournament-logo {
    max-width: 70px;
    max-height: 42px;
  }
  .display-sponsor-section {
    padding: 6px 20px 8px;
  }
  .display-sponsor-strip img {
    max-width: 85px;
    max-height: 34px;
  }
}


/* V4 Startseiten- und Sponsoren-Fix – vollständig sichtbar */
.live-card-bottom {
  justify-content: flex-start;
}
.live-result-text {
  width: 100%;
}

.site-footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 14px 10px 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
}
.site-footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  opacity: .72;
}
.site-footer-nav a:hover,
.site-footer-nav a:focus {
  color: var(--text);
  opacity: 1;
}

/* Sponsoren auf der Live-Seite */
.live-sponsor-section {
  overflow: visible;
}
.live-sponsor-strip {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  overflow: visible;
}
.live-sponsor-strip a {
  display: block;
  text-decoration: none;
}
.live-sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 88px;
  padding: 10px;
  border-radius: 10px;
  background: white;
  overflow: visible;
}
.live-sponsor-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Sponsoren auf der offiziellen Anzeige */
.display-sponsor-section {
  padding: 12px 76px 14px;
  background: #0a1526;
  border-top: 1px solid var(--line);
  overflow: visible;
}
.display-sponsor-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
  min-height: 78px;
  overflow: visible;
}
.display-sponsor-strip img {
  display: block;
  width: 150px;
  height: 64px;
  padding: 8px;
  border-radius: 8px;
  background: white;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .site-footer-nav {
    gap: 12px;
  }

  .live-sponsor-item {
    width: 130px;
    height: 72px;
  }

  .display-sponsor-section {
    padding: 8px 16px 10px;
  }

  .display-sponsor-strip {
    min-height: 58px;
    gap: 10px;
  }

  .display-sponsor-strip img {
    width: 105px;
    height: 46px;
    padding: 5px;
  }
}

/* BeachScore V4 – modernes, helles Live-Design */
.live-page {
  --live-bg: #f3f6fb;
  --live-surface: #ffffff;
  --live-surface-soft: #f8fafc;
  --live-border: #dfe6ef;
  --live-text: #142033;
  --live-muted: #68768a;
  --live-accent: #5b5ce2;
  --live-success: #0f9f6e;
  --live-warning: #c88a00;
  --live-danger: #e23d4b;

  background:
    radial-gradient(circle at top left, rgba(91, 92, 226, .10), transparent 26rem),
    radial-gradient(circle at top right, rgba(33, 170, 145, .08), transparent 24rem),
    var(--live-bg);
  color: var(--live-text);
}

.live-page .brand {
  color: var(--live-accent);
}

.live-page .hint,
.live-page .live-match-meta,
.live-page .live-period,
.live-page .live-result-text,
.live-page .live-connection {
  color: var(--live-muted);
}

.live-page .live-header {
  padding: 10px 4px 4px;
}

.live-page .live-header h1 {
  color: var(--live-text);
  margin-bottom: 4px;
}

.live-page .link-button {
  background: var(--live-surface);
  color: var(--live-text);
  border: 1px solid var(--live-border);
  box-shadow: 0 4px 14px rgba(29, 41, 57, .06);
}

.live-page .live-score-card {
  border: 1px solid var(--live-border);
  background: var(--live-surface);
  box-shadow: 0 14px 38px rgba(35, 48, 68, .09);
}

.live-page .live-score-card.status-live {
  border-color: rgba(15, 159, 110, .40);
  box-shadow:
    0 0 0 1px rgba(15, 159, 110, .10),
    0 16px 42px rgba(35, 48, 68, .10);
}

.live-page .live-score-card.status-timeout {
  border-color: rgba(200, 138, 0, .45);
}

.live-page .live-score-card.status-finished {
  border-color: #cbd5e1;
}

.live-page .live-card-top,
.live-page .live-card-bottom {
  border-color: var(--live-border);
  background: var(--live-surface-soft);
}

.live-page .live-court-name {
  color: var(--live-text);
}

.live-page .live-state-badge.planned {
  background: #e8edf5;
  color: #536174;
}

.live-page .live-state-badge.live {
  background: var(--live-success);
  color: #fff;
}

.live-page .live-state-badge.timeout {
  background: var(--live-warning);
  color: #fff;
}

.live-page .live-state-badge.finished {
  background: #64748b;
  color: #fff;
}

.live-page .live-score-body {
  background: var(--live-surface);
}

.live-page .live-team-block {
  background: #f8fafc;
  border: 1px solid #edf1f6;
}

.live-page .live-team-block.winner {
  background: #eefaf5;
  box-shadow: inset 0 0 0 2px rgba(15, 159, 110, .35);
}

.live-page .live-team-block.loser {
  opacity: .62;
}

.live-page .live-team-name,
.live-page .live-main-score {
  color: var(--live-text);
}

.live-page .live-clock {
  color: #0f172a;
}

.live-page .live-set-summary {
  color: var(--live-accent);
}

.live-page .live-shootout {
  color: #1478a7;
}

.live-page .live-timeout {
  background: #fff7df;
  color: #8a5b00;
}

.live-page .live-result-text {
  color: var(--live-muted);
}

.live-page .status-finished .live-result-text {
  color: var(--live-success);
}

.live-page .live-connection.connected {
  color: var(--live-success);
}

.live-page .live-connection.disconnected {
  color: var(--live-danger);
}

.live-page .live-sponsor-section {
  border: 1px solid var(--live-border);
  background: var(--live-surface);
  box-shadow: 0 10px 30px rgba(35, 48, 68, .07);
}

.live-page .sponsor-label {
  color: var(--live-muted);
}

.live-page .site-footer-nav {
  border-top-color: var(--live-border);
}

.live-page .site-footer-nav a {
  color: var(--live-muted);
}

.live-page .site-footer-nav a:hover,
.live-page .site-footer-nav a:focus {
  color: var(--live-text);
}

.live-score-with-color {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 18px);
  margin-top: 6px;
}

.live-team-color-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: clamp(18px, 2vw, 28px);
  height: clamp(52px, 6vw, 82px);
  border-radius: 999px;
  border: 2px solid rgba(20, 32, 51, .16);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, .12),
    inset 0 0 0 1px rgba(255,255,255,.35);
}

.live-page .live-stop-dot {
  border-color: #ff8b91;
}

@media (max-width: 620px) {
  .live-page .live-score-card {
    border-radius: 15px;
  }

  .live-page .live-team-block {
    border-radius: 11px;
  }

  .live-score-with-color {
    gap: 7px;
  }

  .live-team-color-dot {
    width: 12px;
    height: 43px;
    border-width: 1px;
  }
}

/* Dezente interne Navigation */
.live-header-actions .link-button[href="index.html"] {
  display: none;
}

.utility-menu {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
}

.utility-menu-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 32, 51, .16);
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #667085;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(32, 45, 66, .14);
  backdrop-filter: blur(10px);
  opacity: .58;
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.utility-menu-button:hover,
.utility-menu-button:focus-visible,
.utility-menu-button[aria-expanded="true"] {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(32, 45, 66, .2);
}

.utility-menu-panel {
  position: absolute;
  right: 0;
  bottom: 52px;
  width: 205px;
  padding: 10px;
  border: 1px solid #dde4ee;
  border-radius: 13px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 42px rgba(32, 45, 66, .18);
  backdrop-filter: blur(12px);
}

.utility-menu-title {
  padding: 6px 8px 9px;
  color: #7a8799;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.utility-menu-panel a {
  display: block;
  padding: 10px 11px;
  border-radius: 8px;
  color: #263348;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.utility-menu-panel a:hover,
.utility-menu-panel a:focus {
  background: #f1f4f9;
  color: #4f46d8;
}

@media (max-width: 620px) {
  .utility-menu {
    right: 12px;
    bottom: 12px;
  }

  .utility-menu-button {
    width: 40px;
    height: 40px;
  }

  .utility-menu-panel {
    bottom: 49px;
    width: 190px;
  }
}

/* Live-Feinschliff */
.live-page .live-main-score {
  font-weight: 760;
  letter-spacing: -.035em;
}

.live-page .live-clock {
  font-weight: 780;
}

.live-page .live-court-name {
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: .025em;
}

.live-page .live-header h1 {
  font-size: clamp(28px, 4vw, 46px);
}

.live-score-card.status-planned {
  position: relative;
  filter: grayscale(.85);
  opacity: .72;
}

.live-score-card.status-planned .live-card-top,
.live-score-card.status-planned .live-score-body,
.live-score-card.status-planned .live-card-bottom {
  background: #eef1f5;
}

.live-score-card.status-planned .live-team-block {
  background: #e9edf2;
  border-color: #dfe5ec;
}

.live-score-card.status-planned .live-main-score,
.live-score-card.status-planned .live-team-name,
.live-score-card.status-planned .live-clock,
.live-score-card.status-planned .live-court-name {
  color: #778293;
}



@media (max-width: 620px) {
  .live-page .live-main-score {
    font-size: 48px;
  }

  .live-page .live-clock {
    font-size: 30px;
  }

  .live-page .live-court-name {
    font-size: 18px;
  }

  .coming-soon-overlay span {
    padding: 7px 12px;
    font-size: 12px;
  }
}


/* Beendete Spiele – vollständige Abschlusskarte */
.live-score-card.status-finished {
  position: relative;
  filter: grayscale(.08);
}

.finished-game-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px;
  text-align: center;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(244, 252, 248, .96), rgba(234, 247, 241, .94));
  backdrop-filter: blur(1px);
}

.finished-game-label {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: #0f9f6e;
  color: #fff;
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: 0 8px 22px rgba(15, 159, 110, .22);
}

.finished-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  width: min(100%, 760px);
}

.finished-team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  color: #24352f;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(77, 116, 101, .16);
}

.finished-team.finished-winner {
  background: rgba(255,255,255,.86);
  border-color: rgba(15, 159, 110, .36);
  box-shadow: 0 8px 24px rgba(15, 159, 110, .12);
}

.finished-team-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(17px, 2.3vw, 30px);
  font-weight: 850;
  line-height: 1.15;
}

.finished-winner-icon {
  display: inline-block;
  margin: 0 5px;
  font-size: .9em;
}

.finished-team-color {
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: clamp(48px, 5.5vw, 72px);
  border-radius: 999px;
  border: 2px solid rgba(22, 56, 45, .16);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, .10),
    inset 0 0 0 1px rgba(255,255,255,.35);
}

.finished-game-score-block {
  display: grid;
  place-items: center;
  min-width: 110px;
}

.finished-game-caption {
  color: #527063;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finished-game-score {
  margin-top: 2px;
  color: #123c2e;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  font-weight: 780;
  letter-spacing: -.04em;
}

.finished-game-note {
  color: #527063;
  font-size: 13px;
  font-weight: 800;
}

.live-score-card.status-finished .live-card-top,
.live-score-card.status-finished .live-score-body,
.live-score-card.status-finished .live-card-bottom {
  opacity: .18;
}



/* Mobile-Kompaktansicht */
@media (max-width: 700px) {
  .finished-game-overlay {
    gap: 10px;
    padding: 12px 8px;
  }

  .finished-matchup {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 7px;
    width: 100%;
  }

  .finished-team {
    width: auto;
    min-width: 0;
    padding: 7px 5px;
    gap: 5px;
    border-radius: 10px;
  }

  .finished-team-name {
    min-width: 0;
    font-size: 12px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .finished-winner-icon {
    margin: 0 2px;
    font-size: .78em;
  }

  .finished-team-color {
    width: 8px;
    height: 31px;
    border-width: 1px;
  }

  .finished-game-score-block {
    min-width: 68px;
  }

  .finished-game-score {
    font-size: 34px;
  }

  .finished-game-label {
    padding: 5px 10px;
    font-size: 10px;
  }

  .finished-game-caption,
  .finished-game-note {
    font-size: 9px;
  }

  /* Live-Karten auf Smartphones kompakter */
  .live-page .live-main-score {
    font-size: 42px;
  }

  .live-page .live-clock {
    font-size: 27px;
  }

  .live-page .live-set-summary {
    font-size: 12px;
  }

  .live-page .live-team-name {
    font-size: 13px;
  }

  .live-team-color-dot {
    width: 10px;
    height: 36px;
  }

  .live-score-body {
    grid-template-columns: minmax(0, 1fr) 105px minmax(0, 1fr);
  }
}

.finished-court{
margin-top:6px;
font-size:14px;
font-weight:800;
letter-spacing:.08em;
text-transform:uppercase;
color:#55706a;
}
.finished-team.outer-left{justify-content:space-between}
.finished-team.outer-right{justify-content:space-between}
.finished-winner-icon{
display:block;
font-size:34px;
line-height:1;
margin:0 auto 6px;
}
@media(max-width:700px){
.finished-court{font-size:11px}
.finished-winner-icon{font-size:26px}
}

/* Einheitlicher Status-Feinschliff */
.status-overlay,
.finished-game-overlay {
  border-radius: inherit;
}

.status-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 20px;
  text-align: center;
  pointer-events: none;
}

.status-overlay-planned {
  background: rgba(238, 241, 245, .80);
  backdrop-filter: blur(.7px);
}

.status-overlay-badge,
.finished-game-label {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 900;
  letter-spacing: .12em;
}

.status-overlay-planned .status-overlay-badge {
  background: #667085;
  box-shadow: 0 8px 22px rgba(59, 69, 86, .18);
}

.status-overlay-court,
.finished-court {
  color: #536174;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.status-overlay-note {
  color: #778293;
  font-size: 13px;
  font-weight: 700;
}

.status-ribbon {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform: translateX(-50%);
  pointer-events: none;
}

.status-ribbon span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: 0 7px 20px rgba(35, 48, 68, .16);
}

.status-ribbon strong {
  color: #5f6d80;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.status-ribbon-live span {
  background: #0f9f6e;
}

.status-ribbon-timeout span {
  background: #c88a00;
}

.live-score-card.status-live .live-card-top,
.live-score-card.status-timeout .live-card-top {
  padding-top: 48px;
}

.finished-game-overlay {
  gap: 12px;
}

.finished-game-label {
  background: #0f9f6e;
}

@media (max-width: 620px) {
  .status-overlay {
    padding: 14px 10px;
  }

  .status-overlay-badge,
  .finished-game-label {
    padding: 6px 12px;
    font-size: 11px;
  }

  .status-overlay-court,
  .finished-court {
    font-size: 10px;
  }

  .status-overlay-note {
    font-size: 11px;
  }

  .status-ribbon {
    top: 9px;
  }

  .status-ribbon span {
    padding: 5px 10px;
    font-size: 10px;
  }

  .status-ribbon strong {
    font-size: 9px;
  }

  .live-score-card.status-live .live-card-top,
  .live-score-card.status-timeout .live-card-top {
    padding-top: 42px;
  }
}
