/* FCC Family Games - Phase 6A tournaments */

.fcc-games-phase6-section { overflow: hidden; }

.fcc-games-phase6-list {
  display: grid;
  gap: 14px;
}

.fcc-games-phase6-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(120,120,128,0.16);
}

.fcc-games-phase6-card__top,
.fcc-games-phase6-card__actions,
.fcc-games-phase6-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fcc-games-phase6-card__eyebrow {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.68;
  margin-bottom: 4px;
}

.fcc-games-phase6-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.fcc-games-phase6-card__meta {
  margin-top: -4px;
}

.fcc-games-phase6-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  background: rgba(120,120,128,0.14);
  border: 1px solid rgba(120,120,128,0.16);
}

.fcc-games-phase6-status--scheduled,
.fcc-games-phase6-status--ready {
  color: #0a7c2f;
  background: rgba(48,209,88,0.16);
  border-color: rgba(48,209,88,0.22);
}

.fcc-games-phase6-status--active {
  color: #1655c7;
  background: rgba(10,132,255,0.14);
  border-color: rgba(10,132,255,0.22);
}

.fcc-games-phase6-status--completed {
  color: #6f4700;
  background: rgba(255,204,0,0.18);
  border-color: rgba(255,204,0,0.28);
}

.fcc-games-phase6-status--forfeited {
  color: #6b4c00;
  background: rgba(255,159,10,0.16);
  border-color: rgba(255,159,10,0.24);
}

.fcc-games-phase6-status--cancelled,
.fcc-games-phase6-status--archived {
  opacity: 0.62;
}

.fcc-games-phase6-bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x proximity;
}

.fcc-games-phase6-round {
  display: flex;
  min-width: 180px;
  flex-direction: column;
  gap: 8px;
  scroll-snap-align: start;
}

.fcc-games-phase6-round__title {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.62;
  text-transform: uppercase;
}

.fcc-games-phase6-match {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(120,120,128,0.16);
}

.fcc-games-phase6-match--ready {
  border-color: rgba(48,209,88,0.36);
  box-shadow: inset 3px 0 0 rgba(48,209,88,0.82);
}

.fcc-games-phase6-match--active {
  border-color: rgba(10,132,255,0.34);
  box-shadow: inset 3px 0 0 rgba(10,132,255,0.82);
}

.fcc-games-phase6-match--completed {
  border-color: rgba(255,204,0,0.34);
}

.fcc-games-phase6-match--forfeited {
  border-color: rgba(255,159,10,0.28);
}

.fcc-games-phase6-match__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.72;
}

.fcc-games-phase6-slot {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(120,120,128,0.10);
  font-size: 13px;
  font-weight: 700;
}

.fcc-games-phase6-slot.is-winner {
  color: #111827;
  background: rgba(255,204,0,0.22);
  border: 1px solid rgba(255,204,0,0.36);
}

.fcc-games-phase6-match__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 2px;
}

.fcc-games-phase6-match__btn {
  min-height: 44px;
  width: 100%;
  justify-content: center;
}

.fcc-games-phase6-champion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  color: #172033;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,236,166,0.72));
  border: 1px solid rgba(255,204,0,0.32);
  box-shadow: 0 12px 34px rgba(120, 96, 0, 0.12);
}

.fcc-games-phase6-champion__label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.66;
}

.fcc-games-phase6-champion__name {
  font-size: 17px;
  font-weight: 900;
}

.fcc-games-phase6-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(120,120,128,0.18);
  font-weight: 900;
}

.fcc-games-phase6-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fcc-games-phase6-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(20,20,30,0.38);
  backdrop-filter: blur(10px);
}

.fcc-games-phase6-modal {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  background: rgba(255,255,255,0.92);
}

.fcc-games-phase6-forfeit-modal .fcc-games-phase6-modal {
  width: min(460px, 100%);
}

.fcc-games-phase6-forfeit-modal p {
  line-height: 1.45;
}

.fcc-games-phase6-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fcc-games-phase6-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.fcc-games-phase6-field input,
.fcc-games-phase6-field select {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(120,120,128,0.24);
  background: rgba(255,255,255,0.82);
  padding: 9px 11px;
  color: inherit;
  font: inherit;
  font-weight: 650;
}

.fcc-games-phase6-check-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.fcc-games-phase6-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(120,120,128,0.16);
  cursor: pointer;
}

.fcc-games-phase6-check input {
  width: 18px;
  height: 18px;
  accent-color: #6c63ff;
}

@media (max-width: 640px) {
  .fcc-games-phase6-section .fcc-games-section-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 0;
    background: rgba(248,248,252,0.82);
    backdrop-filter: blur(14px);
  }

  .fcc-games-phase6-bracket {
    grid-auto-columns: minmax(220px, 84vw);
    margin-right: -14px;
    padding-right: 14px;
  }

  .fcc-games-phase6-card__top,
  .fcc-games-phase6-card__actions,
  .fcc-games-phase6-modal__actions {
    align-items: stretch;
  }

  .fcc-games-phase6-card__actions .fcc-games-btn,
  .fcc-games-phase6-modal__actions .fcc-games-btn {
    flex: 1 1 140px;
  }
}
