/* Game-specific visuals — vintage print poster art style via limited ink + grain */

.reel-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.reel {
  width: 88px;
  height: 110px;
  background: #f4ebe0;
  border: 3px solid #1a1a1a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  box-shadow: inset 0 0 0 3px #c23b3b;
  position: relative;
  overflow: hidden;
}

.reel.is-spinning {
  animation: reel-blur 0.12s linear infinite;
}

@keyframes reel-blur {
  0% { filter: blur(0); transform: translateY(0); }
  50% { filter: blur(1px); transform: translateY(2px); }
  100% { filter: blur(0); transform: translateY(0); }
}

.reel-symbol {
  font-weight: 800;
  color: #1a1a1a;
  text-shadow: 1px 1px 0 #fff;
  user-select: none;
}

.paytable {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.paytable table {
  width: 100%;
  border-collapse: collapse;
}

.paytable th,
.paytable td {
  border-bottom: 1px solid rgba(26, 34, 36, 0.15);
  padding: 6px 4px;
  text-align: left;
}

/* Prize wheel */
.wheel-wrap {
  display: grid;
  place-items: center;
  position: relative;
  margin: 12px auto;
  width: min(100%, 340px);
  aspect-ratio: 1;
}

.wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #1a2224;
}

.wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #c23b3b;
  z-index: 2;
}

/* Baccarat */
.bacc-hands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.bacc-hand {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #1a2224;
  border-radius: 12px;
  padding: 12px;
  min-height: 140px;
}

.bacc-hand h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.bacc-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 72px;
}

.playing-card {
  width: 52px;
  height: 74px;
  background: #f7f1e4;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.15);
}

.playing-card--red {
  color: #b32626;
}

.playing-card--black {
  color: #1a1a1a;
}

.bacc-bet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.bacc-bet-row .btn.is-active {
  box-shadow: 0 0 0 3px rgba(13, 107, 110, 0.35);
}

/* Roulette */
.roulette-layout {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .roulette-layout {
    grid-template-columns: 200px 1fr;
  }
}

.roulette-wheel-box {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.roulette-wheel-box canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #1a2224;
}

.roulette-ball-mark {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: #f7f1e4;
  border: 2px solid #1a2224;
  border-radius: 50%;
  z-index: 2;
}

.roulette-board {
  display: grid;
  gap: 6px;
}

.roulette-numbers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

@media (min-width: 600px) {
  .roulette-numbers {
    grid-template-columns: repeat(12, 1fr);
  }
}

.roulette-cell {
  min-height: 40px;
  border: 2px solid #1a2224;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  background: #1f6b4a;
  color: #fff;
  font-family: inherit;
}

.roulette-cell--red {
  background: #b32626;
}

.roulette-cell--black {
  background: #1a1a1a;
}

.roulette-cell--green {
  background: #0d6b6e;
}

.roulette-cell.is-selected {
  outline: 3px solid #f2a65a;
  outline-offset: 1px;
}

.roulette-outside {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.roulette-outside .btn {
  min-height: 40px;
  font-size: 0.8rem;
  padding: 6px 12px;
}

.roulette-outside .btn.is-selected {
  outline: 3px solid #f2a65a;
}

.grain-overlay::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
