/* Lucky 7s Classic — three reels, one payline (layout adapted from johakr/html5-slot-machine). */
.lk-layout { display: flex; flex-direction: column; gap: 14px; }
.lk-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--gm-line, #DDD8CC); border: 1px solid var(--gm-line, #DDD8CC);
  border-radius: var(--gm-radius, 10px); overflow: hidden;
}
.lk-stat { background: var(--gm-surface, #fff); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lk-stat-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gm-muted, #6B675E); }
.lk-stat strong { font-family: var(--gm-display, Georgia, serif); font-weight: 500; font-size: 1.45rem; line-height: 1; color: var(--gm-text, #1B1A17); font-variant-numeric: tabular-nums; }
.lk-stepper { display: inline-flex; align-items: center; gap: 8px; }
.lk-stepper button {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--gm-line-2, #B9B3A5);
  background: var(--gm-surface-2, #F4F1EA); color: var(--gm-text, #1B1A17); font-size: 1rem; line-height: 1; cursor: pointer; font-family: inherit;
}
.lk-stepper button:hover { border-color: var(--gm-accent, #2F5D46); color: var(--gm-accent, #2F5D46); }

.lk-cabinet {
  position: relative;
  background: var(--gm-text, #1B1A17);
  border-radius: var(--gm-radius, 10px);
  padding: clamp(14px, 3vw, 28px);
}
#gm-lucky { position: relative; }
#gm-lucky .reels {
  display: flex; gap: 8px;
  background: #26241f;
  border-radius: 8px;
  padding: 8px;
}
/* Each reel is exactly three symbols tall: the roll animation moves the strip by whole rows
   (a row = reel width + 6px − 3px margin, as in the original). */
#gm-lucky .reel {
  position: relative; overflow: hidden; flex: 1 1 0; min-width: 0;
  aspect-ratio: 1 / 3;
  background: linear-gradient(180deg, #E6E1D4 0%, #F4F1EA 30%, #F4F1EA 70%, #E6E1D4 100%);
  border-radius: 6px;
}
#gm-lucky .reel > .icons { position: relative; }
#gm-lucky .reel > .icons > img {
  display: block;
  width: calc(100% + 6px);
  height: auto;
  margin: -3px 0 0 -3px;
  transform: translate3d(0, 0, 0) scale(0.78);
}
#gm-lucky .payline {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 0; border-top: 2px dashed var(--gm-accent-bright, #9FC4AF);
  opacity: 0.55; pointer-events: none;
  transform: translateY(-1px);
}
#gm-lucky .payline::before, #gm-lucky .payline::after {
  content: ''; position: absolute; top: -7px; width: 0; height: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
#gm-lucky .payline::before { left: -2px; border-left: 8px solid var(--gm-accent-bright, #9FC4AF); }
#gm-lucky .payline::after { right: -2px; border-right: 8px solid var(--gm-accent-bright, #9FC4AF); }
#gm-lucky.is-win .payline { opacity: 1; border-color: #D9A441; animation: lk-flash 0.5s ease-in-out 4; }
#gm-lucky.is-win .payline::before { border-left-color: #D9A441; }
#gm-lucky.is-win .payline::after { border-right-color: #D9A441; }
@keyframes lk-flash { 50% { opacity: 0.2; } }

.lk-note { margin: 0; font-size: 0.85rem; color: var(--gm-muted, #6B675E); }
.gm-btn.is-on { border-color: var(--gm-accent, #2F5D46); color: var(--gm-accent, #2F5D46); }

.lk-values { list-style: none; margin: 0; padding: 0; }
.lk-values li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--gm-line, #DDD8CC); font-size: 0.9rem;
}
.lk-values li:first-child { border-top: 0; }
.lk-values .lk-values-icons { display: inline-flex; gap: 2px; }
.lk-values img { width: 30px; height: 30px; background: #F4F1EA; border: 1px solid var(--gm-line, #DDD8CC); border-radius: 5px; padding: 2px; }
.lk-values-vals { font-variant-numeric: tabular-nums; color: var(--gm-text, #1B1A17); white-space: nowrap; }
.lk-values-vals b { color: var(--gm-muted, #6B675E); font-weight: 600; font-size: 0.75rem; }

@media (max-width: 640px) {
  .lk-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lk-stat strong { font-size: 1.2rem; }
}
