:root {
  --canvas-w: 1920px;
  --canvas-h: 1080px;
  --cyan: #76c0d5;
  --cyan-bright: #b9f2ff;
  --ink: #070d17;
  --line-off: rgba(8, 18, 31, 0.82);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  width: var(--canvas-w);
  height: var(--canvas-h);
  overflow: hidden;
  background: transparent;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

body { position: relative; }

#hub {
  position: relative;
  width: var(--canvas-w);
  height: var(--canvas-h);
  overflow: hidden;
  background: transparent;
}

.layer {
  position: absolute;
  pointer-events: none;
}

/*
 * Kompakte Serienanzeige:
 * Links stehen die Win-Balken links außerhalb des Logos,
 * rechts entsprechend rechts außerhalb des Logos.
 */
.series-score {
  left: 50%;
  width: 1120px;
  height: 82px;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.series-team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.58));
}

.series-left { justify-content: flex-start; }
.series-right { justify-content: flex-end; }

.team-logo-wrap {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(5, 12, 22, 0.92);
  border: 2px solid rgba(185, 242, 255, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(118, 192, 213, 0.18);
}

.team-logo {
  display: block;
  max-width: 68px;
  max-height: 68px;
  object-fit: contain;
}

.team-logo.missing { visibility: hidden; }

.series-wins {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 13px;
}

.series-win {
  display: block;
  width: 11px;
  height: 30px;
  border-radius: 999px;
  background: var(--line-off);
  border: 1px solid rgba(185, 242, 255, 0.28);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.85);
}

.series-win.active {
  background: linear-gradient(180deg, var(--cyan-bright), #58aec8);
  border-color: rgba(230, 252, 255, 0.95);
  box-shadow:
    0 0 10px rgba(118, 192, 213, 0.72),
    inset 0 1px 2px rgba(255, 255, 255, 0.65);
}

.pokedex-frame {
  left: 18px;
  top: 116px;
  width: 1000px;
  height: 350px;
  border: 0;
  z-index: 55;
  background: transparent;
}

/*
 * Die untere Mitte bleibt bewusst leer. Dort zeigt League of Legends
 * Champions, Items, KDA und weitere wichtige HUD-Daten an.
 */
.sponsor {
  left: 1360px;
  top: 850px;
  width: 255px;
  height: 230px;
  z-index: 7;
  overflow: hidden;
  background: #fff;
}

.sponsor video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.ingame-frame {
  inset: 0;
  z-index: 22;
  background-image: url("https://schiggygang.de/cast-hub/assets/img/ingame-overlay.png");
  background-size: 1920px 1080px;
  background-repeat: no-repeat;
}

.connection-warning {
  right: 18px;
  top: 16px;
  z-index: 90;
  display: none;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(138, 24, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 850;
}

.connection-warning.show { display: block; }
.hidden { display: none !important; }
