/* Schach — spielspezifische Styles (Chrome aus ../style.css).
   Eigene Optik: dunkles Brett in Plattform-Farben, Unicode-Figuren. */

.hero-chess { display: flex; justify-content: center; gap: 6px; font-size: 46px; line-height: 1; margin-bottom: 6px; }
.hero-chess span:nth-child(1) { color: #4f8cff; transform: rotate(-8deg); }
.hero-chess span:nth-child(2) { color: var(--gold); }
.hero-chess span:nth-child(3) { color: #e5484d; transform: rotate(8deg); }

.players { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.pl {
    display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 12px;
    background: var(--panel); border: 1px solid var(--panel-border); font-size: 14px;
}
.pl .nm { display: flex; align-items: center; gap: 6px; }
.pl .side { font-weight: 700; font-size: 13px; }
.pl .side.w { color: #e8ecf3; }
.pl .side.b { color: var(--muted); }
.pl.turn { border-color: var(--gold); box-shadow: 0 0 18px rgba(242, 193, 78, .25); animation: focus-pulse 1.6s infinite; }

/* Brett: an Container UND Viewport-Höhe gekoppelt (S15) */
.chess-board {
    display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
    aspect-ratio: 1; margin: 6px auto;
    width: min(100%, 560px);
    width: clamp(280px, min(100%, calc(100dvh - 330px)), 560px);
    max-width: 100%;
    border: 1px solid var(--panel-border); border-radius: 12px; overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}
.chess-board.focus { box-shadow: 0 0 0 1px rgba(242, 193, 78, .35), 0 14px 40px rgba(0, 0, 0, .45); }
.sq {
    border: 0; padding: 0; position: relative; cursor: default; min-width: 0; min-height: 0;
    display: grid; place-items: center; font: inherit;
}
.sq.light { background: #cfd6e4; }
.sq.dark { background: #6b7a99; }
.sq.can { cursor: pointer; }
.sq.lm { box-shadow: inset 0 0 0 3px rgba(242, 193, 78, .5); }
.sq.sel { box-shadow: inset 0 0 0 3px var(--gold); }
.sq.check { background: radial-gradient(circle, rgba(229, 72, 77, .95) 20%, transparent 72%), #6b7a99; animation: focus-pulse 1.2s infinite; }
/* Zielmarken: Punkt = ziehen, Ring = schlagen */
.sq.move::after {
    content: ''; position: absolute; width: 30%; height: 30%; border-radius: 50%;
    background: rgba(30, 40, 60, .45); pointer-events: none;
}
.sq.hit::after {
    content: ''; position: absolute; inset: 6%; border-radius: 50%;
    box-shadow: inset 0 0 0 4px rgba(229, 72, 77, .85); pointer-events: none;
}
.sq.move, .sq.hit { cursor: pointer; }
.pc {
    font-size: clamp(22px, 8.4vw, 46px); line-height: 1; user-select: none;
    animation: pc-in .18s ease-out;
}
.pc.wp { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 3px rgba(0, 0, 0, .5); }
.pc.bp { color: #12161f; text-shadow: 0 1px 1px rgba(255, 255, 255, .25); }
@keyframes pc-in { from { transform: scale(.82); } to { transform: none; } }

.under-board {
    display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap;
    width: min(100%, 560px); margin: 4px auto 10px;
}
.captured { display: flex; flex-wrap: wrap; gap: 2px; font-size: 20px; line-height: 1; flex: 1; min-width: 0; }
.captured .cap.wp { color: #e8ecf3; }
.captured .cap.bp { color: #7c879b; }
.cap-none { font-size: 12.5px; color: var(--muted); }
.btn.danger { border-color: rgba(229, 72, 77, .55); color: var(--red); min-height: 44px; }

.promo-picks { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.promo-btn { display: grid; place-items: center; gap: 2px; min-width: 74px; min-height: 78px; }
.promo-btn .pc { font-size: 34px; }
.promo-btn small { color: var(--muted); font-weight: 600; }

/* §4.16 Desktop-Fill */
@media (min-width: 1100px) {
    .chess-board { width: clamp(280px, min(100%, calc(100dvh - 300px)), 640px); }
    .under-board { width: min(100%, 640px); }
    .pc { font-size: clamp(22px, 4.6vw, 54px); }
}
