* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    width: 100%;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    overflow-y: auto;
}

/* Diamond sparkle overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.08) 0%, transparent 2%),
        radial-gradient(circle at 50% 60%, rgba(255, 215, 0, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 2%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 2%);
    pointer-events: none;
    z-index: 0;
    animation: diamondSparkle 4s ease-in-out infinite;
}

@keyframes diamondSparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Mobile: Allow scrolling - no fixed heights */
@media (max-width: 767px) {
    html {
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Desktop: Fixed size like original */
@media (min-width: 1024px) {
    body {
        width: 1200px;
        height: 1024px;
        margin: 0 auto;
        overflow: hidden;
    }
}

/* Tablet: Fit to screen without scrolling */
@media (min-width: 768px) and (max-width: 1023px) {
    body {
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 20, 147, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(255, 215, 0, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 15% 30%, rgba(255, 223, 0, 0.1) 0%, transparent 35%);
    pointer-events: none;
    animation: backgroundPulse 8s ease-in-out infinite;
    z-index: 0;
}

/* Mobile: Ensure background doesn't block scrolling */
@media (max-width: 767px) {
    body::before {
        position: fixed;
        min-height: 100vh;
    }
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.screen {
    display: none;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Mobile: Allow scrolling */
@media (max-width: 767px) {
    .screen {
        min-height: 100vh;
        height: auto;
        overflow: visible;
    }
}

/* Desktop and Tablet: Fixed heights */
@media (min-width: 768px) {
    .screen {
        min-height: 100vh;
    }
}

/* Desktop: Fixed height */
@media (min-width: 1024px) {
    .screen {
        height: 1024px;
        min-height: 1024px;
    }
}

/* Tablet: Full viewport height, no scroll */
@media (min-width: 768px) and (max-width: 1023px) {
    .screen {
        height: 100vh;
        min-height: 100vh;
    }
}

.screen.active {
    display: flex;
}

/* Main Menu Styles */
.menu-container {
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Mobile: Allow scrolling */
@media (max-width: 767px) {
    .menu-container {
        padding: 20px;
        min-height: 100vh;
        height: auto;
        justify-content: flex-start;
    }
}

/* Desktop and Tablet: Fixed height */
@media (min-width: 768px) {
    .menu-container {
        height: 100%;
        overflow-y: auto;
    }
}

/* Tablet: No scroll, fit to screen */
@media (min-width: 768px) and (max-width: 1023px) {
    .menu-container {
        overflow-y: hidden;
        height: 100vh;
    }
}

/* Desktop: No scroll, fixed height */
@media (min-width: 1024px) {
    .menu-container {
        overflow-y: hidden;
        height: 1024px;
    }
}

.menu-container h1 {
    color: #fff;
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 10px;
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.8),
        0 0 20px rgba(138, 43, 226, 0.6),
        0 0 30px rgba(138, 43, 226, 0.4),
        0 0 15px rgba(255, 215, 0, 0.6),
        0 0 25px rgba(255, 223, 0, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: clamp(1px, 0.3vw, 3px);
    font-weight: bold;
    animation: titleGlow 2s ease-in-out infinite alternate;
    text-align: center;
    padding: 0 20px;
    position: relative;
}


@keyframes titleGlow {
    from {
        text-shadow: 
            0 0 10px rgba(138, 43, 226, 0.8),
            0 0 20px rgba(138, 43, 226, 0.6),
            0 0 30px rgba(138, 43, 226, 0.4),
            0 0 15px rgba(255, 215, 0, 0.6),
            0 0 25px rgba(255, 223, 0, 0.4);
    }
    to {
        text-shadow: 
            0 0 15px rgba(138, 43, 226, 1),
            0 0 25px rgba(138, 43, 226, 0.8),
            0 0 35px rgba(138, 43, 226, 0.6),
            0 0 45px rgba(255, 20, 147, 0.4),
            0 0 20px rgba(255, 215, 0, 0.9),
            0 0 35px rgba(255, 223, 0, 0.7),
            0 0 50px rgba(255, 215, 0, 0.5);
    }
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(16px, 2vw, 22px);
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    letter-spacing: 1px;
    text-align: center;
    padding: 0 20px;
}

.women-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1100px;
    width: 100%;
    padding: 20px;
    overflow-y: auto;
}

/* Tablet: Adjust grid to fit without scrolling */
@media (min-width: 768px) and (max-width: 1023px) {
    .women-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
}

/* Desktop: Original layout */
@media (min-width: 1024px) {
    .women-grid {
        grid-template-columns: repeat(5, 1fr);
        overflow-y: hidden;
    }
}

.woman-card {
    background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 16px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(138, 43, 226, 0.2),
        0 0 15px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.woman-card::after {
    content: '💎';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    opacity: 0.3;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    transition: all 0.3s;
    z-index: 10;
}

.woman-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.woman-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.woman-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(138, 43, 226, 0.5),
        0 0 50px rgba(255, 20, 147, 0.3),
        0 0 25px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 223, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    border-image: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 223, 0, 0.6), rgba(138, 43, 226, 0.8)) 1;
}

.woman-card:hover::after {
    opacity: 1;
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9));
}

.woman-portrait {
    width: 100%;
    max-width: 150px;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
    border: 3px solid transparent;
    background: linear-gradient(145deg, #8a2be2, #ff1493, #FFD700) padding-box,
                linear-gradient(145deg, #8a2be2, #ff1493, #FFD700, #FFA500) border-box;
    box-shadow: 
        0 0 15px rgba(138, 43, 226, 0.6),
        0 0 30px rgba(255, 20, 147, 0.4),
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(138, 43, 226, 0.2);
    transition: all 0.3s;
    position: relative;
}

.woman-portrait::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 12px;
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0.8) 0%, 
        transparent 25%, 
        rgba(255, 223, 0, 0.6) 50%, 
        transparent 75%, 
        rgba(255, 215, 0, 0.8) 100%);
    background-size: 200% 200%;
    animation: goldShimmer 3s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

@keyframes goldShimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

.woman-card:hover .woman-portrait::before {
    opacity: 1;
}

.woman-card:hover .woman-portrait {
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.8),
        0 0 40px rgba(255, 20, 147, 0.6),
        0 0 30px rgba(255, 215, 0, 0.7),
        0 0 50px rgba(255, 223, 0, 0.5),
        inset 0 0 30px rgba(138, 43, 226, 0.3);
    transform: scale(1.05);
    border-color: rgba(255, 215, 0, 0.8);
}

