/* Casino oyunlarının ortak masa görünümü */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #f4f1e8;
  background: radial-gradient(ellipse at 50% 35%, #1d6b4c 0%, #0f4632 55%, #0a2f22 100%);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; }

.ust {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.28);
  font-weight: 600;
}
.ust .kredi { color: #ffd76a; }
.ust .jackpot { color: #ffb347; }

.masa {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}
.mesaj {
  min-height: 1.5em;
  text-align: center;
  font-weight: 600;
}
.mesaj--iyi { color: #9be89b; }
.mesaj--kotu { color: #ffb0a8; }

.kontroller {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem 0.5rem;
}
.dugme {
  min-width: 6.5rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 10px;
  background: #f4f1e8;
  color: #13281f;
  font-weight: 700;
  cursor: pointer;
}
.dugme--ana { background: #ffd76a; }
.dugme:disabled { opacity: 0.4; cursor: default; }
.dugme:focus-visible { outline: 3px solid #ffd76a; outline-offset: 2px; }

.fisler { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.fis {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 4px dashed rgba(255, 255, 255, 0.85);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}
.fis[data-d="10"] { background: #3b6fd8; }
.fis[data-d="50"] { background: #c0392b; }
.fis[data-d="100"] { background: #1e1e1e; }
.fis[data-d="500"] { background: #8e44ad; }
.fis:disabled { opacity: 0.35; cursor: default; }

.not {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.75;
  padding: 0 1rem 0.6rem;
}

/* Kart */
.kart {
  position: relative;
  width: 4.2rem;
  height: 6rem;
  border-radius: 8px;
  background: #fffdf7;
  color: #1b1b1b;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  flex: none;
}
.kart--kirmizi { color: #c62828; }
.kart__ust {
  position: absolute;
  top: 0.3rem;
  left: 0.4rem;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}
.kart__orta {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
}
.kart--kapali {
  background: repeating-linear-gradient(45deg, #7a1d2a 0 6px, #94283a 6px 12px);
  border: 4px solid #fffdf7;
}
.kartlar { display: flex; gap: 0.35rem; justify-content: center; min-height: 6rem; flex-wrap: wrap; }
.kart--secili { transform: translateY(-0.6rem); box-shadow: 0 0 0 3px #ffd76a, 0 6px 12px rgba(0, 0, 0, 0.45); }

@media (max-width: 520px) {
  .kart { width: 3.3rem; height: 4.8rem; }
  .kart__orta { font-size: 1.5rem; }
  .dugme { min-width: 5rem; padding: 0.6rem 0.7rem; }
  .fis { width: 2.9rem; height: 2.9rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .kart { transition: transform 0.15s ease; }
}
