.tb-stage {
  --tb-accent: var(--ts-primary, #ee2445);
  --tb-accent-hover: var(--ts-primary-hover, #c81e3a);
  --tb-panel: var(--ts-card-dark, #181f20);
  --tb-well: #0d1010;
  --tb-black: var(--ts-background-dark, #060501);
  --tb-border: var(--ts-border-dark, #243533);
  --tb-muted: var(--ts-text-muted, #9ca3af);
  --tb-dim: #a9b4b3;
  --tb-gold: #facc15;
  --tb-card-height: 128px;

  position: relative;
  background: var(--ts-card-darker, #121617);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.tb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(6, 5, 1, 0.45);
  border-bottom: 1px solid var(--tb-border);
}

.tb-bar__group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tb-bar__group--right {
  gap: 8px;
  flex-wrap: wrap;
}

.tb-stage-label {
  font-size: 9pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tb-accent);
  white-space: nowrap;
}

.tb-menu {
  position: relative;
}

.tb-menu__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 260px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--tb-border);
  background: var(--tb-well);
  color: #fff;
  font-family: inherit;
  font-size: 10pt;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tb-menu__btn:hover {
  border-color: rgba(238, 36, 69, 0.4);
}

.tb-menu__btn[aria-expanded="true"] {
  border-color: var(--tb-accent);
}

.tb-menu__btn--view {
  font-family: var(--font-secondary, "Saira Condensed", sans-serif);
  font-size: 11pt;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
}

.tb-menu__btn-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-menu__btn .material-symbols-outlined {
  font-size: 11pt;
  flex-shrink: 0;
}

.tb-menu__list {
  position: absolute;
  top: 110%;
  left: 0;
  z-index: 60;
  min-width: 216px;
  padding: 4px 0;
  border-radius: 8px;
  border: 1px solid var(--tb-accent);
  background: var(--tb-panel);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.tb-menu__list[hidden] {
  display: none;
}

.tb-menu--right .tb-menu__list {
  left: auto;
  right: 0;
}

.tb-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6pt 10pt;
  font-size: 10pt;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  background: transparent;
  border: 0;
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.tb-menu__item .material-symbols-outlined {
  font-size: 11pt;
  color: var(--tb-accent);
  flex-shrink: 0;
}

.tb-menu__item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.tb-menu__item.is-active {
  background: rgba(238, 36, 69, 0.14);
  color: #fff;
}

.tb-menu__sep {
  height: 1px;
  margin: 4px 0;
  background: var(--tb-border);
}

.tb-menu__heading {
  display: block;
  padding: 6pt 10pt 2pt;
  font-size: 9pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tb-muted);
}

.tb-zoom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--tb-border);
  background: var(--tb-well);
}

.tb-zoom__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--tb-border);
  background: var(--tb-panel);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tb-zoom__btn .material-symbols-outlined {
  font-size: 13pt;
}

.tb-zoom__btn:hover {
  border-color: rgba(238, 36, 69, 0.4);
  background: rgba(238, 36, 69, 0.08);
}

.tb-zoom__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.tb-zoom__btn:disabled:hover {
  border-color: var(--tb-border);
  background: var(--tb-panel);
}

.tb-zoom__value {
  min-width: 38px;
  text-align: center;
  font-size: 9pt;
  font-weight: 800;
  color: var(--tb-muted);
}

.tb-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10pt;
  font-weight: 600;
  color: var(--tb-muted);
  letter-spacing: 0.06em;
  max-width: 260px;
  min-width: 0;
}

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

.tb-live__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4b5563;
  flex-shrink: 0;
}

.tb-live__dot.is-live {
  background: #4ade80;
  animation: tb-live-ping 2s infinite;
}

@keyframes tb-live-ping {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  60% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.tb-stage:fullscreen,
.tb-stage:-webkit-full-screen {
  border-radius: 0;
  background: #0a0c0c;
}

.tb-stage.is-maximized {
  position: fixed;
  inset: 0;
  z-index: 9000;
  border-radius: 0;
  background: #0a0c0c;
  display: flex;
  flex-direction: column;
}

.tb-stage:fullscreen,
.tb-stage.is-maximized {
  display: flex;
  flex-direction: column;
}

.tb-stage:fullscreen .tb-body,
.tb-stage.is-maximized .tb-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tb-stage:fullscreen .tb-tree,
.tb-stage.is-maximized .tb-tree,
.tb-stage:fullscreen .tb-rr,
.tb-stage.is-maximized .tb-rr {
  flex: 1;
  min-height: 0;
  max-height: none;
}

.tb-stage:fullscreen .tb-swiss,
.tb-stage.is-maximized .tb-swiss {
  flex: 0 0 auto;
}

.tb-tree {
  position: relative;
  overflow: auto;
  padding: 22px 4px 30px;
  max-height: calc(100vh - 220px);
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 36, 69, 0.35) transparent;
  cursor: grab;
}

