/* Spite & Malice — spielspezifische Styles (Chrome aus ../style.css) */
:root {
    --card-w: clamp(46px, 10.5vw, 72px);
    --card-h: calc(var(--card-w) * 1.4);
}

/* 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: 800; display: grid; place-items: center; font-size: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.mini-card.star { background: linear-gradient(150deg, #9a6bff, #4f8cff); color: #fff; }
.hero-cards .mini-card:nth-child(1) { transform: rotate(-10deg) translateY(6px); }
.hero-cards .mini-card:nth-child(3) { transform: rotate(10deg) translateY(6px); }

/* Gegner */
.opponents { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.opp {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 14px; border-radius: 12px; background: var(--panel);
    border: 1px solid var(--panel-border); min-width: 110px;
}
.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 .info { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.opp .scard { transform: scale(.62); transform-origin: center; margin: -12px -8px; }
@keyframes pulse { 50% { box-shadow: 0 0 26px rgba(242, 193, 78, .4); } }

/* Spielkarten */
.scard {
    width: var(--card-w); height: var(--card-h); border-radius: calc(var(--card-w) * .13);
    background: #fdfdfa; color: #1c2230; font-weight: 800;
    display: grid; place-items: center; font-size: calc(var(--card-w) * .42);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .4); position: relative; user-select: none;
    border: 0; font-family: inherit; padding: 0;
}
.scard.star { background: linear-gradient(150deg, #9a6bff, #4f8cff); color: #fff; }
.scard.empty { background: rgba(255, 255, 255, .06); border: 2px dashed var(--panel-border); box-shadow: none; color: var(--muted); }
.scard .cnt {
    position: absolute; right: -8px; top: -8px; background: var(--accent); color: #fff;
    border-radius: 999px; min-width: 22px; padding: 2px 6px; font-size: 12px; font-weight: 700;
}
.scard.sel { outline: 3px solid var(--gold); outline-offset: 2px; transform: translateY(-6px); }
.scard.src-ok { cursor: pointer; }
.scard.target { outline: 3px dashed rgba(79, 140, 255, .8); outline-offset: 2px; cursor: pointer; animation: target-pulse 1.2s infinite; }
@keyframes target-pulse { 50% { outline-color: rgba(79, 140, 255, .35); } }

/* Mitte */
.center-row { display: flex; justify-content: center; }
.center-piles { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(63, 191, 111, .06); border: 1px solid rgba(63, 191, 111, .25); }

/* Mein Bereich */
.my-area { margin-top: auto; }
.my-row { display: flex; justify-content: center; gap: 26px; align-items: flex-end; margin: 12px 0 4px; flex-wrap: wrap; }
.src .lbl { display: block; font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 6px; letter-spacing: .03em; }
.off-piles { display: flex; gap: 8px; }
.off-piles .scard { --card-w: clamp(40px, 8.5vw, 58px); width: var(--card-w); height: calc(var(--card-w) * 1.4); }
.goal-wrap .scard { box-shadow: 0 0 0 3px rgba(242, 193, 78, .4), 0 5px 14px rgba(0, 0, 0, .4); }

.hand-wrap { text-align: center; }
.hand { display: flex; justify-content: center; flex-wrap: wrap; padding: 12px 6px 6px; min-height: calc(var(--card-h) + 20px); }
.hand .scard { margin: 0 calc(var(--card-w) * -0.12); cursor: pointer; transition: transform .12s; }
.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; }

/* §4.16 Desktop-Fill */
@media (min-width: 1100px) {
    :root { --card-w: 96px; }
    .center-piles { gap: 18px; padding: 16px; }
}

/* ── Etappe 25 (H2): Wertfarben, Richtungen, Badges, Durchsicht, Motion ── */
.scard.v-lo { background: linear-gradient(150deg, #5b93f5, #3763bd); color: #fff; }
.scard.v-mid { background: linear-gradient(150deg, #46c47c, #2c8f56); color: #fff; }
.scard.v-hi { background: linear-gradient(150deg, #ef5b60, #c03338); color: #fff; }
.scard.star { background: linear-gradient(150deg, #9a6bff, #5f3ec2); color: #fff; }

.scard .dirmark {
    position: absolute; left: 3px; top: 2px; font-size: calc(var(--card-w) * .2);
    opacity: .8; font-weight: 900;
}
.scard.ghost { color: var(--muted); font-size: calc(var(--card-w) * .3); }
.scard .wmark {
    position: absolute; left: -7px; bottom: -7px; width: 22px; height: 22px;
    display: grid; place-items: center; border-radius: 50%; font-size: 13px;
    background: #5f3ec2; color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.scard .cnt { cursor: pointer; }

.opp-offs { display: flex; gap: 3px; margin-top: 5px; }
.opp-offs .minioff { --card-w: 26px; width: 26px; height: 37px; border-radius: 5px; font-size: 13px; cursor: pointer; }
.opp-offs .minioff .cnt { min-width: 16px; padding: 1px 4px; font-size: 10px; right: -5px; top: -5px; }

.pi-cards { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; max-height: 50dvh; overflow-y: auto; }
.pi-cards .scard { cursor: default; }

.scard.pop { animation: sp-pop .28s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes sp-pop { from { transform: scale(.55) rotate(-10deg); opacity: .4; } to { transform: none; opacity: 1; } }
.hand .scard.deal { animation: sp-deal .3s ease-out; }
@keyframes sp-deal { from { transform: translateY(30px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
