/* Kazı kazan modal — ana sayfa (üst katman, hoş geldin modalının üzerinde) */
.paz-scratch-modal {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.paz-scratch-modal.is-open {
    display: flex;
}
.paz-scratch-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}
.paz-scratch-modal__dialog {
    position: relative;
    width: min(440px, 100%);
    max-height: min(92vh, 720px);
    overflow: auto;
    background: linear-gradient(
        165deg,
        #fff5fb 0%,
        #ffffff 38%,
        #f0f9ff 72%,
        #fdf4ff 100%
    );
    background-size: 200% 200%;
    animation: pazScratchDialogHue 14s ease-in-out infinite;
    border-radius: 20px;
    padding: 22px 20px 18px;
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    border: 1px solid rgba(244, 114, 182, 0.35);
}
@keyframes pazScratchDialogHue {
    0%,
    100% {
        background-position: 0% 40%;
    }
    50% {
        background-position: 100% 60%;
    }
}
.paz-scratch-modal__close {
    position: absolute;
    right: 10px;
    top: 10px;
    border: none;
    background: rgba(15, 23, 42, 0.06);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}
.paz-scratch-modal__close:hover {
    background: rgba(15, 23, 42, 0.12);
}
.paz-scratch-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #be185d;
    background: linear-gradient(90deg, rgba(244, 114, 182, 0.35), rgba(167, 139, 250, 0.35));
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    animation: pazScratchBadgePulse 3s ease-in-out infinite;
}
@keyframes pazScratchBadgePulse {
    0%,
    100% {
        filter: saturate(1);
    }
    50% {
        filter: saturate(1.35);
    }
}
.paz-scratch-modal__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.25;
}
.paz-scratch-modal__subtitle {
    margin: 0 0 14px;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.45;
}
.paz-scratch-modal__panel {
    margin-top: 4px;
}
.paz-scratch-modal__hint {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 12px;
}
.paz-scratch-modal__cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.paz-scratch-modal__stage-wrap {
    border-radius: 18px;
    padding: 3px;
    background: linear-gradient(
        120deg,
        #f472b6,
        #22d3ee,
        #a78bfa,
        #34d399,
        #fbbf24,
        #f472b6
    );
    background-size: 300% 300%;
    animation: pazScratchRing 5s linear infinite;
    margin-bottom: 10px;
}
@keyframes pazScratchRing {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}
.paz-scratch-stage {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #0f172a;
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.08);
}
.paz-scratch-modal__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
    z-index: 2;
}
.paz-scratch-modal__prize {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    text-align: center;
}
.paz-scratch-modal__prize--live {
    background: linear-gradient(
        125deg,
        #fef08a,
        #fbcfe8,
        #a5b4fc,
        #67e8f9,
        #86efac,
        #fde047,
        #fbcfe8
    );
    background-size: 400% 400%;
    animation: pazScratchPrizeShift 7s ease infinite;
}
@keyframes pazScratchPrizeShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.paz-scratch-modal__prize-label {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    background: linear-gradient(90deg, #0f172a, #be185d, #4338ca, #0f172a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pazScratchLabelShine 4s linear infinite;
}
@keyframes pazScratchLabelShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}
.paz-scratch-modal__micro {
    font-size: 11px;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.45;
}
.paz-scratch-modal__auth-gate {
    border-radius: 14px;
    padding: 14px 14px 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(224, 231, 255, 0.95));
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.12);
}
.paz-scratch-modal__auth-gate-text {
    margin: 0 0 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #92400e;
    line-height: 1.45;
}
.paz-scratch-modal__referral {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 12px 12px 10px;
    margin-top: 6px;
}
.paz-scratch-modal__ref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.paz-scratch-modal__ref-url {
    display: block;
    font-size: 11px;
    word-break: break-all;
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.65);
    color: #0f172a;
}
.paz-scratch-modal__stats {
    margin-top: 10px;
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
}
.paz-scratch-modal__coupon {
    margin-top: 10px;
    font-size: 13px;
    color: #059669;
}
.paz-scratch-modal__coupon code {
    font-weight: 700;
    color: #047857;
}
.paz-scratch-modal__terms {
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
}
.paz-scratch-modal__terms summary {
    cursor: pointer;
    font-weight: 600;
    color: #475569;
}
.paz-scratch-modal__terms-body {
    margin-top: 8px;
    max-height: 140px;
    overflow: auto;
    white-space: pre-wrap;
    line-height: 1.45;
    font-size: 11px;
}
@media (prefers-reduced-motion: reduce) {
    .paz-scratch-modal__dialog,
    .paz-scratch-modal__badge,
    .paz-scratch-modal__stage-wrap,
    .paz-scratch-modal__prize--live,
    .paz-scratch-modal__prize-label {
        animation: none !important;
    }
}
