* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: clip;
}

body {
  height: 100%;
  margin: 1rem;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, "Segoe UI", Arial, sans-serif;
  border: .2rem, solid, var(--line);
  border-radius: 1rem;
  box-shadow: 0 0 15px var(--line);
}

.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 12px;
}

.group-player {
  display: flex;
  align-items: center;
  justify-content: space-between; /* name on left, points on right */
}

.opponents-tracker {
  display: flex;
  gap: 4px; /* space between avatars */
  width: 120px; /* fixed width so all start at same X */
  justify-content: flex-start;
  margin-left: 8px;
}

.opp-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ff8c22; /* or avatar image */
  flex-shrink: 0;
}

.opponent-icons {
  display: flex;
  gap: 0.25rem;       /* spacing between icons */
  width: 200px;       /* fixed width so all rows align */
  justify-content: flex-start; /* always start from the left */
}

.opponent-icons img.won { opacity: 1; }
.opponent-icons img.lost { opacity: 0.3; }

.player-points {
  margin-left: 1rem;
  font-weight: bold;
  color: var(--fg);
}


#title{
  padding: 1rem;
}

#group-stages {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: flex-start;
    overflow: auto;
    scrollbar-width: none;
    border-radius: 0px;
    border-bottom: .1rem solid var(--line);
    border-top: .11rem solid var(--line);
    padding: 1rem;
    column-gap: 2rem;
}

/* Bracket nodes */
.player-vertical {
  display: block;
  padding: 6px 0;
}

.player-vertical span,
.player-vertical strong {
  cursor: default;
  display: inline-block;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.player-vertical span.placeholder {
  opacity: 0.45;
  cursor: default;
}

/* Match times and countdowns */
.match-time,
.match-countdown {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* Profile card */
#profile-card {
  position: absolute;
  display: none;
  z-index: 9999;
  background: linear-gradient(180deg, #081018 0%, #071018 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  padding: 12px;
  color: var(--fg);
  border-radius: 10px;
  font-family: Teko, Arial, sans-serif;
  font-size: 14px;
  width: 320px;
  line-height: 1.2;
}

.pc-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.pc-header img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 48px;
}

.pc-name {
  font-weight: 700;
}

.pc-handle {
  color: var(--accent);
  font-size: 12px;
}

.pc-bio {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.pc-links a {
  color: var(--accent);
  margin-right: 8px;
  text-decoration: none;
  font-size: 13px;
}

/* SVG bracket lines */
.bracket {
  position: relative;
  margin-top: 18px;
  padding: 12px;
}

svg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}
