/* =====================================================
   VARIÁVEIS GLOBAIS
===================================================== */
:root {
  --bg: #020617;
  --card: #0f172a;
  --accent: #e30613;
  --accent-soft: rgba(227, 6, 19, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
}

/* =====================================================
   RESET BÁSICO (SEGURO)
===================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =====================================================
   BODY
===================================================== */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, #0b1220, var(--bg));
  color: var(--text);
  min-height: 100vh;
}

/* =====================================================
   APP
===================================================== */
.app {
  width: 100%;
  min-height: calc(100vh - 190px); /* header médio */
  display: flex;
  flex-direction: column;
}

/* =====================================================
   LAYOUT PRINCIPAL
===================================================== */
.layout {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   SLOT MACHINE
===================================================== */
.slot-wrap {
  width: 100%;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slot-machine {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: linear-gradient(180deg, #111827, #020617);
  padding: 16px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.reel {
  width: min(28vw, 200px);
  height: min(36vw, 260px);
  overflow: hidden;
  border-radius: 16px;
  background: #020617;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}

.reel-inner {
  will-change: transform;
}

.digit {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(48px, 12vw, 110px);
  font-weight: 900;
  color: #ffca28;
  text-shadow: 0 0 12px rgba(255, 202, 40, 0.4);
}

.slot-glass {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.slot-frame {
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

/* =====================================================
   CONTROLES (TOTALMENTE ESCOPADOS)
===================================================== */
.controls-numbers {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
  height: 520px;
}

/* Checkbox */
.controls-numbers .check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Inputs em linha */
.controls-numbers .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.controls-numbers label {
  font-size: 12px;
  color: var(--muted);
}

/* Inputs */
.controls-numbers input[type="number"] {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #020617;
  color: var(--text);
  font-size: 16px;
}

/* =====================================================
   BOTÕES
===================================================== */
.controls-numbers button {
  padding: 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #b90510);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
}

.controls-numbers button.secondary {
  background: #111827;
}

/* =====================================================
   HISTÓRICO
===================================================== */
.controls-numbers .history {
  margin-top: 6px;
  font-size: 14px;
  height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.history-item {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  margin-bottom: 8px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(180deg, #111827, #020617);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =====================================================
   FOOTER
===================================================== */
.main-footer {
  background: var(--card);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  font-size: 14px;
}

.footer-note {
  font-size: 12px;
  color: var(--muted);
}

.footer-copy {
  font-size: 11px;
  color: var(--muted);
}


button {
  background: linear-gradient(135deg, #e30613, #b90510);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 24px rgba(227, 6, 19, 0.35);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(227, 6, 19, 0.45);
}

/* Botão secundário */
button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Botão perigo */
button.danger {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}
