.trio-deportes {
  --td-bg: #f6faf7;
  --td-surface: #fff;
  --td-border: #c8dfd3;
  --td-border-open: #4a9e76;
  --td-text: #122a23;
  --td-muted: #435e55;
  --td-green: #00693f;
  --td-green-text: #087448;
  --td-score-lead: #dbeefa;
  --td-score-lead-text: #164d78;
  --td-pique-lead: #d7efe1;
  --td-pique-lead-text: #145038;
  --td-match-card: #f0f5fa;
  --td-match-open: #e8f0f7;
  --td-control-relief: linear-gradient(#fffa 0%, #fff2 10%, transparent 77%, #0001 93%, #0004);
  --td-control-shadow: #34463836;
  --td-control-lip: #fff9;
  --td-on-green: #fff;
  --td-soft: #e4f1e9;
  --td-open: #eef8f1;
  --td-closed: #ebefed;
  --td-focus: #00814d;
  --td-shadow: rgb(28 73 54 / 16%);
  box-sizing: border-box;
  width: 100%;
  max-width: 52rem;
  min-width: 0;
  margin-inline: auto;
  padding: 0.75rem clamp(0.65rem, 2.7vw, 1.35rem) 1.5rem;
  border-radius: 1rem;
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgb(20 100 63 / 3%) 9px 10px), var(--td-bg);
  color: var(--td-text);
  font-family: Inter, system-ui, "Segoe UI", sans-serif;
  line-height: 1.35;
  color-scheme: light;
}

:where([data-theme="dark"], [data-home-theme="dark"], .theme-dark, .dark) .trio-deportes,
.trio-deportes[data-theme="dark"] {
  --td-bg: #12261f;
  --td-surface: #1a3028;
  --td-border: #425e51;
  --td-border-open: #69c396;
  --td-text: #eef9f3;
  --td-muted: #b4cdc2;
  --td-green: #087647;
  --td-green-text: #80dda8;
  --td-score-lead: #24465d;
  --td-score-lead-text: #bce5fb;
  --td-pique-lead: #1e4938;
  --td-pique-lead-text: #b1efd1;
  --td-match-card: #202f3c;
  --td-match-open: #253845;
  --td-control-relief: linear-gradient(#fff4 0%, #fff2 10%, transparent 77%, #0002 93%, #0006);
  --td-control-shadow: #09120b8c;
  --td-control-lip: #fff3;
  --td-on-green: #fff;
  --td-soft: #284538;
  --td-open: #253e32;
  --td-closed: #34473f;
  --td-focus: #8fe8b4;
  --td-shadow: rgb(1 14 8 / 42%);
  color-scheme: dark;
}

.trio-deportes *,
.trio-deportes *::before,
.trio-deportes *::after {
  box-sizing: border-box;
}

.trio-deportes [hidden] {
  display: none !important;
}

.trio-deportes .td-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.trio-deportes button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.trio-deportes button:focus-visible {
  outline: 2px solid var(--td-focus);
  outline-offset: 2px;
}

.trio-deportes .td-page-header {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.7rem;
  margin-bottom: 0.7rem;
  padding: 0 2.5rem;
}

.trio-deportes .td-title,
.trio-deportes .td-list-heading,
.trio-deportes .td-plays-heading,
.trio-deportes p {
  margin: 0;
}

.trio-deportes .td-title {
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 750;
}

.trio-deportes .td-back {
  position: absolute;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 0.55rem;
  color: var(--td-green-text);
  background: transparent;
}

.trio-deportes .td-chevron {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.trio-deportes .td-back .td-chevron {
  transform: rotate(135deg);
}

.trio-deportes .td-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.trio-deportes .td-pill {
  --td-control-base: var(--td-soft);
  display: grid;
  min-width: 0;
  min-height: 2.125rem;
  place-items: center;
  padding: 0.17rem 0.32rem;
  line-height: 1.15;
  border: 1px solid var(--td-border);
  border-radius: 0.65rem;
  background: var(--td-control-relief), var(--td-control-base);
  box-shadow: inset 0 1px 0 var(--td-control-lip), 0 1px 2px var(--td-control-shadow);
  text-align: center;
  overflow-wrap: anywhere;
}

.trio-deportes .td-selected,
.trio-deportes .td-pill[aria-pressed="true"] {
  color: var(--td-on-green);
  --td-control-base: var(--td-green);
  border-color: var(--td-green);
  font-weight: 700;
}

.trio-deportes button.td-pill:active {
  background-image: linear-gradient(#0004, #0001 88%, var(--td-control-lip));
  box-shadow: inset 0 1px 3px var(--td-control-shadow);
}

.trio-deportes .td-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.38fr) minmax(0, 0.8fr);
  gap: 0.33rem;
  margin-bottom: 0.85rem;
  font-size: clamp(0.77rem, 2.7vw, 0.98rem);
}

.trio-deportes .td-list-heading {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.trio-deportes .td-notice,
.trio-deportes .td-empty {
  margin: -0.2rem 0 0.55rem;
  color: var(--td-muted);
  font-size: 0.86rem;
}

.trio-deportes .td-list {
  position: relative;
  display: grid;
  gap: 0.31rem;
  overflow-anchor: none;
}

.trio-deportes .td-event {
  position: relative;
  min-width: 0;
  border: 1px solid var(--td-border);
  border-radius: 0.7rem;
  background: var(--td-match-card);
  cursor: grab;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}

.trio-deportes .td-event.td-expanded {
  border-color: var(--td-border-open);
  box-shadow: inset 0 0 0 1px var(--td-border-open);
}

.trio-deportes .td-event.td-dragging {
  z-index: 1;
  box-shadow: 0 0.45rem 1.35rem var(--td-shadow);
  cursor: grabbing;
  user-select: none;
}

.trio-deportes .td-list.td-reordering {
  cursor: grabbing;
  user-select: none;
}

.trio-deportes .td-event-header {
  min-width: 0;
  padding: 0.47rem 0.62rem;
  border-radius: 0.65rem;
  -webkit-touch-callout: none;
  user-select: none;
  transition: background-color 130ms ease;
}

.trio-deportes .td-expanded .td-event-header {
  border-radius: 0.65rem 0.65rem 0 0;
  background: var(--td-match-open);
}

.trio-deportes .td-event-heading {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
}

.trio-deportes .td-event-names {
  grid-column: 1 / -1;
  min-width: 0;
}

.trio-deportes .td-event-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 0.45rem;
}

.trio-deportes .td-grip {
  width: 0.55rem;
  height: 0.92rem;
  background: radial-gradient(currentColor 0.065rem, transparent 0.075rem) 0 0 / 0.25rem 0.29rem;
  color: var(--td-muted);
  opacity: 0.7;
  touch-action: none;
}

.trio-deportes .td-sport-icon {
  width: 1.25rem;
  text-align: center;
  line-height: 1;
}

.trio-deportes .td-league,
.trio-deportes .td-match {
  display: block;
  overflow-wrap: anywhere;
}

.trio-deportes .td-league {
  color: var(--td-muted);
  font-size: 0.74rem;
  font-weight: 550;
}

.trio-deportes .td-match {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.13rem 0.28rem;
  margin-block: 0 0.28rem;
  text-align: center;
  font-size: clamp(0.87rem, 3.5vw, 1.12rem);
  font-weight: 750;
}

.trio-deportes .td-scored-match {
  grid-template-columns: minmax(0, 1fr) 0.65rem minmax(0, 1fr);
}
.trio-deportes .td-scored-match > .td-team:first-child { grid-column: 1; }
.trio-deportes .td-scored-match > .td-team:nth-child(2) { grid-column: 3; }
.trio-deportes .td-score-divider {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  color: var(--td-muted);
}

.trio-deportes .td-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.13rem;
  min-width: 0;
  padding: 0.18rem 0.27rem;
  border-radius: 0.34rem;
  background: var(--td-surface);
}

.trio-deportes .td-team-title {
  display: grid;
  align-content: start;
  gap: 0.02rem;
  min-width: 0;
  width: 100%;
}

