/* ===== GAME SHARED STYLES ===== */
.game-page { background: #0d1f16; min-height: 100vh; }
.game-page #site-header { background: rgba(13,31,22,0.97); }

.game-ui {
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(ellipse at top, #1b4332 0%, #0d1f16 60%);
}

.game-header {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.game-title-bar { display: flex; align-items: center; gap: 12px; }
.game-title-bar h2 { color: #fff; font-size: 1.2rem; }
.game-title-bar .badge { }
.game-balance-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 8px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.game-balance-box .coin { font-size: 1.1rem; }
.game-balance-box .amount { color: #f4a825; font-family: 'Playfair Display', serif; }

.game-main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.game-message-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 24px;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  text-align: center;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  transition: 0.3s ease;
}
.game-message-box.win  { background: rgba(45,122,74,0.3); border-color: rgba(45,122,74,0.5); color: #7ee89b; }
.game-message-box.lose { background: rgba(184,50,32,0.3); border-color: rgba(184,50,32,0.5); color: #f08070; }
.game-message-box.push { background: rgba(212,134,10,0.2); border-color: rgba(212,134,10,0.4); color: #f4c450; }

/* ===== BET CONTROLS ===== */
.bet-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.bet-label { color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.bet-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  background: linear-gradient(135deg, #2d6a4f, #1b4332);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}
.chip:hover { transform: scale(1.1); border-color: rgba(255,255,255,0.5); }
.chip.c10  { background: linear-gradient(135deg, #c53d0c, #8b2808); border-color: rgba(255,160,100,0.3); }
.chip.c25  { background: linear-gradient(135deg, #1a5276, #154360); border-color: rgba(100,180,255,0.3); }
.chip.c50  { background: linear-gradient(135deg, #196f3d, #117a65); border-color: rgba(100,220,150,0.3); }
.chip.c100 { background: linear-gradient(135deg, #6c3483, #512e5f); border-color: rgba(180,100,255,0.3); }
.chip.c500 { background: linear-gradient(135deg, #b7950b, #9a7d0a); border-color: rgba(255,220,50,0.3); }

.bet-display {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 16px;
  color: #fff;
  font-weight: 700;
  min-width: 80px;
  text-align: center;
}
.bet-display span { color: #f4a825; }

/* ===== GAME BUTTONS ===== */
.game-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.game-btn {
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.2s ease;
  letter-spacing: 0.02em;
}
.game-btn:hover { transform: translateY(-2px); }
.game-btn:active { transform: translateY(0); }
.game-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.game-btn-primary   { background: #c53d0c; color: #fff; box-shadow: 0 3px 12px rgba(197,61,12,0.35); }
.game-btn-primary:hover:not(:disabled)   { background: #e05a20; box-shadow: 0 5px 18px rgba(197,61,12,0.5); }
.game-btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.game-btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,0.18); }
.game-btn-success   { background: #1b7a40; color: #fff; box-shadow: 0 3px 12px rgba(27,122,64,0.35); }
.game-btn-success:hover:not(:disabled)   { background: #2d9a56; }
.game-btn-warning   { background: #c98a00; color: #fff; }
.game-btn-warning:hover:not(:disabled)   { background: #f4a825; }
.game-btn-clear     { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); font-size: 0.8rem; padding: 8px 16px; }

/* ===== SLOTS SPECIFIC ===== */
.slots-machine {
  background: linear-gradient(180deg, #1a3a2a 0%, #0f2318 100%);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}
.reels-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}
.reel-wrap {
  background: #050f08;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  width: 130px;
  height: 130px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 4px 16px rgba(0,0,0,0.6);
}
.reel-tape {
  display: flex;
  flex-direction: column;
  transition: none;
}
.reel-tape.spinning {
  animation: reel-spin 0.1s linear infinite;
}
@keyframes reel-spin {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-130px); }
}
.reel-symbol {
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  flex-shrink: 0;
  line-height: 1;
}
.reel-sheen {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,50,20,0.6), transparent);
  pointer-events: none;
  z-index: 2;
}
.reel-sheen-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0,50,20,0.6), transparent);
  pointer-events: none;
  z-index: 2;
}
.win-line {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(244,168,37,0.8), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.win-line.active { opacity: 1; }
.slots-paytable {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}
.pay-symbols { letter-spacing: 2px; }
.pay-mult    { color: #f4a825; font-weight: 700; }

/* ===== BLACKJACK SPECIFIC ===== */
.bj-table {
  width: 100%;
  max-width: 800px;
  background: #1a2f1f;
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.bj-zone {
  margin-bottom: 28px;
}
.bj-zone-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bj-zone-score {
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 3px 10px;
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
}
.bj-zone-score.bust { background: rgba(184,50,32,0.3); color: #f08070; }
.bj-zone-score.bj   { background: rgba(45,122,74,0.3); color: #7ee89b; }
.cards-row { display: flex; gap: 10px; flex-wrap: wrap; min-height: 110px; align-items: flex-start; }
.card-item {
  width: 72px;
  height: 100px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2520;
  position: relative;
  transform-origin: center bottom;
  animation: card-deal 0.35s cubic-bezier(0.23, 1, 0.32, 1) both;
  flex-shrink: 0;
}
.card-item.red { color: #c53d0c; }
.card-item.hidden {
  background: linear-gradient(135deg, #1b4332, #2d6a4f);
  color: transparent;
}
.card-item.hidden::after {
  content: '🍁';
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.35;
}
.card-item .card-suit { font-size: 0.85rem; position: absolute; top: 5px; left: 7px; }
@keyframes card-deal {
  from { opacity: 0; transform: scale(0.7) translateY(-20px) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) translateY(0) rotate(0); }
}
.bj-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 24px 0;
}

/* ===== DICE SPECIFIC ===== */
.dice-arena {
  width: 100%;
  max-width: 680px;
}
.dice-board {
  background: linear-gradient(180deg, #2c1a0e 0%, #1a0f08 100%);
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  text-align: center;
}
.dice-display {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 32px 0;
}
.die {
  width: 90px;
  height: 90px;
  background: linear-gradient(145deg, #fff, #e8ede8);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: 0.2s ease;
  position: relative;
}
.die.rolling {
  animation: roll 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes roll {
  0%   { transform: rotate(0deg) scale(1); }
  20%  { transform: rotate(-20deg) scale(1.05); }
  40%  { transform: rotate(15deg) scale(0.95); }
  60%  { transform: rotate(-10deg) scale(1.05); }
  80%  { transform: rotate(5deg) scale(0.98); }
  100% { transform: rotate(0deg) scale(1); }
}
.dice-total {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: #f4a825;
  line-height: 1;
  margin: 8px 0 4px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dice-fate {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 20px;
}
.dice-bets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.dice-bet-opt {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 10px;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: 0.2s ease;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.dice-bet-opt:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.dice-bet-opt.selected { background: rgba(197,61,12,0.3); border-color: rgba(197,61,12,0.6); color: #fff; }
.dice-bet-opt .opt-payout { display: block; font-size: 0.72rem; color: #f4a825; font-weight: 500; margin-top: 4px; }
.dice-history {
  margin-top: 20px;
  text-align: left;
}
.dice-history h4 {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
}
.history-roll   { color: rgba(255,255,255,0.65); min-width: 60px; }
.history-bet    { color: rgba(255,255,255,0.4); flex: 1; }
.history-result { font-weight: 700; }
.history-result.win  { color: #7ee89b; }
.history-result.lose { color: #f08070; }

/* ===== RESPONSIVE GAMES ===== */
@media (max-width: 600px) {
  .slots-machine, .bj-table, .dice-board { padding: 20px 16px; }
  .reel-wrap { width: 90px; height: 90px; }
  .reel-symbol { width: 90px; height: 90px; font-size: 2.2rem; }
  .die { width: 72px; height: 72px; font-size: 2.2rem; }
  .dice-bets-grid { grid-template-columns: 1fr 1fr; }
  .card-item { width: 60px; height: 86px; font-size: 1.2rem; }
}
