/* Okey (Zugzwang-Import) */
.hero-okey { display: flex; gap: 8px; justify-content: center; }
.hero-okey span { width: 52px; height: 70px; display: grid; place-items: center; border-radius: 9px; background: #f5ecd7;
    font-size: 30px; font-weight: 800; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12), 0 6px 14px rgba(0, 0, 0, .35); }
.hero-okey .r { color: #d32f2f; } .hero-okey .b { color: #1565c0; } .hero-okey .k { color: #1b1b1b; }

.ok-stein { --w: 36px; width: var(--w); height: calc(var(--w) * 1.36); display: inline-grid; place-items: center; position: relative;
    border-radius: calc(var(--w) * .18); background: linear-gradient(#fbf4e3, #ecdfc2); font-weight: 800; font-size: calc(var(--w) * .55);
    box-shadow: inset 0 calc(var(--w) * -.12) 0 rgba(0, 0, 0, .12), 0 2px 5px rgba(0, 0, 0, .35); line-height: 1; user-select: none; }
.ok-stein i { position: absolute; bottom: 14%; width: 22%; height: 9%; border-radius: 99px; background: currentColor; opacity: .8; }
.ok-stein.f-r { color: #d32f2f; } .ok-stein.f-y { color: #c77700; } .ok-stein.f-b { color: #1565c0; } .ok-stein.f-k { color: #1b1b1b; }
.ok-stein.fake { color: #7b1fa2; }
.ok-stein.okey::after { content: '★'; position: absolute; top: 3%; right: 6%; font-size: calc(var(--w) * .26); color: #f59e0b; }
.ok-stein.klein { --w: 24px; }
.ok-leer { color: var(--muted); }

.ok-mitte { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 10px; }
.ok-goes, .ok-pile, .ok-links { display: grid; justify-items: center; gap: 4px; min-width: 92px; padding: 8px 10px; border-radius: 14px;
    background: var(--panel); border: 1px solid var(--panel-border); color: var(--text); font: inherit; }
.ok-pile, .ok-links { cursor: pointer; }
.ok-pile:disabled, .ok-links:disabled { cursor: default; opacity: .75; }
.ok-pile b { font-size: 22px; }
.ok-pile.blink { border-color: var(--gold, #f2c14e); box-shadow: 0 0 14px rgba(242, 193, 78, .35); }
.ok-lbl { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ok-okey { font-size: 12.5px; color: var(--gold, #f2c14e); font-weight: 700; }

.ok-ablagen { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.ok-abl { display: inline-flex; align-items: center; gap: 6px; }

.ok-hand-ende { text-align: center; margin: 6px auto 12px; }
.ok-sieger { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin: 8px 0; }

/* Das Gestell: zwei Reihen à 15 — aus Holz */
.ok-gestell-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.ok-hinweis { font-size: 12.5px; color: var(--muted); }
.ok-sort { min-height: 38px; padding: 0 14px; font-size: 14px; }
.ok-gestell {
    --w: min(calc((100vw - 64px) / 15 - 3px), 46px);
    display: grid; grid-template-columns: repeat(15, var(--w)); gap: 3px; justify-content: center;
    padding: 10px 8px 14px; margin-top: 6px; border-radius: 14px;
    background: linear-gradient(#8a5a2b, #6b4220); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25), 0 8px 18px rgba(0, 0, 0, .35);
}
.ok-platz { all: unset; width: var(--w); height: calc(var(--w) * 1.36); border-radius: 7px; background: rgba(0, 0, 0, .18); cursor: pointer;
    display: grid; place-items: center; }
.ok-platz .ok-stein { --w: inherit; }   /* nicht var(--w): eine Variable darf nicht auf sich selbst zeigen */
.ok-platz.gewaehlt .ok-stein { transform: translateY(-6px); outline: 3px solid #fbbf24; }
.ok-platz:focus-visible { outline: 2px solid var(--accent); }
@media (prefers-reduced-motion: reduce) { .ok-platz.gewaehlt .ok-stein { transform: none; } }

.ok-aktionen { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.ok-aktionen .btn { min-height: 48px; min-width: 130px; }
.ok-bitti:not(:disabled) { background: linear-gradient(120deg, #16a34a, #22c55e); color: #fff; border: 0; }
/* Handy: 15 nebeneinander wären ~19 px — drei Reihen à 10 bleiben lesbar */
@media (max-width: 600px) {
    .ok-gestell { --w: min(calc((100vw - 56px) / 10 - 3px), 44px); grid-template-columns: repeat(10, var(--w)); }
}