.trio-deportes .td-team-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.23rem;
  width: 100%;
  min-width: 0;
}
.trio-deportes .td-scored-match .td-team:first-child .td-team-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: end;
}
.trio-deportes .td-scored-match .td-team:nth-child(2) .td-team-summary {
  grid-template-columns: auto minmax(0, 1fr);
  text-align: start;
}
.trio-deportes .td-scored-match .td-team:nth-child(2) .td-team-title { grid-area: 1 / 2; }
.trio-deportes .td-scored-match .td-team:nth-child(2) .td-team-result { grid-area: 1 / 1; }

.trio-deportes .td-team-result {
  display: grid;
  justify-items: center;
  align-content: start;
}

.trio-deportes .td-team-detail {
  display: grid;
  gap: 0.42rem;
  width: 100%;
  min-width: 0;
  text-align: start;
  font-size: 0.77rem;
  font-weight: 500;
}

@supports (grid-template-rows: subgrid) {
  .trio-deportes .td-team {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    justify-items: center;
    align-items: start;
  }
  .trio-deportes .td-team-summary { align-self: stretch; align-items: center; }
}

.trio-deportes .td-team-side {
  color: var(--td-muted);
  font-size: 0.68rem;
  font-weight: 650;
}
.trio-deportes .td-team-name { min-width: 0; overflow-wrap: anywhere; }
.trio-deportes .td-assistive,
.trio-deportes .td-event:not(.td-expanded) .td-team-side {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.trio-deportes .td-score {
  min-width: 1.65rem;
  padding: 0.06rem 0.24rem;
  border-radius: 0.34rem;
  background: var(--td-soft);
  color: var(--td-text);
  text-align: center;
  font-size: 0.96rem;
  font-variant-numeric: tabular-nums;
}

.trio-deportes .td-leading-team .td-score {
  background: var(--td-score-lead);
  color: var(--td-score-lead-text);
}

.trio-deportes .td-wager-badge {
  display: inline-block;
  margin-block-start: 0.24rem;
  padding: 0.12rem 0.38rem;
  border-radius: 0.34rem;
  background: var(--td-soft);
  color: var(--td-green-text);
  font-weight: 750;
  font-size: 0.68rem;
}

.trio-deportes :is(.td-event-scheduled,.td-event-progress,.td-score-note,.td-score-source,.td-timeline-source) {
  display: block;
  overflow-wrap: anywhere;
  color: var(--td-muted);
  font-size: 0.74rem;
}
.trio-deportes .td-event-progress {
  margin-top: 0.13rem;
  color: var(--td-green-text);
  font-size: 0.82rem;
  font-weight: 730;
}
.trio-deportes .td-event-names > .td-match { margin-block-start: 0.36rem; }
.trio-deportes .td-pique-key {
  display: block;
  color: var(--td-muted);
  font-size: 0.75rem;
  font-weight: 640;
}
.trio-deportes .td-score-note { margin-block-end: 0.1rem; }

.trio-deportes .td-event-state {
  max-width: 10rem;
  color: var(--td-muted);
  text-align: end;
  font-size: 0.77rem;
  white-space: normal;
}

.trio-deportes .td-time-prefix,
.trio-deportes .td-event-time {
  display: block;
}

.trio-deportes .td-event-state[data-kind="live"] .td-event-time,
.trio-deportes .td-event-state[data-kind="countdown"] .td-event-time {
  color: var(--td-green-text);
  font-weight: 750;
}

.trio-deportes .td-event-state[data-kind="countdown"] .td-event-time {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.trio-deportes .td-event-toggle {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  color: var(--td-green-text);
  background: transparent;
}

.trio-deportes .td-event-toggle[aria-expanded="true"] .td-chevron {
  transform: rotate(225deg);
}

.trio-deportes .td-event-toggle:active {
  background: var(--td-soft);
}

.trio-deportes .td-market-note,
.trio-deportes .td-total-line {
  display: block;
  color: var(--td-muted);
  font-size: 0.75rem;
}

.trio-deportes .td-quote {
  min-width: 0;
  padding: 0.24rem 0.34rem;
  border-radius: 0.33rem;
  background: var(--td-soft);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.trio-deportes .td-quote-title,
.trio-deportes .td-plays-heading { display: block; font-weight: 730; }
.trio-deportes .td-team-pique .td-quote-title { font-size: 0.68rem; }
.trio-deportes .td-quote-fields { margin: 0; }
.trio-deportes .td-quote-field {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 0.3rem;
}
.trio-deportes .td-quote-field dt { color: var(--td-muted); }
.trio-deportes .td-quote-field dd { margin: 0; font-weight: 720; }
.trio-deportes .td-quote-adjusted .td-quote-field:first-child { display: grid; gap: 0; }
.trio-deportes .td-quote-adjusted .td-quote-field:first-child dd {
  min-width: 0;
  max-width: 100%;
  font-size: clamp(0.7rem, 3.6vw, 0.9rem);
  font-weight: 800;
  text-align: center;
  overflow-wrap: normal;
}
.trio-deportes .td-team-pique .td-quote-fields {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.43rem;
}
.trio-deportes .td-team-pique .td-quote-field:first-child {
  flex-basis: 100%;
  justify-content: center;
  justify-items: center;
}
.trio-deportes .td-team-pique:not(.td-quote-adjusted) .td-quote-field:first-child {
  flex-basis: auto;
}
.trio-deportes .td-team-pique .td-quote-field:not(:first-child) {
  justify-content: center;
  gap: 0 0.16rem;
  font-size: 0.71rem;
}
.trio-deportes .td-quote-field :is(.td-pique-covered,.td-pique-real-lead) {
  padding-inline: 0.14rem;
  border-radius: 0.26rem;
}
.trio-deportes .td-quote-field .td-pique-covered {
  color: var(--td-pique-lead-text);
  background: var(--td-pique-lead);
}
.trio-deportes .td-quote-field .td-pique-real-lead {
  color: var(--td-score-lead-text);
  background: var(--td-score-lead);
}

.trio-deportes .td-event[data-market-state]:not([data-market-state=""]) .td-quote,
.trio-deportes .td-quote[data-quote-kind="referencia"] {
  background: var(--td-closed);
}

.trio-deportes .td-event-header > :is(.td-totals,.td-quote,.td-market-note,.td-timeline) {
  margin-block-start: 0.32rem;
}
.trio-deportes .td-totals { font-size: 0.78rem; }
.trio-deportes .td-totals-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem;
  margin-block-start: 0.18rem;
}
.trio-deportes .td-timeline-source {
  color: var(--td-muted);
}

.trio-deportes .td-event-panel {
  padding: 0.6rem 0.72rem 0.65rem;
  border-top: 1px solid var(--td-border);
  font-size: 0.86rem;
}
.trio-deportes .td-event-panel:not(:has(> :not([hidden]))) {
  display: none;
}

.trio-deportes .td-baseball {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-inline-end: 1rem;
  margin-bottom: 0.4rem;
}

.trio-deportes .td-diamond {
  position: relative;
  width: 1.12rem;
  height: 1.12rem;
  margin: 0.35rem;
  border: 1px solid var(--td-border-open);
  transform: rotate(45deg);
}

.trio-deportes .td-base {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--td-muted);
  border-radius: 1px;
  background: var(--td-surface);
}

.trio-deportes .td-base-1 {
  inset: -0.23rem -0.23rem auto auto;
}

.trio-deportes .td-base-2 {
  inset: -0.23rem auto auto -0.23rem;
}

.trio-deportes .td-base-3 {
  inset: auto auto -0.23rem -0.23rem;
}

.trio-deportes .td-occupied {
  border-color: var(--td-green-text);
  background: var(--td-green-text);
}

.trio-deportes .td-plays {
  display: grid;
  gap: 0.35rem;
  margin: 0.28rem 0 0;
  padding: 0;
  list-style: none;
}

.trio-deportes .td-play {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.36rem 0.45rem;
  border-inline-start: 2px solid var(--td-border-open);
  border-radius: 0.25rem;
  background: var(--td-open);
}
.trio-deportes .td-play-time {
  flex: 0 0 auto;
  max-width: 42%;
  overflow-wrap: anywhere;
  color: var(--td-green-text);
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.trio-deportes .td-play-description { min-width: 0; overflow-wrap: anywhere; }
.trio-deportes .td-team-detail .td-play {
  display: grid;
  gap: 0;
  padding: 0.24rem 0.32rem;
}
.trio-deportes .td-team-detail .td-play-time { max-width: none; }
.trio-deportes .td-event .td-event-header { padding-block: 0.2rem; }
.trio-deportes .td-event .td-event-heading { row-gap: 0.08rem; }
.trio-deportes .td-event .td-event-toggle { height: 1.72rem; }
.trio-deportes .td-event .td-event-names > .td-match { margin-block: 0.08rem; }
.trio-deportes .td-event .td-team-name { font-size: 0.82rem; line-height: 1.18; }
.trio-deportes .td-event .td-team-pique { padding-block: 0.08rem; }
.trio-deportes .td-event:not(.td-expanded) .td-pique-format { display: none; }
.trio-deportes .td-event:not(.td-expanded) :is(.td-timeline,.td-team-winner),
.trio-deportes .td-event:not(.td-expanded) .td-event-header > :is(.td-totals,.td-quote,.td-market-note),
.trio-deportes .td-event:not(.td-expanded) .td-team-detail:not(:has(> .td-team-pique:not([hidden]))) {
  display: none;
}

.trio-deportes .td-situation,
.trio-deportes .td-muted {
  color: var(--td-muted);
}

@media (max-width: 370px) {
  .trio-deportes .td-event-header {
    padding-inline: 0.44rem;
  }

  .trio-deportes .td-event-heading {
    gap: 0.33rem;
  }

  .trio-deportes .td-sport-icon {
    width: 0.95rem;
  }

  .trio-deportes .td-event-toggle {
    width: 1.85rem;
  }

  .trio-deportes .td-event-state {
    max-width: 5.2rem;
  }
}

@media (min-width: 375px) and (max-width: 540px) {
  .trio-deportes .td-event .td-event-heading {
    grid-template-columns: auto auto auto minmax(0, 1fr) auto auto;
    column-gap: 0.29rem;
  }
  .trio-deportes .td-event :is(.td-event-names,.td-event-meta) { display: contents; }
  .trio-deportes .td-event .td-event-scheduled {
    grid-area: 1 / 4;
    min-width: 0;
    text-align: center;
    font-size: 0.7rem;
  }
  .trio-deportes .td-event .td-event-state { grid-area: 1 / 5; }
  .trio-deportes .td-event .td-event-toggle { grid-area: 1 / 6; }
  .trio-deportes .td-event :is(.td-match,.td-event-progress,.td-score-note,.td-score-source,.td-timeline-source,.td-pique-format) {
    grid-column: 1 / -1;
  }
  .trio-deportes .td-event .td-event-progress {
    margin-top: 0;
    text-align: end;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trio-deportes .td-event,
  .trio-deportes .td-event-header {
    transition: none;
  }
}

.trio-deportes .td-nav button { --td-control-base: #dbebe9; }
:where([data-theme="dark"], [data-home-theme="dark"]) .trio-deportes .td-nav button { --td-control-base: #274440; }
.trio-deportes [data-sport="soccer"] { --sport-accent: #408d5a; }
.trio-deportes [data-sport="basketball"] { --sport-accent: #c1653d; }
.trio-deportes [data-sport="tennis"] { --sport-accent: #819836; }
.trio-deportes [data-sport="baseball"] { --sport-accent: #b87148; }
.trio-deportes [data-sport="hockey"] { --sport-accent: #498795; }
.trio-deportes [data-sport="americanFootball"] { --sport-accent: #5489a2; }
.trio-deportes [data-sport="other"], .trio-deportes [data-sport="rugby"] { --sport-accent: #7773a2; }
.trio-deportes .td-filters .td-pill[data-sport][aria-pressed="false"] {
  --td-control-base: color-mix(in srgb, var(--sport-accent, var(--td-green)) 13%, var(--td-surface));
  border-color: color-mix(in srgb, var(--sport-accent, var(--td-green)) 27%, var(--td-border));
}
.trio-deportes .td-sport-icon {
  padding: 0.16rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sport-accent, var(--td-green)) 15%, var(--td-surface));
}

dialog.trio-sports-panel {
  width: min(52rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(90dvh, 62rem);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #467763;
  border-radius: 1.2rem;
}

dialog.trio-sports-panel .trio-deportes {
  min-height: 100%;
  margin: 0;
  border-radius: 0;
}

.trio-deportes .td-notifications {
  position: absolute;
  inset-inline-end: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--td-border);
  border-radius: 0.6rem;
  background: var(--td-surface);
  color: var(--td-green-text);
}

.trio-deportes .td-notifications svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trio-deportes .td-notification-count {
  position: absolute;
  inset: -0.2rem -0.15rem auto auto;
  min-width: 1.1rem;
  min-height: 1.1rem;
  padding-inline: 0.2rem;
  border-radius: 1rem;
  background: var(--td-green);
  color: var(--td-on-green);
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.1rem;
}

@media (max-width: 38rem) {
  dialog.trio-sports-panel {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    max-width: 100vw;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  dialog.trio-sports-panel .trio-deportes {
    padding-top: max(0.75rem, env(safe-area-inset-top));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

/* The Suerte frame and its surfaces belong to both player views. */
html:has(dialog.suerte-view[open]) { overflow: hidden; }

dialog.suerte-view {
  --suerte-background: #f2f7f3;
  --suerte-surface: #fff;
  --suerte-edge: #d2e2d9;
  --suerte-ink: #18332b;
  --suerte-muted: #4d655b;
  --suerte-tint: #e3f0e9;
  --suerte-accent: #166c52;
  --suerte-primary: #17694f;
  --suerte-on-primary: #fff;
  --suerte-focus: #168163;
  --suerte-width: 48rem;
  --suerte-gutter: clamp(.65rem, 3vw, 1.25rem);

  --sorteos-background: var(--suerte-background);
  --sorteos-card: var(--suerte-surface);
  --sorteos-edge: var(--suerte-edge);
  --sorteos-ink: var(--suerte-ink);
  --sorteos-muted: var(--suerte-muted);
  --sorteos-tint: var(--suerte-tint);
  --sorteos-accent: var(--suerte-accent);
  --sorteos-primary: var(--suerte-primary);

  color: var(--suerte-ink);
  background: var(--suerte-background);
  color-scheme: light;
}

body[data-home-theme="dark"] dialog.suerte-view {
  --suerte-background: #131e19;
  --suerte-surface: #1d2d26;
  --suerte-edge: #3a5348;
  --suerte-ink: #eef8f2;
  --suerte-muted: #b3c8bd;
  --suerte-tint: #263e33;
  --suerte-accent: #90e0ba;
  --suerte-primary: #177457;
  --suerte-focus: #95e4c0;
  color-scheme: dark;
}

dialog.suerte-view[open] {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.suerte-view [hidden] { display: none !important; }

.suerte-view .suerte-top {
  display: grid;
  gap: .4rem;
  padding-top: max(.35rem, env(safe-area-inset-top));
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--suerte-edge);
  background: var(--suerte-surface);
}

.suerte-view :is(.suerte-header, .suerte-nav, .suerte-body) {
  box-sizing: border-box;
  width: min(100%, var(--suerte-width));
  min-width: 0;
  margin-inline: auto;
  padding-inline: max(var(--suerte-gutter), env(safe-area-inset-left)) max(var(--suerte-gutter), env(safe-area-inset-right));
}

.suerte-view .suerte-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .35rem;
  min-height: 2.75rem;
}

.suerte-view .suerte-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.4vw, 1.4rem);
  font-weight: 760;
  letter-spacing: -.015em;
}

.suerte-view .suerte-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .28rem;
  min-width: 0;
}

.suerte-view .suerte-actions .display-currency { font-size: .7rem; min-height: 2.25rem; }

.suerte-view .suerte-icon-button {
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  position: relative;
  justify-self: start;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--suerte-edge);
  border-radius: .72rem;
  background: var(--suerte-surface);
  color: var(--suerte-accent);
}

.suerte-view .suerte-icon-button svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.suerte-view .suerte-notification-count {
  position: absolute;
  inset: .14rem .14rem auto auto;
  min-width: .95rem;
  padding: .05rem .16rem;
  border-radius: .65rem;
  background: var(--suerte-primary);
  color: var(--suerte-on-primary);
  font-size: .66rem;
  font-weight: 700;
}

.suerte-view .suerte-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .3rem;
}

.suerte-view .suerte-tab {
  display: grid;
  place-items: center;
  min-height: max(44px, 2.75rem);
  padding: .22rem .35rem;
  font: inherit;
  font-size: .93rem;
  font-weight: 650;
  border: 1px solid var(--suerte-edge);
  border-radius: .72rem;
  background: var(--suerte-tint);
  color: var(--suerte-ink);
}

.suerte-view .suerte-tab[aria-current="page"] {
  background: var(--suerte-primary);
  border-color: var(--suerte-primary);
  color: var(--suerte-on-primary);
}

.suerte-view :is(button, a):focus-visible {
  outline: 2px solid var(--suerte-focus);
  outline-offset: 2px;
}

.suerte-view .suerte-body {
  max-width: none;
  min-height: 0;
  overflow: auto;
  margin-inline: auto;
  overscroll-behavior: contain;
  padding-top: .75rem;
  padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
}

.suerte-view .trio-deportes {
  --td-bg: var(--suerte-background);
  --td-surface: var(--suerte-surface);
  --td-border: var(--suerte-edge);
  --td-text: var(--suerte-ink);
  --td-muted: var(--suerte-muted);
  --td-green: var(--suerte-primary);
  --td-green-text: var(--suerte-accent);
  --td-soft: var(--suerte-tint);
  --td-open: var(--suerte-tint);
  --td-closed: var(--suerte-tint);
  --td-focus: var(--suerte-focus);

  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  color-scheme: inherit;
}

.suerte-view .trio-deportes :is(.td-event, .td-dates),
.suerte-view .sorteos-player__card {
  box-sizing: border-box;
  border: 1px solid var(--suerte-edge);
  border-radius: .88rem;
  background: var(--suerte-surface);
}

.suerte-view .trio-deportes .td-event { background: var(--td-match-card); }

.suerte-view .trio-deportes .td-dates,
.suerte-view .sorteos-player__card { padding: .65rem .75rem; }

.suerte-view .sorteos-player__body { gap: .6rem; }
.suerte-view .sorteos-player__wallet-labels > strong { font-size: clamp(1rem, 4vw, 1.2rem); }

.suerte-view .trio-deportes .td-dates {
  display: grid;
  gap: .35rem;
  margin-bottom: .6rem;
}

.suerte-view .trio-deportes .td-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .3rem;
}


.suerte-view .trio-deportes .td-calendar-date {
  color: var(--suerte-muted);
  font-size: .82rem;
}

.suerte-view .trio-deportes .td-filters { margin-bottom: .7rem; }
.suerte-view .trio-deportes .td-days .td-pill { min-height: 2.25rem; }

.suerte-view .trio-deportes .td-filters .td-pill[data-sport][aria-pressed="false"] {
  --td-control-base: var(--suerte-tint);
  border-color: var(--suerte-edge);
}

.suerte-view .trio-deportes .td-list-heading { margin-bottom: .35rem; }
.suerte-view .trio-deportes .td-calendar-sources { color: var(--suerte-muted); font-size: .76rem; margin: 0 0 .55rem; }
.suerte-view .trio-deportes .td-calendar-sources a { color: var(--suerte-accent); }
.suerte-view .trio-deportes .td-event-header { padding: .55rem .65rem; }
.suerte-view .trio-deportes .td-retry { display: inline-grid; margin: 0 0 .6rem; min-height: 2.75rem; padding-inline: .65rem; }

@media (max-width: 26rem) {
  .suerte-view .trio-deportes .td-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .suerte-view .trio-deportes .td-event-heading { gap: .35rem; }
}

.trio-deportes {
  --td-nav-edge: #a7c8bd;
  --td-nav-surface: #c6e0d5;
  --td-day-surface: #cfe3ec;
  --td-day-join: #c6dde7;
  --td-sport-surface: #bdd7e3;
  --td-day-edge: #b8cfd7;
  --td-sport-choice: #e7f2ef;
  --td-day-ink: #285967;
  --td-sport-ink: #164c43;
}
:is([data-theme="dark"], [data-home-theme="dark"]) .trio-deportes {
  --td-nav-edge: #547b70;
  --td-nav-surface: #223f37;
  --td-day-surface: #335660;
  --td-day-join: #2d4b56;
  --td-sport-surface: #273f4c;
  --td-day-edge: #4a6b75;
  --td-sport-choice: #427365;
  --td-day-ink: #c5eaf1;
  --td-sport-ink: #f2fff9;
}
.trio-deportes.td-history {
  --td-nav-surface: #eee6d3;
  --td-day-surface: #f2e7cd;
  --td-day-join: #e9ddc4;
  --td-sport-surface: #e7dcc5;
  --td-day-edge: #cbbd9d;
  --td-sport-choice: #f9f2e0;
  --td-day-ink: #583f10;
  --td-sport-ink: #583f10;
}
:is([data-theme="dark"], [data-home-theme="dark"]) .trio-deportes.td-history {
  --td-nav-surface: #3b352a;
  --td-day-surface: #544634;
  --td-day-join: #4e3f2f;
  --td-sport-surface: #44392d;
  --td-day-edge: #75624b;
  --td-sport-choice: #665136;
  --td-day-ink: #f1dfb7;
  --td-sport-ink: #fff0d1;
}
.trio-deportes .td-schedule {
  --td-join-above: 3px;
  --td-join-below: 5px;
  --td-nav-gap: 3px;
  display: block;
  margin-bottom: 8px;
  padding: 3px;
  border-color: color-mix(in srgb,var(--td-nav-edge) 57%,transparent);
  border-radius: 15px;
  background: var(--td-nav-surface);
}
.trio-deportes .td-match-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 8px;
  margin: 0 2px 6px;
}
.trio-deportes .td-match-heading .td-list-heading { font-size: 0.88rem }
.trio-deportes.td-history .td-match-heading { color: var(--td-day-ink) }
.trio-deportes .td-schedule .td-days {
  display: grid;
  grid-template-columns: repeat(var(--td-day-count,2),minmax(0,1fr));
  gap: var(--td-nav-gap);
  font-size: .76rem;
}
.trio-deportes .td-schedule .td-filters {
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(var(--td-sport-count,4),minmax(0,1fr));
  min-width: 0;
  gap: 2px var(--td-nav-gap);
  padding: 3px;
  border-radius: 10px;
  background: var(--td-sport-surface);
  font-size: .75rem;
}
.trio-deportes .td-filters::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: 0;
  inset-inline-start: calc(var(--td-day-index,0) * (100% + var(--td-nav-gap)) / var(--td-day-count,2));
  width: calc((100% - (var(--td-day-count,2) - 1) * var(--td-nav-gap)) / var(--td-day-count,2));
  height: var(--td-join-below);
  border-radius: 0 0 8px 8px / 0 0 var(--td-join-below) var(--td-join-below);
  background: linear-gradient(var(--td-day-join),var(--td-sport-surface));
}
.trio-deportes .td-schedule[data-day-edge="start"] .td-filters { border-start-start-radius: 0 }
.trio-deportes .td-schedule[data-day-edge="end"] .td-filters { border-start-end-radius: 0 }
.trio-deportes .td-schedule .td-pill {
  position: relative;
  min-height: 30px;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  font-weight: 650;
}
.trio-deportes .td-schedule .td-pill:active { box-shadow: inset 0 1px 3px var(--td-control-shadow); background-image: none }
.trio-deportes .td-days .td-pill[aria-pressed="true"] {
  z-index: 1;
  border-color: var(--td-day-edge);
  border-bottom-color: var(--td-day-join);
  border-radius: 9px 9px 0 0;
  color: var(--td-day-ink);
  background: linear-gradient(var(--td-day-surface) calc(100% - var(--td-join-above)),var(--td-day-join));
}
.trio-deportes .td-days .td-pill[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  inset-inline-end: -6px;
  bottom: -1px;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at top right,transparent 4.8px,var(--td-day-edge) 5.3px 5.7px,var(--td-sport-surface) 6px);
}
.trio-deportes .td-schedule[data-day-edge="end"] .td-days .td-pill[aria-pressed="true"]::before {
  inset-inline: -6px auto;
  background: radial-gradient(circle at top left,transparent 4.8px,var(--td-day-edge) 5.3px 5.7px,var(--td-sport-surface) 6px);
}
.trio-deportes .td-filters .td-pill { z-index: 1 }
.trio-deportes .td-filters .td-pill[aria-pressed="true"] {
  color: var(--td-sport-ink);
  background: var(--td-sport-choice);
}
.trio-deportes .td-schedule .td-pill[aria-pressed="true"] { font-weight: 750 }
.trio-deportes .td-schedule .td-pill[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  left: calc(50% - 7px);
  bottom: 2px;
  border-radius: 2px;
  background: currentColor;
}
.trio-deportes .td-card-motion { overflow: hidden }

.trio-deportes .td-schedule .td-days[hidden] + .td-filters::before { display: none }
.suerte-view .trio-deportes .td-schedule .td-filters { margin-bottom: 0 }
.suerte-view .trio-deportes .td-schedule .td-filters .td-pill[data-sport][aria-pressed="false"] { border-color: transparent }
.suerte-view .trio-deportes .td-match-heading .td-list-heading { margin-bottom: 0 }

/* Sport → league → date: one compact group using the current selection palette. */
.trio-deportes .td-schedule .td-filters{border-radius:11px 11px 0 0;padding:3px;margin:0}
.trio-deportes .td-schedule .td-filters::before{display:none}
.trio-deportes .td-schedule .td-leagues{display:grid;grid-template-columns:repeat(var(--td-league-count,4),minmax(0,1fr));gap:3px;padding:4px 3px;background:var(--td-sport-surface);border-block:1px solid var(--td-nav-edge)}
.trio-deportes .td-schedule .td-days{padding:3px;background:var(--td-sport-surface);border-radius:0 0 10px 10px}
.trio-deportes .td-schedule .td-league-filter{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:78px;min-width:0;padding:5px 3px;font-size:11px;line-height:1.15}
.trio-deportes .td-league-name{min-height:1.15em;overflow-wrap:anywhere}
.trio-deportes .td-league-emblem{width:40px;height:40px;flex:none}
.trio-deportes .td-league-shield{fill:var(--td-match-open);stroke:currentColor;stroke-width:1.4}
.trio-deportes .td-league-emblem text{fill:currentColor;font:750 12px system-ui,sans-serif}
.trio-deportes .td-schedule .td-league-filter[aria-pressed=true]{color:var(--td-sport-ink);background:var(--td-sport-choice);border-color:var(--td-day-edge)}
.trio-deportes .td-all-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;vertical-align:middle}
.trio-deportes .td-schedule .td-league-filter:has(.td-all-icon){min-width:0}
.trio-deportes .td-schedule .td-days .td-pill{font-size:11px;min-height:34px}
.trio-deportes .td-schedule .td-leagues .td-league-emblem{display:block;max-width:100%;object-fit:contain}
.trio-deportes .td-schedule .td-league-emblem[data-official="NBA"]{background:#142640;border-radius:5px;padding:3px;box-sizing:content-box}
.suerte-view .trio-deportes .td-schedule .td-days{grid-template-columns:repeat(var(--td-day-count,3),minmax(0,1fr))}
.suerte-view {
  --suerte-header-start: #e0f0e8;
  --suerte-header-end: #dcece8;
  --suerte-selection: #d7ece4;
  --suerte-selection-end: #c6e0d5;
}
body[data-home-theme="dark"] .suerte-view {
  --suerte-header-start: #2a483d;
  --suerte-header-end: #29423d;
  --suerte-selection: #294c42;
  --suerte-selection-end: #223f37;
}
.suerte-view:has(.td-history) {
  --suerte-header-start: #f4ebd8;
  --suerte-header-end: #ede4d2;
  --suerte-selection: #f2e7cd;
  --suerte-selection-end: #e9ddc4;
}
body[data-home-theme="dark"] .suerte-view:has(.td-history) {
  --suerte-header-start: #493e31;
  --suerte-header-end: #3b372d;
  --suerte-selection: #544634;
  --suerte-selection-end: #4e3f2f;
}
.suerte-view .suerte-top {
  gap: 4px;
  padding-bottom: 5px;
  background: linear-gradient(112deg,var(--suerte-header-start),var(--suerte-header-end));
}
.suerte-view .suerte-header { min-height: 50px }
.suerte-view .suerte-location { min-width: 0; text-align: center }
.suerte-view .suerte-route {
  margin: 0 0 2px;
  font-size: .69rem;
  font-weight: 720;
  white-space: nowrap;
}
.suerte-view .suerte-title { font-size: 1.08rem; line-height: 1.12 }
.suerte-view .suerte-history-label { display: none }
.suerte-view:has(.td-history) .suerte-history-label { display: inline }
.suerte-view:has(.td-history) .suerte-main-title { display: none }
.suerte-view .suerte-tab {
  position: relative;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
}
.suerte-view .suerte-tab[aria-current="page"] {
  border-color: color-mix(in srgb,var(--suerte-accent) 35%,transparent);
  border-radius: 10px 10px 7px 7px;
  background: linear-gradient(var(--suerte-selection) calc(100% - 3px),var(--suerte-selection-end));
  color: var(--suerte-accent);
}
.suerte-view .suerte-tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.suerte-view:has(.td-history) .suerte-tab[aria-current="page"] { color: var(--suerte-ink) }
.suerte-view .suerte-body { padding-top: .4rem }


/* Shared colors for the Android and web screens. Game boards, pieces and outcome colors are independent. */
body {
  --trio-page: #faf8f5;
  --trio-page-end: #eeecea;
  --trio-surface: #fffdfa;
  --trio-ink: #292d33;
  --trio-muted: #4e5966;
  --trio-edge: #c7beb5;
  --trio-blue: #41576e;
  --trio-copper: #965339;
  --trio-on-copper: #fff5e8;
  --trio-tab-row: #8e9ba6;
  --trio-tab-group: #a3aeb7;
  --trio-tab-band: #bbc3ca;
  --trio-tab-selection: #d8dce0;
  --trio-tab-idle-ink: #1d2b38;
  --trio-tab-ink: #253744;
  --trio-shade: #faf7f1ab;
  --trio-tint: #eeecea;
  --trio-stripe: #69717a12;
  --trio-warning: #864d16;
  --trio-error: #a02432;
  --trio-success: #2d694f;
  --trio-dock-start: #545e6b;
  --trio-dock-end: #3c424a;
  --trio-dock-blue: #c1daeb;
  --trio-dock-copper: #f0c298;
}
body[data-home-theme="dark"] {
  --trio-page: #242a23;
  --trio-page-end: #171b17;
  --trio-surface: #263027;
  --trio-ink: #f3f0e5;
  --trio-muted: #bbc2ae;
  --trio-edge: #65735e;
  --trio-blue: #c1daeb;
  --trio-copper: #edc29a;
  --trio-on-copper: #32251d;
  --trio-tab-row: #263027;
  --trio-tab-group: #3b4b3a;
  --trio-tab-band: #3b4b3a;
  --trio-tab-selection: #2e392f;
  --trio-tab-idle-ink: #f3f0e5;
  --trio-tab-ink: #f3f0e5;
  --trio-shade: #2e392f;
  --trio-tint: #2e392f;
  --trio-stripe: #a1ac7d18;
  --trio-warning: #ffcf80;
  --trio-error: #ffadad;
  --trio-success: #81d4b2;
}

html body:is([data-view=lobby][data-lobby-game], [data-view=lobby][data-club-home=club]),
html body[data-view=lobby][data-lobby-game][data-home-theme=dark] {
  --lobby-ink: var(--trio-ink);
  --lobby-muted: var(--trio-muted);
  --lobby-accent: var(--trio-copper);
  --lobby-edge: var(--trio-edge);
  --lobby-card: var(--trio-surface);
  --lobby-tint: var(--trio-tint);
  --lobby-primary: var(--trio-copper);
  --lobby-warning: var(--trio-warning);
  background: repeating-linear-gradient(138deg,var(--trio-stripe) 0 1px,transparent 1px 9px),
    linear-gradient(var(--trio-page),var(--trio-page) 52%,var(--trio-page-end));
  color: var(--trio-ink);
}
html body #club-view .club-game-nav,
html body[data-home-theme=dark] #club-view .club-game-nav {
  --game-nav-bg: var(--trio-tab-row);
  --game-nav-border: var(--trio-edge);
  --game-nav-ink: var(--trio-tab-idle-ink);
  --game-nav-accent: var(--trio-tab-ink);
  --game-nav-card: var(--trio-surface);
  --game-nav-picked: var(--trio-tab-group);
  --game-nav-picked-ink: var(--trio-tab-ink);
  --game-badge-bg: var(--trio-copper);
  --game-badge-ink: var(--trio-on-copper);
}
html body[data-home-theme=dark] #club-view .club-game-nav {
  --game-nav-accent: var(--trio-copper);
  --game-nav-picked-ink: var(--trio-copper);
}
html body[data-view=lobby][data-lobby-game] #club-view {
  --club-menu-surface: var(--trio-tab-row);
  --club-menu-tab: var(--trio-tab-group);
  --club-menu-row: var(--trio-tab-band);
  --club-menu-choice: var(--trio-tab-selection);
  --club-menu-content: var(--trio-shade);
  --club-menu-edge: var(--trio-edge);
}
html body[data-view=lobby] #club-view #club-game-navigation .club-mode-highlight::after {
  background: var(--trio-copper);
}
html body[data-view=lobby] #club-view #club-game-navigation button:focus-visible {
  outline-color: var(--trio-copper);
}
html body[data-view=lobby] #club-view #club-game-navigation .mobile-variant-count:not([hidden]) {
  border-color: transparent;
}
html body[data-view=lobby] .club-topbar :is(.reference-page-title,.reference-icon) {
  color: var(--trio-ink);
}
html body[data-view=lobby][data-home-theme=dark] .club-topbar :is(.reference-page-title,.reference-icon) {
  color: var(--trio-copper);
}
html body[data-access][data-view=lobby][data-lobby-game] #club-view .club-profile::before {
  background: var(--trio-surface);
  border-color: var(--trio-edge);
}
html body[data-view=lobby][data-lobby-game] #club-view :is(.club-stats,.club-public-id,.mobile-club-live,.club-table-strip .table-status) {
  color: var(--trio-muted);
}
html body[data-view=lobby][data-lobby-game] #club-view :is(.club-summary h1,.club-filter,.club-table-strip,.club-table-summary .table-name,.club-table-buyin) {
  color: var(--trio-ink);
}
html body[data-view=lobby][data-lobby-game] #club-view .club-table-card {
  background: var(--trio-surface);
  border-color: var(--trio-edge);
  box-shadow: inset 0 0 0 1px var(--trio-edge);
}
html body[data-view=lobby][data-lobby-game] #club-view .club-table-strip { background: transparent; }
html body[data-view=lobby][data-lobby-game] #club-view .club-table-strip :is(.club-table-limits,.occupancy-ring) {
  color: var(--trio-copper);
}
html body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .occupancy-ring {
  background: conic-gradient(var(--trio-copper) var(--occupancy-fill,0%),var(--trio-tint) 0);
  border-color: var(--trio-edge);
}
html body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .occupancy-ring::before { background: var(--trio-surface); }
html body[data-view=lobby][data-lobby-game] #club-view .club-table-card[data-has-players] .occupancy-ring {
  border-color: var(--trio-copper);
}
html body[data-access][data-view=lobby][data-lobby-game] #club-view .club-toolbar :is(#create-table-button,#filter-toggle,#filter-name) {
  background: var(--trio-surface);
  border-color: var(--trio-edge);
  color: var(--trio-ink);
}
html body[data-access][data-view=lobby][data-lobby-game] #club-view .club-toolbar input[type=checkbox] { accent-color: var(--trio-copper); }
html body[data-view=lobby][data-lobby-game] #club-view :is(.card-lobby-actions,.domino-lobby-actions) .open-table-button {
  color: var(--trio-on-copper) !important;
}