.woman-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.woman-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Disabled/Locked Woman Card Styles */
.woman-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(70%);
    background: linear-gradient(145deg, #0f0f1e 0%, #1a1a2e 100%);
    border-color: rgba(100, 100, 100, 0.3);
}

.woman-card.disabled:hover {
    transform: none;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(100, 100, 100, 0.2);
    border-color: rgba(100, 100, 100, 0.3);
}

.woman-card.disabled::before {
    display: none;
}

.woman-card.disabled .woman-portrait {
    filter: grayscale(80%);
    border-color: rgba(100, 100, 100, 0.5);
    box-shadow: 
        0 0 10px rgba(100, 100, 100, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.woman-card.disabled:hover .woman-portrait {
    transform: none;
    box-shadow: 
        0 0 10px rgba(100, 100, 100, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.locked-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #ff6b6b;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(255, 107, 107, 0.5);
    box-shadow: 
        0 0 10px rgba(255, 107, 107, 0.3),
        0 0 5px rgba(255, 215, 0, 0.2);
}

.locked-badge::before {
    content: '💎';
    margin-right: 3px;
    opacity: 0.5;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.4));
}

/* Completed Woman Card Styles */
.woman-card.completed {
    border: 3px solid #4ade80;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(74, 222, 128, 0.6),
        0 0 40px rgba(74, 222, 128, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.woman-card.completed:hover {
    border-color: #4ade80;
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(74, 222, 128, 0.8),
        0 0 60px rgba(74, 222, 128, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.woman-card.completed .woman-portrait {
    border-color: #4ade80;
    box-shadow: 
        0 0 20px rgba(74, 222, 128, 0.8),
        0 0 40px rgba(74, 222, 128, 0.6),
        inset 0 0 20px rgba(74, 222, 128, 0.2);
}

.woman-card.completed:hover .woman-portrait {
    box-shadow: 
        0 0 25px rgba(74, 222, 128, 1),
        0 0 50px rgba(74, 222, 128, 0.8),
        inset 0 0 30px rgba(74, 222, 128, 0.3);
}

.completed-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.9) 0%, rgba(255, 215, 0, 0.9) 100%);
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(255, 215, 0, 0.8);
    box-shadow: 
        0 0 15px rgba(74, 222, 128, 0.6),
        0 0 20px rgba(255, 215, 0, 0.5);
    text-shadow: 
        0 0 5px rgba(0, 0, 0, 0.5),
        0 0 3px rgba(255, 215, 0, 0.8);
}

.completed-badge::before {
    content: '💎';
    margin-right: 3px;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.9));
}

