/*
views/mobile/tippabgabe/index.php
*/

.ts-mobile-match {
  border-radius: 14px;
}

.ts-mobile-match input[type="number"] {
  font-size: 1.2rem;
}

.sticky-save {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 10px;
}
.ts-live-points {
  font-size: 0.75rem;
  min-width: 28px;
  text-align: center;
}

.ts-live-score {
  font-weight: 600;
}
.ts-team-block {
  position: relative;
  overflow: hidden;
}

.ts-rank-bg {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  font-weight: 800;
  color: #000;
  opacity: 0.06;              /* ganz weich */
  pointer-events: none;
  z-index: 0;
}

.ts-team-block img,
.ts-team-block .fw-semibold {
  position: relative;
  z-index: 2;                 /* liegt über der Zahl */
}
.ts-team-logo {
  height: 34px;
}

.ts-rank-side {
  font-size: 0.9rem;
  font-weight: 700;
  color: #6c757d;
  min-width: 28px;
  text-align: center;
}

.ts-rank-left {
  text-align: right;
}

.ts-rank-right {
  text-align: left;
}
.ts-odds-row {
  font-size: 0.8rem;
  font-weight: 500;
}

.ts-odds-row span {
  min-width: 40px;
  text-align: center;
}

.ts-progress-wrap {
    --progress: 0;
    --c: #ff3b3b;

    border: 3px solid transparent;
    border-radius: 14px;

    background:
        linear-gradient(#fff, #fff) padding-box,
        conic-gradient(
            from 0deg,
            var(--c) calc(var(--progress) * 1%),
            transparent 0
        ) border-box;

    transition: background 0.2s linear;
    position: relative;
}

.ts-progress-wrap.is-live {
    box-shadow: 0 0 12px rgba(255,59,59,0.4);
}

.ts-progress-wrap.is-halftime {
    --c: #ffc107;
}

/* innere Card */
.ts-progress-wrap .card {
    border: none !important;
    border-radius: 11px;
    background: #fff;
    margin-bottom: 0 !important;
}

.ts-progress-wrap.is-live .card {
    background: rgba(255, 59, 59, 0.05);
}

/* ================= JOKER BAR ================= */
.ts-joker-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.ts-joker-main {
  border-radius: 10px;
}

/* Aktionen rechts */
.ts-joker-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: all 0.2s ease;
}

.ts-joker-bar.is-active .ts-joker-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ts-joker-confirm,
.ts-joker-cancel {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.ts-joker-confirm {
  background: #d4edda;
  color: #2e7d32;
}

.ts-joker-cancel {
  background: #f8d7da;
  color: #c62828;
}

.ts-joker-confirm:hover {
  background: #c8e6c9;
}

.ts-joker-cancel:hover {
  background: #ef9a9a;
}

/* ❌ Mobile überschreibt das alte Verhalten */
.ts-mobile-match.joker-enabled input[type="number"] {
  background: #f8f9fa;
  border: 1px solid #ced4da;
  box-shadow: none;
}

/* ✅ Edit-Modus (Mobile) */
.ts-mobile-match input.joker-editing {
  background: #fffef7;
  border: 2px solid #d4af37;
  box-shadow: 0 0 4px rgba(212,175,55,0.3);
}

.ts-mobile-match .joker-btn {
  font-weight: 500;
  padding: 6px 10px;
}

/* 🔥 Mobile Joker-Button entschärfen */
.ts-mobile-match .joker-btn.is-active {
  background: #fffbe6 !important;
  border: 1px solid #d4af37 !important;
  color: #6b5a00 !important;
  box-shadow: none !important;
}

.ts-mobile-match .joker-btn:active {
  transform: scale(0.97);
}