/* Club tools keep the graphite relief and alternate the two Android icon colors. */
html body[data-view=lobby] :is(.reference-floating.reference-icon,.reference-dock[data-scoped]) {
  background: linear-gradient(var(--trio-dock-start),var(--trio-dock-end));
  border-color: #454952;
  color: #f9f6f0;
}
html body[data-view=lobby] .reference-dock[data-scoped] button {
  background: linear-gradient(var(--trio-dock-start),var(--trio-dock-end));
  border-color: #454952;
  color: #f9f6f0;
}
html body[data-view=lobby] .reference-dock[data-scoped] button svg { color: var(--trio-dock-copper); }
html body[data-view=lobby] .reference-dock[data-scoped] button:nth-child(even) svg { color: var(--trio-dock-blue); }

html body[data-access] .mobile-groups-page {
  --group-edge: var(--trio-edge);
  --group-card: var(--trio-surface);
  --group-text: var(--trio-ink);
  --group-muted: var(--trio-muted);
  --group-accent: var(--trio-copper);
  --group-form-control: var(--trio-tint);
  --group-form-hover: var(--trio-tab-selection);
  background: repeating-linear-gradient(135deg,var(--trio-stripe) 0 .8px,transparent .8px max(6.4px,1.77vw)),
    linear-gradient(var(--trio-page) 45%,var(--trio-page-end));
}
html body[data-access] .mobile-groups-page > .mobile-groups-backdrop-art { stroke: color-mix(in srgb,var(--trio-blue) 24%,transparent); }
html body[data-access] .mobile-groups-profile-chevron {
  background: var(--trio-copper);
  color: var(--trio-on-copper);
}
html body[data-access] .mobile-groups-page :is(.mobile-group-stats span,.mobile-groups-create) { background: var(--trio-tint); }

