/* ── Catch The Dot – Public CSS ── */
/* © Noktaweb.NeT */

/* ── Floating Dot ── */
#ctd-floating-dot {
    position: fixed;
    z-index: 999999;
    cursor: pointer;
    pointer-events: auto;
    transition: opacity 0.5s ease;
}

#ctd-floating-dot.ctd-hidden {
    opacity: 0;
    pointer-events: none;
}

#ctd-floating-dot.ctd-visible {
    opacity: 1;
    pointer-events: auto;
}

.ctd-dot-inner {
    width: var(--ctd-dot-size, 18px);
    height: var(--ctd-dot-size, 18px);
    background: var(--ctd-dot-color, #ff4757);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 8px var(--ctd-dot-color, #ff4757),
                0 0 20px rgba(255, 71, 87, 0.3);
    animation: ctdPulse 1.5s ease-in-out infinite;
}

.ctd-dot-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--ctd-dot-size, 18px) + 14px);
    height: calc(var(--ctd-dot-size, 18px) + 14px);
    border: 2px solid var(--ctd-dot-color, #ff4757);
    border-radius: 50%;
    opacity: 0.4;
    animation: ctdRing 2s ease-out infinite;
}

@keyframes ctdPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes ctdRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ── Catch Effect ── */
.ctd-catch-burst {
    position: fixed;
    z-index: 999998;
    pointer-events: none;
}

.ctd-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: ctdBurst 0.6s ease-out forwards;
}

@keyframes ctdBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* ── Modal ── */
#ctd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

#ctd-modal-overlay.ctd-show {
    opacity: 1;
}

#ctd-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

#ctd-modal-overlay.ctd-show #ctd-modal {
    transform: scale(1) translateY(0);
}

#ctd-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #b2bec3;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

#ctd-modal-close:hover {
    color: #636e72;
}

#ctd-modal-icon {
    font-size: 56px;
    margin-bottom: 12px;
    line-height: 1;
}

#ctd-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#ctd-modal-message {
    font-size: 15px;
    color: #636e72;
    margin: 0 0 8px;
    line-height: 1.5;
}

#ctd-modal-extra {
    font-size: 13px;
    color: #b2bec3;
    margin-bottom: 20px;
}

.ctd-btn {
    display: inline-block;
    padding: 12px 36px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

#ctd-modal-ok {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #ffffff;
}

#ctd-modal-ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}

/* ── Win Animation ── */
#ctd-modal.ctd-win {
    border: 2px solid #00b894;
}

#ctd-modal.ctd-lose {
    border: 2px solid #e17055;
}

#ctd-modal.ctd-login-required {
    border: 2px solid #fdcb6e;
}

/* ── Confetti ── */
.ctd-confetti {
    position: fixed;
    z-index: 99999999;
    pointer-events: none;
}

.ctd-confetti-piece {
    position: absolute;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    animation: ctdConfetti 1.2s ease-out forwards;
}

@keyframes ctdConfetti {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--cx), var(--cy)) rotate(var(--cr));
        opacity: 0;
    }
}

/* ── Shortcode – My Prizes ── */
.ctd-my-prizes-wrap {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ctd-stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.ctd-stat {
    flex: 1;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
}

.ctd-stat-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.ctd-stat-label {
    display: block;
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

.ctd-no-prizes {
    text-align: center;
    padding: 40px 20px;
    color: #636e72;
    background: #f8f9fa;
    border-radius: 14px;
}

.ctd-prizes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ctd-prize-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.ctd-prize-card:hover {
    transform: translateX(4px);
}

.ctd-prize-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.ctd-prize-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ctd-prize-info strong {
    font-size: 15px;
    color: #2d3436;
}

.ctd-prize-val {
    font-size: 13px;
    color: #6c5ce7;
    font-weight: 600;
}

.ctd-prize-info small {
    font-size: 12px;
    color: #b2bec3;
}

.ctd-login-notice {
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border-radius: 10px;
    color: #856404;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    #ctd-modal {
        padding: 32px 24px 24px;
    }
    .ctd-stats-bar {
        flex-direction: column;
    }
}
