#quiz-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

#quiz-score {
    font-size: 1.2rem;
    font-weight: bold;
}

#quiz-objects {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.quiz-object-wrapper {
    cursor: grab;
    touch-action: none;
}

.quiz-object-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    background: var(--md-code-bg-color, #eee);
    border-radius: 8px;
    padding: 6px;
    border: 2px solid var(--md-default-fg-color--lighter, #ccc);
    -webkit-user-drag: none;
    user-select: none;
    touch-action: none;
}

.quiz-hidden-original {
    opacity: 0.2;
}

.quiz-dragging-clone {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    width: 48px;
    height: 48px;
    opacity: 0.9;
    transform: scale(1.1);
}

#quiz-mods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.quiz-mod-target {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    min-height: 110px;
    padding: 0.75rem;
    box-sizing: border-box;
    border: 2px dashed var(--md-default-fg-color--lighter, #ccc);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.quiz-mod-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.quiz-mod-label {
    width: 100%;
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
    margin-top: 0.35rem;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.quiz-solved-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    background: white;
    border-radius: 50%;
    border: 2px solid #4caf50;
    padding: 2px;
}

.quiz-spark {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2000;
    animation: quiz-spark-fly 0.6s ease-out forwards;
}

.quiz-spark-green {
    background: #4caf50;
    box-shadow: 0 0 6px #4caf50;
}

.quiz-spark-red {
    background: #f44336;
    box-shadow: 0 0 6px #f44336;
}

@keyframes quiz-spark-fly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx), var(--dy)) scale(0.2);
        opacity: 0;
    }
}