/* Options Button Styles */
.options-btn {
    padding: 12px 18px;
    background: linear-gradient(135deg, #8a2be2 0%, #ff1493 50%, #FFD700 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 
        0 4px 15px rgba(138, 43, 226, 0.4),
        0 0 20px rgba(138, 43, 226, 0.2),
        0 0 15px rgba(255, 215, 0, 0.3);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 5px rgba(255, 215, 0, 0.6);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.options-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    transform: rotate(45deg);
    animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Menu options button - positioned absolutely (responsive styles moved below) */

.options-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(138, 43, 226, 0.6),
        0 0 30px rgba(255, 20, 147, 0.4),
        0 0 25px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 223, 0, 0.4);
    background: linear-gradient(135deg, #9a3bf2 0%, #ff2493 50%, #FFE135 100%);
}

.options-btn:active {
    transform: translateY(0);
}

.modal-portrait.disabled {
    filter: grayscale(80%);
    opacity: 0.6;
    border-color: rgba(100, 100, 100, 0.5);
    box-shadow: 
        0 0 20px rgba(100, 100, 100, 0.3),
        0 0 40px rgba(100, 100, 100, 0.2);
}

.challenge-message {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Game Screen Styles */
.game-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Mobile: Allow scrolling */
@media (max-width: 767px) {
    .game-container {
        min-height: 100vh;
        height: auto;
    }
}

/* Desktop and Tablet: Fixed heights */
@media (min-width: 768px) {
    .game-container {
        min-height: 100vh;
        height: 100%;
    }
}

/* Desktop: Fixed height */
@media (min-width: 1024px) {
    .game-container {
        height: 1024px;
        min-height: 1024px;
        flex-direction: row;
    }
}

/* Tablet: Full viewport height */
@media (min-width: 768px) and (max-width: 1023px) {
    .game-container {
        height: 100vh;
        min-height: 100vh;
        flex-direction: row;
    }
}

.left-column {
    width: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 2px 10px rgba(138, 43, 226, 0.1);
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    overflow-y: auto;
}

/* Mobile: Allow natural flow */
@media (max-width: 767px) {
    .left-column {
        overflow: visible;
        height: auto;
    }
}

/* Tablet and Desktop: Side-by-side layout */
@media (min-width: 768px) {
    .left-column {
        width: 30%;
        border-bottom: none;
        border-right: 2px solid rgba(138, 43, 226, 0.3);
        box-shadow: 
            4px 0 20px rgba(0, 0, 0, 0.5),
            inset -2px 0 10px rgba(138, 43, 226, 0.1);
        overflow-y: hidden;
        height: 100%;
    }
}

.game-title-section {
    margin-bottom: 20px;
}

.game-title-section h2 {
    color: #fff;
    font-size: clamp(18px, 3vw, 24px);
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.8),
        0 0 20px rgba(138, 43, 226, 0.4),
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 15px rgba(255, 223, 0, 0.4);
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
    position: relative;
}

.game-title-section h2::before {
    content: '💎';
    margin-right: 8px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
    animation: titleDiamondPulse 2s ease-in-out infinite;
}

@media (max-width: 480px) {
    .game-title-section h2::before {
        display: none;
    }
}

@keyframes titleDiamondPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

@media (min-width: 768px) {
    .game-title-section h2 {
        text-align: left;
    }
}

.video-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.video-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: clamp(18px, 2.5vw, 22px);
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.8),
        0 0 5px rgba(255, 215, 0, 0.6);
    letter-spacing: 1px;
    text-align: center;
    position: relative;
}

