/* Spot the Difference Styles */
.game-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.game-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.view-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hidden {
    display: none !important;
}

.game-controls-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-family: var(--font-family-mono);
    color: var(--color-text-sub);
}

.game-board {
    width: 100%;
}

.scenes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.scene-wrapper {
    position: relative;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: crosshair;
    flex: 1 1 45%;
    /* Two columns */
    min-width: 300px;
    max-width: 600px;
    background: #f0f0f0;
    line-height: 0;
}

.scene-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.markers-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.found-marker {
    position: absolute;
    border: 3px solid #00ff00;
    border-radius: 50%;
    /* Default to circle, but clustering might want rects. Let's keep circle for now or override if we want rects. */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    background: rgba(0, 255, 0, 0.2);
    /* Width and Height set by JS using percentages */
    transform: none;
    border-radius: 10px;
    /* Rounded rect for clusters */
}

.wrong-marker {
    position: absolute;
    color: red;
    font-size: 2rem;
    font-weight: bold;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: fadeOut 1s forwards;
    z-index: 10;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.controls {
    margin-top: 1rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-text-sub);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-text:hover {
    color: var(--color-accent);
}

.feedback {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.feedback.success {
    color: var(--color-secondary);
    background: rgba(3, 218, 198, 0.1);
}

.feedback.error {
    color: var(--color-accent);
    background: rgba(207, 102, 121, 0.1);
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 2rem 0;
    background: var(--color-surface);
    flex-direction: column;
}

.score-circle::after {
    content: 'points';
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--color-text-sub);
}