/* Shared tournament presentation. No competition rules or tenant state live here. */
body.tournament-defi-theme {
  --page: #f3f7f4;
  --panel: #ffffff;
  --panel-2: #f4f8f5;
  --panel-3: #e9f2ec;
  --line: #d9e5dd;
  --line-strong: #96bda4;
  --text: #14251d;
  --muted: #60736a;
  --lime: #d4f54a;
  --cyan: #147448;
  --danger: #b42332;
  --tt-green: #116b40;
  --tt-green-dark: #0c4f30;
  --tt-shadow: 0 6px 20px rgba(24, 62, 40, .07);
  background: var(--page) !important;
  color: var(--text) !important;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
body.tournament-defi-theme a { color: var(--tt-green); }
body.tournament-defi-theme .pub-nav { background: #fff; border-color: var(--line); }
body.tournament-defi-theme :is(.pub-nav-brand,.pub-nav-link) { color: var(--text); }
body.tournament-defi-theme .pub-nav-link.active { background: #eaf4da; color: var(--tt-green-dark); }
body.tournament-defi-theme .pub-nav-login-btn { background: var(--tt-green); border-color: var(--tt-green); color: #fff; }
body.tournament-defi-theme :is(.btsk-bottom-nav,.btsk-slide-nav,.btsk-hamburger,#btskScrollTop) {
  background: #fff !important; border-color: var(--line) !important; color: var(--tt-green-dark) !important;
}
body.tournament-defi-theme :is(.btsk-bottom-nav,.btsk-slide-nav) :is(a,button,.nav-section-title) { color: var(--tt-green-dark) !important; }
body.tournament-defi-theme :is(.btsk-bottom-nav,.btsk-slide-nav) .active { background: #eef8d6 !important; }
body.tournament-defi-theme .btsk-hamburger span { background: var(--tt-green-dark); }
body.tournament-defi-theme .btsk-slide-nav .nav-section { color: var(--muted) !important; }
body.tournament-defi-theme .person-link-btn { color: var(--tt-green-dark) !important; }
body.tournament-defi-theme .hero-album-caption { background: #173c2b; color: #fff !important; }
body.tournament-defi-theme :is(.bests-stat,.bests-detail-match,.tennis-score-engine,
  .tennis-score-summary,.pending-modal-item,.pending-photo-inline-preview,.match-planner-row,
  .match-planner-toggle,.registration-card,.person-modal-card) {
  background: #fff !important; border-color: var(--line) !important; color: var(--text) !important;
}
body.tournament-defi-theme :is(.bests-stat strong,.bests-player,.bests-num,.bests-rank,
  .bests-detail-opponent,.bests-detail-opponent-btn,.tennis-score-summary b,
  .tennis-score-summary .line,.tennis-score-table .set-label,.match-comment-text,
  .tennis-score-head label,.pending-photo-inline-preview .preview-title) { color: var(--text) !important; }
body.tournament-defi-theme :is(.bests-stat span,.bests-mini,.bests-empty,.bests-detail-meta,
  .pending-photo-inline-preview .preview-meta,.match-comment-head) { color: var(--muted) !important; }
body.tournament-defi-theme .bests-player::after { background: #edf5ef; border-color: #c5dbc8; color: #0c4f30; }
body.tournament-defi-theme .bests-toolbar label { display: grid; gap: 5px; min-width: 0; margin: 0; }
body.tournament-defi-theme :is(.bests-pill,.bests-detail-score,
  .bests-detail-result,.match-payment-badge,.tennis-score-format) {
  background: #edf5ef !important; border-color: #c5dbc8 !important; color: var(--tt-green-dark) !important;
}
body.tournament-defi-theme :is(.bests-detail-result.loss,.match-payment-bad,.tennis-score-error) {
  color: #a21d2b !important; background: #fff1f2 !important; border-color: #ebbac0 !important;
}
body.tournament-defi-theme :is(.match-payment-warn,.match-payment-due) {
  color: #79550d !important; background: #fff7df !important; border-color: #e4cb83 !important;
}
body.tournament-defi-theme :is(.bests-table th,.bests-table tr[data-bests-open]:hover) {
  background: #edf5ef !important; color: var(--text) !important; border-color: var(--line) !important;
}
body.tournament-defi-theme :is(.pending-modal-nav button,.match-planner-toolbar button,
  .login-cta,.hero-album-arrow,.match-photo-nav) {
  background: var(--tt-green) !important; border-color: var(--tt-green) !important;
  color: #fff !important; box-shadow: none !important; animation: none !important;
}
body.tournament-defi-theme .pending-modal-nav button.is-active {
  background: var(--lime) !important; color: #233010 !important;
}
body.tournament-defi-theme .presentation-fixture { background: #eaf2ec; border: 1px solid var(--line); }
body.tournament-defi-theme :is(.presentation-round h6,.presentation-center-title) {
  background: var(--tt-green); color: #fff; border-color: var(--tt-green);
}
body.tournament-defi-theme .presentation-fixture::after { background-color: #8aad94; }
body.tournament-defi-theme .presentation-match::before,
body.tournament-defi-theme .presentation-match::after { border-color: #8aad94; }
body.tournament-defi-theme .presentation-match { box-shadow: var(--tt-shadow); border-color: var(--line-strong); }
body.tournament-defi-theme .presentation-match.completed { border-color: #a5c94f; box-shadow: 0 0 0 2px #e5f3ba; }
body.tournament-defi-theme .presentation-team.winner { background: #eef8d6; border-color: #a5c94f; }
body.tournament-defi-theme :is(.wrap,.tournament-topbar,.card,.panel,.event,.news-card,
  .news-comment-card,.survey-mini-card,.daily-court-column,.match-modal-card,.modal-content,
  .modal-box,.toolbar[style*="background"],.rule-item,.rule-summary,.rule-editor-row,.court-add-panel,.court-save-strip,
  .court-location-card,.court-card,.court-picker-panel,.media-item,.consent-card,
  .mandatory-consent-box details,.kpi .box,.tab-pane,.sms-system-panel,.sms-system-list,
  .sms-system-row,.sms-system-template-tools,.sms-system-link-tools,.match-empty,.match-comments,
  .match-photo-stage,.match-photo-item,.match-side,.fixture-match,.fixture-team,.photo-preview) {
  background: var(--panel) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  box-shadow: var(--tt-shadow) !important;
}
body.tournament-defi-theme :is(.tournament-topbar,.match-modal-head,.modal-header,
  .court-picker-body,.modal-footer) { border-color: var(--line) !important; }
body.tournament-defi-theme :is(.hero-title h1,.hero-title p,.brand-copy strong,.brand-copy span,
  .top-left,.top-contact,.hand,.category-event-name,.court-pick,.quick-login-form label,
  .quick-login-check,.consent-title,.mandatory-consent-box summary,.mandatory-consent-text,
  .news-title,.match-modal-title,.daily-player,.fixture-player,.match-side-name,label) {
  color: var(--text) !important;
}
body.tournament-defi-theme :is(.muted,.small,.news-excerpt,.daily-match-round,
  .daily-match-foot,.match-photo-caption,.category-event-meta,.sms-system-meta,
  .media-item .cap,.kpi .box .k,.quick-login-status,footer.public-footer) {
  color: var(--muted) !important;
}
body.tournament-defi-theme :is(.program-day-select-wrap span,.program-day-chip span,
  .fixture-detail,.fixture-winner,.fixture-match-head,.match-side-meta,.match-meta,
  .news-comment-meta,.comment-meta) { color: var(--muted) !important; }
body.tournament-defi-theme :is(.fixture-pay,.daily-pay) { color: #24562c; background: #edf5ef; border-color: #c5dbc8; }
body.tournament-defi-theme :is(.fixture-pay-warn,.fixture-pay-due,.daily-pay-warn,.daily-pay-due) { color: #79550d; background: #fff7df; border-color: #e4cb83; }
body.tournament-defi-theme :is(.fixture-pay-bad,.daily-pay-bad) { color: #a21d2b; background: #fff1f2; border-color: #ebbac0; }
body.tournament-defi-theme :is(h1,h2,h3,h4) { letter-spacing: -.02em; }
body.tournament-defi-theme :is(.hero-title h1,.match-modal-title) { font-weight: 750; }
body.tournament-defi-theme .brand-mark { background: #fff; border-color: var(--line); }
body.tournament-defi-theme .wrap { box-shadow: var(--tt-shadow) !important; }
body.tournament-defi-theme :is(.hero-album-slider,.gallery-item,.news-comment-board,
  .match-comment-item,.match-upload-form,.album-upload-box,.survey-card,.survey-question,
  .fixture-player-row,.fixture-team-row,.fixture-match-head,.fixture-meta-row) {
  background-color: var(--panel-2) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
body.tournament-defi-theme :is(.main-nav a,.main-nav button,.btn,.button,.collapse-toggle,
  .match-modal-close,.pager button,.comment-like-btn,.quick-login-link,.btn-soft) {
  background: var(--tt-green) !important;
  border: 1px solid var(--tt-green) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-weight: 650;
  animation: none !important;
  filter: none !important;
}
body.tournament-defi-theme :is(.btn.alt,.btn-soft,.pager button,.comment-like-btn,
  .match-modal-close,.quick-login-link,.collapse-toggle) {
  background: #fff !important;
  color: var(--tt-green-dark) !important;
  border-color: var(--line-strong) !important;
}
body.tournament-defi-theme :is(.main-nav a,.main-nav button,.btn,.button,.pager button,
  .collapse-toggle,.match-modal-close):hover {
  background: var(--tt-green-dark) !important;
  border-color: var(--tt-green-dark) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}
body.tournament-defi-theme :is(.main-nav .active,.main-nav [aria-selected="true"],
  .nav-link.active,.fixture-top-cta,.rules-top-cta) {
  background: var(--lime) !important;
  border-color: #adc83c !important;
  color: #233010 !important;
  box-shadow: none !important;
  animation: none !important;
}
body.tournament-defi-theme .fixture-top-cta::before,
body.tournament-defi-theme .fixture-top-cta::after { display: none !important; }
body.tournament-defi-theme :is(input,select,textarea,.form-control,.form-select) {
  background: #fff !important;
  border-color: var(--line-strong) !important;
  color: var(--text) !important;
  accent-color: var(--tt-green);
}
body.tournament-defi-theme input:is([type="checkbox"],[type="radio"]) { width: 1.1em; height: 1.1em; min-height: 0; flex: 0 0 auto; padding: 0; }
body.tournament-defi-theme :is(input,textarea)::placeholder { color: #697c71; opacity: 1; }
body.tournament-defi-theme :is(a,button,input,select,textarea):focus-visible {
  outline: 3px solid #4b9564 !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #eef9d3 !important;
}
body.tournament-defi-theme :is(button:disabled,.btn.disabled) { opacity: .5; }
body.tournament-defi-theme :is(.pill,.stat,.category-event-count,.category-event-format,
  .sms-system-status,.fixture-status,.daily-status,.daily-vs-chip,.daily-score-box,
  .daily-time-badge,.fixture-date,.fixture-score,.match-score,.match-versus) {
  background: var(--panel-3) !important;
  border-color: var(--line) !important;
  color: var(--tt-green-dark) !important;
}
body.tournament-defi-theme .stat :is(strong,span) { color: var(--tt-green-dark) !important; }
body.tournament-defi-theme :is(.announce-ribbon,.pending-overview,.watch-pending,
  .pending-alert-link,.watch-pending-link,.sms-system-variable-palette) {
  background: #eff6e0 !important;
  border-color: #cbdcab !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
body.tournament-defi-theme :is(.announce-ribbon b,.announce-ribbon marquee,
  .pending-alert-link,.watch-pending-link) { color: var(--tt-green-dark) !important; }
body.tournament-defi-theme :is(.pending-alert-count,.watch-pending-count) {
  background: var(--tt-green) !important; color: #fff !important;
}
body.tournament-defi-theme .premium-banner { background: #fff !important; border-color: var(--line) !important; }
body.tournament-defi-theme .banner-left::before {
  background: linear-gradient(90deg,rgba(8,65,35,.93),rgba(8,65,35,.65)) !important;
}
body.tournament-defi-theme .banner-copy :is(h2,p) { color: #fff !important; }
body.tournament-defi-theme .banner-copy .stat { background: #fff !important; }
body.tournament-defi-theme .banner-right { background: #edf5ee !important; border-color: var(--line) !important; }
body.tournament-defi-theme :is(.event:hover,.news-card:hover,.category-card .category-event:hover,
  .court-card.is-selected,.daily-court-match:hover) { background: #f0f7f1 !important; border-color: #83ab90 !important; }
body.tournament-defi-theme :is(.event.active,.category-card .category-event.active) {
  border-color: #72932f !important;
  box-shadow: inset 0 -4px 0 var(--lime) !important;
}
body.tournament-defi-theme .category-card .category-event { background: #fff !important; border-color: var(--line) !important; box-shadow: var(--tt-shadow) !important; }
body.tournament-defi-theme .category-card .category-event > div { color: var(--text) !important; }
body.tournament-defi-theme .category-event-media { background: radial-gradient(circle,#fff,#edf5e8) !important; border-color: var(--line) !important; }
body.tournament-defi-theme .category-event-media::after { background: linear-gradient(180deg,transparent,rgba(224,238,218,.3)) !important; }
body.tournament-defi-theme :is(.daily-court-head,.daily-court-column:nth-child(n) .daily-court-head,
  .fixture-round-title,.fixture-round.cup-round .fixture-round-title,.match-modal-head,.modal-header) {
  background: #edf5ef !important;
  border-color: var(--line) !important;
  color: var(--tt-green-dark) !important;
}
body.tournament-defi-theme :is(.daily-court-name,.daily-court-count) { color: var(--tt-green-dark) !important; }
body.tournament-defi-theme :is(.daily-court-empty,.daily-court-match,.daily-player,.fixture-match) {
  background: #fff !important; border-color: var(--line) !important; color: var(--text) !important;
}
body.tournament-defi-theme :is(.daily-player.winner,.daily-winner-line,.match-side.winner,
  .fixture-match.completed,.daily-court-match.completed,.daily-status.completed) {
  background: #eef8d6 !important; border-color: #afcd72 !important; color: #24562c !important;
}
body.tournament-defi-theme :is(.daily-court-match.postponed,.daily-status.waiting,.flash.warn) {
  background: #fff7df !important; border-color: #e4cb83 !important; color: #79550d !important;
}
body.tournament-defi-theme :is(.btn.warn,.btn.err,.btn-danger) {
  background: #b42332 !important; border-color: #b42332 !important; color: #fff !important;
}
body.tournament-defi-theme :is(.flash.err,.consent-pill,.quick-login-status.err) {
  background: #fff1f2 !important; border-color: #ebbac0 !important; color: #a21d2b !important;
}
body.tournament-defi-theme .flash.ok { background: #eef8ef !important; color: #24562c !important; }
body.tournament-defi-theme :is(table,.table) {
  --bs-table-bg: #fff; --bs-table-color: #14251d; --bs-table-border-color: #d9e5dd;
  --bs-table-striped-bg: #f4f8f5; --bs-table-striped-color: #14251d;
  --bs-table-hover-bg: #edf5ef; --bs-table-hover-color: #14251d;
  color: var(--text) !important;
}
body.tournament-defi-theme :is(thead th,table tbody tr,.table thead th) {
  background: #f4f8f5 !important; color: var(--text) !important; border-color: var(--line) !important;
}
body.tournament-defi-theme :is(.match-modal,.modal-backdrop) { background: rgba(16,35,24,.56) !important; }
body.tournament-defi-theme :is(.admin-action-frame,.profile-modal-frame) { background: var(--page); }
body.tournament-defi-theme #smsSystemModal :is(.sms-system-panel,.sms-system-template-tools,input,select,textarea) {
  background: #fff !important; border-color: var(--line) !important; color: var(--text) !important;
}
body.tournament-defi-theme #smsSystemModal :is(.sms-system-duplicate-option,.sms-system-variable-palette button) {
  color: var(--tt-green-dark) !important;
}
body.tournament-defi-theme #publicAnnouncementsCard .collapsible-body > div {
  background: #fff !important; border-color: var(--line) !important;
}
body.tournament-defi-theme :is(.tennis-circle,.tennis-circle::before,.tennis-circle::after) { border-color: #bfd5c2 !important; }
body.tournament-defi-theme :is(.hr,.survey-mini-bar span) { background: var(--tt-green) !important; }
body.tournament-defi-theme .survey-vote-option { background: #f4f8f5; color: var(--text); border-color: var(--line); }
@media (max-width: 768px) {
  body.tournament-defi-theme .bests-toolbar { grid-template-columns: minmax(0,1fr); }
  body.tournament-defi-theme .bests-toolbar label { display: grid; gap: 5px; min-width: 0; width: 100%; }
  body.tournament-defi-theme .bests-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  /* Keep dense score comparisons in their own horizontal viewport. The shared
     mobile navigation stylesheet otherwise turns table cells into tall cards. */
  body.tournament-defi-theme .bests-table-wrap { overflow: auto; max-width: 100%; }
  body.tournament-defi-theme .bests-table { display: table !important; min-width: 960px; }
  body.tournament-defi-theme .bests-table thead { display: table-header-group !important; }
  body.tournament-defi-theme .bests-table tbody { display: table-row-group !important; }
  body.tournament-defi-theme .bests-table tr { display: table-row !important; }
  body.tournament-defi-theme .bests-table :is(td,th) { display: table-cell !important; width: auto !important; color: var(--text); }
  body.tournament-defi-theme .bests-table td::before { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.tournament-defi-theme * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
