* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #0C0D14; display: flex; justify-content: center; align-items: center; min-height: 100vh; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow: hidden; color: #e0e0e0; }
#game-container { position: relative; width: 100%; max-width: 600px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; }
#chips-display { font-size: 20px; font-weight: 600; color: #10b981; letter-spacing: 1px; }
#chips { color: #fff; }
#dealer-area, #player-area { width: 100%; text-align: center; }
.hand-label { font-size: 16px; color: #999; margin-bottom: 8px; }
.hand-label span { color: #fff; font-weight: 700; }
.hand { display: flex; justify-content: center; gap: 8px; min-height: 120px; flex-wrap: wrap; }
.card { width: 80px; height: 120px; border-radius: 8px; background: #fff; color: #111; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 8px; font-size: 18px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.3); transition: transform 0.3s; position: relative; }
.card.red { color: #dc2626; }
.card.hidden-card { background: linear-gradient(135deg, #1e40af, #3b82f6); color: transparent; }
.card.hidden-card::after { content: '?'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 32px; color: rgba(255,255,255,0.3); }
.card .top { text-align: left; }
.card .bottom { text-align: right; transform: rotate(180deg); }
.card .center { text-align: center; font-size: 28px; }
#message { font-size: 22px; font-weight: 700; min-height: 32px; color: #10b981; text-align: center; }
#bet-controls { display: flex; gap: 10px; }
.bet-btn { padding: 12px 20px; border: 2px solid #10b981; background: transparent; color: #10b981; border-radius: 8px; font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.bet-btn:hover { background: #10b981; color: #0C0D14; }
#game-controls { display: flex; gap: 10px; }
.action-btn { padding: 12px 24px; border: none; border-radius: 8px; font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
#btn-hit { background: #10b981; color: #fff; }
#btn-stand { background: #f59e0b; color: #111; }
#btn-double { background: #3b82f6; color: #fff; }
.action-btn:hover { opacity: 0.85; transform: scale(1.05); }
.hidden { display: none !important; }
#overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background: rgba(12,13,20,0.85); z-index: 10; }
#overlay.hidden { display: none; }
#overlay-box { text-align: center; padding: 40px 60px; background: #161822; border: 2px solid #2a2d3a; border-radius: 12px; }
#overlay-box h1 { font-size: 42px; margin-bottom: 16px; color: #10b981; }
#screen-gameover h1 { color: #ef4444; }
#overlay-box p { font-size: 20px; margin-bottom: 10px; color: #ccc; }
.controls-hint { font-size: 16px !important; color: #999 !important; }
.action-hint { font-size: 16px !important; color: #777 !important; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
@media (max-width: 600px) {
  .card { width: 60px; height: 90px; font-size: 14px; }
  .card .center { font-size: 20px; }
  #overlay-box { padding: 24px 32px; }
  #overlay-box h1 { font-size: 30px; }
  .bet-btn { padding: 10px 14px; font-size: 16px; }
  .action-btn { padding: 10px 18px; font-size: 16px; }
}
