/* Copyright (c) 2026 Dominic Masters * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ .tile-palette { display: flex; flex-direction: column; flex-wrap: wrap; gap: 6px; max-height: 600px; } .tile-swatch { position: relative; width: 32px; height: 32px; border: 2px solid transparent; border-radius: 4px; cursor: pointer; padding: 0; } .tile-swatch.active { border-color: #fff; } .tile-swatch-icon { position: absolute; top: 0; left: 0; pointer-events: none; } .dpad { display: grid; grid-template-columns: repeat(3, 2rem); grid-template-rows: repeat(3, 2rem); grid-template-areas: ". n ." "w . e" ". s ."; gap: 2px; } .dpad-n { grid-area: n; } .dpad-w { grid-area: w; } .dpad-e { grid-area: e; } .dpad-s { grid-area: s; } .dpad button { padding: 0; } .tile-grid { image-rendering: pixelated; cursor: crosshair; touch-action: none; max-width: 100%; height: auto; } #previewCanvas { width: 100%; aspect-ratio: 1 / 1; height: auto; }