.treasure-turn-game { width: min(100%, 440px); margin: 13px auto 0; }
.treasure-moves { margin: 0 0 8px; color: #734d22; font-weight: 850; }
.treasure-turn-map { display: grid; grid-template-columns: repeat(var(--treasure-side), minmax(0, 1fr)); gap: 3px; padding: 7px; border: 1px solid #ac7838; border-radius: 13px; background: #9d693e; box-shadow: inset 0 2px #ffd59699, 0 4px #edce9e; }
.treasure-turn-tile {
  position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; padding: 0; overflow: hidden;
  border: 1px solid #e0a661; border-radius: 7px; background: repeating-linear-gradient(161deg, #ffedb000 0 19px, #fdf1c04d 20px 21px), linear-gradient(143deg, #ffebb1, #e7bc72);
  color: #563b23; box-shadow: inset 0 1px #fff3cf;
}
.treasure-turn-tile:is(:hover, :focus-visible):is(button) { border-color: #ffed7d; filter: brightness(1.13); }
.treasure-turn-tile.is-wall { background: #b48352; border-color: #b48352; box-shadow: none; }
.treasure-turn-tile i { position: absolute; z-index: -1; background: #78563e; box-shadow: inset 0 0 0 2px #946549; }
.treasure-turn-tile i.arm-0 { inset: 0 40% 43%; }
.treasure-turn-tile i.arm-1 { inset: 40% 0 40% 43%; }
.treasure-turn-tile i.arm-2 { inset: 43% 40% 0; }
.treasure-turn-tile i.arm-3 { inset: 40% 43% 40% 0; }
.treasure-turn-tile.is-connected i { background: #48a35a; box-shadow: inset 0 0 0 2px #66bb6d; }
.treasure-center { color: #663918; font-size: clamp(.92rem, 4vw, 1.62rem); filter: drop-shadow(0 1px 2px #5a3f2d76); }
.treasure-controls { display: flex; justify-content: center; gap: 9px; margin: 13px 0 0; }
.game-preview-stage .treasure-turn-map { width: min(100%, calc(var(--preview-height, 138px) - 23px)); gap: 1px; padding: 4px; border-radius: 7px; }
.game-preview-stage .treasure-turn-tile { border-radius: 3px; }
.game-preview-stage .treasure-turn-tile i { box-shadow: none; }
.game-preview-stage .treasure-center { font-size: .77rem; }
