.bsh-game {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(11, 79, 74, 0.12);
  box-shadow: 0 24px 60px rgba(6, 56, 51, 0.16);
}

.valokeila-game {
  padding: 1.75rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(226, 196, 90, 0.22), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(26, 107, 100, 0.45), transparent 45%),
    linear-gradient(160deg, #063833, #0b4f4a 55%, #0a2f2c);
  color: #faf8f4;
}

.vg-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 196, 90, 0.35), transparent 70%);
  right: -40px;
  top: -40px;
  filter: blur(10px);
  animation: pulseGlow 4s ease-in-out infinite;
  pointer-events: none;
}

.vg-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.vg-art {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(226, 196, 90, 0.35);
}

.vg-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2c45a;
}

.vg-score {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.vg-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.vg-reel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  box-shadow: inset 0 0 30px rgba(226, 196, 90, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vg-reel.is-spinning {
  animation: reelShake 0.18s linear infinite;
}

.vg-reel.is-win {
  box-shadow: 0 0 28px rgba(226, 196, 90, 0.55), inset 0 0 24px rgba(226, 196, 90, 0.2);
  transform: translateY(-4px);
}

.vg-message {
  text-align: center;
  margin-bottom: 1rem;
  min-height: 1.5rem;
  color: rgba(250, 248, 244, 0.9);
  position: relative;
  z-index: 1;
}

.vg-spin {
  width: 100%;
  position: relative;
  z-index: 1;
}

.vg-note,
.sg-note,
.kg-note {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  opacity: 0.75;
  text-align: center;
}

.salonki-game {
  background: linear-gradient(160deg, #0a2f2c, #145c54);
  padding: 1.25rem;
}

.sg-felt {
  background:
    radial-gradient(circle at 50% 30%, rgba(226, 196, 90, 0.12), transparent 40%),
    linear-gradient(180deg, #1f6b4f, #0f4a38);
  border-radius: 24px;
  padding: 1.5rem;
  border: 2px solid rgba(226, 196, 90, 0.28);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.25);
  color: #faf8f4;
}

.sg-side {
  margin-bottom: 1.25rem;
}

.sg-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2c45a;
  margin-bottom: 0.55rem;
}

.sg-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 96px;
}

.sg-card {
  width: 68px;
  height: 96px;
  border-radius: 10px;
  background: linear-gradient(160deg, #fffdf8, #f0ebe1);
  color: #0e2422;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  animation: cardIn 0.35s ease both;
  position: relative;
  overflow: hidden;
}

.sg-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent 45%);
  pointer-events: none;
}

.sg-card.is-red {
  color: #a33b3b;
}

.sg-card.is-hidden {
  background: linear-gradient(160deg, #0b4f4a, #063833);
  color: #e2c45a;
}

.sg-total {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.sg-message {
  text-align: center;
  margin: 0.5rem 0 1rem;
  min-height: 1.5rem;
}

.sg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.sg-actions .btn-bsh:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.keha-game {
  background:
    radial-gradient(circle at 70% 20%, rgba(226, 196, 90, 0.18), transparent 40%),
    linear-gradient(145deg, #042825, #0b4f4a 60%, #0e3d38);
  padding: 1.5rem;
  color: #faf8f4;
}

.kg-layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.kg-wheel-wrap {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  aspect-ratio: 1;
}

.kg-wheel-wrap canvas {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 24px rgba(226, 196, 90, 0.25));
}

.kg-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 #e2c45a;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(226, 196, 90, 0.7));
}

.kg-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 1.6rem;
  color: #e2c45a;
  text-shadow: 0 0 18px rgba(226, 196, 90, 0.55);
}

.kg-panel {
  text-align: center;
}

.kg-art {
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto 1rem;
  box-shadow: 0 0 30px rgba(26, 107, 100, 0.45);
}

.kg-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2c45a;
  margin-bottom: 0.65rem;
}

.kg-choices {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.kg-choice {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #faf8f4;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.kg-choice.is-active,
.kg-choice:hover {
  background: linear-gradient(135deg, #c9a227, #e2c45a);
  color: #063833;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(226, 196, 90, 0.45);
}

.kg-message {
  min-height: 1.5rem;
  margin-bottom: 0.9rem;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes reelShake {
  from {
    transform: translateY(-2px);
  }
  to {
    transform: translateY(2px);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@media (min-width: 768px) {
  .kg-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .vg-reel {
    min-height: 150px;
    font-size: 3rem;
  }
}

@media (max-width: 767.98px) {
  .valokeila-game,
  .salonki-game,
  .keha-game {
    padding: 1rem;
    border-radius: 20px;
  }

  .vg-header {
    flex-wrap: wrap;
  }

  .vg-reels {
    gap: 0.45rem;
  }

  .vg-reel {
    min-height: 88px;
    font-size: 1.7rem;
    border-radius: 12px;
  }

  .vg-score {
    font-size: 1.6rem;
  }

  .sg-felt {
    padding: 1rem;
    border-radius: 18px;
  }

  .sg-cards {
    min-height: 78px;
  }

  .sg-card {
    width: 54px;
    height: 76px;
    font-size: 0.9rem;
  }

  .sg-actions {
    flex-direction: column;
  }

  .sg-actions .btn-bsh {
    width: 100%;
  }

  .kg-wheel-wrap {
    width: min(100%, 280px);
  }

  .kg-art {
    max-width: 100%;
    height: 100px;
  }

  .kg-choice {
    flex: 1 1 auto;
  }

  .kg-panel .btn-bsh {
    width: 100%;
  }
}
