.horse-frame {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
  border-radius: 16px;
  background: #d7dfd1;
}

.playing-card {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  animation: card-flip 1.15s cubic-bezier(.2, .75, .25, 1) both;
  animation-delay: calc(var(--card-index, 0) * 280ms);
}

.playing-card.hidden {
  color: transparent;
  background: repeating-linear-gradient(45deg, #174b3c, #174b3c 7px, #22624f 7px, #22624f 14px);
  border: 3px solid #fffdf8;
}

.slot-reels {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, #174b3c, #0d3027);
  box-shadow: inset 0 0 0 2px rgba(245, 184, 61, .65), 0 16px 35px rgba(21, 34, 29, .2);
}

.slot-reels .slot-symbol {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #fffdf8;
  color: #15221d;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1;
  box-shadow: inset 0 -5px 0 rgba(21, 34, 29, .08);
}

.slot-reels.spinning .slot-symbol {
  animation: slot-roll .22s linear infinite;
  color: #467e6c;
}

.slot-reels .slot-symbol.winning {
  background: #fff1bd;
  box-shadow: inset 0 0 0 3px #f5b83d, 0 0 20px rgba(245, 184, 61, .55);
  animation: winning-glow .8s ease-in-out infinite alternate;
}

.slot-rules {
  padding-left: 20px;
  color: #5b6761;
  font-size: 13px;
  line-height: 1.7;
}

.slot-rules strong {
  color: #174b3c;
}

.double-button {
  background: #d99b2b;
}

@keyframes card-flip {
  0% { opacity: 0; transform: perspective(900px) rotateY(180deg) scale(.88); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: perspective(900px) rotateY(0) scale(1); }
}

@keyframes slot-roll {
  0% { transform: translateY(-13%) rotateX(0); filter: blur(1px); }
  50% { transform: translateY(3%) rotateX(90deg); filter: blur(2px); }
  100% { transform: translateY(13%) rotateX(180deg); filter: blur(1px); }
}

@keyframes winning-glow {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

@media (max-width: 700px) {
  .horse-frame {
    height: 980px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .playing-card {
    animation-duration: .01ms;
    animation-delay: 0ms;
  }

  .slot-reels.spinning .slot-symbol,
  .slot-reels .slot-symbol.winning {
    animation: none !important;
  }
}