.video-section h3::before {
    content: '💎';
    margin-right: 8px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
}

@media (max-width: 480px) {
    .video-section h3::before {
        display: none;
    }
}

@media (min-width: 768px) {
    .video-section h3 {
        text-align: left;
    }
}

.video-container {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.4),
        0 0 15px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-top: 2px solid rgba(255, 215, 0, 0.5);
    position: relative;
}

.video-container::before {
    content: '💎';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    opacity: 0.3;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
    z-index: 1;
}

@media (min-width: 480px) {
    .video-container {
        min-height: 200px;
    }
}

#matchVideo {
    width: 100%;
    height: auto;
    display: none;
}

#matchVideo.active {
    display: block;
}

.no-matches {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 20px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.video-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    padding: 12px 18px;
    background: linear-gradient(135deg, #8a2be2 0%, #ff1493 50%, #FFD700 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 
        0 4px 15px rgba(138, 43, 226, 0.4),
        0 0 20px rgba(138, 43, 226, 0.2),
        0 0 15px rgba(255, 215, 0, 0.3);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 5px rgba(255, 215, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-btn:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(138, 43, 226, 0.6),
        0 0 30px rgba(255, 20, 147, 0.4),
        0 0 25px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 223, 0, 0.4);
    background: linear-gradient(135deg, #9a3bf2 0%, #ff2493 50%, #FFE135 100%);
}

.nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.nav-btn:disabled {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.5;
}

#videoCounter {
    color: #fff;
    font-weight: bold;
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.8),
        0 0 5px rgba(255, 215, 0, 0.6);
    font-size: clamp(14px, 2vw, 16px);
    position: relative;
}

#videoCounter::before {
    content: '💎';
    margin-right: 5px;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.7));
}

@media (max-width: 480px) {
    #videoCounter::before {
        display: none;
    }
}

.back-button-container {
    margin-top: auto;
    padding-top: 20px;
}

.back-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    color: white;
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-top: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 215, 0, 0.2);
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.5),
        0 0 5px rgba(255, 215, 0, 0.4);
    position: relative;
}

.back-btn::before {
    content: '💎';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
    opacity: 0.6;
}

@media (max-width: 480px) {
    .back-btn::before {
        display: none;
    }
}

.back-btn:hover {
    background: linear-gradient(135deg, #3a3a4e 0%, #2a2a3e 100%);
    border-color: rgba(255, 215, 0, 0.7);
    border-top-color: rgba(255, 215, 0, 0.9);
    box-shadow: 
        0 6px 20px rgba(138, 43, 226, 0.4),
        0 0 30px rgba(138, 43, 226, 0.2),
        0 0 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.back-btn:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.right-column {
    width: 100%;
    background: linear-gradient(180deg, #0f0f1e 0%, #1a1a2e 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Mobile: Allow natural flow */
@media (max-width: 767px) {
    .right-column {
        overflow: visible;
        height: auto;
        min-height: auto;
    }
}

/* Tablet and Desktop: Side-by-side layout */
@media (min-width: 768px) {
    .right-column {
        width: 70%;
        padding: 30px;
        overflow-y: hidden;
        height: 100%;
    }
}

.game-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .game-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
}

.game-header h2 {
    color: #fff;
    font-size: 32px;
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.8),
        0 0 20px rgba(138, 43, 226, 0.4);
    letter-spacing: 1px;
}

.stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .stats {
        justify-content: flex-start;
        gap: 20px;
    }
}

.stat-item {
    background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 100%);
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
    position: relative;
}