.tb-tree.is-panning,
.tb-rr.is-panning {
  cursor: grabbing;
  user-select: none;
}

.tb-tree::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.tb-tree::-webkit-scrollbar-thumb {
  background: rgba(238, 36, 69, 0.35);
  border-radius: 999px;
}

.tb-tree::-webkit-scrollbar-track {
  background: transparent;
}

.tb-tree__inner,
.tb-rr__inner {
  min-width: fit-content;
  transform: scale(var(--tb-zoom, 1));
  transform-origin: top left;
}

.tb-tree__inner {
  display: flex;
  flex-direction: column;
  position: relative;
}

.tb-lines {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.tb-line {
  fill: none;
  stroke: #4a5a5c;
  stroke-width: 1.5;
  transition: stroke 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.tb-line.is-lit {
  stroke: var(--tb-accent);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 2px rgba(238, 36, 69, 0.8));
}

.tb-line-flow {
  fill: none;
  stroke: rgba(255, 150, 165, 0.85);
  stroke-width: 2.5;
  stroke-dasharray: 8 26;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.25s ease;
  animation: tb-flow 1s linear infinite;
  animation-play-state: paused;
  will-change: stroke-dashoffset;
}

.tb-line-flow.is-lit {
  opacity: 1;
  animation-play-state: running;
}

@keyframes tb-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -34; }
}

.tb-section {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.tb-section + .tb-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(36, 53, 51, 0.6);
}

.tb-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin: 0 0 10px 26px;
}

.tb-section__title span:first-child {
  font-family: var(--font-secondary, "Saira Condensed", sans-serif);
  font-size: 12pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.tb-section__rule {
  height: 1px;
  flex: 1;
  min-width: 36px;
  background: linear-gradient(90deg, var(--tb-border), transparent);
}

.tb-section__handoffs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tb-handoff {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.08);
  color: #93c5fd;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tb-handoff--loser {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
}

.tb-section__rounds {
  display: flex;
  align-items: stretch;
  position: relative;
}

