/* casino.css - Liquid Glass Style for Casino */

.casino-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(25, 38, 28, 0.55) 0%, rgba(12, 20, 14, 0.45) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.balance-box {
  display: flex;
  flex-direction: column;
}

.balance-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.balance-value {
  font-size: 30px;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  letter-spacing: 0.5px;
}

.topup-btn {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.35) 0%, rgba(39, 174, 96, 0.2) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(46, 204, 113, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  color: #2ecc71;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.topup-btn:hover {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.55) 0%, rgba(39, 174, 96, 0.35) 100%);
  color: #fff;
  border-color: rgba(46, 204, 113, 0.8);
  box-shadow: 
    0 6px 20px rgba(46, 204, 113, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.redeem-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

.redeem-box input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px 14px;
  outline: none;
  font-size: 14px;
  width: 180px;
}

.redeem-box button {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
}

.redeem-box button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.deposit-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(26, 38, 28, 0.88) 0%, rgba(14, 22, 16, 0.85) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.7),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.deposit-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dep-amt-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.dep-amt-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.dep-amt-btn.selected {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.35) 0%, rgba(39, 174, 96, 0.2) 100%);
  border-color: rgba(46, 204, 113, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  color: #2ecc71;
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.35);
}

.crypto-box {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
  text-align: left;
}

.game-selector {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.game-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.game-tab.active {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 6px 18px rgba(46, 204, 113, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Game Views */
.game-view {
  display: none;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(22, 34, 24, 0.55) 0%, rgba(12, 20, 14, 0.42) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.game-view.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Controls */
.game-controls {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.bet-input-wrap {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.bet-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  padding: 10px;
  width: 100%;
  outline: none;
}

.bet-input-wrap input::-webkit-outer-spin-button,
.bet-input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bet-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.bet-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.bet-btn.max {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

.bet-btn.max:hover {
  background: rgba(255, 215, 0, 0.35);
}

select {
  background: rgba(20, 30, 20, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  cursor: pointer;
}

select option {
  background: #141c14;
  color: #fff;
}

.play-btn {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  padding: 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 
    0 8px 24px rgba(46, 204, 113, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 100%;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 28px rgba(46, 204, 113, 0.6),
    inset 0 1px 3px rgba(255, 255, 255, 0.7);
}

.play-btn:active {
  transform: translateY(1px);
}

.play-btn:disabled {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.play-btn.cashout {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 8px 24px rgba(241, 196, 15, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.play-btn.cashout:hover {
  box-shadow: 
    0 10px 28px rgba(241, 196, 15, 0.65),
    inset 0 1px 3px rgba(255, 255, 255, 0.7);
}

/* Mines Grid */
.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
  margin-bottom: 20px;
}

.mine-cell {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 6px 14px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

@media (max-width: 400px) {
  .mine-cell {
    width: 46px;
    height: 46px;
  }
}

.mine-cell:hover:not(.revealed) {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 8px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.mine-cell.revealed {
  cursor: default;
  transform: scale(0.95);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mine-cell.revealed.gem {
  background: rgba(46, 204, 113, 0.25);
  border-color: rgba(46, 204, 113, 0.6);
}

.mine-cell.revealed.mine {
  background: rgba(231, 76, 60, 0.25);
  border-color: rgba(231, 76, 60, 0.6);
  animation: shake 0.5s ease;
}

.mine-cell.revealed.mine-unclicked {
  opacity: 0.5;
  background: rgba(231, 76, 60, 0.12);
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(0.95); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}

.multiplier-display {
  font-size: 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#mines-multiplier {
  font-weight: 700;
  color: #2ecc71;
}

/* Slots */
.slots-machine {
  display: flex;
  gap: 12px;
  background: linear-gradient(135deg, rgba(25, 35, 26, 0.65) 0%, rgba(10, 16, 11, 0.55) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6), 0 15px 35px rgba(0,0,0,0.5);
  margin-bottom: 24px;
}

.slot-reel {
  width: 84px;
  height: 100px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  position: relative;
  display: block;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

@media (max-width: 400px) {
  .slot-reel {
    width: 70px;
    height: 86px;
  }
}

.slot-strip {
  display: block;
  width: 100%;
  will-change: transform;
}

.slot-symbol {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  line-height: 1;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@media (max-width: 400px) {
  .slot-symbol {
    height: 86px;
    font-size: 38px;
  }
}

.slot-reel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 22px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
  z-index: 10;
}
.slot-reel::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 22px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  z-index: 10;
}

.slots-result {
  font-size: 22px;
  font-weight: 800;
  height: 32px;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  animation: resultPop 0.5s ease;
  display: none;
}

.slots-result.show {
  display: block;
}

@keyframes resultPop {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.slot-reel.win {
  animation: winGlow 1s infinite alternate;
}

@keyframes winGlow {
  from { box-shadow: 0 0 10px #ffd700; border-color: #ffd700; }
  to { box-shadow: 0 0 22px #ffaa00; border-color: #ffaa00; }
}

/* Blackjack */
.bj-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
}

.blackjack-table {
  background: radial-gradient(circle at center, rgba(30, 130, 76, 0.72) 0%, rgba(0, 60, 20, 0.82) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 26px 18px;
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    inset 0 0 30px rgba(0,0,0,0.5),
    0 20px 50px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.bj-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bj-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bj-score {
  font-weight: 800;
  color: #ffd700;
  margin-left: 6px;
}

.bj-cards {
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 100px;
  flex-wrap: wrap;
}

.bj-card {
  width: 70px;
  height: 100px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  font-size: 20px;
  font-weight: 700;
  animation: dealCard 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.bj-card.red {
  color: #e74c3c;
}

.bj-card.black {
  color: #2c3e50;
}

.bj-card.hidden {
  background: linear-gradient(135deg, #2980b9, #2c3e50);
  border: 2px solid #fff;
  color: transparent !important;
}

.bj-card .top-left {
  align-self: flex-start;
  line-height: 1;
}

.bj-card .center-suit {
  align-self: center;
  font-size: 32px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.bj-card .bottom-right {
  align-self: flex-end;
  line-height: 1;
  transform: rotate(180deg);
}

@keyframes dealCard {
  0% { transform: translateY(-50px) scale(0.5); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.bj-result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(0,0,0,0.8), 0 0 10px rgba(255, 215, 0, 0.8);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 16px;
  text-transform: uppercase;
  display: none;
  z-index: 10;
  white-space: nowrap;
}

.bj-result.show {
  display: block;
  animation: resultPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
