/* Link Clicker - vrolijk thema, geisoleerde styling, veilig op elk thema */

.lcf-wrapper,
.lcf-wrapper * {
    box-sizing: border-box;
}

.lcf-wrapper {
    display: inline-block;
    font-family: 'Trebuchet MS', 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.4;
}

.lcf-wrapper button.lcf-open-btn,
.lcf-wrapper button.lcf-close-btn {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
}

.lcf-wrapper button.lcf-start-btn {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
}

.lcf-open-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b6b, #ffa94d, #ffd43b);
    background-size: 200% 200%;
    color: #1f2937 !important;
    border-radius: 30px;
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease;
    animation: lcf-gradient-shift 3s ease infinite;
}

.lcf-open-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.65);
}

@keyframes lcf-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.lcf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 15, 60, 0.65);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.lcf-overlay.lcf-hidden {
    display: none;
}

.lcf-modal {
    position: relative;
    width: min(500px, 92vw);
    max-height: 85vh;
    background: linear-gradient(160deg, #ffffff, #fff5f7);
    color: #1f2937 !important;
    border-radius: 20px;
    border: 3px solid #ffd43b;
    padding: 30px 24px;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    text-align: center;
    animation: lcf-pop-in 0.28s ease;
}

@keyframes lcf-pop-in {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lcf-modal .lcf-title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    color: #ff6b6b !important;
    text-shadow: 1px 1px 0 #ffe066;
}

.lcf-modal .lcf-text {
    margin: 0 0 18px;
    font-size: 14px;
    color: #6b7280 !important;
}

.lcf-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    line-height: 1;
    color: #9ca3af !important;
    background: transparent;
    padding: 4px 10px;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lcf-close-btn:hover {
    color: #fff !important;
    background: #ff6b6b;
    transform: rotate(90deg);
}

.lcf-stats {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.lcf-stat-label {
    color: #374151 !important;
    background: #fff3bf;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: inset 0 0 0 2px #ffe066;
}

.lcf-stat-label b {
    color: #ff6b6b !important;
    font-size: 16px;
}

.lcf-wrapper button.lcf-start-btn {
    display: inline-block;
    padding: 10px 26px;
    background: linear-gradient(135deg, #51cf66, #2f9e44) !important;
    color: #ffffff !important;
    border-radius: 30px;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(47, 158, 68, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.lcf-start-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(47, 158, 68, 0.6);
}

.lcf-start-btn:active {
    transform: scale(0.97);
}

.lcf-arena {
    position: relative;
    width: 100%;
    height: 260px;
    background: repeating-linear-gradient(45deg, #f8f9fa, #f8f9fa 12px, #eef2ff 12px, #eef2ff 24px);
    border-radius: 14px;
    border: 2px dashed #adb5bd;
    overflow: hidden;
}

.lcf-icon {
    position: absolute;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.12s ease;
    will-change: transform, top, left;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
    animation: lcf-wiggle 1.2s ease-in-out infinite;
}

.lcf-icon:hover {
    transform: scale(1.3) rotate(10deg);
}

@keyframes lcf-wiggle {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
}

.lcf-icon.lcf-pop {
    animation: lcf-pop-out 0.25s ease forwards;
}

@keyframes lcf-pop-out {
    to { transform: scale(1.8); opacity: 0; }
}

@media (max-width: 480px) {
    .lcf-modal {
        padding: 22px 16px;
    }
    .lcf-arena {
        height: 200px;
    }
}
