.numbers-game-page {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    position: relative;
}

.numbers-game-page h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.numbers-game-page > p {
    text-align: center;
    margin-bottom: 1.5rem;
}

.numbers-hud {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.numbers-hud > div {
    background: #fff7df;
    border: 3px solid #ffd166;
    border-radius: 18px;
    padding: 0.9rem;
    text-align: center;
    font-weight: 700;
}

.numbers-hud .label {
    display: block;
    color: #7b6680;
    font-size: 0.9rem;
}

.numbers-feedback {
    min-height: 2.2rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.speak-btn {
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ecdc4, #06d6a0);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.monster-stage {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 1.5rem;
    align-items: center;
}

.monster-face {
    background: linear-gradient(180deg, #ff8fab, #ff6b8b);
    border-radius: 38px;
    min-height: 240px;
    padding: 1.2rem;
    position: relative;
    box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08);
}

.monster-eyes {
    display: flex;
    justify-content: space-around;
    margin-top: 1.2rem;
}

.monster-eyes span {
    width: 38px;
    height: 48px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.monster-eyes span::after {
    content: "";
    width: 16px;
    height: 16px;
    background: #2d3047;
    border-radius: 50%;
    position: absolute;
    top: 18px;
    left: 11px;
}

.monster-mouth {
    width: 78%;
    min-height: 84px;
    margin: 2.3rem auto 0;
    border-radius: 0 0 80px 80px;
    background: #642b36;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    border: 6px solid #2d3047;
}

.monster-prompt {
    background: linear-gradient(135deg, #eefaf8, #fff8ee);
    border: 3px dashed #4ecdc4;
    border-radius: 22px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.monster-prompt p {
    font-size: 1.15rem;
    font-weight: 700;
}

.monster-tray {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.monster-item {
    border: 3px solid #ffd166;
    background: #fffaf1;
    border-radius: 20px;
    min-height: 112px;
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.monster-item:hover,
.monster-item:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.monster-item.is-fed {
    opacity: 0.45;
    transform: scale(0.96);
}

.monster-item-emoji {
    font-size: 2rem;
}

.monster-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.monster-actions button {
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.4rem;
    font-family: 'Fredoka One', cursive;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #9b5de5, #ff6b8b);
}

@media (max-width: 820px) {
    .numbers-hud {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .monster-stage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .numbers-game-page {
        padding: 1.25rem;
    }

    .numbers-hud {
        grid-template-columns: 1fr;
    }
}