html body :is(#web-update-screen,.access-boot,.auth-screen) {
  background: repeating-linear-gradient(135deg,var(--trio-stripe) 0 1px,transparent 1px 9px),
    linear-gradient(var(--trio-page),var(--trio-page-end));
  color: var(--trio-ink);
}
html body :is(.access-boot-card,.auth-card) {
  --text: var(--trio-ink);
  --muted: var(--trio-muted);
  --accent: var(--trio-copper);
  background: var(--trio-surface);
  border-color: var(--trio-edge);
  color: var(--trio-ink);
}
html body :is(.access-boot-card p,.auth-card p) { color: var(--trio-muted); }
html body .auth-card :is(input:not([type=checkbox]),#auth-currency) {
  background: var(--trio-tint);
  border-color: var(--trio-edge);
  color: var(--trio-ink);
}
html body .auth-card #auth-error { color: var(--trio-error); }
html body :is(.auth-card,.access-boot-card) button.quiet {
  background: var(--trio-tint);
  border-color: var(--trio-edge);
  color: var(--trio-ink);
}
html body :is(.auth-card,.access-boot-card) .primary {
  background: var(--trio-copper);
  border-color: var(--trio-copper);
  color: var(--trio-on-copper);
}

html body[data-access] .reference-menu:is([data-kind=club-lobby],[data-kind=club-information],[data-kind=account][data-home-profile=true]) {
  --nav-surface: var(--trio-surface);
  --nav-ink: var(--trio-ink);
  --nav-muted: var(--trio-muted);
  --nav-accent: var(--trio-copper);
  --nav-border: var(--trio-edge);
  --nav-button: var(--trio-tint);
  --nav-icon: var(--trio-tab-selection);
}
html body :is(.club-management-dialog:not(.account-inbox),.ctw-dialog,.account-profile-dialog,.union-logo-dialog) {
  --club-accent: var(--trio-copper);
  --club-muted: var(--trio-muted);
  --ctw-panel: var(--trio-surface);
  --ctw-border: var(--trio-edge);
  --ctw-accent: var(--trio-copper);
  --ctw-muted: var(--trio-muted);
  background: var(--trio-page);
  border-color: var(--trio-edge);
  color: var(--trio-ink);
}
html body:not([data-home-theme=dark]) :is(.ctw-dialog,.auth-card #auth-currency) { color-scheme: light; }
html body :is(.club-management-dialog:not(.account-inbox),.ctw-dialog) :is(.club-management-heading,.club-management-tabs,.ctw-heading,.ctw-navigation,.club-management-section,.club-management-row,.club-member-row,.ctw-card,.ctw-row) {
  background: var(--trio-surface);
  border-color: var(--trio-edge);
}
html body :is(.club-management-dialog:not(.account-inbox),.ctw-dialog) :is(input:not([type=checkbox],[type=radio]),select,textarea,button.quiet) {
  background: var(--trio-tint);
  border-color: var(--trio-edge);
  color: var(--trio-ink);
}
html body :is(.club-management-dialog,.ctw-dialog) :is(button.primary,button.ctw-primary) {
  background: var(--trio-copper);
  border-color: var(--trio-copper);
  color: var(--trio-on-copper);
}
html body .ctw-dialog :is(.ctw-tabs button,.ctw-navigation .ctw-nav-item):is([aria-pressed=true],[aria-selected=true],.active,.is-active),
html body :is(.club-management-tabs,.club-counter-tabs,.club-role-tabs) button[aria-pressed=true] {
  background: var(--trio-tab-selection);
  border-bottom-color: var(--trio-copper);
  color: var(--trio-ink);
}
html body .club-management-dialog :is(.club-management-field,.club-management-row p,.club-member-identity > small,.club-member-balances > small) {
  color: var(--trio-muted);
}
html body .club-management-dialog .club-member-balances > strong { color: var(--trio-ink); }
html body .club-management-dialog .club-management-state:is(.state-approved,.state-succeeded),
html body .ctw-dialog :is(.ctw-positive:not(button),.club-amount-positive) { color: var(--trio-success); }
html body .club-management-dialog .club-management-state.state-rejected,
html body .ctw-dialog :is(.ctw-negative:not(button),.club-amount-negative) { color: var(--trio-error); }
html body[data-access] .club-management-dialog.account-inbox {
  --inbox-edge: var(--trio-edge);
  --inbox-ink: var(--trio-ink);
  --inbox-muted: var(--trio-muted);
  --inbox-accent: var(--trio-copper);
  --inbox-panel: var(--trio-page);
  --inbox-card: var(--trio-surface);
  --inbox-unread: var(--trio-copper);
}
html body[data-access] .club-network-web {
  --network-ink: var(--trio-ink);
  --network-quiet: var(--trio-muted);
  --network-accent: var(--trio-copper);
  --network-edge: var(--trio-edge);
  --network-top: var(--trio-surface);
  --network-bottom: var(--trio-tint);
  --network-selected: var(--trio-tab-selection);
  --network-line: var(--trio-muted);
  --network-side: color-mix(in srgb,var(--trio-tint) 80%,transparent);
  --network-glow: color-mix(in srgb,var(--trio-copper) 14%,var(--trio-page));
  --network-start: var(--trio-page);
  --network-end: var(--trio-page-end);
  --network-sweep: color-mix(in srgb,var(--trio-blue) 10%,transparent);
}
html body .union-directory-r58 :is(.union-own-club-card,.union-stat,.union-club-row) {
  background: var(--trio-surface);
  border-color: var(--trio-edge);
  color: var(--trio-ink);
}
html body .union-directory-r58 :is(.union-own-club-card p,.union-stat span,.union-club-text p) { color: var(--trio-muted); }

html body[data-access] dialog.suerte-view {
  --suerte-background: var(--trio-page);
  --suerte-surface: var(--trio-surface);
  --suerte-edge: var(--trio-edge);
  --suerte-ink: var(--trio-ink);
  --suerte-muted: var(--trio-muted);
  --suerte-tint: var(--trio-tint);
  --suerte-accent: var(--trio-copper);
  --suerte-primary: var(--trio-copper);
  --suerte-on-primary: var(--trio-on-copper);
  --suerte-focus: var(--trio-copper);
  --suerte-header-start: var(--trio-tab-row);
  --suerte-header-end: var(--trio-tab-row);
  --suerte-selection: var(--trio-tab-group);
  --suerte-selection-end: var(--trio-tab-band);
}
html body :is(.trio-deportes,dialog.suerte-view .trio-deportes) {
  --td-bg: var(--trio-page);
  --td-surface: var(--trio-surface);
  --td-border: var(--trio-edge);
  --td-border-open: var(--trio-copper);
  --td-text: var(--trio-ink);
  --td-muted: var(--trio-muted);
  --td-green: var(--trio-copper);
  --td-green-text: var(--trio-copper);
  --td-on-green: var(--trio-on-copper);
  --td-match-card: var(--trio-surface);
  --td-match-open: var(--trio-tint);
  --td-soft: var(--trio-tint);
  --td-open: var(--trio-tint);
  --td-closed: var(--trio-tint);
  --td-focus: var(--trio-copper);
}
html body .trio-deportes:not(.td-history) {
  --td-nav-edge: var(--trio-edge);
  --td-nav-surface: var(--trio-tab-band);
  --td-day-surface: var(--trio-tab-selection);
  --td-day-join: var(--trio-tint);
  --td-sport-surface: var(--trio-tint);
  --td-day-edge: var(--trio-edge);
  --td-sport-choice: var(--trio-surface);
  --td-day-ink: var(--trio-ink);
  --td-sport-ink: var(--trio-ink);
}
html body .trio-deportes .td-nav button { --td-control-base: var(--trio-tab-selection); }

html body :is(.chess-dialog,.chess-subdialog,.domino-play-dialog,.domino-play-prompt) {
  --chess-panel: var(--trio-surface);
  --chess-accent: var(--trio-copper);
  --chess-muted: var(--trio-muted);
  --domino-ink: var(--trio-ink);
  --domino-green: var(--trio-copper);
  background-color: var(--trio-page);
  border-color: var(--trio-edge);
  color: var(--trio-ink);
}
html body .chess-dialog :is(.chess-header,button.chess-match-button:not(.chess-destructive)) {
  background: var(--trio-surface);
  border-color: var(--trio-edge);
  color: var(--trio-ink);
}
html body .chess-dialog button.chess-primary {
  background: var(--trio-copper);
  border-color: var(--trio-copper);
  color: var(--trio-on-copper);
}

:root:not(:has(body[data-home-theme=dark])) { color-scheme: light; }

html body[data-home-theme=light] dialog.table-settings-dialog {
  background: var(--trio-page);
  border-color: var(--trio-edge);
  color: var(--trio-ink);
}
html body[data-home-theme=light] .table-settings-dialog :is(input:not([type=checkbox],[type=radio]),select,textarea,button.quiet) {
  background: var(--trio-surface);
  border-color: var(--trio-edge);
  color: var(--trio-ink);
}
html body[data-home-theme=light] .table-settings-dialog :is(.creation-variant,.table-settings-note) { color: var(--trio-muted); }
html body[data-home-theme=light] .table-settings-dialog button.primary {
  background: var(--trio-copper);
  border-color: var(--trio-copper);
  color: var(--trio-on-copper);
}
html body[data-home-theme=light] .table-settings-dialog :is(button,input,select,textarea):focus-visible { outline-color: var(--trio-copper); }

html body[data-view=table][data-home-theme=light] { background: var(--trio-page); }
html body[data-view=table][data-home-theme=light] #table-view :is(#room-title,#back-club-button,.reference-table-menu-toggle) {
  color: var(--trio-ink);
  text-shadow: none;
}
html body[data-view=table][data-home-theme=light] #table-view :is(#room-limits,#android-stage-caption,#stage-mode,#round-badge,#viewer-mode,.reference-table-strip-status,.club-web-version) {
  color: var(--trio-muted);
  text-shadow: none;
}
html body[data-view=table][data-home-theme=light] #table-view :is(.reference-idle-seat,#table-view .table-navigation .display-currency) {
  background: var(--trio-surface);
  border-color: var(--trio-edge);
  color: var(--trio-blue);
}
html body[data-view=table][data-home-theme=light] #table-view #table-stage:not([data-native-card-portrait]) .seat.open-seat .sit-button {
  color: var(--trio-on-copper);
  text-shadow: 0 1px 2px #131f17, 0 0 2px #131f17;
}
html body[data-view=table][data-home-theme=light] #table-view #table-stage[data-native-card-portrait] .seat.open-seat .sit-button::after {
  background: #263027;
  border-radius: 4px;
  padding-inline: 2px;
}

