:root {
  --td-gold: #c89a27;
  --td-cyan: #28c9e8;
  --td-ink: #17191d;
  --td-muted: #70757d;
  --td-paper: #ffffff;
  --td-soft: #f8f6f0;
  --td-line: #e5dfd1;
  --td-shadow: 0 20px 60px rgba(23, 25, 29, 0.075);
}

body.tournament-detail-page {
  margin: 0;
  min-width: 320px;
  color: var(--td-ink);
  background:
    radial-gradient(
      circle at 8% 0%,
      rgba(200, 154, 39, 0.09),
      transparent 28rem
    ),
    radial-gradient(
      circle at 94% 5%,
      rgba(40, 201, 232, 0.055),
      transparent 24rem
    ),
    #f7f6f2;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.td-shell {
  width: min(1260px, calc(100% - 32px));
  margin: 34px auto 72px;
}

.td-hero,
.td-panel {
  border: 1px solid var(--td-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--td-shadow);
}

.td-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  overflow: hidden;
  padding: clamp(26px, 5vw, 54px);
}

.td-hero::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(
    180deg,
    var(--td-gold),
    var(--td-cyan)
  );
  content: "";
}

.td-eyebrow {
  margin: 0 0 8px;
  color: var(--td-gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.td-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.td-hero-copy {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--td-muted);
  line-height: 1.75;
}

.td-event-logo {
  width: clamp(110px, 16vw, 180px);
  height: clamp(110px, 16vw, 180px);
  object-fit: contain;
  filter: drop-shadow(
    0 14px 24px rgba(23, 25, 29, 0.12)
  );
}

.td-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.td-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--td-line);
  border-radius: 9px;
  color: var(--td-ink);
  background: #fff;
  font-weight: 750;
  text-decoration: none;
}

.td-button-primary {
  border-color: #b48619;
  color: #17130b;
  background: linear-gradient(
    135deg,
    #f6dc8a,
    #c89a27
  );
}

.td-button[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
}

.td-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.td-trust-strip span {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--td-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--td-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.td-trust-strip .live {
  border-color: rgba(40, 201, 232, 0.32);
  color: #0c7890;
  background: rgba(40, 201, 232, 0.06);
}

.td-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
}

.td-stack {
  display: grid;
  gap: 18px;
}

.td-panel {
  padding: clamp(20px, 3vw, 30px);
}

.td-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 19px;
}

.td-panel-heading h2 {
  margin: 2px 0 0;
  font-size: 1.45rem;
}

.td-panel-heading p {
  margin: 5px 0 0;
  color: var(--td-muted);
  line-height: 1.55;
}

.td-registration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--td-line);
  border-radius: 12px;
  background: var(--td-line);
  gap: 1px;
}

.td-registration-grid > div {
  padding: 15px;
  background: #fff;
}

.td-registration-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--td-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.td-registration-state {
  margin: 16px 0 0;
  padding: 14px 15px;
  border-left: 3px solid var(--td-gold);
  background: var(--td-soft);
  color: var(--td-muted);
  line-height: 1.6;
}

.td-empty {
  padding: 22px;
  border: 1px dashed #d7cfbd;
  border-radius: 12px;
  color: var(--td-muted);
  background: var(--td-soft);
  line-height: 1.65;
}

.td-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-list li {
  padding: 12px 14px;
  border: 1px solid var(--td-line);
  border-radius: 10px;
  background: #fff;
}

.td-table-scroll {
  overflow-x: auto;
}

.td-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.td-table th,
.td-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--td-line);
  text-align: left;
}

.td-table th {
  color: var(--td-muted);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.td-stage {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.td-stage > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--td-line);
  border-radius: 11px;
  background: #fff;
}

.td-stage > article span:last-child {
  text-align: right;
}

.td-stage small {
  color: var(--td-muted);
}

@media (max-width: 900px) {
  .td-grid {
    grid-template-columns: 1fr;
  }

  .td-registration-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .td-hero {
    grid-template-columns: 1fr;
  }

  .td-event-logo {
    grid-row: 1;
    width: 100px;
    height: 100px;
  }
}
