.zad-elite-box {
    --zad-before-bg: rgba(0,0,0,0.5);
    --zad-before-tx: #ffffff;
    --zad-q-bg: transparent;
    --zad-q-tx: inherit;
    --zad-q-align: center;
    --zad-a-bg: transparent;
    --zad-a-tx: inherit;
    --zad-a-align: center;
    position: relative;
    width: var(--zad-w);
    max-width: 100%;
    height: var(--zad-h);
    margin: 30px auto;
    font-family: 'Inter', sans-serif;
    color: #333;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.zad-elite-q {
    font-weight: 800;
    margin: 0 0 20px 0 !important;
    padding: 15px;
    background: var(--zad-q-bg);
    color: var(--zad-q-tx);
    border-radius: 12px;
    line-height: 1.4;
    text-align: var(--zad-q-align);
}

.zad-elite-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    width: 100%;
    height: 100%;
    min-height: inherit;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.zad-elite-box:hover .zad-elite-wrapper {
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.zad-elite-answer {
    background: var(--zad-a-bg);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zad-elite-answer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dynamic Answer Text (h2, h3, p, span) */
.zad-ans-text {
    display: block;
    padding: clamp(30px, 6vw, 60px) clamp(20px, 5vw, 50px);
    color: var(--zad-a-tx);
    text-align: var(--zad-a-align);
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
}

/* Premium Reveal Animation */
.revealed .zad-ans-text {
    opacity: 1;
    transform: translateY(0);
}

/* Professional Typography Styling */
.zad-ans-text::before {
    content: '';
    position: absolute;
    left: clamp(10px, 3vw, 25px);
    top: 20%;
    height: 60%;
    width: 4px;
    background: linear-gradient(180deg, var(--zad-a-tx) 0%, transparent 100%);
    opacity: 0.3;
    border-radius: 4px;
}

h2.zad-ans-text { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; line-height: 1.15; letter-spacing: -1px; }
h3.zad-ans-text { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
div.zad-ans-text, p.zad-ans-text { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 400; line-height: 1.7; letter-spacing: 0.2px; text-shadow: none; font-family: 'Inter', system-ui, sans-serif; }
span.zad-ans-text { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; font-style: italic; }

/* The Professional CTA Layer */
.zad-elite-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; cursor: pointer; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reveal Mode (Text/Image): Frosted Glass with dynamic blur & bg */
.zad-mode-reveal {
    background: var(--zad-before-bg);
    backdrop-filter: blur(var(--zad-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--zad-blur)) saturate(160%);
}

/* Spot Mode: No blur, just optional overlay if needed */
.zad-mode-spot {
    background: transparent;
}

.zad-elite-cta {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: clamp(15px, 2vw, 20px) clamp(30px, 4vw, 50px);
    border-radius: 50px;
    color: var(--zad-before-tx);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.zad-icon-lock {
    transition: transform 0.4s ease;
}

.zad-lock-shackle {
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-origin: 50% 50%;
}

.zad-elite-overlay:hover .zad-elite-cta {
    transform: translateY(-5px) scale(1.02);
    background: rgba(40, 40, 40, 0.5);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.zad-elite-overlay:hover .zad-lock-shackle {
    transform: translateY(-3px);
}

/* Fix: Remove Ghost Pill/CTA Box in Spot Mode */
.zad-mode-spot .zad-elite-cta {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

/* Success/Fail Visual Feedback Overlay */
.zad-elite-fb {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100; pointer-events: none; 
    display: none !important; align-items: center; justify-content: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8);
}

.zad-fb-msg { 
    font-size: clamp(1.5rem, var(--zad-fb-size, 4rem), 10vw); 
    font-weight: 900; 
    text-transform: uppercase; 
    padding: clamp(15px, 4vw, 30px) clamp(30px, 8vw, 70px);
    border-radius: 24px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: zadPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 2px;
}

@keyframes zadPopIn {
    0% { transform: scale(0.8) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.zad-success-msg { color: var(--zad-success-color); box-shadow: 0 0 50px rgba(0,255,136,0.2); border: 2px solid var(--zad-success-color); }
.zad-fail-msg { color: var(--zad-fail-color); box-shadow: 0 0 50px rgba(255,71,87,0.2); border: 2px solid var(--zad-fail-color); }

.zad-elite-caption {
    margin-top: 15px;
    font-size: 1rem;
    color: #777;
    text-align: center;
    font-style: italic;
}

/* Premium Reveal Text Overlay (Meme/Caption Style) */
.zad-reveal-text {
    position: absolute;
    left: var(--rt-x);
    top: var(--rt-y);
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    color: var(--rt-color);
    /* Exactly matches what the Gutenberg editor shows - user-set rem value */
    font-size: var(--rt-size, 2.5rem);
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Impact', 'Arial Black', sans-serif;
    line-height: 1.1;
    -webkit-text-stroke: 1px #000;
    text-shadow: 2px 2px 0 #000;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.revealed .zad-reveal-text { opacity: 1; transform: translate(-50%, -50%) scale(1); }


/* Spot Indicator */
.zad-elite-wrapper {
    perspective: 1000px;
}

.zad-elite-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    backdrop-filter: blur(var(--zad-blur, 25px));
    background: var(--zad-before-bg, rgba(0,0,0,0.5));
    display: flex; align-items: center; justify-content: center;
    color: var(--zad-before-tx, #fff); z-index: 10;
    backface-visibility: hidden;
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.zad-mode-spot { 
    backdrop-filter: none !important; 
    background: transparent !important; 
}

.revealed .zad-elite-overlay { transform: rotateY(-180deg); opacity: 0; visibility: hidden; }

.zad-elite-answer {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--zad-a-bg, transparent);
    color: var(--zad-a-tx, inherit);
    transform: none;
    opacity: 1;
}

.revealed .zad-elite-answer { transform: none; }

.zad-ans-text, .zad-elite-answer img {
    max-width: 100%; width: 100%; height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Spot Indicator Restoration */
.zad-spot-indicator {
    position: absolute; transform: translate(-50%, -50%);
    border: var(--zad-spot-thick, 4px) solid var(--spot-color);
    box-shadow: 
        0 0 15px var(--spot-color), 
        inset 0 0 10px var(--spot-color),
        0 0 30px rgba(255,255,255,0.2);
    z-index: 15; pointer-events: none; display: none;
    animation: zadBreathingGlow 2s ease-in-out infinite;
}

/* BuzzFeed-Style Wrong Click Marker */
.zad-wrong-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 50, 50, 0.45);
    border: 3px solid rgba(255, 60, 60, 0.85);
    box-shadow: 0 0 0 4px rgba(255, 50, 50, 0.2), 0 0 20px rgba(255, 0, 0, 0.3);
    z-index: 16;
    pointer-events: none;
    animation: zadWrongPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: opacity 0.5s ease;
}

@keyframes zadWrongPop {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    70%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes zadBreathingGlow {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 15px var(--spot-color), inset 0 0 10px var(--spot-color); opacity: 0.9; }
    50% { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 30px var(--spot-color), inset 0 0 20px var(--spot-color); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 15px var(--spot-color), inset 0 0 10px var(--spot-color); opacity: 0.9; }
}

@media (max-width: 600px) {
    h2.zad-ans-text { font-size: 2rem; }
    .zad-elite-cta { font-size: 1rem; padding: 10px 20px; }
    .zad-fb-msg { font-size: 1.8rem; padding: 10px 20px; }
    .zad-reveal-text { 
        font-size: clamp(0.8rem, calc(var(--rt-size, 2.5rem) * 0.4), 8vw); /* Aggressively scales down so text fits without breaking */
        width: 100%;
        max-width: 95%;
        overflow-wrap: break-word;
        word-break: break-word;
    }
}