.tb-round {
  min-width: 268px;
  flex: 0 0 auto;
  padding: 0 26px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.tb-round__title {
  text-align: center;
  margin-bottom: 14px;
}

.tb-round__title strong {
  display: block;
  font-family: var(--font-secondary, "Saira Condensed", sans-serif);
  font-size: 12pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.tb-round__underline {
  height: 3px;
  width: 36px;
  background: var(--tb-accent);
  border-radius: 3px;
  margin: 6px auto 0;
}

.tb-round__matches {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.tb-slot {
  display: flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

.tb-champion {
  min-width: 200px;
  flex: 0 0 auto;
  padding: 0 26px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.tb-champion__slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.tb-champion__title {
  text-align: center;
  margin-bottom: 14px;
}

.tb-champion__title strong {
  display: block;
  font-family: var(--font-secondary, "Saira Condensed", sans-serif);
  font-size: 12pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.tb-champion__underline {
  height: 3px;
  width: 36px;
  background: var(--tb-gold);
  border-radius: 3px;
  margin: 6px auto 0;
}

.tb-champion__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px dashed rgba(250, 204, 21, 0.4);
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.05);
  text-align: center;
}

.tb-champion__card .material-symbols-outlined {
  font-size: 22px;
  color: var(--tb-gold);
}

.tb-champion__name {
  font-size: 11pt;
  font-weight: 800;
  color: var(--tb-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-champion__card.is-decided {
  border-style: solid;
  border-color: rgba(250, 204, 21, 0.55);
}

.tb-champion__card.is-decided .tb-champion__name {
  color: #fff;
}

.tb-match {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-width: 216px;
  width: 100%;
  height: var(--tb-card-height);
  padding: 10px 12px;
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  background: var(--tb-panel);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tb-match:hover,
.tb-match:focus-visible,
.tb-match.is-lit {
  border-color: rgba(238, 36, 69, 0.4);
  box-shadow: 0 0 20px rgba(238, 36, 69, 0.15);
  outline: none;
}

.tb-match.is-live {
  background: linear-gradient(180deg, rgba(238, 36, 69, 0.1), var(--tb-panel));
  border-color: rgba(238, 36, 69, 0.5);
  animation: tb-live-pulse 2.2s infinite;
}

@keyframes tb-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(238, 36, 69, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(238, 36, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(238, 36, 69, 0); }
}

.tb-match.is-bye {
  border-style: dashed;
  cursor: default;
}

.tb-match__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tb-match__time {
  font-size: 9pt;
  color: var(--tb-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
}

.tb-row__names {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.tb-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--tb-border);
  background: var(--tb-black);
  font-family: var(--font-secondary, "Saira Condensed", sans-serif);
  font-size: 10pt;
  font-weight: 700;
  color: var(--tb-muted);
}

.tb-crest.is-empty {
  color: #3d484d;
}

.tb-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tb-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11pt;
  font-weight: 600;
  color: var(--tb-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

a.tb-name:hover {
  color: #fff;
}

.tb-row.is-winner .tb-name {
  font-weight: 800;
  color: #fff;
}

.tb-row.is-loser .tb-name {
  text-decoration: line-through;
}

.tb-score {
  font-size: 12pt;
  font-weight: 800;
  min-width: 22px;
  text-align: right;
  color: var(--tb-muted);
  flex-shrink: 0;
}

.tb-row.is-winner .tb-score {
  color: #fff;
}

.tb-score.is-updated {
  animation: tb-score-flash 1.2s ease;
  text-shadow: 0 0 14px rgba(238, 36, 69, 0.5);
}

@keyframes tb-score-flash {
  0% { opacity: 1; }
  20% { opacity: 0.4; }
  100% { opacity: 1; }
}

.tb-match.is-changed {
  border-color: var(--tb-accent);
  animation: tb-card-pulse 1.6s ease;
}

@keyframes tb-card-pulse {
  0% { box-shadow: 0 0 0 0 rgba(238, 36, 69, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(238, 36, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(238, 36, 69, 0); }
}

.tb-bye-note {
  font-size: 10pt;
  font-style: italic;
  color: var(--tb-muted);
  padding: 5px 6px;
}

.tb-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.tb-pill--completed {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.2);
}

.tb-pill--scheduled {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.2);
}

.tb-pill--pending {
  background: rgba(255, 255, 255, 0.06);
  color: var(--tb-muted);
  border-color: rgba(255, 255, 255, 0.08);
}

.tb-pill--locked {
  background: rgba(107, 114, 128, 0.12);
  color: #9aa3af;
  border-color: rgba(107, 114, 128, 0.2);
}

.tb-pill--live {
  background: rgba(238, 36, 69, 0.16);
  color: #ff5c78;
  border-color: rgba(238, 36, 69, 0.32);
}

.tb-pill--disputed {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.26);
}

.tb-pill--forfeit {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.24);
}

.tb-pill__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 999px;
  background: currentColor;
  animation: tb-dot-blink 1.4s ease-in-out infinite;
}

@keyframes tb-dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.tb-rr {
  position: relative;
  overflow: auto;
  padding: 16px 14px;
  max-height: calc(100vh - 220px);
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 36, 69, 0.35) transparent;
  cursor: grab;
}

.tb-rr__inner {
  display: flex;
  gap: 16px;
}

.tb-rr::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.tb-rr::-webkit-scrollbar-thumb {
  background: rgba(238, 36, 69, 0.35);
  border-radius: 999px;
}

.tb-rr::-webkit-scrollbar-track {
  background: transparent;
}

.tb-rr__col {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10pt;
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  background: var(--tb-panel);
  box-shadow: 0 2pt 16pt rgba(0, 0, 0, 0.25);
}

.tb-rr__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #3d484d;
}

.tb-rr__head strong {
  font-family: var(--font-secondary, "Saira Condensed", sans-serif);
  font-size: 12pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.tb-rr__match {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--tb-border);
  border-radius: 8px;
  background: var(--tb-well);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.tb-rr__match.is-changed {
  border-color: var(--tb-accent);
  animation: tb-card-pulse 1.6s ease;
}

.tb-rr__match:hover {
  border-color: rgba(238, 36, 69, 0.4);
}

.tb-rr__match.is-live {
  border-color: rgba(238, 36, 69, 0.5);
  background: linear-gradient(180deg, rgba(238, 36, 69, 0.1), var(--tb-well));
}

.tb-rr__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}

.tb-rr__row .tb-crest {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  font-size: 9pt;
}

.tb-rr__row .tb-name {
  font-size: 11pt;
  font-weight: 500;
  color: var(--tb-muted);
}

.tb-rr__row.is-winner .tb-name {
  font-weight: 800;
  color: #fff;
}

.tb-rr__row .tb-score {
  font-size: 11pt;
}

.tb-rr__row.is-winner .tb-score {
  color: #fff;
}

.tb-swiss {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 16px 14px 0;
  padding: 14pt;
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  background: var(--tb-panel);
}

.tb-swiss__copy {
  flex: 1 1 320px;
  min-width: 0;
}

.tb-swiss__copy h3 {
  margin: 0 0 6px;
  font-family: var(--font-secondary, "Saira Condensed", sans-serif);
  font-size: 13pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.tb-swiss__copy p {
  margin: 0;
  font-size: 11pt;
  color: var(--tb-muted);
}

.tb-swiss__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tb-swiss__chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--tb-border);
  border-radius: 10px;
  background: rgba(6, 5, 1, 0.3);
}

.tb-swiss__chip span {
  font-size: 9pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tb-muted);
}

.tb-swiss__chip strong {
  font-size: 11pt;
  font-weight: 700;
  color: #fff;
}

.tb-pager {
  display: none;
  padding: 16px;
}

.tb-pager__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tb-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--tb-border);
  background: var(--tb-panel);
  color: #fff;
  cursor: pointer;
}

