
/* Drift Wars Tournament Manager V2.7 advanced bracket layer */
.dwtm-v27-bracket-wrap {
  overflow-x: auto;
  padding: 16px 0;
}
.dwtm-v27-bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 22px;
  align-items: start;
  min-width: min-content;
}
.dwtm-v27-round {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 260px;
}
.dwtm-v27-round h4 {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(184,77,255,.18), rgba(255,122,0,.12));
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.dwtm-v27-match-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,10,18,.88);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.dwtm-v27-match-card:after {
  content: "";
  position: absolute;
  top: 50%;
  right: -23px;
  width: 23px;
  height: 1px;
  background: linear-gradient(90deg, rgba(184,77,255,.55), rgba(255,122,0,.25));
}
.dwtm-v27-round:last-child .dwtm-v27-match-card:after {
  display: none;
}
.dwtm-v27-match-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(255,255,255,.6);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dwtm-v27-match-meta em {
  font-style: normal;
}
.dwtm-v27-driver {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.86);
}
.dwtm-v27-driver a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.dwtm-v27-driver b {
  min-width: 28px;
  text-align: center;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  padding: 3px 7px;
}
.dwtm-v27-driver.is-winner {
  background: linear-gradient(135deg, rgba(184,77,255,.32), rgba(255,122,0,.20));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13);
  color: #fff;
}
.dwtm-v27-status-waiting {
  opacity: .76;
}
.dwtm-v27-button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dwtm-v27-filter {
  margin: 12px 0 18px;
}
.dwtm-v27-preview-panel {
  overflow-x: auto;
}
.dwtm-v27-print-bar {
  margin-bottom: 14px;
}
.dwtm-v27-print-bar button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}
@media print {
  body * {
    visibility: hidden;
  }
  .dwtm-v27-print-mode,
  .dwtm-v27-print-mode * {
    visibility: visible;
  }
  .dwtm-v27-print-mode {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff !important;
    color: #111 !important;
  }
  .dwtm-v27-print-bar {
    display: none;
  }
  .dwtm-v27-bracket {
    display: grid;
    gap: 12px;
  }
  .dwtm-v27-match-card,
  .dwtm-v27-round h4 {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #333 !important;
    box-shadow: none !important;
  }
  .dwtm-v27-driver {
    background: #f5f5f5 !important;
    color: #111 !important;
  }
}
