/* Pixel Sequence — board only */

.px-target {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.px-target span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 209, 102, 0.6);
    background: rgba(255, 209, 102, 0.08);
    color: #ffd166;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.px-target span.done {
    border-color: rgba(74, 222, 128, 0.75);
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.px-grid {
    display: grid;
    gap: 3px;
    justify-content: center;
    padding: 3px;
    border: 1px solid rgba(111, 214, 196, 0.2);
    background: rgba(0, 0, 0, 0.35);
}

.px-cell {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(111, 214, 196, 0.12);
    background: rgba(10, 22, 22, 0.85);
    color: rgba(236, 238, 242, 0.8);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.15rem;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.1s, background 0.1s, color 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.px-cell.cursor {
    border-color: #ffffff;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.2);
}

.px-cell.picked {
    background: rgba(74, 222, 128, 0.14);
    border-color: rgba(74, 222, 128, 0.7);
    color: #bfffcf;
}

.px-cell.wrong {
    border-color: #ff5a5a;
    color: #ff5a5a;
    animation: px-shake 0.16s;
}

@keyframes px-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@media (max-width: 480px) {
    .px-cell { width: 30px; height: 30px; font-size: 0.95rem; }
    .px-target span { width: 38px; height: 38px; font-size: 1.15rem; }
}
