/* Body and general styles */
body {
  background: linear-gradient(135deg, #222 0%, #444 100%);
  min-height: 100vh;
}
.header {
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  color: #ffce00;
  font-weight: bold;
  font-size: 2.8rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px #222;
}
.game-card {
  background: #23272b;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px 0 #1119;
  padding: 1.5rem;
  border: none;
  transition: transform 0.1s;
}
.game-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 32px 0 #111b;
}
.game-img {
  border-radius: 1rem;
  height: 220px;
  object-fit: cover;
  box-shadow: 0 2px 12px #0007;
}
.horse-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  font-size: 140px;
}
.plinko-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  font-size: 140px;
}
.pong-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  font-size: 140px;
}
.btn-play {
  font-weight: bold;
  border-radius: 0.8rem;
  font-size: 1.2rem;
  padding: 0.8rem 2.2rem;
  background: linear-gradient(90deg, #ffce00, #ff7300);
  color: #222;
  border: none;
  box-shadow: 0 2px 10px #ff980026;
  transition: background 0.2s, color 0.2s;
}
.btn-play:hover {
  background: linear-gradient(90deg, #ff9800, #ffc400);
  color: #fff;
}
@media (max-width: 767px) {
  .game-img {
    height: 140px;
  }
  .header {
    font-size: 2rem;
  }
}

/* Wallet and modal styles */
#creditDisplay {
  font-size: 32px;
  color: red;
  font-family: 'Orbitron', monospace;
  background: #220000;
  padding: 10px 20px;
  border: 2px solid #aa0000;
  border-radius: 8px;
  box-shadow: 0 0 10px red, inset 0 0 10px #440000;
  text-shadow: 0 0 4px red;
  letter-spacing: 2px;
  /* width: 100%;  (omitted to allow right alignment) */
  text-align: center;
  box-sizing: border-box;
  margin-right: 5px;
}
.side-actions {
  display: flex;
  gap: 10px;
}
.action-btn {
  padding: 10px 22px;
  font-size: 18px;
  font-family: 'Orbitron', monospace;
  font-weight: bold;
  letter-spacing: 2px;
  border-radius: 8px;
  border: 2px solid #ff0000;
  background: #220000;
  color: #fff;
  box-shadow: 0 0 8px #660000;
  transition: background 0.16s, color 0.18s;
  cursor: pointer;
}
.action-btn:hover {
  background: #aa0000;
  color: #ffdddd;
  box-shadow: 0 0 14px #aa0000;
}

/* LCD-style text (used for modal credit displays) */
.lcd {
  font-size: 24px;
  color: red;
  font-family: 'Orbitron', monospace;
  background: #220000;
  padding: 8px 16px;
  border: 2px solid #aa0000;
  border-radius: 8px;
  box-shadow: 0 0 10px red, inset 0 0 10px #440000;
  text-shadow: 0 0 4px red;
  letter-spacing: 2px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* Modal overlay and dialog */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.active {
  display: flex;
}
.modal-dialog {
  min-width: 350px;
  max-width: 90vw;
  background: #1a0808;
  border: 2.5px solid #aa0000;
  border-radius: 18px;
  box-shadow: 0 0 24px 5px #440000, 0 0 10px #ff0000;
  padding: 32px 32px 24px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  font-family: 'Orbitron', monospace;
  color: #fff;
  font-size: 18px;
  pointer-events: auto;
}
.modal-dialog .lcd {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 10px;
  border-width: 3px;
  letter-spacing: 3px;
}
.modal-dialog label {
  color: #ff9999;
  font-size: 16px;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 1px;
}
.modal-dialog input[type="text"],
.modal-dialog input[type="number"] {
  padding: 10px;
  font-size: 17px;
  font-family: monospace;
  border-radius: 7px;
  border: 1.5px solid #881313;
  background: #110101;
  color: #ffdddd;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  outline: none;
}
.modal-dialog .readonly-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.modal-dialog .readonly-input-group input {
  flex: 1;
  margin-bottom: 0;
}
.modal-dialog .btn-modal-sm {
  background: #232;
  color: #cfc;
  border: 1px solid #484;
  padding: 6px 11px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0;
  transition: background 0.15s;
}
.modal-dialog .btn-modal-sm:hover {
  background: #484;
  color: #fff;
}
.modal-dialog .btn-modal {
  background: #333;
  color: #fff;
  border: 2px solid #aa0000;
  border-radius: 8px;
  padding: 12px;
  font-size: 18px;
  font-family: 'Orbitron', monospace;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.18s;
}
.modal-dialog .btn-modal:hover {
  background: #661111;
}
.modal-dialog .modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 24px;
  color: #ff4444;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 4px;
  z-index: 10;
  font-family: inherit;
  transition: color 0.12s;
}
.modal-dialog .modal-close:hover {
  color: #fff;
  text-shadow: 0 0 8px #ff1111;
}
.modal-hint {
  font-size: 15px;
  color: #ffa;
  opacity: 0.8;
  margin-top: 5px;
}
