/* Slot machine — ArmanGPT dark + gold accent */

.slot-screen {
  padding-bottom: 24px;
}

.slot-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-back-btn {
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
}

.slot-jackpot-wrap {
  margin: 8px 0 16px;
  text-align: center;
}

.slot-jackpot-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #d4af37;
  font-weight: 700;
  margin-bottom: 6px;
}

.slot-jackpot-box {
  position: relative;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a1520 0%, #0f0d12 100%);
  border: 2px solid rgba(212, 175, 55, 0.45);
  box-shadow:
    0 0 24px rgba(212, 175, 55, 0.15),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.slot-jackpot-value {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  color: #ffd966;
  text-shadow: 0 0 12px rgba(255, 217, 102, 0.4);
  font-variant-numeric: tabular-nums;
}

.slot-jackpot-hint {
  font-size: 11px;
  margin-top: 6px;
  color: var(--muted);
}

.slot-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
}

.slot-meta-pill {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
}

.slot-meta-pill strong {
  display: block;
  font-size: 14px;
  margin-top: 2px;
}

.slot-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.slot-tab {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg3);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.slot-tab.active {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.45);
  color: var(--accent);
}

.slot-panel[hidden] { display: none !important; }

.slot-machine {
  position: relative;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1e1a24 0%, #121018 100%);
  border: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  margin-bottom: 16px;
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 168px;
  overflow: hidden;
}

.slot-reel-col {
  position: relative;
  background: #0a0a0e;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.slot-reel-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.slot-reel-symbol {
  height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.slot-reel-col.spinning .slot-reel-strip {
  transition: transform 1.8s cubic-bezier(0.12, 0.85, 0.18, 1);
}

.slot-reel-col.spinning-fast .slot-reel-strip {
  animation: slotBlur 0.12s linear infinite;
}

@keyframes slotBlur {
  0% { filter: blur(0); opacity: 1; }
  50% { filter: blur(1px); opacity: 0.85; }
  100% { filter: blur(0); opacity: 1; }
}

.slot-reel-window {
  position: absolute;
  inset: 56px 0;
  pointer-events: none;
  box-shadow: inset 0 2px 8px rgba(45, 212, 191, 0.15);
  border-top: 1px solid rgba(45, 212, 191, 0.25);
  border-bottom: 1px solid rgba(45, 212, 191, 0.25);
}

.slot-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.slot-spin-btn {
  min-width: 140px;
  padding: 16px 28px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 100%);
  color: #042f2e;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.45);
  cursor: pointer;
}

.slot-spin-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.slot-cost-label {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.slot-result {
  min-height: 48px;
  text-align: center;
  margin: 12px 0;
  font-size: 14px;
}

.slot-result.win {
  color: #ffd966;
  font-weight: 700;
}

.slot-result.error {
  color: #f87171;
}

.slot-paytable {
  margin-top: 8px;
}

.slot-paytable summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}

.slot-paytable table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
  margin-top: 8px;
}

.slot-paytable th,
.slot-paytable td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.slot-shop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slot-shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.slot-shop-emoji {
  font-size: 32px;
  width: 48px;
  text-align: center;
}

.slot-shop-info {
  flex: 1;
  min-width: 0;
}

.slot-shop-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.slot-shop-info small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.slot-shop-buy {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.slot-shop-buy:disabled,
.slot-shop-buy-pending {
  opacity: 0.65;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.slot-bonus-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.slot-bonus-overlay[hidden] { display: none !important; }

.slot-bonus-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffd966;
}

.slot-bonus-chests {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.slot-chest-btn {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  border: 2px solid rgba(212, 175, 55, 0.5);
  background: linear-gradient(180deg, #3d2a1a 0%, #1a1208 100%);
  font-size: 40px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.slot-chest-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.slot-chest-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.slot-chest-btn.revealed {
  font-size: 14px;
  color: #ffd966;
  font-weight: 700;
}

.slot-entry-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, var(--bg3) 100%);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.slot-entry-icon {
  font-size: 28px;
}

.slot-entry-btn span:last-child {
  margin-left: auto;
  opacity: 0.5;
}