.stat-item::before {
    content: '💎';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 12px;
    opacity: 0.3;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 5px;
}

.stat-item span:last-child {
    color: #fff;
    font-weight: bold;
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.6),
        0 0 5px rgba(255, 215, 0, 0.5);
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1e 100%);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(138, 43, 226, 0.2),
        0 0 15px rgba(255, 215, 0, 0.15);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-top: 2px solid rgba(255, 215, 0, 0.4);
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #8a2be2 0%, 
        #ff1493 30%,
        #FFD700 60%,
        #FFA500 100%);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.8),
        0 0 40px rgba(255, 20, 147, 0.4),
        0 0 25px rgba(255, 215, 0, 0.7),
        0 0 45px rgba(255, 223, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '💎';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
    animation: diamondBounce 1s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes diamondBounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: progressFlow 1.5s infinite;
}

@keyframes progressFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    color: #fff;
    font-weight: bold;
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.8),
        0 0 5px rgba(255, 215, 0, 0.6);
    font-size: 16px;
    position: relative;
}

.progress-text::before {
    content: '💎';
    margin-right: 5px;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.7));
}

@media (max-width: 480px) {
    .progress-text::before {
        display: none;
    }
}

.game-board {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    perspective: 1000px;
    min-height: 0;
}

@media (min-width: 480px) {
    .game-board {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

/* Tablet: 4 columns, no scroll */
@media (min-width: 768px) and (max-width: 1023px) {
    .game-board {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        overflow: hidden;
    }
}

/* Desktop: 6 columns, no scroll */
@media (min-width: 1024px) {
    .game-board {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
        overflow: hidden;
    }
}

.card {
    aspect-ratio: 512 / 912;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: transform 0.6s ease;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(138, 43, 226, 0.2),
        0 0 10px rgba(255, 215, 0, 0.15);
    border: 2px solid rgba(138, 43, 226, 0.3);
    transform-style: preserve-3d;
    overflow: hidden;
    isolation: isolate;
    pointer-events: auto;
    touch-action: manipulation;
}

.card::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.3s;
    z-index: 2;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.card:hover::before {
    opacity: 1;
}

.card:hover:not(.flipped):not(.matched) {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(138, 43, 226, 0.6),
        0 0 50px rgba(255, 20, 147, 0.4),
        0 0 35px rgba(255, 215, 0, 0.5),
        0 0 55px rgba(255, 223, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.7);
    z-index: 10;
}

.card.flipped .card-front {
    opacity: 0;
    visibility: hidden;
}

.card.flipped .card-back {
    opacity: 1;
    visibility: visible;
}

.card.matched {
    opacity: 0.5;
    cursor: default;
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 50px rgba(255, 223, 0, 0.4),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    position: relative;
}

.card.matched::before {
    content: '💎';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9));
    animation: matchedDiamondSpin 1s ease-in-out;
}

@keyframes matchedDiamondSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(0); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.5); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.card-front {
    background: linear-gradient(135deg, 
        #8a2be2 0%, 
        #ff1493 40%,
        #FFD700 70%,
        #FFA500 100%);
    color: white;
    font-size: clamp(24px, 5vw, 48px);
    font-weight: bold;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(138, 43, 226, 0.6),
        0 0 15px rgba(255, 215, 0, 0.7);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.2);
    position: relative;
}

.card-front::after {
    content: '💎';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.4em;
    opacity: 0.3;
    animation: cardDiamondPulse 2s ease-in-out infinite;
}

@keyframes cardDiamondPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    animation: cardShine 3s infinite;
    pointer-events: none;
}

