/* 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;
}
/* E58 (Issue #10): „Worauf spielen wir?" — gold, weil es die Frage ist, die
   das Ende ankündigt. Bei „Endlos" bleibt der Chip weg (nichts anzukündigen). */
.goal-chip {
    font-size: 13px; font-weight: 800; letter-spacing: .03em; color: var(--gold);
    background: rgba(242, 193, 78, .1); border: 1px solid rgba(242, 193, 78, .38);
    border-radius: 999px; padding: 5px 12px; text-align: center;
}
.goal-chip[hidden] { display: none; }
/* Die Leiste trägt jetzt bis zu drei Dinge — auf schmalen Geräten umbrechen
   statt quetschen (das Mobile-Gate erlaubt keinen Quer-Scroll). */
.phase-bar { flex-wrap: wrap; gap: 8px; }
.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 */
/* Betreiber-Screenshot 2026-07-30: „das spacing ist broken". Stimmt — und es war
   meine eigene E59B-Änderung: Bei 150px-Spalten und 19px-Chips blieben dem Namen
   ~80px, also stand da „Ben…" und „Bot…". Ein Sitz braucht Platz für Gesicht,
   Namen UND Chips; unter 560px bekommt er deshalb die ganze Zeile. */
.seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 560px) { .seats { grid-template-columns: 1fr; } }
.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;
    flex: 1 1 auto; min-width: 5.5em; }
/* E59B (S21): Der Chip-Stand IST in einem Chip-Spiel die eine Zahl — „wie weit
   ist der noch weg?". Er stand in 12,5 px in einer Zeile, die auf dem Desktop
   615 px (Poker) bzw. 1240 px (Blackjack) breit ist: dieselbe Krankheit, die in
   Bunt!/Mau+ die Handkarten getroffen hat. Tabellenziffern, damit die Zahl beim
   Zählen nicht zappelt. */
.seat-chips { margin-left: auto; font-size: 19px; font-weight: 800; color: var(--gold);
    white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .seat-chips { font-size: 22px; } }
.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; }
}

/* Issue #12: „gesetzt" ist ein Zustand, keine Aufforderung — ruhig, ohne Fokus-Rahmen */
.bet-placed { color: var(--muted); font-size: 15px; margin: 0; }
.bet-placed[hidden] { display: none; }

/* Betreiber 2026-07-30: „in blackjack sieht man nicht den einsatz sondern nur am
   ende von der runde". Der Einsatz stand nur in der Setz-Phase im Sitz-Status;
   sobald die Karten lagen, war er weg — ausgerechnet dann, wenn man mit ihm
   rechnet (hit or stand?). Jetzt hängt er als Marke am Sitz, die ganze Runde. */
.seat-bet {
    display: inline-flex; align-items: center; gap: 4px; margin-left: 7px;
    font-size: 12.5px; font-weight: 700; color: var(--text);
    background: rgba(79, 140, 255, .18); border: 1px solid rgba(79, 140, 255, .45);
    border-radius: 999px; padding: 2px 9px; white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.seat-bet.doubled { background: rgba(242, 193, 78, .2); border-color: rgba(242, 193, 78, .55); color: var(--gold); }
/* Wer aussetzt, ist sichtbar draußen — sonst liest man den Geld-Floater des
   Nachbarn als den eigenen (Betreiber: „kriegt eine animation mit +25, was
   keinen Sinn macht"). */
.seat.sitout { opacity: .55; }
.seat.sitout .seat-status { color: var(--muted); font-style: italic; }

/* Bestätigungszeile: eine schlanke Leiste, kein voll gepolstertes Panel —
   ein Satz braucht keine Panel-Höhe. */
.bet-placed { display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 14px; font-size: 15px; }

/* Eigener Betrag ist der Sonderfall, nicht die Hauptaktion (E-Bugfix 2026-07-30) */
.bet-own { margin-top: 10px; }
.bet-own > summary { cursor: pointer; color: var(--muted); font-size: 13.5px; padding: 6px 0; }
.bet-own[open] > summary { color: var(--text); }
.chip-btn:disabled { opacity: .35; cursor: default; }
