*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  background: #060912;
  color: #f1f5f9;
}

#slot-app {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 10px;
  gap: 10px;
}

.slot-frame {
  position: relative;
  width: 100%;
  min-height: 0;
  border-radius: 16px;
  border: 2px solid rgba(129, 140, 248, 0.35);
  background: #0c1224;
  overflow: hidden;
}

#reels {
  display: block;
  width: 100%;
  height: 100%;
}

.slot-win-line {
  position: absolute;
  top: 50%;
  left: 3%;
  right: 3%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, #f472b6, #818cf8, #2dd4bf, transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.slot-win-line.is-active { opacity: 1; }

.slot-toast {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(8px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.92);
  color: #060912;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}

.slot-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.slot-spin {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  min-height: 52px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, #2dd4bf 0%, #818cf8 50%, #f472b6 100%);
  box-shadow: 0 8px 28px rgba(129, 140, 248, 0.4);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, opacity 0.15s;
}

.slot-spin:active:not(:disabled) { transform: scale(0.97); }
.slot-spin:disabled { opacity: 0.55; cursor: not-allowed; }

.slot-spin__label {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: #060912;
}

@media (min-width: 480px) {
  #slot-app {
    padding: 14px;
    gap: 14px;
  }

  .slot-spin {
    min-height: 60px;
  }
}
