/* В архивном составе управление отделяем только воздухом, без второй горизонтальной линии. */
.game-detail-page--completed .game-roster-management {
  margin-top: 1.5rem;
  border-top: 0;
}

.game-detail-page--completed .game-roster-management > summary {
  padding-top: 0;
}


.game-team-panel__inner .game-roster-section h3 {
  margin: 0;
  color: var(--game-ink);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.025em;
}

/* Конкурсы находятся в самостоятельном разделе, разделитель больше не нужен. */
.game-team-contests {
  margin: 0;
}
.game-team-contests[hidden],
.game-team-contests__slot:empty {
  display: none;
}
.game-team-contests__cards {
  display: grid;
  gap: 1rem;
}
.game-team-contests .team-answer-poll-panel-slot {
  margin-top: 0;
}
.game-team-contests .team-answer-poll__title {
  margin: 0;
  color: var(--game-ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.game-team-contests .team-answer-poll__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .85rem;
}


/* Разделы остаются в DOM для WebSocket-обновлений состава и монтирования конкурсов. */
.game-detail-page[data-game-section="participation"] [data-game-section-content]:not([data-game-section-content~="participation"]),
.game-detail-page[data-game-section="results"] [data-game-section-content]:not([data-game-section-content~="results"]),
.game-detail-page[data-game-section="goals"] [data-game-section-content]:not([data-game-section-content~="goals"]),
.game-detail-page[data-game-section="achievements"] [data-game-section-content]:not([data-game-section-content~="achievements"]),
.game-detail-page[data-game-section="contests"] [data-game-section-content]:not([data-game-section-content~="contests"]),
.game-detail-page[data-game-section="management"] [data-game-section-content]:not([data-game-section-content~="management"]) {
  display: none !important;
}
.game-detail-page > .quag-section-nav {
  width: 100%;
  margin: 0 auto;
}
.game-detail-page [id^="team-answer-poll-"],
.game-detail-page [id^="game-team-contests-"],
.game-detail-page #game-team-workspace-card,
.game-detail-page #game-results {
  scroll-margin-top: 85px;
}

/* Напоминание о подтверждении резерва располагается перед рабочей областью, но относится только к участию. */
.game-detail-page:not([data-game-section="participation"]) > .required-action-callout:has(+ #game-team-workspace-card) {
  display: none;
}

/* В командных вкладках вне участия оставляем только название команды и выбор контекста. */
.game-team-section-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  padding: .25rem 0;
}
.game-team-section-context__name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .95rem;
}
.game-team-section-context__name > span {
  color: var(--game-muted);
}
.game-team-section-context__switch {
  flex: 0 0 auto;
}
.game-team-section-context__switch > button {
  min-height: 44px;
}
.game-team-section-context__switch .dropdown-menu {
  max-width: min(24rem, 85vw);
}
.game-team-section-context__switch .dropdown-item {
  white-space: normal;
  overflow-wrap: anywhere;
}
.game-detail-page:not([data-game-section="participation"]) .game-team-choice.has-switcher > .game-team-switcher {
  display: none;
}
.game-detail-page:not([data-game-section="participation"]) .game-team-mobile-current {
  display: grid;
  padding: .25rem 0;
  border: 0;
  background: transparent;
}
.game-detail-page:not([data-game-section="participation"]) .game-team-mobile-current__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem;
}
.game-detail-page:not([data-game-section="participation"]) .game-team-mobile-current__copy > small {
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}
.game-detail-page:not([data-game-section="participation"]) .game-team-mobile-current__copy > [data-team-current-status] {
  display: none;
}
