/* Sequence Memory - refined classic clean */
.sequence-shell {
    max-width: 920px;
    margin: 0 auto;
    background: linear-gradient(180deg, #f9f3e4 0%, #f3ead3 100%);
    border: 2px solid #8f7a4c;
    border-radius: 16px;
    padding: 10px;
    box-shadow: none;
}

.sequence-control-row {
    max-width: 720px;
    margin: 0.8rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #cbb17a;
    border-radius: 12px;
    background: #f7edd8;
}

.sequence-status-row {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.sequence-status-pill {
    min-width: 116px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #b79a61;
    background: #fbf8ef;
    color: #3b3e2f;
    font-size: 0.92rem;
    font-weight: 700;
}

.sequence-status-pill i {
    color: #8c6f39;
}

.sequence-status-pill strong {
    color: #1f5d45;
}

.instruction-box {
    text-align: center;
    margin: 0.8rem auto;
    padding: 0.9rem 1rem;
    border: 1px solid #cfb683;
    border-radius: 12px;
    background: #fff8e7;
    max-width: 720px;
}

.instruction-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #5b4a2b;
}

.sequence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    max-width: 470px;
    margin: 0.9rem auto;
}

.sequence-btn {
    appearance: none;
    aspect-ratio: 1;
    border-radius: 16px;
    border: 2px solid #cfb683;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
    font-size: 2.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fffaf0 0%, #f5ebd6 100%);
    color: #3f3a2b;
    user-select: none;
    box-shadow: none;
}

.sequence-btn:hover {
    transform: translateY(-2px);
    border-color: #b89253;
}

.sequence-btn:active {
    transform: translateY(0);
}

.sequence-btn.flash {
    background: linear-gradient(180deg, #2a6a4d 0%, #1f5b40 100%);
    color: #f8edd1;
    border-color: #1f5b40;
    transform: scale(1.03);
}

.sequence-grid.disabled .sequence-btn {
    pointer-events: none;
    opacity: 0.7;
}

.sequence-start-btn {
    min-height: 48px;
    border-radius: 10px;
    padding: 0 18px;
    font-size: 0.98rem;
    font-weight: 700;
    border: 1px solid #9b7839;
    background: linear-gradient(180deg, #d4af63 0%, #b08a45 100%);
    color: #1f2a22;
    box-shadow: none;
    min-width: 220px;
}

.sequence-start-btn i {
    margin-right: 6px;
}

.sequence-control-row #resetBtn {
    display: none !important;
}

.sequence-guide {
    margin-top: 0.85rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.sequence-guide h4 {
    margin: 0;
    color: #594b2e;
}

.sequence-guide h4 i {
    color: #8c6f39;
}

.sequence-guide p {
    color: #5e644f;
}

.sequence-bottom-link {
    width: 100%;
    max-width: 720px;
    margin: 8px auto 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 860px) {
    .sequence-grid {
        max-width: 400px;
        gap: 0.75rem;
    }

    .sequence-btn {
        font-size: 1.9rem;
    }
}

@media (max-width: 600px) {
    .sequence-grid {
        max-width: 320px;
        gap: 0.6rem;
    }

    .sequence-btn {
        font-size: 1.55rem;
        border-radius: 14px;
    }

    .instruction-text {
        font-size: 1.05rem;
    }

    .sequence-control-row {
        flex-direction: column;
        align-items: stretch;
    }

    .sequence-start-btn {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .sequence-status-row {
        justify-content: center;
    }
}

/* Header contrast fix on dark background */
.game-container > .game-header .game-title {
    color: #f8edd1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.game-container > .game-header .game-subtitle {
    color: #e8dcc0;
}

.game-container > .game-header .text-primary-accent {
    color: #e7c57d;
}