@keyframes cardShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.card-back {
    background: #1a1a2e;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(145deg, #1e1e2e 0%, #2a2a3e 100%);
    padding: 30px 20px;
    border-radius: 20px;
    max-width: 500px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(138, 43, 226, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-image: linear-gradient(135deg, rgba(138, 43, 226, 0.8), rgba(255, 215, 0, 0.6), rgba(255, 20, 147, 0.8)) 1;
    margin: 20px;
}

.modal-content::before {
    content: '💎';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 20px;
    opacity: 0.4;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
    animation: modalDiamondFloat 3s ease-in-out infinite;
}

.modal-content::after {
    content: '💎';
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 20px;
    opacity: 0.4;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
    animation: modalDiamondFloat 3s ease-in-out infinite reverse;
}

@keyframes modalDiamondFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(15deg); }
}

@media (min-width: 480px) {
    .modal-content {
        padding: 40px;
        width: 90%;
    }
}

/* Completion modal when all girls are completed - 800px width */
#completionModal.all-completed .modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 480px) {
    #completionModal.all-completed .modal-content {
        width: 90%;
        padding: 30px;
    }
}

#completionModal.all-completed .modal-woman-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.completion-video-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.completion-video-container {
    flex: 1;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(138, 43, 226, 0.3);
    min-height: 0;
    max-width: 780px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#completionVideo {
    width: 100%;
    height: 100%;
    max-width: 750px;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}

@media (min-width: 768px) {
    #completionVideo {
        max-height: 750px;
    }
}

.completion-video-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    width: clamp(35px, 5vw, 40px);
    height: clamp(35px, 5vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.2);
}

@media (min-width: 480px) {
    .close-modal {
        right: 20px;
        top: 20px;
    }
}

.close-modal:hover {
    color: #fff;
    background: rgba(138, 43, 226, 0.4);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

#modalContent {
    margin-bottom: 20px;
}

.modal-woman-info {
    text-align: center;
}

.modal-portrait {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    border-radius: 16px;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 4px solid transparent;
    background: linear-gradient(145deg, #8a2be2, #ff1493, #FFD700) padding-box,
                linear-gradient(145deg, #8a2be2, #ff1493, #FFD700, #FFA500) border-box;
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.8),
        0 0 60px rgba(255, 20, 147, 0.4),
        0 0 40px rgba(255, 215, 0, 0.6),
        0 0 70px rgba(255, 223, 0, 0.4);
    position: relative;
}

.modal-portrait::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 16px;
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0.8) 0%, 
        transparent 25%, 
        rgba(255, 223, 0, 0.6) 50%, 
        transparent 75%, 
        rgba(255, 215, 0, 0.8) 100%);
    background-size: 200% 200%;
    animation: goldShimmer 3s linear infinite;
    z-index: -1;
}

.modal-name {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.8),
        0 0 20px rgba(138, 43, 226, 0.4);
}

.modal-description {
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.start-game-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8a2be2 0%, #ff1493 50%, #FFD700 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 
        0 8px 20px rgba(138, 43, 226, 0.5),
        0 0 30px rgba(138, 43, 226, 0.3),
        0 0 20px rgba(255, 215, 0, 0.4);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 5px rgba(255, 215, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.start-game-btn::after {
    content: '💎';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
    animation: buttonDiamondPulse 2s ease-in-out infinite;
}

@media (max-width: 480px) {
    .start-game-btn::after {
        display: none;
    }
}

@keyframes buttonDiamondPulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateY(-50%) scale(1.3); opacity: 1; }
}

@media (min-width: 480px) {
    .start-game-btn {
        padding: 18px;
    }
}

/* Close button in completion modal - normal size, not full width */
#completionModal .start-game-btn {
    width: auto;
    min-width: 150px;
    padding: 12px 30px;
    margin: 20px auto 0;
    display: block;
}

.start-game-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.start-game-btn:hover::before {
    width: 400px;
    height: 400px;
}

.start-game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(138, 43, 226, 0.7),
        0 0 50px rgba(255, 20, 147, 0.5),
        0 0 35px rgba(255, 215, 0, 0.7),
        0 0 60px rgba(255, 223, 0, 0.5);
    background: linear-gradient(135deg, #9a3bf2 0%, #ff2493 50%, #FFE135 100%);
}

