.eights-page {
  background:
    radial-gradient(circle at top left, rgba(40, 132, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 105, 66, 0.14), transparent 26%),
    linear-gradient(180deg, #060a12 0%, #0b1320 42%, #07101b 100%);
}

.eights-shell {
  padding-block: 2.5rem 3rem;
}

.eights-hero,
.eights-card,
.eights-ranking,
.eights-lobby-panel {
  border: 1px solid rgba(118, 151, 198, 0.18);
  background: linear-gradient(180deg, rgba(10, 17, 30, 0.96), rgba(7, 12, 22, 0.94));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.eights-hero {
  padding: 2rem;
  border-radius: 1.6rem;
  margin-bottom: 1.5rem;
}

.eights-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 188, 56, 0.12);
  border: 1px solid rgba(255, 188, 56, 0.24);
  color: #ffce73;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eights-title {
  margin: 1rem 0 0.4rem;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eights-subtitle {
  max-width: 760px;
  margin: 0;
  color: rgba(228, 236, 248, 0.8);
  font-size: 1rem;
}

.eights-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.eights-stat {
  border-radius: 1.15rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(129, 164, 212, 0.16);
}

.eights-stat-label {
  color: rgba(189, 204, 223, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eights-stat-value {
  margin-top: 0.35rem;
  color: #ffffff;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 900;
}

.eights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}

.eights-card,
.eights-ranking,
.eights-lobby-panel {
  border-radius: 1.35rem;
  padding: 1.3rem;
}

.eights-card-title,
.eights-ranking-title,
.eights-panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eights-card-copy,
.eights-panel-copy {
  margin: 0;
  color: rgba(214, 224, 239, 0.72);
}

.eights-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.eights-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(233, 241, 252, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
}

.eights-lobby-list,
.eights-team-list,
.eights-vote-list,
.eights-feed-list {
  display: grid;
  gap: 0.8rem;
}

.eights-lobby-item,
.eights-team-player,
.eights-vote-row,
.eights-feed-row {
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(128, 160, 208, 0.14);
}

.eights-team-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.eights-team-panel {
  border-radius: 1.15rem;
  padding: 1rem;
  min-height: 220px;
}

.eights-team-panel.attack {
  background: linear-gradient(180deg, rgba(34, 122, 255, 0.14), rgba(8, 18, 32, 0.9));
  border: 1px solid rgba(63, 145, 255, 0.26);
}

.eights-team-panel.defense {
  background: linear-gradient(180deg, rgba(255, 118, 68, 0.14), rgba(24, 12, 10, 0.9));
  border: 1px solid rgba(255, 126, 82, 0.24);
}

.eights-team-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.eights-team-name {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.eights-team-meta {
  color: rgba(220, 231, 244, 0.72);
  font-size: 0.92rem;
}

.eights-pick-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.eights-empty-box {
  border: 1px dashed rgba(144, 176, 219, 0.26);
  border-radius: 1rem;
  padding: 1rem;
  color: rgba(203, 219, 238, 0.62);
  text-align: center;
}

.eights-ranking {
  margin-top: 1.25rem;
}

.eights-ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.65rem;
}

.eights-ranking-table thead th {
  color: rgba(189, 204, 223, 0.72);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 0 0.85rem 0.2rem;
}

.eights-ranking-row td {
  padding: 0.95rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(133, 165, 210, 0.12);
  border-bottom: 1px solid rgba(133, 165, 210, 0.12);
  vertical-align: middle;
}

.eights-ranking-row td:first-child {
  border-left: 1px solid rgba(133, 165, 210, 0.12);
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
}

.eights-ranking-row td:last-child {
  border-right: 1px solid rgba(133, 165, 210, 0.12);
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.eights-ranking-row.has-team-accent td {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--eight-team-accent, #2c8cff) 18%, rgba(255, 255, 255, 0.03)) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: color-mix(in srgb, var(--eight-team-accent, #2c8cff) 28%, rgba(133, 165, 210, 0.12));
}

.eights-player-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.eights-team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(233, 241, 252, 0.9);
  font-size: 0.75rem;
  font-weight: 800;
}

.eights-team-badge img,
.eights-ranking-team-logo {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.eights-alert-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.eights-lobby-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.eights-room-code-card {
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(36, 134, 255, 0.14), rgba(9, 20, 35, 0.9));
  border: 1px solid rgba(74, 159, 255, 0.24);
}

.eights-room-code-label {
  color: rgba(197, 214, 236, 0.76);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eights-room-code-value {
  margin-top: 0.35rem;
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  word-break: break-word;
}

.eights-room-code-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  color: rgba(220, 231, 244, 0.72);
  font-size: 0.86rem;
}

.eights-chat-feed {
  display: grid;
  gap: 0.75rem;
  max-height: 420px;
  overflow: auto;
  padding-right: 0.2rem;
}

.eights-chat-message {
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(128, 160, 208, 0.16);
}

.eights-chat-message.is-system {
  background: rgba(255, 188, 56, 0.08);
  border-color: rgba(255, 188, 56, 0.2);
}

.eights-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  color: rgba(233, 241, 252, 0.92);
  font-size: 0.86rem;
}

.eights-chat-head span {
  color: rgba(197, 214, 236, 0.7);
  white-space: nowrap;
}

.eights-chat-body {
  color: rgba(233, 241, 252, 0.92);
  line-height: 1.55;
  word-break: break-word;
}

.eights-side-button {
  min-width: 180px;
}

.eights-confirm-card {
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(128, 160, 208, 0.2);
}

.eights-confirm-progress {
  height: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
}

.eights-action-stack-mobile form {
  flex: 1 1 220px;
}

.eights-action-stack-mobile .eights-side-button {
  width: 100%;
  min-height: 46px;
  font-weight: 800;
}

.eights-log-positive {
  color: #63e0a8;
  font-weight: 800;
}

.eights-log-negative {
  color: #ff8e83;
  font-weight: 800;
}

@media (max-width: 991px) {
  .eights-grid,
  .eights-team-board,
  .eights-stat-grid {
    grid-template-columns: 1fr;
  }

  .eights-shell {
    padding-inline: 0.5rem;
    padding-block: 1.5rem 2.2rem;
  }

  .eights-hero,
  .eights-card,
  .eights-ranking,
  .eights-lobby-panel {
    border-radius: 1.05rem;
    padding: 1rem;
  }

  .eights-room-code-value {
    font-size: clamp(1.05rem, 5.5vw, 1.6rem);
  }

  .eights-chat-feed {
    max-height: 300px;
  }

  .eights-team-player,
  .eights-vote-row,
  .eights-feed-row {
    padding: 0.8rem 0.85rem;
  }
}
