.checkin-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.checkin-status span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050b18;
  color: var(--muted);
  font-size: 12px;
}

.checkin-status span.done {
  border-color: rgba(32, 220, 142, .55);
  background: rgba(32, 220, 142, .08);
  color: var(--good);
}

.result-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #29466f;
  border-radius: 10px;
  background: #07142a;
}

.result-box .actions { align-items: end; }

.result-box .actions label {
  display: grid;
  gap: 5px;
  flex: 1;
  min-width: 150px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.result-box .actions label .input {
  width: 100%;
  text-transform: none;
  letter-spacing: 0;
}

.ready-note {
  margin: 0;
  color: var(--good);
  font-size: 13px;
}

.danger-text {
  color: var(--danger);
  font-size: 12px;
  margin: 9px 0 0;
}

.gauntlet-picker {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.gauntlet-picker h2,
.gauntlet-detail h2,
.create-dialog h2 {
  margin: 3px 0 0;
}

.gauntlet-picker-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 480px);
}

.gauntlet-picker-actions select { flex: 1; }

/* Primary create/generate actions share the portal's compact underline treatment. */
.btn.portal-primary-action,
#openCreate,
#create {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(95, 142, 215, .42);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(26, 102, 255, .16), rgba(26, 102, 255, .07));
  color: #fff;
  box-shadow: none;
  transition: color .18s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.btn.portal-primary-action::after,
#openCreate::after,
#create::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transform: scaleX(.28);
  transform-origin: center;
  opacity: .82;
  transition: transform .22s cubic-bezier(.22, .8, .3, 1), opacity .18s ease;
}

.btn.portal-primary-action:hover,
.btn.portal-primary-action:focus-visible,
#openCreate:hover,
#openCreate:focus-visible,
#create:hover,
#create:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(61, 155, 255, .58);
  background: linear-gradient(180deg, rgba(26, 102, 255, .23), rgba(26, 102, 255, .1));
  color: #fff;
  outline: none;
}

.btn.portal-primary-action:hover::after,
.btn.portal-primary-action:focus-visible::after,
#openCreate:hover::after,
#openCreate:focus-visible::after,
#create:hover::after,
#create:focus-visible::after { transform: scaleX(1); opacity: 1; }

.create-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 22px;
  color: var(--text);
  border: 1px solid #315d92;
  border-radius: 14px;
  background: #071329;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
}

.create-dialog::backdrop { background: rgba(0, 4, 14, .78); }

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dialog-close {
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1b34;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.gauntlet-detail { padding: 24px; }

.gauntlet-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 13px 15px;
  border: 1px solid #315d92;
  border-radius: 9px;
  background: #081a33;
}

.gauntlet-result span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.gauntlet-result.failed {
  border-color: rgba(255, 84, 106, .65);
  background: rgba(126, 19, 37, .27);
  color: #ff8191;
}

.gauntlet-result.passed {
  border-color: rgba(32, 220, 142, .62);
  background: rgba(16, 114, 77, .23);
  color: var(--good);
}

.gauntlet-ladder {
  overflow: hidden;
  border: 1px solid #243f66;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(20, 64, 109, .16), transparent 35%, rgba(95, 18, 29, .14)),
    #050d1d;
}

.ladder-title {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--text);
  border-bottom: 1px solid #243f66;
  background: rgba(11, 31, 59, .75);
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ladder-title small { color: var(--muted); font-family: Inter, sans-serif; font-size: 11px; }

.ladder-rungs {
  display: flex;
  flex-direction: column-reverse;
  gap: 0;
  padding: 14px;
}

.ladder-rung {
  position: relative;
  border: 1px solid #27456f;
  background: rgba(5, 17, 35, .92);
}

.ladder-rung + .ladder-rung { margin-bottom: 14px; }

.ladder-rung + .ladder-rung::after {
  position: absolute;
  bottom: -15px;
  left: 35px;
  width: 1px;
  height: 14px;
  background: #416b9a;
  content: "";
}

.ladder-rung.live { border-color: #467fb8; box-shadow: inset 3px 0 var(--blue); }

.ladder-rung summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  cursor: pointer;
  list-style: none;
}

