.ths-tippspiel-spiele, .ths-tippspiel-tippschein, .ths-tippspiel-tabelle { margin: 1rem 0; }

.ths-tippspiel-form { max-width: 420px; margin: 1rem 0; }
.ths-tippspiel-form p { margin: 0 0 1rem; }
.ths-tippspiel-form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.ths-tippspiel-form input { width: 100%; box-sizing: border-box; padding: .65rem; }
.ths-tippspiel-form button { padding: .65rem 1rem; cursor: pointer; }
.ths-tippspiel-hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.ths-tippspiel-message { padding: .75rem 1rem; margin: 1rem 0; border-radius: 4px; }
.ths-tippspiel-message-success { border: 1px solid #46b450; }
.ths-tippspiel-message-error, .ths-tippspiel-warning { border: 1px solid #dc3232; }
.ths-tippspiel-message-warning { border: 1px solid #dba617; }
.ths-tippspiel-notice, .ths-tippspiel-account { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid #ccd0d4; }

.ths-tippspiel { --ths-border:#dcdcde; --ths-muted:#646970; --ths-bg:#fff; --ths-soft:#f6f7f7; margin: 1.5rem 0; }
.ths-tippspiel-section { margin: 2rem 0; }
.ths-tippspiel-section h2 { margin: 0 0 1rem; }
.ths-tippspiel-phase-title { margin: 1.5rem 0 .75rem; font-size: 1.15rem; }
.ths-tippspiel-group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1.25rem; align-items: start; }
.ths-tippspiel-groups.ths-tippspiel-wide { width: min(1200px, calc(100vw - 2rem)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.ths-tippspiel-groups.ths-tippspiel-wide .ths-tippspiel-group-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ths-tippspiel-card, .ths-tippspiel-match-card { background: var(--ths-bg); border: 1px solid var(--ths-border); border-radius: 12px; padding: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ths-tippspiel-group-card h3 { margin: 0 0 .75rem; }
.ths-tippspiel-team-list { margin: 0; padding-left: 1.35rem; }
.ths-tippspiel-team-list li { margin: .35rem 0; }
.ths-tippspiel-team-label { display: inline-flex; align-items: center; gap: .45rem; }
.ths-tippspiel-flag { display: inline-block; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ths-tippspiel-match-list { display: grid; gap: .75rem; }
.ths-tippspiel-match-meta { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--ths-muted); font-size: .9rem; margin-bottom: .75rem; }
.ths-tippspiel-match-meta span:not(:last-child)::after { content: '·'; margin-left: .5rem; }
.ths-tippspiel-match-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .75rem; align-items: center; }
.ths-tippspiel-team { font-weight: 700; min-width: 0; }
.ths-tippspiel-team.ths-right { text-align: right; }
.ths-tippspiel-team.ths-right .ths-tippspiel-team-label { justify-content: flex-end; }
.ths-tippspiel-score { min-width: 76px; text-align: center; border-radius: 10px; background: var(--ths-soft); padding: .45rem .6rem; }
.ths-tippspiel-score strong { display: block; font-size: 1.2rem; line-height: 1.15; }
.ths-tippspiel-score small { display: block; color: var(--ths-muted); margin-top: .15rem; }
.ths-tippspiel-placeholder { font-weight: 600; color: var(--ths-muted); }
.ths-tippspiel-extra-results { display: flex; justify-content: center; gap: .75rem; color: var(--ths-muted); font-size: .92rem; margin-top: .5rem; }
.ths-tippspiel-place { color: var(--ths-muted); font-size: .92rem; margin-top: .65rem; }
@media (max-width: 560px) {
  .ths-tippspiel-match-main { grid-template-columns: 1fr; text-align: left; }
  .ths-tippspiel-team.ths-right { text-align: left; }
  .ths-tippspiel-team.ths-right .ths-tippspiel-team-label { justify-content: flex-start; }
  .ths-tippspiel-score { width: fit-content; }
}

.ths-tippspiel-group-table-wrap { overflow-x: visible; max-width: 100%; }
.ths-tippspiel-group-table { width: 100%; border-collapse: collapse; font-size: .86rem; table-layout: auto; }
.ths-tippspiel-group-table th, .ths-tippspiel-group-table td { padding: .36rem .18rem; border-bottom: 1px solid var(--ths-border); vertical-align: middle; }
.ths-tippspiel-group-table th { text-align: center; color: var(--ths-muted); font-weight: 700; white-space: nowrap; }
.ths-tippspiel-group-table .ths-pl, .ths-tippspiel-group-table .ths-pkt, .ths-tippspiel-group-table .ths-num { width: 1.55rem; min-width: 1.55rem; text-align: center; font-weight: 700; white-space: nowrap; }
.ths-tippspiel-group-table .ths-team { width: auto; min-width: 0; text-align: left; }
.ths-tippspiel-group-table .ths-goals { width: 3.2rem; min-width: 3.2rem; text-align: center; font-weight: 700; white-space: nowrap; }
.ths-tippspiel-group-table .ths-team .ths-tippspiel-team-label { gap: .28rem; min-width: 0; }
.ths-tippspiel-group-table .ths-team .ths-tippspiel-team-label span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ths-tippspiel-group-table tr.ths-qualified td { background: rgba(70,180,80,.10); }
.ths-tippspiel-group-table tr.ths-maybe td { background: rgba(255,185,0,.08); }
.ths-status-badge { display: none; }
.ths-status-qualified { border: 1px solid rgba(70,180,80,.55); background: rgba(70,180,80,.16); }
.ths-status-maybe { border: 1px solid rgba(255,185,0,.45); background: rgba(255,185,0,.12); color: #6b5200; }

@media (max-width: 640px) {
  .ths-tippspiel-card, .ths-tippspiel-match-card { padding: .75rem; }
  .ths-tippspiel-group-table { font-size: .78rem; }
  .ths-tippspiel-group-table th, .ths-tippspiel-group-table td { padding: .3rem .12rem; }
  .ths-tippspiel-group-table .ths-pl,
  .ths-tippspiel-group-table .ths-pkt,
  .ths-tippspiel-group-table .ths-num { width: 1.25rem; min-width: 1.25rem; }
  .ths-tippspiel-group-table .ths-goals { width: 2.7rem; min-width: 2.7rem; }
  .ths-tippspiel-group-table .ths-team .ths-tippspiel-team-label { gap: .18rem; }
  .ths-tippspiel-group-table .ths-tippspiel-flag { width: 14px; height: auto; }
}

/* v0.1.35: TV-artige Spielkarten mit halbierten, nach innen gerückten Flaggen */
.ths-tippspiel-match-card-v2 { padding: 0; overflow: hidden; }
.ths-tippspiel-match-card-v2 .ths-tippspiel-match-meta-grid {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1fr) minmax(10rem, 2fr) minmax(5.5rem, 1fr);
  align-items: center;
  gap: .5rem;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--ths-border);
  color: var(--ths-muted);
  font-size: .9rem;
  font-weight: 700;
}
.ths-tippspiel-match-card-v2 .ths-match-number { text-align: left; }
.ths-tippspiel-match-card-v2 .ths-match-date { text-align: center; }
.ths-tippspiel-match-card-v2 .ths-match-group { text-align: right; }
.ths-tippspiel-match-main-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  min-height: 78px;
}
.ths-tippspiel-match-main-v2 .ths-match-flag {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 78px;
  padding: 0;
  align-self: stretch;
}
.ths-tippspiel-match-main-v2 .ths-left-flag,
.ths-tippspiel-match-main-v2 .ths-right-flag { border: 0; }
.ths-tippspiel-match-main-v2 .ths-tippspiel-match-flag-img {
  position: absolute;
  top: 50%;
  display: block;
  width: auto;
  height: 39px;
  max-width: 100%;
  object-fit: contain;
  box-shadow: none;
  background: transparent;
  border: 0;
  transform: translate(-50%, -50%);
}
.ths-tippspiel-match-main-v2 .ths-left-flag .ths-tippspiel-match-flag-img { left: 25%; }
.ths-tippspiel-match-main-v2 .ths-right-flag .ths-tippspiel-match-flag-img { left: 75%; }
.ths-tippspiel-match-main-v2 .ths-tippspiel-team {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  line-height: 1.2;
}
.ths-tippspiel-match-main-v2 .ths-tippspiel-team.ths-left { justify-content: flex-end; text-align: right; }
.ths-tippspiel-match-main-v2 .ths-tippspiel-team.ths-right { justify-content: flex-start; text-align: left; }
.ths-tippspiel-match-main-v2 .ths-tippspiel-match-team-name,
.ths-tippspiel-match-main-v2 .ths-tippspiel-placeholder {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ths-tippspiel-match-main-v2 .ths-tippspiel-score {
  align-self: center;
  min-width: 82px;
}
.ths-tippspiel-match-card-v2 .ths-tippspiel-extra-results {
  margin: 0;
  padding: .45rem .9rem 0;
}
.ths-tippspiel-match-card-v2 .ths-tippspiel-place {
  margin: 0;
  padding: .65rem .9rem .8rem;
  text-align: center;
  color: var(--ths-muted);
  border-top: 1px solid var(--ths-border);
}

@media (max-width: 640px) {
  .ths-tippspiel-match-card-v2 .ths-tippspiel-match-meta-grid {
    grid-template-columns: 1fr;
    gap: .15rem;
    text-align: center;
  }
  .ths-tippspiel-match-card-v2 .ths-match-number,
  .ths-tippspiel-match-card-v2 .ths-match-date,
  .ths-tippspiel-match-card-v2 .ths-match-group { text-align: center; }
  .ths-tippspiel-match-main-v2 {
    grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
    gap: .35rem;
    min-height: 64px;
  }
  .ths-tippspiel-match-main-v2 .ths-match-flag { min-height: 64px; }
  .ths-tippspiel-match-main-v2 .ths-tippspiel-match-flag-img { height: 32px; min-height: 0; }
  .ths-tippspiel-match-main-v2 .ths-tippspiel-team { font-size: .9rem; }
  .ths-tippspiel-match-main-v2 .ths-tippspiel-score { min-width: 62px; padding: .35rem .45rem; }
  .ths-tippspiel-match-main-v2 .ths-tippspiel-score strong { font-size: 1rem; }
}

/* v0.1.39: Erster Frontend-Tippschein */
.ths-tippspiel-tipsheet-form { margin: 0; }
.ths-tippspiel-tip-list { display: grid; gap: .75rem; }
.ths-tippspiel-tip-card .ths-match-group { font-size: .82rem; }
.ths-tippspiel-tip-card.ths-tip-open .ths-match-group { color: #1f7a1f; }
.ths-tippspiel-tip-card.ths-tip-locked { opacity: .78; }
.ths-tippspiel-tip-main {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .75rem;
  padding: 0 .9rem;
}
.ths-tippspiel-tip-side {
  display: grid;
  grid-template-columns: minmax(3rem, .35fr) minmax(0, .65fr);
  align-items: center;
  min-width: 0;
  min-height: 78px;
}
.ths-tippspiel-tip-side.ths-left-side .ths-match-flag,
.ths-tippspiel-tip-side.ths-right-side .ths-match-flag {
  min-height: 78px;
}
.ths-tippspiel-tip-side.ths-left-side .ths-tippspiel-team {
  justify-content: flex-end;
  text-align: right;
}
.ths-tippspiel-tip-side.ths-right-side {
  grid-template-columns: minmax(0, .65fr) minmax(3rem, .35fr);
}
.ths-tippspiel-tip-side.ths-right-side .ths-tippspiel-team {
  justify-content: flex-start;
  text-align: left;
}
.ths-tippspiel-tip-side .ths-tippspiel-match-team-name,
.ths-tippspiel-tip-side .ths-tippspiel-placeholder {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ths-tippspiel-tip-main .ths-tippspiel-tip-inputs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 96px;
  padding: .35rem .45rem;
  border-radius: 10px;
  background: var(--ths-soft);
  border: 1px solid var(--ths-border);
  font-weight: 800;
}
.ths-tippspiel-tip-main .ths-tippspiel-tip-inputs input {
  width: 2.65rem;
  min-width: 0;
  box-sizing: border-box;
  padding: .35rem .25rem;
  border: 1px solid var(--ths-border);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  background: #fff;
}
.ths-tippspiel-tip-main .ths-tippspiel-tip-inputs input:disabled {
  color: var(--ths-muted);
  background: #f6f7f7;
}
.ths-tippspiel-tip-main .ths-tippspiel-tip-inputs span { color: var(--ths-muted); }
.ths-tippspiel-tip-note {
  margin: 0;
  padding: .45rem .9rem;
  border-top: 1px solid var(--ths-border);
  text-align: center;
  color: var(--ths-muted);
  font-size: .9rem;
}
.ths-tippspiel-tipsheet-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  padding: .75rem;
  border: 1px solid var(--ths-border);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.ths-tippspiel-tipsheet-actions button {
  padding: .75rem 1.2rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  background: #111827;
  color: #fff;
}


/* v0.1.42: Sofort sichtbarer Speichern-Button nach Änderungen */
.ths-tippspiel-sticky-save {
  position: fixed;
  left: 50%;
  bottom: .85rem;
  z-index: 9999;
  width: min(720px, calc(100% - 1.5rem));
  transform: translate(-50%, calc(100% + 1.5rem));
  display: flex;
  justify-content: center;
  padding: .75rem;
  border: 1px solid var(--ths-border);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
}
.ths-tippspiel-tipsheet-form.is-dirty {
  padding-bottom: 5.5rem;
}
.ths-tippspiel-tipsheet-form.is-dirty .ths-tippspiel-sticky-save {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.ths-tippspiel-sticky-save button {
  width: min(100%, 420px);
  padding: .85rem 1.2rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  font-size: 1rem;
  background: #111827;
  color: #fff;
}

@media (max-width: 640px) {
  .ths-tippspiel-tip-main { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .4rem; padding: 0 .5rem; }
  .ths-tippspiel-tip-side { grid-template-columns: minmax(2.25rem, .28fr) minmax(0, .72fr); min-height: 64px; }
  .ths-tippspiel-tip-side.ths-right-side { grid-template-columns: minmax(0, .72fr) minmax(2.25rem, .28fr); }
  .ths-tippspiel-tip-side.ths-left-side .ths-match-flag,
  .ths-tippspiel-tip-side.ths-right-side .ths-match-flag { min-height: 64px; }
  .ths-tippspiel-tip-main .ths-tippspiel-tip-inputs { min-width: 82px; gap: .25rem; padding: .3rem; }
  .ths-tippspiel-tip-main .ths-tippspiel-tip-inputs input { width: 2.25rem; font-size: .95rem; }
  .ths-tippspiel-sticky-save { bottom: .35rem; width: min(100% - .75rem, 720px); padding: .55rem; }
  .ths-tippspiel-sticky-save button { font-size: .95rem; padding: .75rem 1rem; }
}

/* v0.1.40: Meistertipp vor dem Tippschein */
.ths-tippspiel-champion-box {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--ths-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ths-tippspiel-champion-box h3 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}
.ths-tippspiel-champion-box p {
  margin: .25rem 0 .75rem;
  color: var(--ths-muted);
}
.ths-tippspiel-champion-select-label {
  display: block;
  margin: .85rem 0 .35rem;
  font-weight: 800;
}
.ths-tippspiel-champion-box select {
  width: min(100%, 28rem);
  box-sizing: border-box;
  padding: .65rem .75rem;
  border: 1px solid var(--ths-border);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
}
.ths-tippspiel-champion-current {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .85rem;
  padding: .55rem .7rem;
  border-radius: 999px;
  background: var(--ths-soft);
  font-weight: 800;
}
.ths-tippspiel-champion-warning {
  color: #8a4b00 !important;
  font-weight: 700;
}
.ths-tippspiel-champion-box.ths-champion-locked {
  background: #fafafa;
}

/* v0.1.44: Einklappbare Turnierphasen mit sichtbarem Klappsymbol */
.ths-tippspiel-tip-phase {
  margin: 1.25rem 0 0;
}
.ths-tippspiel-tip-phase .ths-tippspiel-phase-title {
  margin: 0 0 .75rem;
}
.ths-tippspiel-phase-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .95rem;
  border: 1px solid var(--ths-border);
  border-radius: 14px;
  background: #fff;
  color: #111827 !important;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  appearance: none;
  -webkit-appearance: none;
}
.ths-tippspiel-phase-toggle span:first-child {
  color: #111827 !important;
}
.ths-tippspiel-phase-toggle:hover,
.ths-tippspiel-phase-toggle:focus-visible {
  background: var(--ths-soft);
  color: #111827 !important;
}
.ths-tippspiel-phase-toggle-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 1px solid var(--ths-border);
  background: #fff;
  color: #111827 !important;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  transition: transform .16s ease, background .16s ease;
}
.ths-tippspiel-phase-toggle-icon::before {
  content: "−";
  transform: translateY(-1px);
}
.ths-tippspiel-tip-phase:not(.is-open) .ths-tippspiel-phase-toggle-icon::before {
  content: "+";
  transform: translateY(-1px);
}
.ths-tippspiel-phase-toggle:hover .ths-tippspiel-phase-toggle-icon,
.ths-tippspiel-phase-toggle:focus-visible .ths-tippspiel-phase-toggle-icon {
  background: var(--ths-soft);
}
.ths-tippspiel-phase-content[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .ths-tippspiel-phase-toggle { padding: .65rem .75rem; }
}


.ths-tippspiel-ranking-table-wrap {
    overflow-x: auto;
}

.ths-tippspiel-ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.ths-tippspiel-ranking-table th,
.ths-tippspiel-ranking-table td {
    padding: .75rem .9rem;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    text-align: left;
}

.ths-tippspiel-ranking-table th {
    font-weight: 700;
    color: #111827;
    background: #f8fafc;
}

.ths-tippspiel-ranking-table .ths-rank,
.ths-tippspiel-ranking-table .ths-points,
.ths-tippspiel-ranking-table .ths-scored {
    white-space: nowrap;
}


/* v0.1.48: Punktestand und ausgewertete Tipps im Tippschein */
.ths-tippspiel-points-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .7rem;
  margin: 0 0 1.25rem;
  padding: .85rem 1rem;
  border: 1px solid var(--ths-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ths-tippspiel-points-summary strong {
  font-size: 1.05rem;
  color: #111827;
}
.ths-tippspiel-points-summary span {
  color: var(--ths-muted);
  font-size: .95rem;
}
.ths-tippspiel-tip-result-note {
  display: grid;
  gap: .2rem;
  color: #111827;
}
.ths-tippspiel-point-breakdown {
  color: var(--ths-muted);
}

/* v0.1.49: Punktetabelle mit Favoriten, Filter und Sortierung */
.ths-tippspiel-ranking-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem .9rem;
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--ths-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ths-tippspiel-ranking-controls label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  color: #111827;
}
.ths-tippspiel-ranking-controls select {
  padding: .45rem .6rem;
  border: 1px solid var(--ths-border);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-weight: 700;
}
.ths-tippspiel-ranking-controls button,
.ths-tippspiel-ranking-actions button {
  padding: .55rem .9rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  background: #111827;
  color: #fff;
}
.ths-tippspiel-ranking-reset {
  color: var(--ths-muted);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ths-tippspiel-ranking-table tr.is-current-user td {
  background: rgba(17, 24, 39, .045);
}
.ths-tippspiel-ranking-table tr.is-favorite td {
  background-image: linear-gradient(90deg, rgba(255, 193, 7, .12), rgba(255,255,255,0));
}
.ths-tippspiel-ranking-table .ths-favorite {
  width: 5.5rem;
  text-align: center;
  white-space: nowrap;
}
.ths-favorite-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ths-favorite-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ths-favorite-toggle span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--ths-border);
  background: #fff;
  color: #9ca3af;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .12s ease, color .12s ease, background .12s ease;
}
.ths-favorite-toggle input:checked + span[aria-hidden="true"] {
  color: #b45309;
  background: #fff7ed;
  border-color: rgba(180,83,9,.35);
}
.ths-favorite-toggle:focus-within span[aria-hidden="true"],
.ths-favorite-toggle:hover span[aria-hidden="true"] {
  transform: scale(1.05);
}
.ths-tippspiel-ranking-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: .9rem;
}
.ths-tippspiel-ranking-login-note {
  margin: .9rem 0 0;
  color: var(--ths-muted);
}

@media (max-width: 640px) {
  .ths-tippspiel-ranking-controls { align-items: stretch; }
  .ths-tippspiel-ranking-controls label,
  .ths-tippspiel-ranking-controls button,
  .ths-tippspiel-ranking-reset { width: 100%; }
  .ths-tippspiel-ranking-controls select { flex: 1; }
  .ths-tippspiel-ranking-table th,
  .ths-tippspiel-ranking-table td { padding: .58rem .55rem; }
}

/* v0.1.50: Erweiterte Punktetabelle und öffentlicher Tippschein */
.ths-tippspiel-ranking-table .ths-points-detail {
  text-align: right;
  white-space: nowrap;
}
.ths-tippspiel-ranking-tipper-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ths-tippspiel-ranking-back {
  display: inline-flex;
  margin-bottom: .75rem;
  color: var(--ths-muted);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ths-tippspiel-tipper-detail h3 {
  margin: 0 0 1rem;
  color: #111827;
}
.ths-tippspiel-public-tip-list {
  display: grid;
  gap: 1rem;
}
.ths-tippspiel-public-tip-score {
  justify-self: center;
  align-self: center;
  min-width: 4.2rem;
  padding: .45rem .65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ths-border);
  text-align: center;
  color: #111827;
}
.ths-tippspiel-public-tip-score strong {
  font-size: 1.05rem;
}

@media (max-width: 760px) {
  .ths-tippspiel-ranking-table {
    min-width: 760px;
  }
}

/* v0.1.52: Meistertipp in Rangliste und öffentlicher Tippschein-Ansicht */
.ths-tippspiel-ranking-table td.ths-champion,
.ths-tippspiel-ranking-table th:nth-child(3) {
    text-align: center;
    white-space: nowrap;
}
.ths-tippspiel-champion-flag-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.ths-tippspiel-champion-flag {
    display: inline-block;
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.ths-tippspiel-champion-empty {
    color: #777;
}
.ths-tippspiel-champion-code {
    display: inline-block;
    font-size: .8rem;
    line-height: 1;
    padding: .18rem .32rem;
    border-radius: .35rem;
    background: rgba(0,0,0,.06);
}
.ths-tippspiel-detail-champion {
    font-size: .92em;
    font-weight: 400;
    color: #555;
}


/* v0.1.53: Flagge statt Kürzel in öffentlicher Meistertipp-Überschrift */
.ths-tippspiel-detail-champion {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    vertical-align: baseline;
}
.ths-tippspiel-detail-champion-flag-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.ths-tippspiel-detail-champion-flag {
    display: inline-block;
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}


/* v0.1.56: Mobile Tippschein als vertikale Team-Tipp-Team-Kachel */
@media (max-width: 560px) {
  .ths-tippspiel-tip-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: .55rem;
    align-items: stretch;
    padding: .65rem .75rem;
  }
  .ths-tippspiel-tip-side,
  .ths-tippspiel-tip-side.ths-right-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    min-height: 0;
    width: 100%;
    text-align: left;
  }
  .ths-tippspiel-tip-side.ths-left-side { order: 1; }
  .ths-tippspiel-tip-main .ths-tippspiel-tip-inputs {
    order: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: .5rem;
    padding: .55rem .65rem;
  }
  .ths-tippspiel-tip-side.ths-right-side { order: 3; }
  .ths-tippspiel-tip-side.ths-left-side .ths-match-flag,
  .ths-tippspiel-tip-side.ths-right-side .ths-match-flag {
    order: 1;
    min-height: 0;
    height: auto;
    flex: 0 0 auto;
  }
  .ths-tippspiel-tip-side.ths-left-side .ths-tippspiel-team,
  .ths-tippspiel-tip-side.ths-right-side .ths-tippspiel-team {
    order: 2;
    justify-content: flex-start;
    text-align: left;
    width: auto;
    min-width: 0;
    font-size: .96rem;
  }
  .ths-tippspiel-tip-side .ths-tippspiel-match-team-name,
  .ths-tippspiel-tip-side .ths-tippspiel-placeholder {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    hyphens: auto;
  }
  .ths-tippspiel-tip-main .ths-tippspiel-match-flag-img {
    height: 26px;
  }
  .ths-tippspiel-tip-main .ths-tippspiel-tip-inputs input {
    width: 100%;
    min-width: 0;
    padding: .62rem .35rem;
    font-size: 1.1rem;
  }
}

/* v0.1.57: Handy-Layout im Tippschein: Flaggen sichtbar und Teamzeilen zentriert */
@media (max-width: 560px) {
  .ths-tippspiel-tip-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: stretch;
    justify-items: stretch;
  }

  .ths-tippspiel-tip-side,
  .ths-tippspiel-tip-side.ths-left-side,
  .ths-tippspiel-tip-side.ths-right-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 0;
    text-align: center;
  }

  .ths-tippspiel-tip-side.ths-left-side { order: 1; }
  .ths-tippspiel-tip-main .ths-tippspiel-tip-inputs { order: 2; }
  .ths-tippspiel-tip-side.ths-right-side { order: 3; }

  .ths-tippspiel-tip-side.ths-left-side .ths-match-flag,
  .ths-tippspiel-tip-side.ths-right-side .ths-match-flag {
    order: 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 0;
    height: auto;
    align-self: auto;
  }

  .ths-tippspiel-tip-side.ths-left-side .ths-tippspiel-team,
  .ths-tippspiel-tip-side.ths-right-side .ths-tippspiel-team,
  .ths-tippspiel-tip-side .ths-tippspiel-team.ths-left,
  .ths-tippspiel-tip-side .ths-tippspiel-team.ths-right {
    order: 2;
    display: inline-flex;
    justify-content: center;
    text-align: center;
    width: auto;
    max-width: calc(100% - 42px);
    min-width: 0;
  }

  .ths-tippspiel-tip-main .ths-tippspiel-match-flag-img,
  .ths-tippspiel-tip-main .ths-left-flag .ths-tippspiel-match-flag-img,
  .ths-tippspiel-tip-main .ths-right-flag .ths-tippspiel-match-flag-img {
    position: static;
    display: inline-block;
    height: 28px;
    width: auto;
    max-width: 36px;
    transform: none;
    object-fit: contain;
  }

  .ths-tippspiel-tip-main .ths-tippspiel-tip-inputs {
    width: 100%;
    max-width: none;
  }
}

