* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    cursor: crosshair;
    /* Animated gradient background */
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 25%, #0a0a1a 50%, #1a0a0a 75%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

span.emoji-18 {
    font-size: 42px;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Decorative elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.scene-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Interactive area container */
.interactive-area {
    position: relative;
    width: 763px;
    height: 1135px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(0, 255, 255, 0.3),
        0 20px 80px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.2);
    z-index: 10;
}

/* Hidden layer - girl behind door */
.hidden-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hidden-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Door background */
.door-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.door-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
	filter: brightness(3);
}

/* Hint text */
.hint-text {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    animation: fadeInDown 1s ease;
    max-width: 90%;
    transition: all 0.3s ease;
}

.hint-text.collapsed {
    top: 10px;
}

.hint-text.collapsed .hint-message {
    display: none;
}

.hint-text.collapsed .hint-icon {
    margin-bottom: 0;
    font-size: 32px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.hint-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hint-icon:hover {
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hint-message {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-shadow: 
        0 0 20px rgba(0, 255, 255, 0.8),
        0 0 40px rgba(0, 255, 255, 0.5),
        2px 2px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.hint-subtext {
    font-size: 15px;
    color: #ff6b6b;
    font-weight: 700;
}

/* Phone device */
.phone-device {
    position: fixed;
    width: 140px;
    height: 280px;
    pointer-events: none;
    z-index: 100;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
    left: 0;
    top: 0;
}

.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 21px;
    padding: 6px;
    box-shadow: 
        0 0 0 4px #2a2a2a,
        0 0 0 6px #1a1a1a,
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 14px;
    background: #000;
    border-radius: 0 0 10px 10px;
    z-index: 10;
}

.phone-statusbar {
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 7px;
    font-weight: 600;
    color: #fff;
    z-index: 11;
}

.statusbar-icons {
    display: flex;
    gap: 4px;
    font-size: 8px;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 17px;
    overflow: hidden;
    clip-path: inset(0 round 17px);
}

.xray-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 763px;
    height: 1135px;
    object-fit: contain;
    object-position: center;
    opacity: 0.95;
    filter: brightness(1.3) contrast(1.4) hue-rotate(180deg);
    pointer-events: none;
}

/* Scan lines effect */
.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 255, 0.03) 0px,
        rgba(0, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* X-ray overlay effect */
.xray-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(0, 255, 255, 0.1) 0%,
        rgba(0, 255, 255, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
    animation: pulse-xray 3s ease-in-out infinite;
}

@keyframes pulse-xray {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* App title */
.app-title {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 8px;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.app-icon {
    font-size: 9px;
}

.phone-home-indicator {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

/* Phone glow */
.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(
        circle at center,
        rgba(0, 255, 255, 0.3) 0%,
        transparent 70%
    );
    border-radius: 50px;
    pointer-events: none;
    animation: glow-pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* Trigger zones */
.trigger-zone {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 50;
    pointer-events: auto;
    cursor: pointer;
}

.zone-chest {
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.zone-hips {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Age gate overlay */
.agegate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    cursor: default;
}

.agegate-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.agegate-content {
    position: relative;
    background: linear-gradient(135deg, #1a0a0a 0%, #0a0a1a 100%);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 3px solid rgba(255, 0, 68, 0.5);
    box-shadow: 
        0 20px 60px rgba(255, 0, 68, 0.4),
        0 0 100px rgba(255, 0, 68, 0.2);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.agegate-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agegate-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.agegate-icon {
    font-size: 72px;
    margin-bottom: 25px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.agegate-title {
    font-size: 32px;
    font-weight: 700;
    color: #ff0044;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 0, 68, 0.8);
}

.agegate-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.6;
}

.agegate-subtext {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.agegate-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agegate-button {
    padding: 18px 35px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
}

.agegate-yes {
    background: linear-gradient(135deg, #ff0044 0%, #d50000 100%);
    box-shadow: 0 8px 20px rgba(255, 0, 68, 0.5);
}

.agegate-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 0, 68, 0.7);
}

.agegate-no {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.agegate-no:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Warning flash */
.warning-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 0, 68, 0.3);
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.warning-flash.active {
    animation: flash 0.5s ease;
}

@keyframes flash {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Responsive */
@media (max-width: 1400px) {
    .interactive-area {
        width: min(60vw, calc(90vh * 0.672));
        height: min(90vh, calc(60vw * 1.488));
    }
    
    .xray-image {
        width: min(60vw, calc(90vh * 0.672));
        height: min(90vh, calc(60vw * 1.488));
    }
}

@media (max-width: 768px) {
    body {
        cursor: crosshair;
    }
    
    .interactive-area {
        width: min(70vw, calc(85vh * 0.672));
        height: min(85vh, calc(70vw * 1.488));
    }
    
    .xray-image {
        width: min(70vw, calc(85vh * 0.672));
        height: min(85vh, calc(70vw * 1.488));
    }
    
    .phone-device {
        width: 126px;
        height: 252px;
    }
    
    .hint-text {
        top: 20px;
    }
    
    .hint-message {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .hint-icon {
        font-size: 36px;
    }
    
    .trigger-zone {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .interactive-area {
        width: min(85vw, calc(80vh * 0.672));
        height: min(80vh, calc(85vw * 1.488));
    }
    
    .xray-image {
        width: min(85vw, calc(80vh * 0.672));
        height: min(80vh, calc(85vw * 1.488));
    }
    
    .phone-device {
        width: 112px;
        height: 224px;
    }
    
    .hint-message {
        font-size: 14px;
        padding: 12px 18px;
    }
    
    .hint-subtext {
        font-size: 12px;
    }
    
    .agegate-content {
        padding: 40px 30px;
    }
    
    .agegate-title {
        font-size: 26px;
    }
    
    .agegate-text {
        font-size: 16px;
    }
}

/* Remove old hidden class animation */

/* Age Gate Modal */
.agegate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.agegate-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.agegate-content {
    background: linear-gradient(135deg, #1a0a1a 0%, #0a0a1a 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid rgba(255, 0, 68, 0.3);
    box-shadow: 0 20px 60px rgba(255, 0, 68, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.agegate-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.agegate-close:hover {
    background: rgba(255, 0, 68, 0.3);
    transform: rotate(90deg);
}

.agegate-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff0044 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agegate-content p {
    font-size: 18px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.agegate-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.agegate-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.agegate-yes {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.agegate-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 255, 136, 0.4);
}

.agegate-no {
    background: linear-gradient(135deg, #ff0044 0%, #cc0033 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 0, 68, 0.3);
}

.agegate-no:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 0, 68, 0.4);
}

.agegate-btn:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .agegate-content {
        padding: 30px 20px;
    }

    .agegate-content h2 {
        font-size: 26px;
    }

    .agegate-content p {
        font-size: 16px;
    }

    .agegate-buttons {
        flex-direction: column;
    }

    .agegate-btn {
        width: 100%;
    }
}
