/**
 * Tonbala rulet — çip görünümü (european-roulette-pro Chip.tsx renkleriyle uyumlu).
 * RoulettePage chunk + ChipList / masa .chip bileşenleri için.
 */

:root {
  --tb-chip-gold: #d4af37;
}

/* ─── Alt çip seçici (ChipList): img yer tutucu, görünüm ::before ─── */
/* ─── Alt çip seçici (ChipList) ─── */
/* Renk doğrudan li üzerinde: display:grid ile ::before::background çakışmasını önler */
.roulette-chips-list li {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 56px !important;
  height: 56px !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
  list-style: none !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.roulette-chips-list li img {
  position: absolute !important;
  display: block !important;
  width: 56px !important;
  height: 56px !important;
  top: 0 !important;
  left: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Dashed iç halka — ::before artık sadece dekoratif */
.roulette-chips-list li::before {
  content: "" !important;
  position: absolute !important;
  inset: 4px !important;
  border-radius: 50% !important;
  border: 1.5px dashed rgba(255, 255, 255, 0.35) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.roulette-chips-list li::after {
  display: none !important;
}

/* ─── Renkli çipler ─── */
.roulette-chips-list li[data-chip-value="10"] {
  background: linear-gradient(145deg, #60a5fa 0%, #1d4ed8 100%) !important;
  border-color: rgba(191, 219, 254, 0.5) !important;
}

.roulette-chips-list li[data-chip-value="25"] {
  background: linear-gradient(145deg, #34d399 0%, #047857 100%) !important;
  border-color: rgba(167, 243, 208, 0.5) !important;
}

.roulette-chips-list li[data-chip-value="50"] {
  background: linear-gradient(145deg, #fb923c 0%, #c2410c 100%) !important;
  border-color: rgba(254, 215, 170, 0.5) !important;
}

.roulette-chips-list li[data-chip-value="100"] {
  background: linear-gradient(145deg, #52525b 0%, #09090b 100%) !important;
  border-color: rgba(212, 212, 216, 0.4) !important;
}

.roulette-chips-list li[data-chip-value="250"] {
  background: linear-gradient(145deg, #f43f5e 0%, #881337 100%) !important;
  border-color: rgba(254, 205, 211, 0.5) !important;
}

/* ─── Küçük değer çipleri: her biri farklı renk ─── */
/* 0.10 → Gümüş/Silver */
.roulette-chips-list li[data-chip-value="0.10"] {
  background: linear-gradient(145deg, #e2e8f0 0%, #94a3b8 45%, #475569 100%) !important;
  border-color: rgba(226, 232, 240, 0.6) !important;
}

/* 0.25 → Rose/Pembe */
.roulette-chips-list li[data-chip-value="0.25"] {
  background: linear-gradient(145deg, #fb7185 0%, #e11d48 55%, #9f1239 100%) !important;
  border-color: rgba(253, 164, 175, 0.55) !important;
}

/* 0.50 → Teal/Turkuaz */
.roulette-chips-list li[data-chip-value="0.50"] {
  background: linear-gradient(145deg, #2dd4bf 0%, #0d9488 55%, #115e59 100%) !important;
  border-color: rgba(94, 234, 212, 0.55) !important;
}

/* 1 → Kırmızı */
.roulette-chips-list li[data-chip-value="1"] {
  background: linear-gradient(145deg, #f87171 0%, #dc2626 55%, #991b1b 100%) !important;
  border-color: rgba(252, 165, 165, 0.55) !important;
}

/* 5 → Mor/Violet */
.roulette-chips-list li[data-chip-value="5"] {
  background: linear-gradient(145deg, #c084fc 0%, #9333ea 55%, #581c87 100%) !important;
  border-color: rgba(192, 132, 252, 0.55) !important;
}

/* ─── Seçili çip (altın halka) ─── */
.roulette-chips-list li.active {
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.9),
    0 8px 24px rgba(212, 175, 55, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.55) !important;
  border-color: var(--tb-chip-gold) !important;
}

.roulette-chips-list li p {
  position: relative !important;
  z-index: 3 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
  color: #fff !important;
  text-align: center !important;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 1),
    0 0 8px rgba(0, 0, 0, 0.8) !important;
  -webkit-font-smoothing: antialiased;
  user-select: none !important;
  pointer-events: none !important;
  border-radius: 0 !important;
  border: none !important;
  overflow: visible !important;
}

/* ─── Masa üstü jetonlar (.chip) ─── */
.chip.tonbala-euro-chip {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 1px rgba(0, 0, 0, 0.9);
}

.chip.tonbala-euro-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.chip.tonbala-euro-chip::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.38);
  z-index: 1;
  pointer-events: none;
}

.chip.tonbala-euro-chip[data-chip-denom="10"]::before {
  background: linear-gradient(145deg, #60a5fa 0%, #1d4ed8 100%);
  border-color: rgba(191, 219, 254, 0.45);
}

.chip.tonbala-euro-chip[data-chip-denom="25"]::before {
  background: linear-gradient(145deg, #34d399 0%, #047857 100%);
  border-color: rgba(167, 243, 208, 0.45);
}

.chip.tonbala-euro-chip[data-chip-denom="50"]::before {
  background: linear-gradient(145deg, #fb923c 0%, #c2410c 100%);
  border-color: rgba(254, 215, 170, 0.45);
}

.chip.tonbala-euro-chip[data-chip-denom="100"]::before {
  background: linear-gradient(145deg, #52525b 0%, #09090b 100%);
  border-color: rgba(212, 212, 216, 0.4);
}

.chip.tonbala-euro-chip[data-chip-denom="250"]::before {
  background: linear-gradient(145deg, #f43f5e 0%, #881337 100%);
  border-color: rgba(254, 205, 211, 0.45);
}

/* ─── Küçük değer masa çipleri: 0.1 / 0.25 / 0.5 / 1 / 5 ─── */
.chip.tonbala-euro-chip[data-chip-denom="0.1"]::before {
  background: linear-gradient(145deg, #e2e8f0 0%, #94a3b8 45%, #475569 100%);
  border-color: rgba(226, 232, 240, 0.6);
}

.chip.tonbala-euro-chip[data-chip-denom="0.25"]::before {
  background: linear-gradient(145deg, #fb7185 0%, #e11d48 55%, #9f1239 100%);
  border-color: rgba(253, 164, 175, 0.55);
}

.chip.tonbala-euro-chip[data-chip-denom="0.5"]::before {
  background: linear-gradient(145deg, #2dd4bf 0%, #0d9488 55%, #115e59 100%);
  border-color: rgba(94, 234, 212, 0.55);
}

.chip.tonbala-euro-chip[data-chip-denom="1"]::before {
  background: linear-gradient(145deg, #f87171 0%, #dc2626 55%, #991b1b 100%);
  border-color: rgba(252, 165, 165, 0.55);
}

.chip.tonbala-euro-chip[data-chip-denom="5"]::before {
  background: linear-gradient(145deg, #c084fc 0%, #9333ea 55%, #581c87 100%);
  border-color: rgba(192, 132, 252, 0.55);
}

/* ─── Rulet aksiyon satırı: flex 5 buton ─── */
.tb-rl-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 2px;
  min-height: 52px;
  box-sizing: border-box;
}

.tb-rl-actions__cell {
  display: flex;
  align-items: center;
  min-width: 0;
}

.tb-rl-actions__cell--left {
  justify-content: flex-start;
}

.tb-rl-actions__cell--mid {
  justify-content: center;
  grid-column: 2;
}

.tb-rl-actions__cell--right {
  justify-content: flex-end;
}

.tb-rl-actions .tb-rl-btn {
  appearance: none;
  cursor: pointer;
  border-radius: 8px;
  font-family:
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Apple Color Emoji",
    "Segoe UI Emoji",
    sans-serif;
  letter-spacing: 0.03em;
  transition:
    filter 0.15s ease,
    transform 0.1s ease;
  border-style: solid;
  border-width: 2px;
  box-sizing: border-box;
  white-space: nowrap;
}

.tb-rl-actions .tb-rl-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.tb-rl-actions .tb-rl-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

/* Gümüş — GERİ AL */
.tb-rl-actions .tb-rl-btn--silver {
  max-width: 100%;
  min-width: 92px;
  padding: 0.58rem 0.95rem;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(165deg, #f8fafc 0%, #cbd5e1 38%, #64748b 72%, #334155 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    0 4px 16px rgba(0, 0, 0, 0.36);
}

.tb-rl-actions .tb-rl-btn--silver:hover:not(:disabled) {
  filter: brightness(1.06);
}

/* Altın — ÇEVİR */
.tb-rl-actions .tb-rl-btn--gold {
  flex: 1 1 auto;
  min-width: 80px;
  max-width: none;
  padding: 0.55rem 0.7rem;
  font-size: 12px;
  font-weight: 800;
  color: #3a2208;
  border-color: rgba(253, 224, 71, 0.85);
  background: linear-gradient(165deg, #fffbeb 0%, #fcd34d 35%, #d97706 72%, #92400e 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    0 6px 22px rgba(0, 0, 0, 0.4);
}

.tb-rl-actions .tb-rl-btn--gold:hover:not(:disabled) {
  filter: brightness(1.05);
}

/* Koyu metal — BAHİSLERİ TEMİZLE */
.tb-rl-actions .tb-rl-btn--steel {
  max-width: 108px;
  min-width: 0;
  padding: 0.52rem 0.55rem;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  color: #e8e8ea;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, #3f3f46 0%, #18181b 38%, #0c0c0e 72%, #050506 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 18px rgba(0, 0, 0, 0.55);
  white-space: normal;
  text-align: center;
  hyphens: none;
}

.tb-rl-actions .tb-rl-btn--steel:hover:not(:disabled) {
  filter: brightness(1.12);
}

@media (max-width: 380px) {
  .tb-rl-actions {
    gap: 4px;
  }

  .tb-rl-actions .tb-rl-btn--gold {
    min-width: 72px;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    font-size: 11px;
  }

  .tb-rl-actions .tb-rl-btn--sm {
    padding: 0.42rem 0.38rem;
    font-size: 8px;
  }

  .tb-ibtn small {
    font-size: 6.5px;
  }
}

/* ─── Küçük ikon butonlar (GERİ AL, TEKRARLA, TEMİZLE, x2) ─── */
.tb-rl-actions .tb-rl-btn--sm {
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 0;
  padding: 0.58rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

/* Geri Al ve Tekrarla — silver */
.tb-rl-actions .tb-rl-btn--silver.tb-rl-btn--sm {
  min-width: 0;
}

/* İkiye katla — mor */
.tb-rl-actions .tb-rl-btn--x2 {
  color: #ede9fe;
  border-color: rgba(167, 139, 250, 0.4);
  background: linear-gradient(165deg, #7c3aed 0%, #4c1d95 65%, #2d0f6b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.45);
}

.tb-rl-actions .tb-rl-btn--x2:hover:not(:disabled) {
  filter: brightness(1.14);
}

/* İkon buton içerik yerleşimi (sembol + etiket) */
.tb-ibtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: inherit;
  line-height: 1;
}

.tb-ibtn small {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ─── Son Sonuçlar + Sıcak/Soğuk Paneli ─── */
.tb-son-sonuclar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 8px 12px;
  min-height: 54px;
  box-sizing: border-box;
}

.tb-ss-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.tb-ss-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.tb-ss-chips {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

.tb-ss-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.tb-ss-r {
  background: #c91828;
}

.tb-ss-b {
  background: #1a1a20;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}

.tb-ss-g {
  background: #14803d;
}

.tb-ss-right {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  align-items: flex-start;
}

.tb-ss-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.tb-ss-col-hdr {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  white-space: nowrap;
}

.tb-ss-hot {
  color: #fb923c;
}

.tb-ss-cold {
  color: #60a5fa;
}

.tb-ss-stat {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  line-height: 1.3;
}

.tb-ss-stat em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  margin-left: 2px;
}

/* ─── MIN/MAX Badge ─── */
.tb-minmax-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: linear-gradient(135deg, #9a6f1a 0%, #d4af37 50%, #8b6000 100%);
  color: #1a0a00;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 7px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 220, 80, 0.35);
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

/* ─── Chip Scroll Arrow ─── */
.tb-chips-scroller {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}

.tb-chips-arrow-hint {
  font-size: 26px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
  padding-left: 1px;
  pointer-events: none;
  user-select: none;
  margin-top: -2px;
}

/* ─── Rulet çarkı: üçgen cep (border-top) + sayılar; clip-path/radio hatası düzeltmesi ─── */
/* Önceki sürümde li üzerinde clip-path + border:none sayıları kesiyor / beyaz radio daireleri görünür hale geliyordu. */

.roulette-wheel-container li.roulette-wheel-bet-number {
  clip-path: none !important;
  -webkit-clip-path: none !important;
  background-image: none !important;
  background-color: transparent !important;
  border-bottom: none !important;
  border-left: 16px solid transparent !important;
  border-right: 16px solid transparent !important;
  border-top: 175px solid #c91828 !important;
  /* iOS Safari: üst öğede filter altındaki metin bazen görünmez oluyor — fret için filter yok */
  filter: none !important;
  -webkit-filter: none !important;
}

.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="0"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="00"] {
  border-top-color: #14803d !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="2"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="4"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="6"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="8"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="10"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="11"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="13"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="15"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="17"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="20"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="22"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="24"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="26"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="28"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="29"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="31"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="33"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="35"] {
  border-top-color: #141418 !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.roulette-wheel-container li.roulette-wheel-bet-number input[type="radio"] {
  opacity: 0 !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  pointer-events: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* position: relative kaldırıldı — iOS’ta pit, li’ye göre konumlanmalı (absolute top:-175px) */

/* Sayılar — iOS bileşik katmanı için translateZ + webkit transform */
.roulette-wheel-container .roulette-wheel-pit {
  z-index: 2 !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family:
    "Futura",
    "Century Gothic",
    "Segoe UI",
    sans-serif !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
  padding-top: 10px !important;
  transform: translate3d(0, 0, 0) scaleY(1.32) !important;
  -webkit-transform: translate3d(0, 0, 0) scaleY(1.32) !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 -1px 1px rgba(255, 255, 255, 0.08) !important;
  -webkit-font-smoothing: antialiased;
}

.roulette-wheel-container {
  font-family:
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* --- ADIM 1: SADECE ARKA PLAN RESMI --- */
.roulette-wheel-host .roulette-wheel-plate::after {
  top: -88px !important;
  right: -88px !important;
  bottom: -88px !important;
  left: -88px !important;
  border: none !important;
  background: url('/images/gamespage/roulette-wheel.avif') center/cover no-repeat !important;
  border-radius: 50% !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
  z-index: -1 !important;
}

/* --- ADIM 2: SADECE GOBEK RESMI --- */
.roulette-wheel-inner::after {
  background-color: transparent !important;
  border: none !important;
  background-image: url('/images/gamespage/roulette-wheel.avif') !important;
  background-size: 239% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* --- ADIM 3: BUTONLARI ASAGI KAYDIR --- */
.roulette-wheel-host {
  margin-top: 30px !important;
  margin-bottom: 80px !important;
}

/* 1st, 2nd, 3rd alanlarını dikey yapma */
.roulette-table-container .column-item > div:first-of-type {
  transform: rotate(-90deg) !important;
  transform-origin: center center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

/* Bahis masasının yeşil rengini daha premium koyu casino yeşili yapma */
.roulette-table-container {
  --felt: #0c3e1f !important;
  --felt-deep: #072813 !important;
}