/* v0.1.58: Mobile Tippschein kompakt: Teams in einer Zeile, Tipp darunter über volle Breite */
@media (max-width: 560px) {
  .ths-tippspiel-tip-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: .35rem;
    row-gap: .55rem;
    align-items: center;
    justify-items: stretch;
    padding: .65rem .75rem;
  }

  .ths-tippspiel-tip-main::before {
    content: "-";
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    color: var(--ths-muted);
    font-weight: 800;
    line-height: 1;
  }

  .ths-tippspiel-tip-side,
  .ths-tippspiel-tip-side.ths-left-side,
  .ths-tippspiel-tip-side.ths-right-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    min-height: 0;
    width: 100%;
    gap: .35rem;
  }

  .ths-tippspiel-tip-side.ths-left-side {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-end;
    text-align: right;
  }

  .ths-tippspiel-tip-side.ths-right-side {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-start;
    text-align: left;
  }

  .ths-tippspiel-tip-main .ths-tippspiel-tip-inputs {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    gap: .55rem;
    padding: .58rem .65rem;
  }

  .ths-tippspiel-tip-side.ths-left-side .ths-match-flag {
    order: 1;
  }

  .ths-tippspiel-tip-side.ths-left-side .ths-tippspiel-team {
    order: 2;
    justify-content: flex-start;
    text-align: left;
  }

  .ths-tippspiel-tip-side.ths-right-side .ths-tippspiel-team {
    order: 1;
    justify-content: flex-end;
    text-align: right;
  }

  .ths-tippspiel-tip-side.ths-right-side .ths-match-flag {
    order: 2;
  }

  .ths-tippspiel-tip-side.ths-left-side .ths-match-flag,
  .ths-tippspiel-tip-side.ths-right-side .ths-match-flag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 0;
    height: auto;
    align-self: auto;
  }

  .ths-tippspiel-tip-side.ths-left-side .ths-tippspiel-team,
  .ths-tippspiel-tip-side.ths-right-side .ths-tippspiel-team,
  .ths-tippspiel-tip-side .ths-tippspiel-team.ths-left,
  .ths-tippspiel-tip-side .ths-tippspiel-team.ths-right {
    display: inline-flex;
    width: auto;
    max-width: calc(100% - 34px);
    min-width: 0;
    font-size: .95rem;
    line-height: 1.15;
  }

  .ths-tippspiel-tip-side .ths-tippspiel-match-team-name,
  .ths-tippspiel-tip-side .ths-tippspiel-placeholder {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    hyphens: auto;
  }

  .ths-tippspiel-tip-main .ths-tippspiel-match-flag-img,
  .ths-tippspiel-tip-main .ths-left-flag .ths-tippspiel-match-flag-img,
  .ths-tippspiel-tip-main .ths-right-flag .ths-tippspiel-match-flag-img {
    position: static;
    display: inline-block;
    height: 24px;
    width: auto;
    max-width: 32px;
    transform: none;
    object-fit: contain;
  }

  .ths-tippspiel-tip-main .ths-tippspiel-tip-inputs input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: .7rem .35rem;
    font-size: 1.15rem;
  }
}


