/* Rulet: çark + masa. Ortak görünüm ../ortak/casino.css'te. */
html, body { height: 100%; }
body { overflow: hidden; }

.ust { padding: 0.4rem 0.75rem; font-size: 0.95rem; }
.ust-dugme {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-weight: 700;
  cursor: pointer;
}
.ust-dugme:focus-visible { outline: 3px solid #ffd76a; outline-offset: 2px; }

.oda {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
}

/* Çark ve sonuçlar */
.cark-bolge { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.cark-kutu { width: 5.4rem; height: 5.4rem; flex: none; }
.cark-kutu svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45)); }
.cark-sayi { font: 700 8.6px system-ui, sans-serif; fill: #fff; }
.yan { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.yan .mesaj { margin: 0; font-size: 0.9rem; text-align: left; min-height: 2.6em; line-height: 1.3; }
.sonuclar { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.sonuclar-baslik { font-size: 0.7rem; opacity: 0.75; letter-spacing: 0.04em; }
.sonuclar ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; overflow: hidden; min-height: 1.6rem; }
.sonuclar ol:empty::after { content: "Henüz çevrilmedi"; font-size: 0.75rem; opacity: 0.6; align-self: center; }
.top-sonuc {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.top-sonuc--son { box-shadow: 0 0 0 2px #ffd76a; }

.renk--kirmizi { background: #b8322a; color: #fff; }
.renk--siyah { background: #1b1b1b; color: #fff; }
.renk--yesil { background: #1f8a4c; color: #fff; }

/* Masa */
.masa-bolge { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.tablo { position: relative; container-type: size; }
.tablo--dikey { width: 100%; max-width: 26rem; height: 100%; }
.tablo--yatay { width: 100%; max-width: 54rem; aspect-ratio: var(--oran); max-height: 100%; }

.hucre {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(244, 241, 232, 0.75);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}
.tablo--dikey .hucre { font-size: min(4.2cqw, 3.9cqh); }
.tablo--yatay .hucre { font-size: min(2.3cqw, 7cqh); }
.tablo--dikey .hucre--uzun { writing-mode: vertical-rl; }
.hucre--sayi.renk--kirmizi { background: #b8322a; }
.hucre--sayi.renk--siyah { background: #1b1b1b; }
.hucre--sayi.renk--yesil { background: #1f8a4c; }
.hucre--dis { background: rgba(0, 0, 0, 0.12); }
.tablo--dikey .hucre[data-k="duz:0"] { border-radius: 40% 40% 0 0 / 100% 100% 0 0; }
.tablo--yatay .hucre[data-k="duz:0"] { border-radius: 100% 0 0 100% / 40% 0 0 40%; }
.elmas { width: 1.1em; height: 1.65em; display: block; }
.tablo--dikey .elmas { transform: rotate(90deg); }

.hucre:hover, .hucre.vurgu { box-shadow: inset 0 0 0 100vmax rgba(255, 215, 106, 0.28); }
.hucre.kazanan { box-shadow: inset 0 0 0 3px #ffd76a, 0 0 12px 3px rgba(255, 215, 106, 0.8); z-index: 1; }
.hucre:focus-visible, .bolge:focus-visible { outline: 3px solid #ffd76a; outline-offset: 0; z-index: 3; }

/* Sınır bölgeleri (ikili, üçlü, dörtlü, altılı) */
.bolge {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
}
.bolge::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin: -0.25rem 0 0 -0.25rem;
  border-radius: 50%;
  background: #ffd76a;
  opacity: 0;
}
.bolge:hover::after, .bolge:focus-visible::after { opacity: 1; }

.tablo--kilitli .hucre, .tablo--kilitli .bolge { cursor: default; }

/* Masadaki fişler */
.fis-katman { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.masa-fis {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.15rem;
  border-radius: 999px;
  border: 2px dashed rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.tablo--yatay .masa-fis { min-width: 1.8rem; height: 1.8rem; font-size: 0.7rem; }
.masa-fis--10 { background: #3b6fd8; }
.masa-fis--50 { background: #c0392b; }
.masa-fis--100 { background: #1e1e1e; }
.masa-fis--500 { background: #8e44ad; }
.masa-fis--kaybetti { opacity: 0.35; }
.masa-fis--kazandi { box-shadow: 0 0 0 3px #ffd76a, 0 0 10px #ffd76a; }

/* Alt kontroller */
.alt { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.3rem 0.6rem 0.2rem; flex: none; }
.dugmeler { display: flex; gap: 0.4rem; justify-content: center; }
.dugmeler .dugme { min-width: 0; flex: 1 1 0; max-width: 9rem; padding: 0.55rem 0.4rem; }
.fis[aria-pressed="true"] { box-shadow: 0 0 0 3px #ffd76a, 0 3px 6px rgba(0, 0, 0, 0.35); transform: translateY(-2px); }
.fis:focus-visible { outline: 3px solid #ffd76a; outline-offset: 3px; }
.not { padding-bottom: 0.4rem; margin: 0; }

/* Ödeme tablosu */
.odemeler {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  padding: 0.75rem;
}
.odemeler[hidden] { display: none; }
.odemeler-ic {
  background: #10392a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  max-width: 24rem;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  font-size: 0.85rem;
}
.odemeler h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.odemeler table { width: 100%; border-collapse: collapse; }
.odemeler th, .odemeler td { text-align: left; padding: 0.22rem 0.3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.odemeler td:nth-child(n + 2), .odemeler th:nth-child(n + 2) { text-align: right; }
.odemeler p { line-height: 1.4; opacity: 0.9; }

/* Kısa telefon */
@media (max-height: 560px) {
  .cark-kutu { width: 4.2rem; height: 4.2rem; }
  .yan .mesaj { font-size: 0.8rem; min-height: 2.4em; }
  .top-sonuc { width: 1.35rem; height: 1.35rem; font-size: 0.65rem; }
  .sonuclar-baslik { display: none; }
  .fis { width: 2.5rem; height: 2.5rem; font-size: 0.85rem; border-width: 3px; }
  .dugmeler .dugme { padding: 0.45rem 0.3rem; font-size: 0.85rem; }
  .not { font-size: 0.65rem; padding-bottom: 0.25rem; }
  .ust { padding: 0.3rem 0.6rem; font-size: 0.85rem; }
}

/* Geniş ekran: çark solda, yatay masa sağda */
@media (min-width: 700px) and (min-height: 430px) {
  .oda { display: grid; grid-template-columns: minmax(12rem, 19rem) 1fr; align-items: center; gap: 1.2rem; padding: 0.8rem 1.2rem; }
  .cark-bolge { flex-direction: column; align-items: stretch; }
  .cark-kutu { width: min(100%, 18rem, 46vh); height: auto; aspect-ratio: 1; align-self: center; }
  .yan .mesaj { text-align: center; font-size: 1rem; }
  .sonuclar { align-items: center; }
  .sonuclar ol { flex-wrap: wrap; justify-content: center; max-height: 3.5rem; }
  .masa-bolge { height: 100%; }
  .alt { flex-direction: row; justify-content: center; align-items: center; gap: 1.2rem; padding-bottom: 0.4rem; }
  .dugmeler .dugme { min-width: 6.5rem; flex: none; padding: 0.7rem 1rem; }
}
