/* Kiwi Blackjack Game Styles */

.blackjack-page-wrapper {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 20%, rgba(0,80,40,.4) 0%, transparent 55%), var(--ocean-950);
  padding-top: var(--header-height);
}

.blackjack-game-area {
  padding: 48px 0 80px;
}

.blackjack-table {
  background: linear-gradient(145deg, #0D3B1E, #0A2D16);
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 40px;
  padding: 40px;
  box-shadow: var(--shadow-xl), inset 0 2px 0 rgba(255,255,255,.05);
  max-width: 800px;
  margin: 0 auto;
}

.dealer-zone,
.player-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
}

.zone-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
}

.zone-score {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.cards-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 120px;
  align-items: center;
}

.playing-card {
  width: 72px;
  height: 104px;
  border-radius: 8px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  font-family: var(--font-display);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  transition: transform .2s;
  animation: card-deal .25s ease-out;
}

.playing-card.card-red .card-value-top,
.playing-card.card-red .card-suit-center,
.playing-card.card-red .card-value-bottom {
  color: #C0392B;
}

.playing-card.card-black .card-value-top,
.playing-card.card-black .card-suit-center,
.playing-card.card-black .card-value-bottom {
  color: #1A1A2E;
}

.card-value-top {
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
}

.card-suit-center {
  font-size: 1.8rem;
  text-align: center;
  line-height: 1;
}

.card-value-bottom {
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  align-self: flex-end;
  transform: rotate(180deg);
}

.card-back {
  width: 72px;
  height: 104px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ocean-700), var(--ocean-600));
  border: 2px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

@keyframes card-deal {
  from {
    transform: translateY(-30px) scale(0.8);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.table-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 8px 0;
}

.dealer-mascot {
  font-size: 3.5rem;
  margin-bottom: 4px;
}

.game-status-banner {
  text-align: center;
  padding: 12px;
  background: rgba(0,0,0,.3);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-actions-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.action-btn {
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
  min-width: 100px;
}

.action-hit {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  box-shadow: 0 4px 16px rgba(0,168,168,.35);
}

.action-stand {
  background: linear-gradient(135deg, var(--ocean-600), var(--ocean-700));
  color: white;
}

.action-double {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--ocean-950);
}

.action-deal {
  background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
  color: white;
  box-shadow: 0 4px 16px rgba(255,88,48,.35);
}

.action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.action-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.bet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.bet-chip {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s;
}

.chip-10 {
  background: #0A4A7F;
  color: white;
}

.chip-25 {
  background: var(--teal-600);
  color: white;
}

.chip-50 {
  background: var(--coral-500);
  color: white;
}

.chip-100 {
  background: var(--gold-500);
  color: var(--ocean-950);
}

.bet-chip:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.current-bet-display {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-400);
  font-weight: 700;
}

.balance-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,.25);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-top: 20px;
}

.bj-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bj-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: flex-start;
}

.bj-card-panel {
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.bj-card-panel h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.bj-card-panel p,
.bj-card-panel li {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}

.bj-card-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bj-card-panel li {
  padding: 6px 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal-400);
}

.back-link-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  color: var(--teal-400);
  text-decoration: none;
  transition: all .2s;
  font-weight: 600;
}

.back-link:hover {
  color: var(--teal-300);
  gap: 12px;
}

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

  .bj-sidebar {
    order: -1;
  }

  .blackjack-table {
    padding: 24px;
  }

  .dealer-mascot {
    font-size: 2.5rem;
  }

  .playing-card {
    width: 60px;
    height: 88px;
    padding: 5px;
  }

  .card-back {
    width: 60px;
    height: 88px;
    font-size: 1.5rem;
  }

  .zone-score {
    font-size: 1.2rem;
  }
}
