/* Mau+ — spielspezifische Styles (Design-System + Game-Chrome aus ../style.css) */
:root {
    --card-w: clamp(58px, 13vw, 84px);
    --card-h: calc(var(--card-w) * 1.45);
}

/* ── Home (Hero-Karten) ───────────────────────────── */
.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(-10deg) translateY(6px); }
.hero-cards .mini-card:nth-child(3) { transform: rotate(10deg) translateY(6px); }

/* ── Spielfläche ──────────────────────────────────── */
.opponents { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 18px; }
.opp {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 16px; border-radius: 12px; background: var(--panel);
    border: 1px solid var(--panel-border); min-width: 96px;
}
.opp.turn { border-color: var(--gold); box-shadow: 0 0 18px rgba(242, 193, 78, .25); animation: pulse 1.6s infinite; }
.opp .nm { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.opp .cnt { font-size: 12.5px; color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 26px rgba(242, 193, 78, .4); } }

.table { display: flex; justify-content: center; align-items: center; gap: 34px; margin: 10px 0 6px; }
.pile { background: none; border: 0; cursor: pointer; position: relative; padding: 0; border-radius: 12px; }
.pile:disabled { cursor: default; opacity: .8; }

/* S12: Der Stapel sagt Bescheid — ziehen möglich (blau) oder Pflicht (rot) */
.pile.can .card.back { box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .12), 0 0 0 3px rgba(79, 140, 255, .75), 0 8px 26px rgba(79, 140, 255, .35); }
.pile.must .card.back { animation: must-draw 1s infinite; }
@keyframes must-draw {
    0%, 100% { box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .12), 0 0 0 3px rgba(229, 72, 77, .85), 0 8px 26px rgba(229, 72, 77, .45); }
    50% { box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .12), 0 0 0 6px rgba(229, 72, 77, .55), 0 8px 34px rgba(229, 72, 77, .6); }
}
.pile-count {
    position: absolute; right: -8px; top: -8px; background: var(--accent); color: #fff;
    border-radius: 999px; min-width: 24px; padding: 3px 7px; font-size: 12.5px; font-weight: 700;
}
.discard-wrap { position: relative; }
.wish-chip {
    position: absolute; left: 50%; top: -16px; transform: translateX(-50%);
    background: #fdfdfa; color: #1c2230; border-radius: 999px; padding: 3px 12px;
    font-weight: 800; font-size: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.wish-chip.red { color: var(--red); }
.pending-chip {
    position: absolute; right: -14px; top: -12px; background: var(--red); color: #fff;
    border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 14px;
}

/* Karten-Basis kommt aus ../style.css (geteilt); hier nur Mau+-Motion */
.hand .card.deal { animation: deal-in .3s ease-out; }
@keyframes deal-in {
    from { transform: translateY(36px) scale(.85); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.hand-wrap { margin-top: auto; text-align: center; }
.hand { display: flex; justify-content: center; padding: 14px 6px 6px; min-height: calc(var(--card-h) + 26px); }
.hand .card { margin: 0 calc(var(--card-w) * -0.18); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.hand .card.ok:hover, .hand .card.ok:focus-visible { transform: translateY(-16px); z-index: 5; }
.hand .card.ok { outline: 2px solid rgba(79, 140, 255, .8); outline-offset: -2px; }
.hand .card.no { filter: brightness(.62) saturate(.7); cursor: default; }
.hand .card.drawn { outline-color: var(--gold); }
.btn.pass { margin: 10px 0 4px; }

/* Overlays */
.wish-btns { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.wish-btn { font-size: 26px; width: 60px; height: 60px; padding: 0; }
.wish-btn.red { color: var(--red); }

@media (max-width: 480px) {
    .table { gap: 20px; }
}

/* Etappe 14/16: „Du bist dran" unübersehbar (§4.15 — Banner kommt aus ../style.css) */
.hand-wrap.myturn {
    border-radius: 16px;
    background: rgba(242, 193, 78, .07);
    box-shadow: 0 0 0 3px rgba(242, 193, 78, .65), 0 0 48px rgba(242, 193, 78, .35);
    animation: pulse 1.6s infinite;
}

/* Etappe 14: Karten-Vorauswahl (lokal geplant) */
.hand .card.plan { transform: translateY(-14px); outline: 2px dashed rgba(242, 193, 78, .8); outline-offset: -2px; cursor: pointer; }
.hand .card.no { cursor: pointer; }   /* Vorauswahl ist immer möglich */

@media (min-width: 1100px) {
    :root { --card-w: 112px; }
    .table { gap: 56px; }
    .opp { font-size: 16px; min-width: 120px; }
}
