/* Thela Push - Sokoban puzzle styling */
.sokoban-arena { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.sok-grid {
  display: grid;
  gap: 2px;
  padding: 8px;
  background: var(--casino-carbon, #12121e);
  border: 1px solid var(--casino-line, #2e2e44);
  border-radius: 12px;
  touch-action: none;
  max-width: 100%;
}
.sok-cell {
  width: clamp(30px, 8.4vw, 46px);
  height: clamp(30px, 8.4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 4.4vw, 26px);
  border-radius: 6px;
  background: rgba(255,255,255,.03);
  user-select: none;
}
.sok-cell.wall { background: linear-gradient(180deg,#3a3a52,#232338); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); }
.sok-cell.floor { background: rgba(124,92,255,.05); }
.sok-cell.target { background: rgba(255,212,0,.14); box-shadow: inset 0 0 0 1px rgba(255,212,0,.35); }
.sok-cell.target::after { content: "🎯"; position: absolute; opacity: .55; }
.sok-cell.crate-on::after { content: ""; }
.sok-cell .box-emoji, .sok-cell .player-emoji { position: relative; z-index: 2; }
.sok-cell.boxed .box-emoji { filter: drop-shadow(0 0 6px rgba(55,224,160,.8)); }
.sok-cell.player { background: rgba(124,92,255,.18); }
.sok-cell.pop { animation: sok-pop .18s ease; }
@keyframes sok-pop { 0%{transform:scale(.7)} 60%{transform:scale(1.12)} 100%{transform:scale(1)} }

.sok-dpad {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  grid-template-rows: repeat(2, 48px);
  gap: 6px;
  margin-top: 4px;
}
.sok-dbtn {
  border: 1px solid var(--casino-line,#2e2e44);
  background: var(--casino-panel,#1a1a2a);
  color: var(--casino-ink,#f5f6fa);
  font-size: 20px;
  border-radius: 10px;
  cursor: pointer;
  min-width: 44px; min-height: 44px;
}
.sok-dbtn:active { background: rgba(124,92,255,.3); }
.sok-dbtn.up { grid-column: 2; grid-row: 1; }
.sok-dbtn.left { grid-column: 1; grid-row: 2; }
.sok-dbtn.down { grid-column: 2; grid-row: 2; }
.sok-dbtn.right { grid-column: 3; grid-row: 2; }
.sok-dbtn.undo { grid-column: 3; grid-row: 1; font-size: 18px; color: #ffd400; }
.sok-dbtn.undo:active { background: rgba(255,212,0,.25); }

@media (max-width: 420px) {
  .sok-dpad { grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 44px); }
}
