/* ============================================
   VIDEO POKER
   ============================================ */

.vp-wrap { max-width: 440px !important; }

.vp-machine {
  background: linear-gradient(160deg, #1a0505 0%, #0d0d0d 60%, #180808 100%);
  border: 3px solid #dc2626;
  border-radius: 28px;
  padding: 0 1.5rem 2rem;
  box-shadow:
    0 0 0 6px #1a0505,
    0 0 0 8px rgba(220,38,38,0.3),
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 60px rgba(0,0,0,0.4);
  overflow: hidden;
}

/* ── Topo ── */
.vp-top {
  text-align: center;
  padding: 1.2rem 0 0.8rem;
  border-bottom: 1px solid rgba(220,38,38,0.15);
  margin: 0 -1.5rem 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.vp-top-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: rgba(220,38,38,0.7);
  margin-top: 0.2rem;
}

/* ── Displays ── */
.vp-displays {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.vp-display-box {
  flex: 1;
  background: #000;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  padding: 0.5rem 0.4rem;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}
.vp-display-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: #777;
  text-transform: uppercase;
}
.vp-display-val {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: #ef4444;
  line-height: 1;
  text-shadow: 0 0 12px rgba(220,38,38,0.4);
}
.vp-display-bet .vp-display-val { color: #f5c518; text-shadow: 0 0 12px rgba(245,197,24,0.4); }

/* ── Cartas ── */
.vp-cards-area {
  margin-bottom: 1.6rem;
}
.vp-cards {
  display: flex;
  gap: 6px;
}
.vp-card-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.vp-card {
  width: 100%;
  aspect-ratio: 7/10;
  background: linear-gradient(145deg, #fffef5, #f0e8d8);
  border: 2px solid #d4c0a0;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 5px;
  transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
  user-select: none;
}
.vp-card:hover:not(.vp-blank) { transform: translateY(-3px); }
.vp-card.held {
  border-color: #f5c518;
  box-shadow: 0 0 14px rgba(245,197,24,0.45);
  transform: translateY(-6px);
}
.vp-card.vp-red   { color: #dc2626; }
.vp-card.vp-black { color: #1a1008; }
.vp-card.vp-blank {
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(220,38,38,0.18);
  cursor: default;
}

/* Cantos da carta */
.vp-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.vp-tl { align-self: flex-start; }
.vp-br { align-self: flex-end; transform: rotate(180deg); }
.vp-cr {
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.vp-cs { font-size: 0.65rem; line-height: 1.1; }

/* Naipe central */
.vp-center-suit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  line-height: 1;
  pointer-events: none;
}

/* Badge HOLD */
.vp-hold-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: #f5c518;
  font-weight: 700;
  opacity: 0;
  height: 16px;
  display: flex;
  align-items: center;
  transition: opacity 0.18s;
  margin-top: 4px;
}
.vp-hold-tag.show { opacity: 1; }

/* Animação de virar carta */
@keyframes vpFlip {
  0%   { transform: rotateY(80deg) scale(0.85); opacity: 0; }
  100% { transform: rotateY(0deg) scale(1);     opacity: 1; }
}
.vp-flip-in {
  animation: vpFlip 0.28s ease-out both;
}

/* ── Mensagem ── */
.vp-msg {
  min-height: 1.6rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s;
  margin-bottom: 0.6rem;
}
.vp-msg-visible  { opacity: 1; }
.vp-msg-info     { color: #888; }
.vp-msg-win      { color: #ef4444; }
.vp-msg-jackpot  { color: #f5c518; animation: pulse 0.6s ease-in-out infinite alternate; }
.vp-msg-lose     { color: #888; }

/* ── Paytable ── */
.vp-paytable {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(220,38,38,0.1);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.8rem;
}
.vp-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
  border-radius: 4px;
  padding-left: 4px;
  padding-right: 4px;
}
.vp-pay-row:last-child { border-bottom: none; }
.vp-pay-row.vp-pay-win {
  background: rgba(245,197,24,0.12);
}
.vp-pay-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: #888;
  text-transform: uppercase;
}
.vp-pay-val {
  font-family: 'Bebas Neue', cursive;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #aaa;
}
.vp-pay-row.vp-pay-win .vp-pay-label { color: #f5c518; }
.vp-pay-row.vp-pay-win .vp-pay-val   { color: #f5c518; }

/* ── Apostas ── */
.vp-bet-section {
  margin-bottom: 0.8rem;
}
.vp-bet-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(220,38,38,0.7);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}
.vp-bet-grid {
  display: flex;
  gap: 0.5rem;
}
.vp-bet-btn {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 10px;
  padding: 0.55rem 0.4rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
}
.vp-bet-btn:hover:not(:disabled) {
  border-color: rgba(220,38,38,0.5);
  background: rgba(220,38,38,0.06);
}
.vp-bet-btn.active {
  border-color: #dc2626;
  background: rgba(220,38,38,0.12);
  box-shadow: 0 0 10px rgba(220,38,38,0.2);
}
.vp-bet-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.vp-bet-val {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #f0f0f8;
  line-height: 1;
}
.vp-bet-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  color: #ef4444;
  letter-spacing: 0.04em;
}

/* ── Botão ação ── */
.vp-action-btn {
  width: 100%;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  border: none;
  border-radius: 12px;
  color: white;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(220,38,38,0.4);
}
.vp-action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220,38,38,0.55);
}
.vp-action-btn:active:not(:disabled) { transform: translateY(0); }
.vp-action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.vp-action-btn.draw-mode {
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  box-shadow: 0 4px 16px rgba(14,165,233,0.4);
}

@media (max-width: 400px) {
  .vp-cr          { font-size: 0.85rem; }
  .vp-center-suit { font-size: 1.6rem; }
  .vp-card        { padding: 4px; }
}