.start-game-btn:active {
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Scrollbar Styling */
.game-board::-webkit-scrollbar {
    width: 10px;
}

.game-board::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    border-radius: 5px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.game-board::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8a2be2 0%, #ff1493 50%, #FFD700 100%);
    border-radius: 5px;
    box-shadow: 
        0 0 10px rgba(138, 43, 226, 0.6),
        0 0 8px rgba(255, 215, 0, 0.5),
        inset 0 0 5px rgba(255, 255, 255, 0.2);
}

.game-board::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9a3bf2 0%, #ff2493 50%, #FFE135 100%);
    box-shadow: 
        0 0 15px rgba(138, 43, 226, 0.8),
        0 0 12px rgba(255, 215, 0, 0.7),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Options Modal Styles */
.option-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.option-control {
    margin-bottom: 15px;
}

.option-control:last-child {
    margin-bottom: 0;
}

/* Toggle Switch Styles */
.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(100, 100, 100, 0.5);
    border-radius: 26px;
    margin-right: 12px;
    transition: all 0.3s;
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: linear-gradient(135deg, #8a2be2 0%, #ff1493 50%, #FFD700 100%);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 
        0 0 15px rgba(138, 43, 226, 0.5),
        0 0 10px rgba(255, 215, 0, 0.4);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.6);
}

.toggle-text {
    user-select: none;
}

/* Volume Slider Styles */
.volume-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(100, 100, 100, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a2be2 0%, #ff1493 50%, #FFD700 100%);
    cursor: pointer;
    box-shadow: 
        0 0 10px rgba(138, 43, 226, 0.6),
        0 0 8px rgba(255, 215, 0, 0.5),
        0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 0 15px rgba(138, 43, 226, 0.8),
        0 0 12px rgba(255, 215, 0, 0.7),
        0 2px 8px rgba(0, 0, 0, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a2be2 0%, #ff1493 50%, #FFD700 100%);
    cursor: pointer;
    border: none;
    box-shadow: 
        0 0 10px rgba(138, 43, 226, 0.6),
        0 0 8px rgba(255, 215, 0, 0.5),
        0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 0 15px rgba(138, 43, 226, 0.8),
        0 0 12px rgba(255, 215, 0, 0.7),
        0 2px 8px rgba(0, 0, 0, 0.4);
}

.volume-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: rgba(100, 100, 100, 0.3);
}

/* Responsive adjustments for menu container - already handled above */

/* Responsive adjustments for options button */
.menu-container .options-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: clamp(12px, 2vw, 16px);
    padding: 10px 16px;
    z-index: 10;
}

@media (min-width: 768px) {
    .menu-container .options-btn {
        top: 20px;
        right: 20px;
        padding: 12px 20px;
    }
}

/* Responsive adjustments for video navigation */
.video-navigation {
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    font-size: clamp(12px, 2vw, 14px);
    padding: 10px 14px;
}

@media (min-width: 480px) {
    .nav-btn {
        padding: 12px 18px;
    }
}

/* Responsive adjustments for stat items */
.stat-item {
    font-size: clamp(12px, 2vw, 14px);
    padding: 10px 14px;
}

@media (min-width: 480px) {
    .stat-item {
        padding: 12px 18px;
    }
}

/* Responsive adjustments for woman card text */
.woman-name {
    font-size: clamp(14px, 2vw, 16px);
}

.woman-description {
    font-size: clamp(11px, 1.5vw, 12px);
}

/* Responsive adjustments for progress bar */
.progress-bar {
    height: clamp(24px, 3vw, 30px);
}

.progress-text {
    font-size: clamp(14px, 2vw, 16px);
}

/* Touch-friendly card hover on mobile */
@media (hover: none) and (pointer: coarse) {
    .card:hover:not(.flipped):not(.matched) {
        transform: none;
    }
    
    .woman-card:hover {
        transform: none;
    }
}

/* Prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure mobile scrolling works */
@media (max-width: 767px) {
    html {
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}