.game-shell {
    max-width: 760px;
    margin: auto;
}

.game-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: end;
    margin-bottom: 20px;
}

.game-heading h1 {
    margin: 4px 0;
    font-size: 36px;
}

.game-heading p {
    color: var(--muted);
    margin: 0;
}

.game-progress {
    color: var(--accent-light);
    font-weight: 700;
    white-space: nowrap;
}

.sequence-card {
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.instruction {
    text-align: center;
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 22px;
}

.sequence {
    min-height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;
    flex-wrap: wrap;
}

.sequence-step {
    min-width: 105px;
    min-height: 105px;

    padding: 12px;

    background: #101728;
    border: 2px solid var(--border);
    border-radius: 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    animation: step-in .25s ease;
}

.sequence-emoji {
    font-size: 48px;
    line-height: 1;
}

.sequence-label {
    color: var(--muted);
    font-size: 11px;
    margin-top: 7px;
    text-align: center;
}

.sequence-arrow {
    color: var(--accent-light);
    font-size: 25px;
    font-weight: 800;
}

.sequence-question {
    min-width: 105px;
    min-height: 105px;

    border: 2px dashed var(--accent);
    border-radius: 16px;

    background: rgba(196, 154, 104, .08);

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--accent-light);
    font-size: 42px;
    font-weight: 900;
}

.choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    margin-top: 24px;
}

.choice {
    min-height: 115px;

    border: 2px solid var(--border);
    background: #101728;
    border-radius: 15px;

    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transition:
        transform .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.choice:hover:not(:disabled) {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.choice:focus-visible {
    outline: 3px solid var(--accent-light);
    outline-offset: 3px;
}

.choice:disabled {
    cursor: default;
}

.choice.correct {
    border-color: var(--good);
    background: rgba(85, 197, 138, .15);
    animation: correct-pop .3s ease;
}

.choice.wrong {
    border-color: #c54747;
    background: rgba(197, 71, 71, .10);
    animation: shake .3s ease;
}

.choice-emoji {
    font-size: 50px;
    line-height: 1;
}

.choice-label {
    color: var(--muted);
    font-size: 11px;
    margin-top: 7px;
}

.feedback {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    margin-top: 16px;

    font-weight: 700;
    line-height: 1.45;
}

.feedback.good {
    color: var(--good);
}

.feedback.try {
    color: var(--accent-light);
}

.game-actions {
    display: flex;
    justify-content: center;
    gap: 9px;

    margin-top: 15px;
}

.game-button,
.secondary-button {
    min-height: 46px;

    padding: 10px 17px;

    border-radius: 10px;

    cursor: pointer;
    font-weight: 700;
}

.game-button {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #111827;
}

.game-button:disabled {
    opacity: .4;
    cursor: default;
}

.secondary-button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

@keyframes step-in {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes correct-pop {
    0% {
        transform: scale(.96);
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@media (max-width: 600px) {

    .game-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .sequence-card {
        padding: 14px;
    }

    .instruction {
        font-size: 18px;
    }

    .sequence {
        gap: 7px;
    }

    .sequence-step,
    .sequence-question {
        min-width: 70px;
        min-height: 82px;
        padding: 8px;
    }

    .sequence-emoji {
        font-size: 37px;
    }

    .sequence-label {
        font-size: 9px;
    }

    .sequence-arrow {
        font-size: 18px;
    }

    .sequence-question {
        font-size: 32px;
    }

    .choices {
        gap: 8px;
    }

    .choice {
        min-height: 100px;
    }

    .choice-emoji {
        font-size: 42px;
    }
}

@media (max-width: 380px) {

    .sequence-step,
    .sequence-question {
        min-width: 62px;
        min-height: 75px;
    }

    .sequence-emoji {
        font-size: 32px;
    }

    .sequence-arrow {
        font-size: 15px;
    }

    .choice-label {
        display: none;
    }
}
