.competition-stack {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  width: 100%;
}

.competition-accordion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(180deg, rgba(16, 35, 51, .94), rgba(9, 23, 34, .95));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}

.competition-accordion[open] {
  border-color: rgba(45, 212, 191, .32);
}

.competition-accordion > summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.competition-accordion > summary::-webkit-details-marker {
  display: none;
}

.competition-accordion > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.competition-identity,
.competition-summary-meta {
  display: flex;
  align-items: center;
}

.competition-identity {
  min-width: 0;
  gap: 12px;
}

.competition-identity img,
.competition-logo-fallback {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  object-fit: contain;
  padding: 5px;
  background: rgba(255, 255, 255, .06);
}

.competition-logo-fallback {
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.competition-identity strong,
.competition-identity small {
  display: block;
}

.competition-identity strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
}

.competition-identity small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
}

.competition-summary-meta {
  flex: 0 0 auto;
  gap: 13px;
}

.competition-summary-meta b {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.competition-summary-meta i {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.competition-accordion[open] .competition-summary-meta i {
  transform: rotate(225deg);
}

.competition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .09);
}

.competition-grid > .match-card,
.competition-grid > .market-card,
.competition-grid > .cc-card {
  min-width: 0;
}

@media (max-width: 860px) {
  .competition-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .competition-accordion {
    border-radius: 16px;
  }

  .competition-accordion > summary {
    min-height: 64px;
    padding: 12px 13px;
  }

  .competition-identity img,
  .competition-logo-fallback {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .competition-summary-meta b {
    display: none;
  }

  .competition-grid {
    gap: 12px;
    padding: 11px;
  }
}