/* One joined selection path, following Cartas' rounded category/mode outline. */
html body .suerte-view:has(.trio-deportes) {
  --sports-category:var(--trio-tab-row);--sports-sport:var(--trio-tab-group);
  --sports-league:var(--trio-tab-band);--sports-date:var(--trio-surface);--sports-edge:var(--trio-edge);
}
html body dialog.suerte-view:has(.trio-deportes) { row-gap:0; }
html body .suerte-view:has(.trio-deportes) .suerte-top { padding-bottom:0;border-bottom:0;background:var(--sports-category); }
html body .suerte-view:has(.trio-deportes) .suerte-nav { padding-bottom:0;gap:0;background:var(--sports-category); }
html body .suerte-view:has(.trio-deportes) .suerte-nav .suerte-tab { position:relative;margin:0;border:1px solid transparent;border-radius:9px 9px 0 0;background:transparent;box-shadow:none; }
html body .suerte-view:has(.trio-deportes) .suerte-nav [aria-current=page] { z-index:3;bottom:-1px;border-color:var(--sports-edge);border-bottom-color:var(--sports-sport);background:var(--sports-sport);color:var(--trio-ink); }
html body .suerte-view:has(.trio-deportes) .suerte-body { padding-top:0; }
html body .suerte-view .trio-deportes { padding-top:0; }
html body .suerte-view .trio-deportes .td-schedule { margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none; }
html body .suerte-view .trio-deportes .td-schedule :is(.td-filters,.td-leagues,.td-days) {
  --sports-next:var(--sports-league);position:relative;isolation:auto;margin:0;padding:0;gap:0;
  border:1px solid var(--sports-edge);border-radius:0 0 0 0;box-shadow:none;
}
html body .suerte-view .trio-deportes .td-schedule .td-filters { background:var(--sports-sport);--sports-next:var(--sports-league);border-top-left-radius:9px; }
html body .suerte-view .trio-deportes .td-schedule .td-leagues { background:var(--sports-league);--sports-next:var(--sports-date);margin-top:-1px; }
html body .suerte-view .trio-deportes .td-schedule .td-days { background:var(--sports-date);--sports-next:var(--trio-page);margin-top:-1px; }
html body .suerte-view .trio-deportes .td-schedule .td-pill {
  position:relative;z-index:1;margin:0;padding:5px 4px;border:1px solid transparent;border-radius:9px 9px 0 0;
  background:transparent;background-image:none;box-shadow:none;color:var(--trio-ink);transition:color 120ms ease;
}
html body .suerte-view .trio-deportes .td-schedule .td-pill[aria-pressed=true] {
  z-index:3;bottom:-1px;border-color:var(--sports-edge);border-bottom-color:var(--sports-next);
  border-radius:9px 9px 0 0;background:var(--sports-next);background-image:none;color:var(--trio-ink);box-shadow:none;
}
html body .suerte-view .trio-deportes .td-schedule .td-pill[aria-pressed=true]::before,
html body .suerte-view .trio-deportes .td-schedule .td-pill[aria-pressed=true]::after {
  content:'';position:absolute;bottom:-1px;width:7px;height:7px;background:transparent;pointer-events:none;
  border:solid var(--sports-edge);border-width:0 1px 1px 0;border-radius:0 0 8px 0;
  left:-8px;right:auto;box-shadow:3px 3px 0 2px var(--sports-next);
}
html body .suerte-view .trio-deportes .td-schedule .td-pill[aria-pressed=true]::after { left:auto;right:-8px;border-width:0 0 1px 1px;border-radius:0 0 0 8px;box-shadow:-3px 3px 0 2px var(--sports-next); }
html body .suerte-view .trio-deportes .td-schedule .td-pill[aria-pressed=true]:first-child::before { display:none; }
html body .suerte-view .trio-deportes .td-schedule .td-pill[aria-pressed=true]:not(:has(~button:not([hidden])))::after { display:none; }
html body .suerte-view .trio-deportes .td-results { position:relative;padding:9px 8px 8px;margin-top:-1px;border:1px solid var(--sports-edge);border-radius:0 0 10px 10px;background:var(--trio-page); }
html body .suerte-view .trio-deportes .td-league-filter { min-height:78px; }

