* {
    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: none;
}

.container {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Video wrapper */
.video-wrapper {
    position: relative;
    width: 450px;
    height: 80vh;
    max-height: 800px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(255, 105, 180, 0.3);
    border: 3px solid rgba(255, 105, 180, 0.3);
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

.main-video.paused {
    filter: brightness(0.7);
}

/* Image overlays */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.image-overlay.active {
    opacity: 1;
}

.image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vignette effect */
.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 3;
}

/* Top message */
.top-message {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fadeInDown 1s ease;
    transition: opacity 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.message-text {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 
        0 0 20px rgba(255, 105, 180, 0.8),
        0 0 40px rgba(255, 105, 180, 0.5),
        2px 2px 8px rgba(0, 0, 0, 0.9);
    padding: 15px 35px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 2px solid rgba(255, 105, 180, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 105, 180, 0.7);
    }
}

/* Reaction text */
.reaction-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        2px 2px 10px rgba(0, 0, 0, 0.9);
    max-width: 400px;
    line-height: 1.3;
    padding: 0 20px;
}

.reaction-text.show {
    opacity: 1;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Buttons area */
.buttons-area {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 60px;
    z-index: 10;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Remove animation delay on mobile */
@media (max-width: 768px) {
    .buttons-area {
        animation: none;
        opacity: 1;
    }
    
    .left-button-wrapper {
        animation: none;
        opacity: 1;
    }
    
    .right-button-wrapper {
        animation: none;
        opacity: 1;
    }
}

.button-wrapper {
    position: relative;
}

.choice-button {
    padding: 25px 45px;
    border: none;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 700;
    cursor: none;
    transition: all 0.4s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    position: relative;
    z-index: 2;
}

.button-icon {
    font-size: 36px;
    transition: transform 0.3s ease;
}

.button-text {
    font-size: 22px;
    letter-spacing: 0.5px;
}

.button-subtext {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
}

.leave-button {
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.leave-button:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #3d3d3d 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.leave-button:hover .button-icon {
    transform: scale(1.2);
    animation: shake 0.5s ease infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0) scale(1.2); }
    25% { transform: translateX(-5px) scale(1.2); }
    75% { transform: translateX(5px) scale(1.2); }
}

.ready-button {
    background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 23, 68, 0.5);
}

.ready-button:hover {
    background: linear-gradient(135deg, #ff4569 0%, #ff1744 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 23, 68, 0.8);
}

.ready-button:hover .button-icon {
    transform: scale(1.3);
    animation: pulse-fire 0.6s ease infinite;
}

@keyframes pulse-fire {
    0%, 100% { transform: scale(1.3); }
    50% { transform: scale(1.5); }
}

/* Button glow effects */
.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.leave-glow {
    background: radial-gradient(circle, rgba(100, 100, 100, 0.4) 0%, transparent 70%);
    filter: blur(20px);
}

.ready-glow {
    background: radial-gradient(circle, rgba(255, 23, 68, 0.6) 0%, transparent 70%);
    filter: blur(20px);
}

.button-wrapper:hover .button-glow {
    opacity: 1;
    animation: glow-pulse 1.5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Divider */
.divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.divider::before,
.divider::after {
    content: '';
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.divider-text {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

/* Hearts container */
.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.heart {
    position: absolute;
    font-size: 30px;
    opacity: 0;
    animation: float-heart 3s ease-out forwards;
}

@keyframes float-heart {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0.5);
    }
}

/* Tears container */
.tears-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.tear {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: fall-tear 2s ease-in forwards;
}

@keyframes fall-tear {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(300px) scale(0.8);
    }
}

/* Cursor follower */
.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 105, 180, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

.cursor-follower.hover-leave {
    border-color: rgba(150, 150, 150, 0.8);
    box-shadow: 0 0 20px rgba(150, 150, 150, 0.5);
    transform: translate(-50%, -50%) scale(1.5);
}

.cursor-follower.hover-ready {
    border-color: rgba(255, 23, 68, 0.9);
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.8);
    transform: translate(-50%, -50%) scale(1.8);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor-follower {
        display: none;
    }
    
    .video-wrapper {
        width: 90vw;
        max-width: 400px;
        height: 70vh;
        margin-top: 80px;
    }
    
    .top-message {
        top: 20px;
    }
    
    .message-text {
        font-size: 20px;
        padding: 12px 25px;
    }
    
    .reaction-text {
        font-size: 24px;
        max-width: 90vw;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 12px 20px;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        border: 2px solid rgba(255, 105, 180, 0.4);
    }
    
    .buttons-area {
        flex-direction: column;
        gap: 30px;
        bottom: auto;
        top: auto;
        position: static;
        transform: none;
        margin-top: 20px;
    }
    
    .left-button-wrapper {
        order: -1;
        position: absolute;
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .right-button-wrapper {
        order: 1;
    }
    
    .divider::before,
    .divider::after {
        display: none;
    }
    
    .divider-text {
        top: 60px;
        left: 50%;
        background: rgba(0, 0, 0, 0.8);
        padding: 8px 20px;
        border-radius: 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        font-size: 13px;
    }
    
    .choice-button {
        min-width: 200px;
        padding: 20px 35px;
        /* Enable touch feedback */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .choice-button:active {
        transform: scale(0.95);
    }
    
    .button-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .video-wrapper {
        width: 95vw;
        height: 60vh;
        border-radius: 16px;
        margin-top: 80px;
    }
    
    .message-text {
        font-size: 18px;
        padding: 10px 20px;
    }
    
    .reaction-text {
        font-size: 20px;
        top: 15px;
        padding: 10px 16px;
    }
    
    .buttons-area {
        gap: 20px;
        margin-top: 15px;
    }
    
    .left-button-wrapper {
        top: 90px;
    }
    
    .divider-text {
		font-size: 20px;	
        margin: auto;
        display: block;
        text-align: center;
    }
    
    .choice-button {
        min-width: 180px;
        padding: 18px 30px;
    }
    
    .button-icon {
        font-size: 28px;
    }
    
    .button-text {
        font-size: 16px;
    }
}
