.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-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);
}

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

.path-prompt-panel {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    background: linear-gradient(135deg, #eef8ff, #f8fff3);
    border: 3px dashed #06d6a0;
    border-radius: 24px;
    padding: 1.2rem;
    margin-bottom: 1.4rem;
    align-items: center;
}

.path-prompt-panel p {
    font-weight: 700;
}

.path-prompt-hint {
    color: #6b7b86;
    margin-top: 0.25rem;
}

.path-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.3rem;
}

.path-cell {
    min-height: 68px;
    border-radius: 18px;
    background: #f5f3ff;
    border: 3px solid #d7c6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'Fredoka One', cursive;
    font-size: 1.35rem;
}

.path-cell.is-current {
    background: #fff0c4;
    border-color: #ffb703;
}

.path-cell.is-answer {
    background: #dff8ef;
    border-color: #06d6a0;
}

.path-token {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 1.25rem;
}

.path-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.9rem;
}

.path-options button {
    min-height: 74px;
    border: 3px solid #4ecdc4;
    border-radius: 20px;
    background: white;
    font-family: 'Fredoka One', cursive;
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.path-options button:hover,
.path-options button:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

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

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

    .path-prompt-panel {
        grid-template-columns: 1fr;
    }
}