/* Sorteos keeps only the side edges on its connected selector rows. */
html body .suerte-view:has(.trio-deportes) { --sports-results:var(--trio-page); }
html body[data-home-theme=dark] .suerte-view:has(.trio-deportes) {
  --sports-league:var(--trio-tab-selection);--sports-results:var(--trio-page-end);
}
html body .suerte-view .trio-deportes .td-schedule :is(.td-filters,.td-leagues,.td-days) { border-block-color:transparent; }
html body .suerte-view .trio-deportes .td-schedule .td-days { --sports-next:var(--sports-results); }
html body .suerte-view .trio-deportes .td-results { border-top-color:transparent;background:var(--sports-results); }

.trio-deportes .td-emblem {
  position:relative; display:inline-grid; place-items:center; inline-size:var(--td-emblem-size);
  block-size:var(--td-emblem-size); box-sizing:border-box; flex:none;
}
.trio-deportes .td-emblem :is(.td-emblem-image,.td-emblem-fallback) {
  grid-area:1/1; display:grid; place-items:center; inline-size:100%; block-size:100%; min-width:0;
}
.trio-deportes .td-emblem .td-emblem-image { display:block; object-fit:contain; }
.trio-deportes .td-emblem .td-emblem-image[hidden] { display:none!important; }
.trio-deportes .td-emblem :is(.td-emblem-image-loaded,.td-emblem-image-pending) { visibility:hidden; }
.trio-deportes .td-league-emblem-slot { --td-emblem-size:40px; }
.trio-deportes .td-league-emblem-slot .td-league-emblem { max-width:100%; max-height:100%; box-sizing:border-box; }
.trio-deportes .td-sport-icon.td-emblem { --td-emblem-size:1.2rem; padding:1px; }
.trio-deportes .td-team-emblem { --td-emblem-size:1.25rem; }
.trio-deportes .td-team-emblem .td-emblem-fallback {
  border-radius:5px; color:var(--td-ink,currentColor);
  background:color-mix(in srgb,var(--sport-accent,var(--td-border)) 24%,var(--td-surface));
  font-size:.59rem; font-weight:780; line-height:1;
}
.trio-deportes .td-team-identity { display:flex; align-items:center; gap:.24rem; min-width:0; }
.trio-deportes .td-scored-match .td-team:first-child .td-team-identity { flex-direction:row-reverse; }
