#gameRoot.game-screen.coloring {
    background: radial-gradient(75% 75% at 2% 9%, #ffeb001c 0%, #89ff0700 71%), radial-gradient(70% 53% at 36% 76%, #d32e991c 0%, #073AFF00 100%), linear-gradient(125deg, #feffed 1%, #f1faff 100%);
}

.coloring-game-stage {
    display: flex;
    gap: clamp(1rem, 3vw, 3rem);
    justify-content: space-between;
}

.coloring-svg-container svg {
    width: 99vw !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 70vh !important;
}

.coloring-palette,
.coloring-toolbar {
    display: grid;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    align-content: center;
    border: solid #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: #fff;
}

.color-tool {
    width: 36px;
    aspect-ratio: 1;
    background: white;
    border: solid 2px transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
}

.color-tool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    border-radius: 50%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    filter: blur(1px);
    opacity: 0.6;
}

.color-tool:hover {
    transform: scale(1.1);
    z-index: 100;
}

.color-tool.active {
    transform: scale(1.3);
    z-index: 100;
    border: solid 2px #000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.coloring-fillable:hover {
    filter: brightness(1.08) drop-shadow(0 2px 8px rgba(139, 92, 246, 0.35));
}

.coloring-fillable {
    cursor: pointer;
    transition: filter 0.1s ease;
}

.color-tool-white {
    border: solid 2px #eee;
}

.coloring-svg-container .hint-highlight {
    animation: hintPulse 0.7s ease-in-out infinite alternate;
}

@keyframes hintPulse {
    from {
        filter: drop-shadow(0 0 4px yellow) brightness(1.1);
    }

    to {
        filter: drop-shadow(0 0 10px yellow) brightness(1.4);
    }
}

.coloring-level-selector {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 1rem;
}

.coloring-level-selector button {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-radius: 1rem;
    padding: 0.75rem;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.coloring-level-selector button img {
    height: 5rem;
    width: auto;
    aspect-ratio: 1 / 1;
}

.coloring-level-selector button:hover {
    transform: translateY(-4px);
    background: #fff6d6;
    box-shadow: inset -2px -2px 4px 0px rgba(255, 255, 255, 0.2), 0 8px 16px -2px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Eredeti kép gomb */
.show-original-btn {
    padding: 2px !important;
}

.show-original-btn::before {
    display: none;
}

/* Eredeti kép popup */
.original-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.original-popup {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popIn 0.25s ease;
    text-align: center;
}

.original-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.original-popup-close:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.original-popup-img {
    width: 100%;
    max-width: 70vw;
    max-height: 60vh;
    border-radius: 0.5rem;
}

.original-popup-title {
    margin: 1rem 0 0;
    font-size: 1rem;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .coloring-game-stage {
        flex-direction: column;
        gap: 1rem;
    }

    .coloring-level-selector {
        flex-direction: row;
    }

    .coloring-palette,
    .coloring-toolbar {
        display: inline-flex;
    }

    .color-tool {
        width: 28px;
    }

    .coloring-top {
        gap: 1rem;
        display: flex;
    }

    .original-popup-img {
        max-width: 85vw;
        max-height: 50vh;
    }
}

@media (min-width: 769px) {
    .coloring-palette {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 6px;
    }

    .coloring-toolbar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

.paper {
    background: url(/games/ui/paper.png) bottom center no-repeat;
    padding: clamp(0.75rem, 2vw, 2rem);
    background-size: cover;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 2px 4px, rgba(0, 0, 0, 0.06) 0px 8px 16px, rgba(0, 0, 0, 0.04) 0px 16px 32px, rgba(255, 255, 255, 0.9) 0px 1px 3px inset;
    border: 1px solid rgba(230, 220, 210, 0.5);
}