.ladder-rung summary::-webkit-details-marker { display: none; }

.ladder-rung .pill { white-space: nowrap; }

.compete-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
  background: #061023;
}

.side-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 15px;
}

.player-side-avatar { width: 24px; height: 24px; }

.team-roster {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  font-size: 13px;
}

.sides .team-roster { display: grid; }

.sides > div:last-child .side-name {
  width: 100%;
  justify-content: flex-end;
}

.sides > div:last-child .team-roster { justify-items: end; }

.side-away .roster-player,
.side-name.side-away { flex-direction: row-reverse; }

.roster-player {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sides .roster-player { display: flex; }

.roster-avatar {
  width: 20px;
  height: 20px;
}

.side-role {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sides > div:last-child .side-role { text-align: right; }

.match {
  border-left-color: var(--home-color, var(--blue));
  border-right: 4px solid var(--away-color, var(--blue));
}

.match.awaiting-schedule {
  border-top-color: rgba(255, 174, 64, .85);
  border-bottom-color: rgba(255, 174, 64, .85);
  background: rgba(91, 55, 8, .2);
}

.match.awaiting-schedule .pill {
  border-color: rgba(255, 174, 64, .72);
  color: #ffd68a;
}

.match:has(.team-match-sides),
.match:has(.player-match-sides),
.match.awaiting-schedule:has(.team-match-sides),
.match.awaiting-schedule:has(.player-match-sides) {
  border: 1px solid var(--line);
  background: #050d1d;
}

.match-divider { min-width: 28px; text-align: center; }

.team-match-sides {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.team-match-sides > .match-divider {
  display: grid;
  align-self: stretch;
  place-items: center;
}

.team-match-sides > div { display: flex; flex-direction: column; }

.team-match-sides > div:last-child .side-role { text-align: right; }

.competition-team-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 5px solid var(--team-card-accent, var(--blue));
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--team-card-accent) 13%, #07142a), #07142a 44%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.competition-team-front,
.competition-team-back {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 14px;
}

.competition-team-back { display: none; }

.competition-team-card.flipped .competition-team-front { display: none; }

.competition-team-card.flipped .competition-team-back { display: flex; }

.competition-pending-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 18px;
  border: 1px dashed rgba(82, 111, 153, .7);
  border-radius: 12px;
  background: #07142a;
  text-align: center;
}

.competition-pending-card strong { color: var(--text); font-size: 16px; }

.competition-pending-card span { color: var(--muted); font-size: 12px; }

.competition-team-back h4 { margin: 0 0 9px; font-size: 17px; }

.competition-team-back p { flex: 1; margin: 0 0 14px; color: var(--muted); line-height: 1.5; }

.competition-team-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.competition-team-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.competition-team-head h4 { margin: 0 0 3px; color: #fff; font-size: 16px; }

.competition-team-org {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.competition-team-ranks {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.competition-team-rank { width: 32px; height: 32px; object-fit: contain; }

.competition-team-player-list { display: grid; gap: 6px; }

.competition-team-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 9px;
  color: var(--text);
  border: 1px solid rgba(36, 55, 91, .8);
  border-radius: 8px;
  background: rgba(3, 10, 24, .72);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.competition-team-player:hover { border-color: var(--blue); background: rgba(26, 102, 255, .1); }

.competition-team-player > span { min-width: 0; flex: 1; }

.competition-player-rank { width: 22px; height: 22px; object-fit: contain; }

.competition-captain { color: #ffcf6a; }

.competition-team-empty { padding: 10px; color: var(--muted); font-size: 12px; }

.competition-team-footer {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(36, 55, 91, .8);
}

.competition-team-staff {
  flex: 1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.competition-team-staff b { color: var(--text); }

.competition-player-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 22px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #071329;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
}

.competition-player-dialog::backdrop { background: rgba(0, 4, 14, .8); }

.competition-dialog-close {
  position: absolute;
  top: 11px;
  right: 12px;
  width: 32px;
  height: 32px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1b34;
  font-size: 23px;
  cursor: pointer;
}

.competition-profile-head { display: flex; align-items: center; gap: 14px; padding-right: 38px; }

.competition-profile-head img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #050b18;
}

.competition-profile-head h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font-size: 22px; }

.competition-profile-head p { margin: 0; color: var(--muted); font-size: 13px; }

.competition-profile-rank { width: 30px; height: 30px; object-fit: contain; }

.competition-profile-skills { display: grid; gap: 9px; margin-top: 20px; }

.competition-profile-skill { display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 10px; font-size: 12px; }

.competition-profile-skill > span { color: var(--muted); }

.competition-profile-skill i { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #030a18; }

.competition-profile-skill b { display: block; height: 100%; border-radius: inherit; background: var(--blue); }

.competition-profile-about { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }

.competition-profile-about h3 { margin: 0 0 6px; font-size: 14px; }

.competition-profile-about p { margin: 0; color: var(--muted); line-height: 1.5; }

.competition-profile-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Player titles must retain the directory card's Rajdhani treatment. */
:root { --ff-title: "Rajdhani", system-ui, sans-serif; }

/* The player profile opened from a competition uses the same visual hierarchy as
   the read-only profile in Rosters.  Match-side player cards use this component
   in a deliberately compact, non-interactive form. */
.competition-player-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: 92vh;
  padding: 0;
  overflow: auto;
  border-radius: 15px;
  background: #081225;
}

.competition-player-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}

.competition-player-dialog > header h3 { margin: 0; font-size: 19px; }

.competition-dialog-close {
  position: static;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
}

.competition-player-profile-body { padding: 16px 26px 0; }

.competition-player-dialog > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px 26px;
}

.competition-player-dialog > footer .hidden { display: none; }

.competition-player-card { --player-card-accent: #ffae00; }

.competition-player-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.competition-player-card-top > img {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #030a18;
}

.competition-player-card-copy { min-width: 0; flex: 1; }

.competition-player-card-copy h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 5px;
  font-size: 24px;
}

.competition-player-profile-rank-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.competition-player-profile-rank-wrap em { font-style: normal; }

.competition-player-profile-rank {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.competition-player-card-copy p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.competition-player-card .player-title {
  display: block;
  font-family: var(--ff-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.25;
  text-transform: uppercase;
  margin-top: 0;
  word-break: break-word;
}

.competition-player-card .player-title .title-icon-inline {
  width: .95em;
  height: .95em;
  margin: 0 .14em;
  vertical-align: -.14em;
  object-fit: contain;
}

.competition-player-ovr {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.competition-player-ovr span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.competition-player-ovr b {
  color: var(--player-card-accent);
  font-family: "Chakra Petch", sans-serif;
  font-size: 48px;
  line-height: 1;
}

/* A separate RCR row preserves the existing Player card hierarchy and prevents
   long names or titles from crowding OVR. */
.competition-player-rcr {
  display: grid;
  grid-template-columns: auto auto minmax(92px, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  margin: 13px 0 0;
  padding: 0;
  color: var(--text);
  border: 0;
  background: transparent;
  text-align: left;
}

.competition-rcr-value { font-family: "Chakra Petch", sans-serif; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.competition-rcr-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.competition-rcr-segments { display: grid; grid-template-columns: repeat(8, minmax(7px, 1fr)); gap: 4px; min-width: 0; }
.competition-rcr-segments i { height: 10px; border-radius: 2px; background: var(--rcr-color); opacity: .18; box-shadow: none; transition: opacity .15s, filter .15s; }
.competition-rcr-segments i.active { opacity: 1; box-shadow: 0 0 7px color-mix(in srgb, var(--rcr-color) 58%, transparent); }

.competition-rank-ladder {
  position: relative;
  height: 34px;
  margin: 16px 0 4px;
  border-radius: 8px;
  background: linear-gradient(90deg, #6e4c2c, #a47a25, #1c7d76, #2457bc, #6430a9, #6430a9, #9d1933, #9d1933, #8498c7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 2px 8px rgba(0,0,0,.35);
}

.competition-rank-ladder img {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.55));
}

.competition-player-skill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.competition-player-skill label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.competition-player-skill i {
  display: block;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(36, 55, 91, .8);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.competition-player-skill b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--player-card-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--player-card-accent) 40%, transparent);
}

.competition-player-about {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(36, 55, 91, .8);
}

.competition-player-about h4 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.competition-player-about p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}

.player-match-sides {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.player-match-sides > div { display: flex; flex-direction: column; }

.player-match-sides > div:last-child .side-role { text-align: right; }

.player-match-sides > .match-divider {
  display: grid;
  align-self: stretch;
  place-items: center;
}

.competition-player-card.compact {
  height: 100%;
  padding: 17px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--player-card-accent);
  border-radius: 14px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--player-card-accent) 12%, #080e1e), #080e1e 44%);
}

.competition-player-card.compact .competition-player-card-top {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 11px;
  margin-bottom: 14px;
}

.competition-player-card.compact .competition-player-card-top > img {
  width: 58px;
  height: 58px;
  border-radius: 11px;
}

.competition-player-card.compact .competition-player-card-copy h3 { margin: 0 0 3px; font-family: "Chakra Petch", Inter, sans-serif; font-size: 17px; line-height: normal; }

.competition-player-card.compact .competition-player-card-copy p {
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .1em;
}

.competition-player-card.compact .player-title { font-size: 15px; }

.competition-player-card.compact .competition-player-profile-rank-wrap { gap: 5px; font-size: 11.5px; }

.competition-player-card.compact .competition-player-profile-rank { width: 20px; height: 20px; }

.competition-player-card.compact .competition-player-ovr b { font-size: 34px; }

.competition-player-card.compact .competition-player-rcr { margin: -2px 0 12px; grid-template-columns: auto auto minmax(68px, 1fr); gap: 6px; }
.competition-player-card.compact .competition-rcr-value { font-size: 23px; }
.competition-player-card.compact .competition-rcr-segments { gap: 3px; }
.competition-player-card.compact .competition-rcr-segments i { height: 8px; }

.competition-player-card.compact .competition-player-skill-list { gap: 7px; margin-top: 0; }

.competition-player-card.compact .competition-player-skill label { margin-bottom: 3px; color: var(--muted); font-size: 9px; }

.competition-player-card.compact .competition-player-skill i { height: 7px; }

.competition-player-card.compact .competition-player-about {
  min-height: 58px;
  margin-top: 13px;
  padding-top: 11px;
  border-color: rgba(36, 55, 91, .8);
}

.competition-player-card.compact .competition-player-about h4 { margin-bottom: 6px; color: var(--blue); font-size: 10px; }

.competition-player-card.compact .competition-player-about p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rung-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #bfe0ff;
  border: 1px solid #4b83ba;
  border-radius: 50%;
  background: #0a274a;
  font-family: "Chakra Petch", sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.ladder-rung summary strong,
.ladder-rung summary small { display: block; }

.ladder-rung summary strong { font-size: 15px; }

.ladder-rung summary small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.rung-match {
  padding: 0 11px 11px;
  border-top: 1px solid rgba(49, 93, 146, .55);
}

.rung-match .match { margin-top: 11px; }

.ladder-rung.passed {
  border-color: rgba(32, 220, 142, .72);
  box-shadow: inset 3px 0 var(--good);
}

.ladder-rung.passed .rung-number {
  color: #d7ffed;
  border-color: rgba(32, 220, 142, .72);
  background: rgba(16, 114, 77, .42);
}

.ladder-rung.failed {
  border-color: rgba(255, 84, 106, .72);
  box-shadow: inset 3px 0 var(--danger);
}

.ladder-rung.failed .rung-number {
  color: #ffe0e5;
  border-color: rgba(255, 84, 106, .72);
  background: rgba(126, 19, 37, .5);
}

.ladder-rung.awaiting-schedule {
  border-color: rgba(255, 174, 64, .72);
  box-shadow: inset 3px 0 #ffae40;
}

.ladder-rung.awaiting-schedule .pill {
  border-color: rgba(255, 174, 64, .72);
  color: #ffd68a;
}

.rung-score,
.tournament-score {
  color: var(--text);
  font-family: "Chakra Petch", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.tournament-match {
  overflow: hidden;
  border: 1px solid #29466f;
  border-radius: 10px;
  background: #07142a;
}

.tournament-match + .tournament-match { margin-top: 12px; }

.tournament-match summary,
.tournament-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.tournament-match summary::-webkit-details-marker { display: none; }

.tournament-side {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-side.right { text-align: right; }

.tournament-side small { display: none; }

.tournament-side:nth-child(3) { text-align: right; }

.tournament-side:nth-child(3) .side-name { justify-content: flex-end; }

.tournament-side {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tournament-side:nth-child(3) { justify-content: flex-end; }

.tournament-status {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.tournament-status em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tournament-match.played {
  border-color: rgba(32, 220, 142, .66);
  background: rgba(16, 114, 77, .16);
}

.tournament-match.played summary {
  background: rgba(16, 114, 77, .12);
}

.tournament-match.scheduled {
  border-color: rgba(255, 174, 64, .78);
  background: rgba(91, 55, 8, .2);
}

.tournament-match.scheduled summary,
.tournament-match.scheduled .tournament-summary {
  background: rgba(91, 55, 8, .18);
}

.tournament-match.scheduled .pill {
  border-color: rgba(255, 174, 64, .72);
  color: #ffd68a;
}

.tournament-round + .tournament-round { margin-top: 22px; }

.tournament-round > h3 {
  margin: 0 0 9px;
  color: var(--blue);
  font-family: "Chakra Petch", sans-serif;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tournament-side.winner,
.tournament-side.winner .side-name { color: #d7ffed; }

.winner-check {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex: 0 0 auto;
  margin: 0;
  color: #062617;
  border-radius: 50%;
  background: var(--good);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.tournament-match-detail {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(49, 93, 146, .55);
}

.tournament-match-detail .match { margin-top: 12px; }

.tournament-bracket { gap: 52px; }

.tournament-bracket .round,
.tournament-bracket .tournament-match { min-width: 720px; }

.tournament-bracket .tournament-match-detail .match { min-width: 0; }

@media (max-width: 850px) {
  .tournament-bracket .round,
  .tournament-bracket .tournament-match { min-width: calc(100vw - 44px); }
}

@media (max-width: 850px) {
  .checkin-status { grid-template-columns: 1fr; }
  .result-box .actions { display: grid; }
  .result-box .actions label,
  .result-box .actions .btn { width: 100%; }
  .gauntlet-picker,
  .gauntlet-picker-actions,
  .gauntlet-result { align-items: stretch; flex-direction: column; }
  .gauntlet-picker-actions { min-width: 0; }
  .gauntlet-result span { margin-left: 0; }
  .tournament-match summary,
  .tournament-summary { grid-template-columns: 1fr auto; }
  .tournament-side.right { text-align: left; }
  .tournament-side:nth-child(3) { text-align: left; }
  .tournament-side:nth-child(3) .side-name { justify-content: flex-start; }
  .tournament-side:nth-child(3) { justify-content: flex-start; }
  .tournament-status { grid-column: 2; grid-row: 1; }
  .sides { gap: 12px; }
  .sides > div:last-child .side-name { justify-content: flex-start; }
  .sides > div:last-child .team-roster { justify-items: start; }
  .sides > div:last-child .side-role { text-align: left; }
  .side-away .roster-player,
  .side-name.side-away { flex-direction: row; }
  .team-match-sides,
  .player-match-sides { grid-template-columns: 1fr; gap: 10px; }
  .team-match-sides > div:last-child .side-role,
  .player-match-sides > div:last-child .side-role { text-align: left; }
  .team-match-sides .match-divider:not(:empty),
  .player-match-sides .match-divider:not(:empty) {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    font-size: 13px;
  }
  .match-divider:not(:empty) {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    font-size: 13px;
  }
  .match-divider:not(:empty)::before,
  .match-divider:not(:empty)::after {
    height: 1px;
    flex: 1;
    background: #315d92;
    content: "";
  }
  .competition-player-rcr { grid-template-columns: auto auto minmax(68px, 1fr); gap: 6px; }
  .competition-rcr-segments { gap: 3px; }
}
