/* Bidi Bloklar — tahta, parça tepsisi, sürükleme hayaleti (kit.css üstüne). */
:root { --bk-pitch: 40px; --bk-cell: 38px; --bk-empty: #16431f; --bk-empty-2: #0f3317; --bk-frame: #0b2411; }
.bk { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.board.land .bk { flex-direction: row; gap: 26px; }
.bk-grid { position: relative; display: grid; grid-template-columns: repeat(10, var(--bk-cell)); grid-template-rows: repeat(10, var(--bk-cell)); gap: 2px; padding: 2px; flex: none;
  background: var(--bk-frame); border-radius: 9px; box-shadow: 0 8px 22px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .06); touch-action: none; }
.bk-cell { width: var(--bk-cell); height: var(--bk-cell); border-radius: 6px; background: linear-gradient(160deg, var(--bk-empty), var(--bk-empty-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); transition: background .1s, box-shadow .1s; }
.blk, .bk-cell.f { background: linear-gradient(160deg, var(--c1), var(--c2)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .38), inset 0 -3px 0 rgba(0, 0, 0, .22), 0 1px 2px rgba(0, 0, 0, .45); border-radius: 6px; }
.c-gold { --c1: #ffe27a; --c2: #e0a100; }
.c-blue { --c1: #7cc0ff; --c2: #1f6fc4; }
.c-teal { --c1: #6fe9d8; --c2: #12907f; }
.c-orange { --c1: #ffb86b; --c2: #d86a00; }
.c-red { --c1: #ff8e9a; --c2: #c42a3a; }
.c-green { --c1: #b6f07a; --c2: #4f9c16; }
.c-purple { --c1: #cfaeff; --c2: #7a46d9; }
.c-pink { --c1: #ff9fcd; --c2: #d0397f; }
.c-lime { --c1: #ecf98a; --c2: #9aad12; }
.bk-cell.prev { background: rgba(255, 255, 255, .30); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75); }
.bk-cell.will { box-shadow: inset 0 0 0 2px var(--gold), 0 0 10px rgba(255, 216, 77, .75); filter: brightness(1.15); }
.bk-cell.prev.will { background: rgba(255, 216, 77, .45); }
.bk-cell.cur { box-shadow: inset 0 0 0 2px #fff; }
.bk-cell.hintp { animation: bkhint .45s ease-in-out 4 alternate; }
@keyframes bkhint { to { background: var(--gold); box-shadow: 0 0 12px var(--gold); } }
.bk-cell.in { animation: bkin .18s ease-out; }
@keyframes bkin { from { transform: scale(.6); } }
.bk-fx { position: absolute; width: var(--bk-cell); height: var(--bk-cell); border-radius: 6px; pointer-events: none; z-index: 5; animation: bkclear .4s ease-out forwards; }
@keyframes bkclear { 40% { transform: scale(1.12); filter: brightness(1.6); } 100% { transform: scale(.15); opacity: 0; } }
.bk-tray { display: flex; gap: 12px; flex: none; touch-action: none; }
.board.land .bk-tray { flex-direction: column; }
.bk-slot { width: 124px; height: 124px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 2px solid rgba(255, 255, 255, .06); display: grid; place-items: center; position: relative; cursor: grab; transition: border-color .12s, background .12s; }
.bk-slot.has:hover { border-color: rgba(255, 255, 255, .3); }
.bk-slot.sel { border-color: var(--gold); background: rgba(255, 216, 77, .14); }
.bk-slot.dead .bk-piece { opacity: .35; filter: grayscale(.7); }
.bk-slot.lift .bk-piece { opacity: 0; }
.bk-slot.nope { animation: nope .25s; }
.bk-slot small { position: absolute; left: 7px; top: 4px; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .35); }
.bk-piece { position: relative; pointer-events: none; }
.bk-piece .blk { position: absolute; width: 20px; height: 20px; border-radius: 4px; }
.bk-ghost { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 50; will-change: transform; }
.bk-ghost .blk { position: absolute; width: var(--bk-cell); height: var(--bk-cell); opacity: .94; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.bk-ghost.bad .blk { opacity: .5; }
.bk-keys { font-size: 11px; color: var(--muted); text-align: center; }
.actions button:disabled { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: reduce) { .bk-cell.hintp, .bk-cell.in, .bk-fx, .bk-slot.nope { animation: none; } .bk-fx { opacity: 0; } }
