.mj-wrap { container-type: inline-size; background: radial-gradient(ellipse at center, #13705b, #0a3d33 75%); border-radius: 16px; padding: 18px 10px 14px; overflow: hidden; }
.mj-board { --tw: min(52px, calc((100cqw - 8px) / (var(--cols) + .5))); --th: calc(var(--tw) * 1.32); --d: calc(var(--tw) * .12); position: relative; margin: 0 auto; width: calc(var(--cols) * var(--tw) + var(--layers) * var(--d)); height: calc(var(--rows) * var(--th) + var(--layers) * var(--d)); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.mj-tile { position: absolute; left: calc(var(--x) * var(--tw) + (var(--layers) - var(--z)) * var(--d)); top: calc(var(--y) * var(--th) + (var(--layers) - var(--z)) * var(--d) - var(--layers) * var(--d) + var(--d) * 2); width: var(--tw); height: var(--th); padding: 0; border: 0; border-radius: calc(var(--tw) * .12); background: linear-gradient(160deg, #fffdf6, #f1ead6); box-shadow: calc(var(--d) * -1) var(--d) 0 #d8c9a0, calc(var(--d) * -1 - 1px) calc(var(--d) + 1px) 0 rgba(0,0,0,.35); cursor: default; transition: transform .1s ease, opacity .15s ease; }
.mj-tile svg { width: 100%; height: 100%; display: block; padding: 6%; }
.mj-tile.free { cursor: pointer; }
.mj-tile:not(.free) svg { opacity: .78; }
.mj-tile:not(.free) { filter: brightness(.9); }
.mj-tile.sel { background: linear-gradient(160deg, #fff4c2, #f1dd8e); transform: translateY(-3px); box-shadow: calc(var(--d) * -1) var(--d) 0 #c9a227, 0 0 0 3px var(--chip); z-index: 50; }
.mj-tile.hint { animation: mj-hint .9s ease 2; }
@keyframes mj-hint { 50% { box-shadow: 0 0 0 4px #7fe0c2; transform: translateY(-3px); } }
.mj-tile.out { opacity: 0; transform: scale(.8); }
.mj-tile.shake { animation: mj-shake .3s ease; }
@keyframes mj-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