/* v0.1.59: Mobile Teamzeile bündig zum Tipp-Input-Rahmen ausrichten */
@media (max-width: 560px) {
  .ths-tippspiel-tip-main {
    grid-template-columns: .65rem minmax(0, 1fr) auto minmax(0, 1fr) .65rem;
  }

  .ths-tippspiel-tip-main::before {
    grid-column: 3;
  }

  .ths-tippspiel-tip-side.ths-left-side {
    grid-column: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: .35rem;
  }

  .ths-tippspiel-tip-side.ths-right-side {
    grid-column: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    gap: .35rem;
  }

  .ths-tippspiel-tip-side.ths-left-side .ths-match-flag {
    grid-column: 1;
    justify-self: start;
  }

  .ths-tippspiel-tip-side.ths-left-side .ths-tippspiel-team {
    grid-column: 2;
    justify-self: start;
    justify-content: flex-start;
    text-align: left;
    max-width: 100%;
  }

  .ths-tippspiel-tip-side.ths-right-side .ths-tippspiel-team {
    grid-column: 1;
    justify-self: end;
    justify-content: flex-end;
    text-align: right;
    max-width: 100%;
  }

  .ths-tippspiel-tip-side.ths-right-side .ths-match-flag {
    grid-column: 2;
    justify-self: end;
  }

  .ths-tippspiel-tip-side.ths-left-side .ths-tippspiel-team,
  .ths-tippspiel-tip-side.ths-right-side .ths-tippspiel-team,
  .ths-tippspiel-tip-side .ths-tippspiel-team.ths-left,
  .ths-tippspiel-tip-side .ths-tippspiel-team.ths-right {
    width: 100%;
    min-width: 0;
  }

  .ths-tippspiel-tip-side .ths-tippspiel-match-team-name,
  .ths-tippspiel-tip-side .ths-tippspiel-placeholder {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* v0.1.69: Frontend-Leerzustände und mobile Tabellen-Politur */
.ths-tippspiel-ranking-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ths-tippspiel-ranking-table th,
.ths-tippspiel-ranking-table td {
  white-space: nowrap;
}
.ths-tippspiel-ranking p,
.ths-tippspiel-section p {
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .ths-tippspiel-ranking-controls {
    gap: .6rem;
  }
  .ths-favorite-toggle {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .ths-tippspiel-sticky-save {
    bottom: max(.75rem, env(safe-area-inset-bottom));
  }
  .ths-tippspiel-tippschein-form {
    padding-bottom: 5rem;
  }
}

/* v0.1.72: Änderungen im Tippschein verwerfen */
.ths-tippspiel-sticky-save {
  gap: .65rem;
  align-items: center;
}
.ths-tippspiel-sticky-save button {
  flex: 1 1 0;
}
.ths-tippspiel-sticky-save .ths-tippspiel-discard-changes,
.ths-tippspiel-tipsheet-actions .ths-tippspiel-discard-changes {
  background: #fee2e2 !important;
  color: #7f1d1d !important;
  border: 1px solid #fca5a5 !important;
}
.ths-tippspiel-sticky-save .ths-tippspiel-discard-changes:hover,
.ths-tippspiel-tipsheet-actions .ths-tippspiel-discard-changes:hover {
  background: #fecaca !important;
  color: #7f1d1d !important;
}
.ths-tippspiel-tip-main .ths-tippspiel-tip-inputs input::-webkit-outer-spin-button,
.ths-tippspiel-tip-main .ths-tippspiel-tip-inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ths-tippspiel-tip-main .ths-tippspiel-tip-inputs input[type=number] {
  -moz-appearance: textfield;
}
.ths-tippspiel-tipsheet-actions {
  gap: .65rem;
  flex-wrap: wrap;
}
.ths-tippspiel-tipsheet-actions .ths-tippspiel-discard-inline {
  display: none;
}
.ths-tippspiel-tipsheet-form.is-dirty .ths-tippspiel-tipsheet-actions .ths-tippspiel-discard-inline {
  display: inline-flex;
}
@media (max-width: 560px) {
  .ths-tippspiel-sticky-save {
    flex-direction: column-reverse;
  }
  .ths-tippspiel-sticky-save button {
    width: 100%;
  }
}

/* v0.1.74: Punktetabelle Reihenfolge und mobile Detailzeile */
.ths-tippspiel-ranking-table .ths-mobile-details {
  display: none;
}
.ths-tippspiel-ranking-table td.ths-champion,
.ths-tippspiel-ranking-table th:nth-child(4) {
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ths-tippspiel-ranking-table-wrap {
    overflow-x: visible;
  }
  .ths-tippspiel-ranking-table {
    min-width: 0 !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .65rem;
    background: transparent;
    box-shadow: none;
  }
  .ths-tippspiel-ranking-table thead {
    display: none;
  }
  .ths-tippspiel-ranking-table tbody,
  .ths-tippspiel-ranking-table tr,
  .ths-tippspiel-ranking-table td {
    display: block;
  }
  .ths-tippspiel-ranking-table tr {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .25rem .45rem;
    padding: .7rem .8rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
  }
  .ths-tippspiel-ranking-table tr.is-current-user,
  .ths-tippspiel-ranking-table tr.is-favorite {
    background: #fff;
  }
  .ths-tippspiel-ranking-table tr.is-current-user td,
  .ths-tippspiel-ranking-table tr.is-favorite td {
    background: transparent;
    background-image: none;
  }
  .ths-tippspiel-ranking-table tr.is-favorite {
    background-image: linear-gradient(90deg, rgba(255, 193, 7, .12), rgba(255,255,255,0));
  }
  .ths-tippspiel-ranking-table td {
    padding: 0;
    border-bottom: 0;
    white-space: normal;
  }
  .ths-tippspiel-ranking-table .ths-rank {
    grid-column: 1;
    grid-row: 1;
    min-width: 2.1rem;
    font-weight: 800;
    color: #111827;
  }
  .ths-tippspiel-ranking-table .ths-name {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ths-tippspiel-ranking-table .ths-points {
    grid-column: 4;
    grid-row: 1;
    text-align: right;
    font-size: 1.05rem;
  }
  .ths-tippspiel-ranking-table .ths-champion,
  .ths-tippspiel-ranking-table .ths-points-detail,
  .ths-tippspiel-ranking-table .ths-scored {
    display: none;
  }
  .ths-tippspiel-ranking-table .ths-mobile-details {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: .25rem .55rem;
    align-items: center;
    color: var(--ths-muted);
    font-size: .82rem;
    line-height: 1.25;
  }
  .ths-tippspiel-ranking-table .ths-mobile-details b {
    color: #374151;
    font-weight: 800;
  }
  .ths-tippspiel-ranking-table .ths-mobile-details .ths-tippspiel-champion-flag {
    width: 17px;
  }
  .ths-tippspiel-ranking-table .ths-favorite {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    text-align: center;
    justify-self: center;
    align-self: center;
  }
  .ths-tippspiel-ranking-table .ths-favorite .ths-favorite-toggle span[aria-hidden="true"] {
    width: 2rem;
    height: 2rem;
    font-size: 1.12rem;
  }
}

/* v0.1.75: Favoritenstern mobil vor dem Tippernamen */



/* v0.1.76: Mobile Ranking ohne Einzelelement-Rahmen, Detailzeile zentriert */
@media (max-width: 640px) {
  .ths-tippspiel-ranking-table td,
  .ths-tippspiel-ranking-table .ths-rank,
  .ths-tippspiel-ranking-table .ths-name,
  .ths-tippspiel-ranking-table .ths-points,
  .ths-tippspiel-ranking-table .ths-favorite,
  .ths-tippspiel-ranking-table .ths-mobile-details {
    border: 0 !important;
    outline: 0;
    box-shadow: none !important;
    background: transparent !important;
  }

  .ths-tippspiel-ranking-table .ths-mobile-details {
    justify-content: center;
    text-align: center;
    justify-self: stretch;
    padding-top: .18rem;
  }

  .ths-tippspiel-ranking-table .ths-mobile-details > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .2rem;
  }

  .ths-tippspiel-ranking-table .ths-favorite .ths-favorite-toggle span[aria-hidden="true"] {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
}


/* v0.1.77: Ranking-Kartenlayout auf Desktop übernehmen, Punkte größer */
.ths-tippspiel-ranking-table-wrap {
  overflow-x: visible;
}
.ths-tippspiel-ranking-table {
  min-width: 0 !important;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 .72rem;
  background: transparent;
  box-shadow: none;
}
.ths-tippspiel-ranking-table thead {
  display: none;
}
.ths-tippspiel-ranking-table tbody,
.ths-tippspiel-ranking-table tr,
.ths-tippspiel-ranking-table td {
  display: block;
}
.ths-tippspiel-ranking-table tr {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .28rem .55rem;
  padding: .82rem 1rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .065);
}
.ths-tippspiel-ranking-table tr.is-current-user,
.ths-tippspiel-ranking-table tr.is-favorite {
  background: #fff;
}
.ths-tippspiel-ranking-table tr.is-favorite {
  background-image: linear-gradient(90deg, rgba(255, 193, 7, .12), rgba(255,255,255,0));
}
.ths-tippspiel-ranking-table tr.is-current-user td,
.ths-tippspiel-ranking-table tr.is-favorite td {
  background: transparent !important;
  background-image: none !important;
}
.ths-tippspiel-ranking-table td {
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  outline: 0;
  box-shadow: none !important;
  background: transparent !important;
  white-space: normal;
}
.ths-tippspiel-ranking-table .ths-rank {
  grid-column: 1;
  grid-row: 1;
  min-width: 2.4rem;
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 850;
  color: #111827;
  text-align: left;
}
.ths-tippspiel-ranking-table .ths-favorite {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  text-align: center;
  justify-self: center;
  align-self: center;
}
.ths-tippspiel-ranking-table .ths-name {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.05rem;
}
.ths-tippspiel-ranking-table .ths-points {
  grid-column: 4;
  grid-row: 1;
  text-align: right;
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 850;
  color: #111827;
}
.ths-tippspiel-ranking-table .ths-champion,
.ths-tippspiel-ranking-table .ths-points-detail,
.ths-tippspiel-ranking-table .ths-scored {
  display: none;
}
.ths-tippspiel-ranking-table .ths-mobile-details {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  flex-wrap: wrap;
  gap: .28rem .7rem;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  text-align: center;
  padding-top: .22rem !important;
  color: var(--ths-muted);
  font-size: .86rem;
  line-height: 1.25;
}
.ths-tippspiel-ranking-table .ths-mobile-details > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .22rem;
}
.ths-tippspiel-ranking-table .ths-mobile-details b {
  color: #374151;
  font-weight: 800;
}
.ths-tippspiel-ranking-table .ths-mobile-details .ths-tippspiel-champion-flag {
  width: 18px;
}
.ths-tippspiel-ranking-table .ths-favorite .ths-favorite-toggle span[aria-hidden="true"] {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  width: 2.05rem;
  height: 2.05rem;
  font-size: 1.16rem;
}
@media (max-width: 640px) {
  .ths-tippspiel-ranking-table tr {
    padding: .72rem .82rem;
    border-radius: 14px;
  }
  .ths-tippspiel-ranking-table .ths-rank,
  .ths-tippspiel-ranking-table .ths-points {
    font-size: 1.2rem;
  }
  .ths-tippspiel-ranking-table .ths-name {
    font-size: 1rem;
  }
  .ths-tippspiel-ranking-table .ths-mobile-details {
    font-size: .82rem;
    gap: .25rem .55rem;
  }
}

/* v0.1.81: Einklappbare Gruppen und Spielplan-Phasen */
.ths-tippspiel-spielplan .ths-tippspiel-group-card .ths-tippspiel-group-toggle-title,
.ths-tippspiel-matches .ths-tippspiel-schedule-phase .ths-tippspiel-phase-title {
  margin: 0 0 .75rem;
}
.ths-tippspiel-spielplan .ths-tippspiel-group-card .ths-tippspiel-phase-toggle {
  border-radius: 12px;
  box-shadow: none;
}
.ths-tippspiel-schedule-phase {
  margin: 1.25rem 0 0;
}
.ths-tippspiel-group-content[hidden],
.ths-tippspiel-schedule-phase .ths-tippspiel-phase-content[hidden] {
  display: none !important;
}
[data-ths-collapsible-phase]:not(.is-open) .ths-tippspiel-phase-toggle-icon::before {
  content: "+";
  transform: translateY(-1px);
}
[data-ths-collapsible-phase].is-open .ths-tippspiel-phase-toggle-icon::before {
  content: "−";
  transform: translateY(-1px);
}


/* v0.1.82: globale Klappsteuerung und Gruppenbereich als ein Block */
.ths-tippspiel-collapse-all-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  margin: 0 0 1rem;
}
.ths-tippspiel-collapse-label {
  margin-right: auto;
  font-weight: 800;
  color: #374151;
}
.ths-tippspiel-collapse-all-controls button {
  border: 1px solid var(--ths-border);
  border-radius: 999px;
  background: #fff;
  color: #111827 !important;
  padding: .45rem .8rem;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.ths-tippspiel-collapse-all-controls button:hover,
.ths-tippspiel-collapse-all-controls button:focus-visible {
  background: var(--ths-soft);
}
.ths-tippspiel-groups-section > .ths-tippspiel-groups-title {
  margin: 0 0 .9rem;
}
.ths-tippspiel-spielplan .ths-tippspiel-group-card .ths-tippspiel-phase-toggle {
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
@media (max-width: 640px) {
  .ths-tippspiel-collapse-all-controls {
    justify-content: center;
  }
  .ths-tippspiel-collapse-label {
    width: 100%;
    margin-right: 0;
    text-align: center;
  }
}
