.division-results {
  margin: 0 0 40px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(214, 255, 0, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(214, 255, 0, 0.1), transparent 62%),
    linear-gradient(180deg, #14180d, #0c0f09);
}

.division-results[hidden] {
  display: none;
}

.division-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 14px;
}

.division-results-head h2 {
  margin: 0;
}

.division-results-head p {
  margin: 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.division-results-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.division-results-list.is-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.division-results-list.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.division-result {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 3px;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid rgba(214, 255, 0, 0.2);
  border-radius: 14px;
  background: rgba(6, 8, 4, 0.35);
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.division-result:hover,
.division-result:focus-visible {
  border-color: var(--orange);
  background: rgba(214, 255, 0, 0.08);
}

.division-result i {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
}

.division-result-name {
  overflow: hidden;
  font-family: "Unbounded", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.division-result-where {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
  color: var(--paper-dim);
  font-size: 13px;
}

.division-result-where b {
  color: var(--orange);
  font-weight: 800;
}

.team.is-qualified {
  border-color: rgba(214, 255, 0, 0.38);
}

.team.is-qualified header {
  position: relative;
  padding-right: 78px;
}

.team-qualified {
  position: absolute;
  top: 2px;
  right: 0;
  padding: 3px 8px;
  border: 1px solid rgba(214, 255, 0, 0.5);
  border-radius: 999px;
  background: rgba(214, 255, 0, 0.08);
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .division-results-list.is-2,
  .division-results-list.is-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .division-results {
    margin-bottom: 28px;
    padding: 16px;
  }
}

.qual-board {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(214, 255, 0, 0.16);
}

.qual-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 14px;
}

.qual-board-head h3 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.qual-board-head p,
.qual-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.qual-lane h4 {
  margin: 0;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.qual-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
}

.qual-path span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qual-path button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(243, 255, 224, 0.16);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.qual-path button[data-place] {
  border-color: rgba(214, 255, 0, 0.55);
  color: var(--paper);
}

.qual-path button[data-place]::before {
  content: attr(data-place);
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.qual-path button[aria-pressed="true"] {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.qual-path button[aria-pressed="true"]::before {
  background: var(--ink);
  color: var(--orange);
}

.qual-lane + .qual-lane {
  margin-top: 18px;
}

.qual-lane h4 {
  margin-bottom: 8px;
}

.qual-scroll-wrap {
  position: relative;
}

.qual-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 6px;
  scrollbar-color: rgba(214, 255, 0, 0.4) transparent;
  scrollbar-width: thin;
}

.qual-scroll-wrap.can-scroll::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 6px;
  width: 72px;
  background: linear-gradient(90deg, rgba(16, 20, 12, 0), #10140c 82%);
  pointer-events: none;
}

.qual-tree {
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
}

.qual-board.is-tracing .qmatch:not(.is-on) {
  opacity: 0.22;
}

.qual-board.is-tracing .qmatch.is-on {
  border-color: var(--orange);
  background: rgba(214, 255, 0, 0.08);
  box-shadow: 0 0 0 1px var(--orange), 0 0 16px rgba(214, 255, 0, 0.28);
}

.qual-board.is-tracing .qmatch.is-on a.is-path {
  background: rgba(214, 255, 0, 0.18);
  box-shadow: inset 3px 0 0 var(--orange);
  color: var(--paper);
}

.qual-board.is-tracing .qmatch.is-on a.is-path b {
  color: var(--orange);
}

.qcol {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 176px;
}

.qcol + .qcol {
  margin-left: 28px;
}

.qcol > p {
  display: flex;
  align-items: end;
  height: 32px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.qpairs {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.qual-tree[data-slots="16"] .qpairs {
  height: 768px;
}

.qual-tree[data-slots="8"] .qpairs {
  height: 384px;
}

.qual-tree[data-slots="4"] .qpairs {
  height: 192px;
}

.qpair {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-around;
}

.qcol.is-merge .qpair::before {
  content: "";
  position: absolute;
  top: 25%;
  right: -14px;
  bottom: 25%;
  width: 14px;
  border: 1px solid rgba(214, 255, 0, 0.34);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  pointer-events: none;
}

.qcol.is-merge .qpair::after,
.qcol.is-join .qpair::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -28px;
  width: 14px;
  height: 1px;
  background: rgba(214, 255, 0, 0.34);
  pointer-events: none;
}

.qcol.is-join .qpair::after {
  width: 28px;
}

.qmatch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(214, 255, 0, 0.16);
  border-radius: 9px;
  background: rgba(6, 8, 4, 0.55);
  overflow: hidden;
}

.qmatch a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 3px 8px 3px 9px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.qmatch a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qmatch a b {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.qmatch a.is-win {
  background: rgba(214, 255, 0, 0.08);
  box-shadow: inset 2px 0 0 var(--orange);
  color: var(--paper);
}

.qmatch a.is-win b {
  color: var(--orange);
}

.qmatch.is-bye b {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qmatch.is-empty {
  opacity: 0.4;
}

.qmatch.is-empty > span {
  display: flex;
  justify-content: center;
  padding: 8px;
  color: var(--muted);
}

.qmatch a:hover span,
.qmatch a:focus-visible span {
  color: var(--orange);
}

.qual-note {
  margin-top: 12px;
}

@media (max-width: 700px) {
  .qcol {
    width: 158px;
  }
}
