/* Sequence Memory — board only */

.sm-grid {
    display: grid;
    gap: 0.45rem;
    justify-content: center;
    width: 100%;
    max-width: 380px;
}

/* The grid keeps a fixed ceiling instead of filling the panel: tiles are
   square, so a 718px-wide board meant 180px tiles, a taller-than-panel board
   and the shell's fit-zoom halving everything. 380px is 4 rows of ~90px. */
.gui-board > .sm-grid {
    width: min(100%, 380px);
    max-width: min(100%, 380px);
    margin-inline: auto;
}

.sm-tile {
    aspect-ratio: 1;
    border: 2px solid rgba(111, 214, 196, 0.28);
    background: rgba(10, 22, 22, 0.9);
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s, box-shadow 0.1s, transform 0.08s;
    -webkit-tap-highlight-color: transparent;
}

.sm-tile:hover:not(.locked) {
    border-color: rgba(111, 214, 196, 0.6);
}

.sm-tile.flash {
    background: rgba(111, 214, 196, 0.55);
    border-color: #6fd6c4;
    box-shadow: 0 0 22px rgba(111, 214, 196, 0.55);
}

.sm-tile.press {
    background: rgba(255, 209, 102, 0.45);
    border-color: #ffd166;
    transform: scale(0.96);
}

.sm-tile.wrong {
    background: rgba(255, 90, 90, 0.5);
    border-color: #ff5a5a;
}

.sm-tile.locked {
    cursor: default;
}