.tb-pager__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.tb-pager__label {
  text-align: center;
  min-width: 0;
}

.tb-pager__label strong {
  display: block;
  font-family: var(--font-secondary, "Saira Condensed", sans-serif);
  font-size: 12pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.tb-pager__label span {
  font-size: 10pt;
  color: var(--tb-muted);
}

.tb-pager__matches {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tb-pager__matches .tb-match {
  min-width: 0;
  height: auto;
  min-height: var(--tb-card-height);
}

.tb-tip {
  position: fixed;
  z-index: 9999;
  min-width: 180px;
  padding: 10px 14px;
  border: 1px solid var(--tb-accent);
  border-radius: 12px;
  background: var(--tb-panel);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.tb-tip[hidden] {
  display: none;
}

.tb-tip__name {
  font-size: 11pt;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.tb-tip__meta {
  font-size: 9pt;
  color: var(--tb-muted);
  margin-bottom: 8px;
  white-space: nowrap;
}

.tb-tip__stats {
  display: flex;
  gap: 14px;
}

.tb-tip__stat {
  text-align: center;
}

.tb-tip__stat strong {
  display: block;
  font-size: 12pt;
  font-weight: 800;
}

.tb-tip__stat span {
  font-size: 9pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tb-muted);
}

.tb-tip__stat--series strong { color: var(--tb-accent); }
.tb-tip__stat--rate strong { color: #6ee7b7; }
.tb-tip__stat--streak strong { color: var(--tb-gold); }

.tb-empty {
  padding: 48px 24px;
  text-align: center;
  font-size: 11pt;
  color: var(--tb-muted);
}

@media (max-width: 860px) {
  .tb-tree {
    display: none;
  }

  .tb-pager {
    display: block;
  }

  .tb-zoom {
    display: none;
  }

  .tb-rr {
    max-height: none;
    cursor: auto;
  }

  .tb-bar {
    gap: 10px;
  }

  .tb-menu__btn {
    max-width: 180px;
  }
}

@media (max-width: 640px) {
  .tb-swiss {
    margin: 12px 12px 0;
    padding: 12px;
  }

  .tb-rr {
    padding: 12px;
  }

  .tb-rr__col {
    flex-basis: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-match.is-live,
  .tb-match.is-changed,
  .tb-rr__match.is-changed,
  .tb-line-flow,
  .tb-pill__dot,
  .tb-live__dot.is-live,
  .tb-score.is-updated {
    animation: none;
  }
}
