@font-face {
    font-family: 'Grotesque MT Std Bold Extended';
    src: url('Grotesque MT Std Bold Extended.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

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

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
    color: white;
    z-index: 3;
}

.title {
    font-family: 'Grotesque MT Std Bold Extended', 'Arial Black', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
                 0 0 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.solana-address {
    font-family: 'Monotype', 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    max-width: 300px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8),
                 0 0 8px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.x-links {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.x-link {
    color: white;
    font-family: 'Tahoma', 'Arial', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8),
                 0 0 8px rgba(0, 0, 0, 0.5);
}

.x-link:hover {
    text-decoration: underline;
}

.disclaimer {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 3;
}

.disclaimer p {
    font-family: 'Monotype', 'Courier New', monospace;
    font-size: 0.8rem;
   opacity: 0.5;
    padding: 8px 16px;
    max-width: 90%;
    margin: 0 auto;
}

.button-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.sound-button, .next-button, .info-button, .copy-button, .meme-button, .game-button, .game-close {
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 50%, #d0d0d0 100%);
    color: #000;
    border: 2px solid #808080;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    border-radius: 3px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Tahoma', 'Arial', sans-serif;
    font-weight: bold;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.8),
                inset -1px -1px 0px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

.sound-button:hover, .next-button:hover, .info-button:hover, .copy-button:hover, .meme-button:hover, .game-button:hover, .game-close:hover {
    background: linear-gradient(to bottom, #f8f8f8 0%, #e8e8e8 50%, #d8d8d8 100%);
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
}

.sound-button:active, .next-button:active, .info-button:active, .copy-button:active, .meme-button:active, .game-button:active, .game-close:active {
    background: linear-gradient(to bottom, #d0d0d0 0%, #e0e0e0 50%, #f0f0f0 100%);
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    box-shadow: inset -1px -1px 0px rgba(255, 255, 255, 0.8),
                inset 1px 1px 0px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}

.sound-icon, .next-icon, .info-icon, .copy-icon, .meme-icon, .game-icon {
    font-size: 1.1rem;
}

.tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: 'Tahoma', 'Arial', sans-serif;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile styles */
@media (max-width: 768px) {
    .content {
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        right: auto;
        text-align: center;
        width: 90%;
    }
    
    .title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .solana-address {
        font-size: 0.8rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .x-links {
        justify-content: center;
    }

    .button-container {
        top: 10px;
        left: 10px;
        gap: 8px;
    }
    
    .sound-button, .next-button, .info-button, .copy-button, .meme-button, .game-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .sound-text, .next-text, .info-text, .copy-text, .meme-text {
        display: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .solana-address {
        font-size: 0.7rem;
    }

    .disclaimer p {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}

/* Juan game */
.game-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    overflow: hidden;
    background: #000;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.game-overlay[hidden] {
    display: none;
}

#game-bg, #game-fg {
    position: absolute;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

#game-fg {
    z-index: 15;
}

.game-floor {
    position: absolute;
    background: rgba(80, 255, 120, 0.25);
    border-top: 3px dashed rgba(255, 255, 255, 0.8);
    border-left: 3px dashed rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.game-floor.show {
    opacity: 1;
}

.game-sprite {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: grab;
    line-height: 1;
    transition: left 0.3s cubic-bezier(0.2, -0.4, 0.4, 1.4),
                top 0.3s cubic-bezier(0.2, -0.4, 0.4, 1.4);
    touch-action: none;
    z-index: 10;
}

.game-sprite img,
.game-sprite span {
    display: block;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.game-sprite.dragging {
    transition: none;
    cursor: grabbing;
}

.game-hud {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 20;
    pointer-events: none;
}

.game-score {
    font-family: 'Grotesque MT Std Bold Extended', 'Arial Black', sans-serif;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

.game-best {
    font-family: 'Monotype', 'Courier New', monospace;
    font-size: 0.9rem;
    opacity: 0.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.game-msg {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: 'Tahoma', 'Arial', sans-serif;
    font-size: 1rem;
    white-space: nowrap;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.game-msg.show {
    opacity: 1;
    visibility: visible;
}

.game-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 30;
}

.game-popup {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: 'Grotesque MT Std Bold Extended', 'Arial Black', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 25;
    animation: game-popup-float 0.9s ease-out forwards;
}

@keyframes game-popup-float {
    0% { opacity: 1; margin-top: 0; }
    100% { opacity: 0; margin-top: -80px; }
}

.game-overlay.shake {
    animation: game-shake 0.25s ease;
}

@keyframes game-shake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-6px, 4px); }
    50% { transform: translate(5px, -4px); }
    75% { transform: translate(-3px, 2px); }
}