.missing-page {
    padding-bottom: 4rem;
    background:
        radial-gradient(circle at top left, rgba(255, 218, 125, 0.26), transparent 28%),
        radial-gradient(circle at top right, rgba(124, 198, 255, 0.2), transparent 26%),
        linear-gradient(180deg, #fffdf6 0%, #fdfefe 100%);
}

.missing-hero {
    padding: 1.5rem 0 0;
}

.missing-copy p {
    max-width: 58ch;
    color: var(--muted);
}

.missing-sheet-wrap {
    margin-top: 1.5rem;
}

.missing-sheet {
    position: relative;
    padding: 2rem;
    border: 4px solid #23355b;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 219, 130, 0.32) 0 24px, transparent 25px 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 249, 236, 0.95) 100%);
    box-shadow: 0 18px 42px rgba(23, 38, 60, 0.1);
    overflow: hidden;
}

.missing-sheet::before,
.missing-sheet::after {
    content: '';
    position: absolute;
    pointer-events: none;
    opacity: 0.14;
}

.missing-sheet::before {
    width: 120px;
    height: 120px;
    inset: 18px auto auto 24px;
    background: radial-gradient(circle, #ffcf54 0 14px, transparent 16px 100%);
}

.missing-sheet::after {
    width: 180px;
    height: 180px;
    right: -30px;
    top: -30px;
    background: radial-gradient(circle, #7fd1ff 0 12px, transparent 14px 100%);
}

.missing-header {
    position: relative;
    margin-bottom: 1.5rem;
}

.worksheet-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.missing-header h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
    color: #1b2e57;
    letter-spacing: 0.03em;
}

.missing-header p {
    margin: 0;
    color: #29466f;
    font-size: 1.1rem;
    font-weight: 700;
}

.worksheet-actions {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.question-grid {
    display: grid;
    gap: 0;
    border: 3px solid #23355b;
}

.missing-grid {
    grid-template-columns: 1fr;
}

.missing-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 3px solid #23355b;
    background: rgba(255, 255, 255, 0.94);
}

.missing-card:last-child {
    border-bottom: 0;
}

.number-stage {
    display: grid;
    gap: 0.7rem;
    justify-items: center;
}

.number-question {
    margin: 0;
    color: #1b2e57;
    font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    text-align: center;
}

.number-path {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    padding: 0.8rem 0.25rem;
}

.number-circle {
    width: clamp(46px, 6vw, 60px);
    height: clamp(46px, 6vw, 60px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 4px solid #23355b;
    font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    color: #17325e;
    box-shadow: inset 0 -4px 0 rgba(35, 53, 91, 0.08);
}

.number-circle[data-color="1"] {
    background: linear-gradient(180deg, #ffe99d 0%, #ffd66c 100%);
}

.number-circle[data-color="2"] {
    background: linear-gradient(180deg, #cce9ff 0%, #a8d5ff 100%);
}

.number-circle[data-color="3"] {
    background: linear-gradient(180deg, #ffd0db 0%, #ffb3c6 100%);
}

.number-circle[data-color="4"] {
    background: linear-gradient(180deg, #d8f6c8 0%, #bbea9c 100%);
}

.number-circle[data-color="5"] {
    background: linear-gradient(180deg, #ead7ff 0%, #d2b7ff 100%);
}

.number-circle.is-missing {
    background: linear-gradient(180deg, #ffffff 0%, #fff7d8 100%);
    color: transparent;
    position: relative;
}

.number-circle.is-missing::after {
    content: '?';
    color: #17325e;
}

.choice-column {
    display: grid;
    gap: 0.75rem;
}

.missing-choice {
    min-height: 66px;
    padding: 0.8rem 1rem;
    border: 3px solid #23355b;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fff7d8 100%);
    color: #14284f;
    font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.missing-choice:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(35, 53, 91, 0.1);
}

.missing-choice.is-wrong {
    background: #d64747;
    border-color: #a11f1f;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.missing-choice.is-right {
    background: #2ea85f;
    border-color: #1e7b42;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.missing-choice.is-locked {
    cursor: default;
}

.feedback-text {
    min-height: 24px;
    font-weight: 800;
    font-size: 1rem;
    color: #2f2f2f;
}

.feedback-text.is-right {
    color: #1e7b42;
}

.feedback-text.is-wrong {
    color: #a11f1f;
}

@media (max-width: 900px) {
    .missing-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .missing-sheet {
        padding: 1rem;
    }

    .number-path {
        gap: 0.3rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.3rem;
    }

    .missing-choice {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .missing-choice {
        min-height: 58px;
        font-size: 1.2rem;
    }
}
