/* ---- caça-níquel secreto (tecla P) — tudo em em: escala com --scale ---- */
.slots {
  --scale: 1;
  /* altura de cada símbolo em px (não em em: os símbolos têm fonte maior e o em mudaria) */
  --cell: calc(52px * var(--scale));
  position: fixed;
  z-index: 1000;
  font: 600 calc(14px * var(--scale)) / 1.3 system-ui, 'Segoe UI', sans-serif;
  color: #fff6d8;
  background: linear-gradient(160deg, #3a0d0d, #1c0606 55%, #2b0b2b);
  border: 0.22em solid #d8a43a;
  border-radius: 1.1em;
  box-shadow:
    0 0.8em 2.4em rgb(0 0 0 / 0.6),
    inset 0 0 1.2em rgb(255 200 80 / 0.15);
  padding: 0 0.9em 0.9em;
  user-select: none;
  touch-action: none;
}
.slots-flash {
  animation: slots-flash 0.25s ease-in-out 4;
}
@keyframes slots-flash {
  50% {
    box-shadow:
      0 0 2.6em rgb(255 210 80 / 0.9),
      inset 0 0 1.6em rgb(255 220 120 / 0.5);
  }
}
.slots button {
  font: inherit;
  cursor: pointer;
  border: 0;
  color: inherit;
}
.slots-bar {
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin: 0 -0.9em 0.7em;
  padding: 0.45em 0.6em 0.45em 0.9em;
  border-radius: 0.8em 0.8em 0 0;
  background: rgb(0 0 0 / 0.35);
  cursor: grab;
}
.slots-bar:active {
  cursor: grabbing;
}
.slots-title {
  flex: 1;
  font-size: 0.9em;
  letter-spacing: 0.04em;
  color: #ffd76a;
  text-shadow: 0 0 0.5em rgb(255 190 60 / 0.6);
}
.slots-icon {
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.5em;
  background: rgb(255 255 255 / 0.08);
  font-size: 0.85em;
}
.slots-icon:hover {
  background: rgb(255 255 255 / 0.18);
}
.slots-window {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4em;
  padding: 0.45em;
  border-radius: 0.7em;
  background: #0d0405;
  box-shadow: inset 0 0 0.9em rgb(0 0 0 / 0.9);
}
.slots-reel {
  height: var(--cell);
  overflow: hidden;
  border-radius: 0.5em;
  background: linear-gradient(#e9e2d0, #fffaf0 45%, #fffaf0 55%, #d9d0bb);
  box-shadow: inset 0 0.35em 0.5em rgb(0 0 0 / 0.35), inset 0 -0.35em 0.5em rgb(0 0 0 / 0.35);
}
.slots-strip {
  will-change: transform;
}
.slots-cell {
  height: var(--cell);
  display: grid;
  place-items: center;
  font-size: 2.2em;
  line-height: 1;
}
.slots-line {
  position: absolute;
  left: 0.2em;
  right: 0.2em;
  top: 50%;
  height: 0.14em;
  background: rgb(230 40 40 / 0.55);
  pointer-events: none;
}
.slots-message {
  min-height: 1.4em;
  margin: 0.6em 0 0.2em;
  text-align: center;
  font-size: 1.05em;
}
.slots-message.win {
  color: #ffe066;
  text-shadow: 0 0 0.6em rgb(255 200 60 / 0.8);
}
.slots-message.big {
  font-size: 1.3em;
  animation: slots-pop 0.5s ease;
}
@keyframes slots-pop {
  40% {
    transform: scale(1.25);
  }
}
.slots-credits {
  text-align: center;
  color: #ffd76a;
  margin-bottom: 0.55em;
}
.slots-bets {
  display: flex;
  justify-content: center;
  gap: 0.4em;
  margin-bottom: 0.6em;
}
.slots-bet {
  min-width: 2.6em;
  padding: 0.3em 0.6em;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  border: 0.1em solid rgb(216 164 58 / 0.5) !important;
}
.slots-bet.active {
  background: #d8a43a;
  color: #2a0808;
}
.slots-spin {
  display: block;
  width: 100%;
  padding: 0.65em;
  border-radius: 0.7em;
  font-size: 1.15em !important;
  letter-spacing: 0.12em;
  background: linear-gradient(#ff4d4d, #b31212);
  box-shadow: 0 0.3em 0 #6d0a0a;
  transition: transform 0.08s ease;
}
.slots-spin:active:not(:disabled) {
  transform: translateY(0.2em);
  box-shadow: 0 0.1em 0 #6d0a0a;
}
.slots-spin:disabled {
  opacity: 0.5;
  cursor: default;
}
.slots-refill {
  display: block;
  width: 100%;
  margin-top: 0.5em;
  padding: 0.45em;
  border-radius: 0.6em;
  background: rgb(255 255 255 / 0.12);
}
.slots-refill[hidden] {
  display: none;
}
.slots-pay {
  margin-top: 0.6em;
  font-size: 0.8em;
  color: #e8d9b0;
}
.slots-pay summary {
  cursor: pointer;
}
.slots-pay-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2em 0.8em;
  margin-top: 0.4em;
}
.slots-note {
  margin: 0.5em 0 0;
  opacity: 0.7;
}
.slots-resize {
  position: absolute;
  right: 0.15em;
  bottom: 0.15em;
  width: 1.3em;
  height: 1.3em;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, #d8a43a 50%, #d8a43a 60%, transparent 60%, transparent 70%, #d8a43a 70%, #d8a43a 80%, transparent 80%);
  border-radius: 0 0 0.8em 0;
}
