* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: black;
    width: 100vw;
    height: 100vh;
    font-family: -apple-system, sans-serif;
}

.title-mask {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 46px;
    background: #000;
    z-index: 10;
    pointer-events: none;
}

#videoContainer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.youtube-player.active {
    visibility: visible;
    opacity: 1;
    z-index: 5;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#clickMask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: auto;
    background: transparent;
}

#noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 20;
    pointer-events: none;
}

#noise.show {
    display: block;
}

canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

#logo {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 180px;
    height: auto;
    z-index: 50;
    background: #fff;
}

#logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#logo {
    cursor: pointer; /* Add this to the existing #logo rule */
}

/* Add these new rules */
#aboutModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

#aboutModal.show {
    display: flex;
}

.modal-content {
    background: #000;
    color: #fff;
    border: 4px solid #fff;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
}

.modal-title {
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.modal-divider {
    width: 80px;
    height: 2px;
    background: #fff;
    margin: 20px auto;
}

.modal-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-email {
    color: #cf1d23;
    text-decoration: none;
    font-weight: bold;
}

.modal-email:hover {
    text-decoration: underline;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.modal-close:hover {
    color: #cf1d23;
}

.control-buttons {
    position: absolute;
    top: 220px; /* Below logo */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(239, 238, 240, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(239, 238, 240, 0.6);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

.control-btn.up svg {
    transform: rotate(90deg);
}

.control-btn.down svg {
    transform: rotate(-90deg);
}

#startOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d4d4d4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 100;
}

#startOverlay.hidden {
    display: none;
}

.age-warning {
    background: white;
    color: black;
    border: 6px solid black;
    padding: 25px 35px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    max-width: 450px;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.age-warning .warning-title {
    font-size: 20px;
    margin-bottom: 12px;
    border-bottom: 3px solid black;
    padding-bottom: 10px;
}

#startButton {
    background: #cf1d23;
    color: #fff;
    border: 4px none;
    padding: 18px 40px;
    font-size: 20px;
    border-radius: 36px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#startButton:hover {
    text-decoration: underline;
}

#debugInfo {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 10px;
    font-family: monospace;
    font-size: 11px;
    border-radius: 5px;
    z-index: 60;
    display: none;
    pointer-events: none;
}

#debugInfo.show {
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    #logo {
        width: 40px;
        top: 10px;
        right: 15px;
    }

    .control-buttons {
        top: 100px; /* Adjusted for smaller logo */
        right: 15px;
        gap: 8px;
    }

    .control-btn {
        width: 44px;
        height: 44px;
    }

    .control-btn svg {
        width: 20px;
        height: 20px;
    }

    .age-warning {
        padding: 20px 25px;
        font-size: 13px;
        max-width: 340px;
    }

    .age-warning .warning-title {
        font-size: 17px;
    }

    #startButton {
        padding: 15px 30px;
        font-size: 18px;
    }

    #debugInfo {
        font-size: 9px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    #logo {
        width: 60px;
        top: 8px;
        right: 12px;
    }

    .control-buttons {
        top: 100px;
        right: 12px;
        gap: 6px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
    }

    .control-btn svg {
        width: 18px;
        height: 18px;
    }

    .age-warning {
        padding: 16px 20px;
        font-size: 12px;
        max-width: 290px;
    }

    .age-warning .warning-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    #startButton {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* Landscape Orientation - Logo 40px */
@media (orientation: landscape) and (max-height: 600px) {
    #logo {
        width: 40px;
        top: 10px;
        right: 15px;
    }

    .control-buttons {
        top: 70px; /* Adjusted for smaller logo */
        right: 15px;
        gap: 6px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
    }

    .control-btn svg {
        width: 18px;
        height: 18px;
    }

    .title-mask {
        height: 36px; /* Smaller for landscape */
    }

    .modal-content {
        padding: 30px;
        max-width: 450px;
    }

    .modal-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .modal-text {
        font-size: 14px;
    }

    .age-warning {
        padding: 18px 25px;
        font-size: 12px;
        max-width: 380px;
    }

    .age-warning .warning-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    #startButton {
        padding: 14px 28px;
        font-size: 17px;
    }

    #debugInfo {
        font-size: 9px;
        padding: 6px;
    }
}
