/* MERGE-BLOCK: controls.css — slot machine controls */
.empty-history {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.game-controls {
  position: relative;
  inset: auto;
  z-index: auto;
  pointer-events: none;
}

.game-controls.hidden {
  display: none;
}

.bet-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 calc(12px + var(--safe-right)) 8px calc(12px + var(--safe-left));
  pointer-events: auto;
}

.bet-chip {
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(8, 6, 18, 0.9);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}

.bet-chip span {
  color: #fde68a;
  margin-left: 4px;
}

.bet-chip.active {
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(251, 191, 36, 0.18);
  color: #fef3c7;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}

.bet-chip.red { border-color: rgba(248, 113, 113, 0.45); }
.bet-chip.black { border-color: rgba(148, 163, 184, 0.45); }
.bet-chip.green { border-color: rgba(52, 211, 153, 0.45); }

.game-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 20px);
  padding: 0 calc(16px + var(--safe-right)) calc(10px + var(--safe-bottom)) calc(16px + var(--safe-left));
  pointer-events: none;
}

.game-action-row .slot-btn {
  pointer-events: auto;
}

#slot-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 20px);
  padding: 4px calc(16px + var(--safe-right)) calc(10px + var(--safe-bottom)) calc(16px + var(--safe-left));
  pointer-events: none;
}

.roulette-number-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  padding: 0 calc(10px + var(--safe-right)) 8px calc(10px + var(--safe-left));
  max-width: 420px;
  max-height: min(108px, 22vh);
  overflow-y: auto;
  margin: 0 auto;
  pointer-events: auto;
  scrollbar-width: thin;
}

.roulette-num {
  min-height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.roulette-num.red { background: rgba(220, 38, 38, 0.35); }
.roulette-num.black { background: rgba(15, 23, 42, 0.85); }
.roulette-num.active {
  outline: 2px solid #fde68a;
  outline-offset: 1px;
}

.slot-btn {
  pointer-events: auto;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  touch-action: manipulation;
  transition: transform 0.08s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}

.slot-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.slot-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slot-btn-bet {
  width: clamp(52px, 14vw, 64px);
  height: clamp(52px, 14vw, 64px);
  border-radius: 50%;
  background: rgba(8, 14, 26, 0.85);
  border: 2px solid rgba(124, 58, 237, 0.5);
  color: #c4b5fd;
  font-size: clamp(22px, 6vw, 28px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.slot-btn-bet:active:not(:disabled) {
  background: rgba(124, 58, 237, 0.35);
  border-color: #a78bfa;
}

.slot-btn-spin {
  min-width: clamp(140px, 40vw, 180px);
  height: clamp(60px, 16vw, 72px);
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  color: #1a0a2e;
  font-size: clamp(18px, 5vw, 22px);
  letter-spacing: 2px;
  box-shadow: 0 4px 24px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid #fde68a;
}

.slot-btn-spin:active:not(:disabled) {
  box-shadow: 0 2px 12px rgba(251, 191, 36, 0.3);
}

.slot-btn-spin.spinning {
  background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
  color: #fff;
  border-color: #c4b5fd;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45);
  animation: spin-pulse 0.6s ease-in-out infinite alternate;
}

@keyframes spin-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

.reel-hold-bar {
  position: absolute;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
  z-index: 22;
}

.reel-hold-btn {
  pointer-events: auto;
  flex-shrink: 0;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(8, 6, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #c4b5fd;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  touch-action: manipulation;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.reel-hold-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.reel-hold-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.reel-hold-btn.active {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.65);
  color: #fde68a;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.25);
}

.machine-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.machine-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.machine-card.active {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.machine-card-preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--mc-frame, #1a0a2e);
  border: 2px solid var(--mc-light, #7c3aed);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);
}

.machine-card-reels {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--mc-accent, #fbbf24);
  letter-spacing: 0.05em;
}

.machine-card-emojis {
  font-size: 11px;
  letter-spacing: -2px;
  line-height: 1;
}

.machine-card-body {
  min-width: 0;
}

.machine-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.machine-card-head strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.machine-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
}

.machine-desc {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.machine-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--mc-accent, #fbbf24);
  margin-bottom: 10px;
}

.machine-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.machine-card-actions .btn {
  flex: 1;
  min-width: 100%;
  min-height: 38px;
  font-size: 12px;
  padding: 8px 10px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.history-symbols {
  font-size: 16px;
  letter-spacing: -1px;
}

.history-bet {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.history-result {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}

.history-win .history-result {
  color: #4ade80;
}

.history-loss .history-result {
  color: #f87171;
}

.empty-history {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}
/* END-MERGE-BLOCK */
