.machine { --cell: clamp(58px, 12vw, 120px); position: relative; }

/* ---------- win readout above the reels ---------- */

.win-strip {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 24px;
  border-radius: var(--r);
  background: var(--panel);
  transition: background .2s var(--ease);
}
.win-strip .label { color: var(--faint); }
.win-strip b {
  font-size: 26px;
  font-weight: 700;
  color: var(--faint);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color .2s var(--ease);
}
.win-strip.hit { background: var(--green-dim); }
.win-strip.hit b { color: var(--green); }

/* ---------- the cabinet ---------- */

.window {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--panel);
}

.reel {
  position: relative;
  width: var(--cell);
  height: calc(var(--cell) * 3);
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg);
}

.strip { display: flex; flex-direction: column; will-change: transform; }

.cell { height: var(--cell); display: grid; place-items: center; flex: none; }
.cell svg { width: 56%; height: 56%; }

.cell.hit { animation: cellhit .5s var(--ease) both; }
@keyframes cellhit {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.16); }
  100% { transform: scale(1); }
}

/* shading at the top and bottom of each reel */
.glass {
  position: absolute;
  inset: 10px;
  border-radius: var(--r);
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(15,33,46,.92) 0%, rgba(15,33,46,0) 17%,
    rgba(15,33,46,0) 83%, rgba(15,33,46,.92) 100%);
}

/* payline overlay */
.lines { position: absolute; inset: 10px; pointer-events: none; overflow: visible; }
.lines path {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawline .45s var(--ease) forwards;
}
@keyframes drawline { to { stroke-dashoffset: 0; } }

/* ---------- paytable ---------- */

.paytable { display: flex; flex-direction: column; gap: 1px; border-radius: var(--r-sm); overflow: hidden; }
.paytable .prow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  background: var(--panel-2);
  font-size: 12.5px;
  color: var(--muted);
}
.paytable .prow svg { width: 20px; height: 20px; flex: none; }
.paytable .prow b { margin-left: auto; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.paytable .prow:first-child b { color: var(--green); }

#spin { width: 100%; }

@media (max-width: 760px) {
  .machine { --cell: clamp(52px, 17vw, 74px); }
  .win-strip { margin-bottom: 10px; padding: 8px 18px; }
  .win-strip b { font-size: 21px; }
  .window { padding: 8px; }
  .glass, .lines { inset: 8px; }
}
