/* Blackjack — spielspezifische Styles (Design-System + Game-Chrome + Karten aus ../style.css) */
:root {
    --card-w: clamp(44px, 9vw, 62px);
    --card-h: calc(var(--card-w) * 1.45);
}

/* Home-Hero */
.hero-cards { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.mini-card {
    width: 44px; height: 62px; border-radius: 8px; background: #fdfdfa; color: #1c2230;
    font-weight: 700; display: grid; place-items: center; font-size: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.mini-card.red { color: var(--red); }
.hero-cards .mini-card:nth-child(1) { transform: rotate(-8deg) translateY(4px); }
.hero-cards .mini-card:nth-child(2) { transform: rotate(8deg); }

/* Phasen-Leiste (Muster Imposter) */
.phase-bar { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 12px; }
.phase-chip {
    font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted);
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: 999px; padding: 5px 12px;
}
.phase-timer { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.phase-timer.urgent { color: var(--red); font-weight: 700; }

/* Dealer */
.dealer-area {
    text-align: center; padding: 14px 12px 16px; margin-bottom: 14px;
    background: radial-gradient(400px 120px at 50% 0%, rgba(63, 191, 111, .12), transparent 70%), var(--panel);
    border: 1px solid var(--panel-border); border-radius: var(--radius);
}
.dealer-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cards { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: var(--card-h); }

.hand-value {
    display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px;
    margin-left: 8px; border-radius: 999px; font-size: 14px; font-weight: 800;
    background: rgba(255, 255, 255, .1); border: 1px solid var(--panel-border);
}
.hand-value.bust { background: rgba(229, 72, 77, .2); color: var(--red); border-color: var(--red); }
.hand-value[hidden] { display: none; }   /* display-Regel oben darf hidden nicht überstimmen (B5) */

/* Spielerplätze */
.seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.seat {
    padding: 10px; border-radius: 12px; background: var(--panel);
    border: 1px solid var(--panel-border);
}
.seat.turn { border-color: var(--gold); box-shadow: 0 0 18px rgba(242, 193, 78, .25); animation: pulse 1.6s infinite; }
.seat.mine { background: rgba(79, 140, 255, .07); }
@keyframes pulse { 50% { box-shadow: 0 0 26px rgba(242, 193, 78, .4); } }
.seat-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.seat-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-chips { margin-left: auto; font-size: 12.5px; color: var(--gold); white-space: nowrap; }
.seat-cards { display: flex; align-items: center; gap: 4px; min-height: calc(var(--card-h) * .8); flex-wrap: wrap; }
.seat-cards .card { --card-w: 38px; width: 38px; height: 55px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.seat-cards .card .pip { font-size: 10px; }
.seat-cards .card .pip.br { display: none; }
.seat-cards .card .big { font-size: 18px; }
.seat-status { margin-top: 7px; font-size: 13px; color: var(--muted); }
.seat-status.ok { color: var(--text); }
.seat-status.good { color: var(--green); font-weight: 700; }
.seat-status.bad { color: var(--red); font-weight: 700; }
.seat-status.turn { color: var(--gold); font-weight: 700; }

/* Aktions-Boxen — §4.15: die eigene Entscheidung ist der Fokus-Inhalt */
.action-box { width: 100%; margin-bottom: 12px; }
.action-title { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.action-box.focus .action-title { font-size: 20px; font-weight: 800; color: var(--text); }
.chip-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip-btn { min-width: 56px; min-height: 48px; border-radius: 999px; font-weight: 800; }
.bet-row { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.bet-row input { width: 150px; text-align: center; }
.act-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.act-btns .btn { min-height: 52px; min-width: 120px; font-size: 16px; }
.btn.danger { border-color: rgba(229, 72, 77, .55); color: var(--red); }
.btn.danger:hover { background: rgba(229, 72, 77, .14); }

.finish-btn { align-self: center; font-size: 13.5px; padding: 9px 16px; color: var(--muted); }

@media (min-width: 1100px) {
    :root { --card-w: 84px; }
    .seat-cards .card { --card-w: 52px; width: 52px; height: 75px; }
    .seat-cards .card .big { font-size: 24px; }
}
