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

body {
    overflow: hidden;
    background: #0a0a12;
    font-family: 'IBM Plex Mono', monospace;
}

#scene-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 10;
    padding: 16px;
}

#title-bar {
    text-align: center;
    background: rgba(10, 10, 18, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 14px 20px;
    display: inline-block;
    margin: 0 auto;
    width: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#title-bar h1 {
    font-family: 'Pirata One', cursive;
    font-size: 2rem;
    color: #d4af37;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.3);
    letter-spacing: 2px;
    line-height: 1.2;
}

.hint {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

#controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
    pointer-events: all;
}

.pirate-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(10, 10, 18, 0.8);
    color: #d4af37;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pirate-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
    transform: translateY(-1px);
}

.pirate-btn:active {
    transform: translateY(0);
}

.pirate-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #fff;
}

#footer {
    position: fixed;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

#footer a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #d4af37;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
    letter-spacing: 1px;
}

#footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 600px) {
    #title-bar h1 {
        font-size: 1.4rem;
    }
    .hint {
        font-size: 0.62rem;
    }
    .pirate-btn {
        font-size: 0.65rem;
        padding: 6px 10px;
    }
    #controls {
        flex-direction: column;
        align-items: center;
    }
}