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

:root {
    /* Color Palette - Outerfields Branding */
    --bg-color: #121622;
    --bg-gradient: linear-gradient(to bottom, #121622, #1a1f2e);
    --primary-color: #335dff; /* Outerfields blue */
    --primary-light: #6383ff;
    --primary-dark: #1e3eda;
    --white: #ffffff;
    --light-gray: rgba(255, 255, 255, 0.8);
    --med-gray: rgba(255, 255, 255, 0.5);
    --dark-gray: rgba(255, 255, 255, 0.2);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-sans);
    background: var(--bg-gradient);
    color: var(--white);
    font-weight: 300;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 2rem;
}

.hidden {
    display: none !important;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.company-logo {
    font-size: 1rem;
    letter-spacing: 0.4rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--med-gray);
    letter-spacing: 0.1rem;
}

button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    letter-spacing: 0.1rem;
    margin: 1rem 0;
    cursor: pointer;
    font-family: var(--font-sans);
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    outline: none;
}

button:hover, button:focus {
    background-color: var(--primary-color);
    color: var(--white);
}

button:active {
    transform: scale(0.98);
}

.instructions {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--med-gray);
    line-height: 1.6;
}

.hud {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

#score {
    font-size: 1.5rem;
    font-weight: 300;
}

#lives {
    display: flex;
    gap: 0.5rem;
}

.orientation-warning {
    display: none; /* Hide orientation warning completely */
}

/* Remove orientation-specific media query */
@media screen and (max-width: 767px) and (orientation: portrait) {
    .orientation-warning {
        display: none;
    }
}

/* Mobile warning styles */
#mobile-warning {
    text-align: center;
    background: var(--bg-gradient);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

#mobile-warning h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1rem;
}

.warning-message {
    font-size: 1rem;
    color: var(--light-gray);
    line-height: 1.6;
    margin: 1.5rem 0;
    max-width: 500px;
}

.desktop-icon {
    color: var(--primary-color);
    margin: 2rem 0;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Responsive styles for mobile warning */
@media (max-width: 380px) {
    #mobile-warning h2 {
        font-size: 1.5rem;
    }

    .warning-message {
        font-size: 0.9rem;
        padding: 0 0.5rem;
        margin: 1rem 0;
    }

    .desktop-icon {
        margin: 1.5rem 0;
    }

    .desktop-icon svg {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 768px) {
    #mobile-warning h2 {
        font-size: 2.2rem;
    }

    .warning-message {
        font-size: 1.2rem;
    }

    .desktop-icon svg {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 1200px) {
    #mobile-warning h2 {
        font-size: 2.5rem;
    }

    .warning-message {
        font-size: 1.3rem;
        max-width: 600px;
    }
}

/* Portrait-specific adjustments */
@media screen and (orientation: portrait) {
    .hud {
        top: 2rem;
    }
    
    #score {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}

/* Touch target sizes for mobile */
@media (max-width: 767px) {
    button {
        padding: 1rem 2rem;
        min-height: 44px;
        min-width: 200px;
    }
    
    .warning-message {
        padding: 0 1.5rem;
    }
}

#game-over-screen h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

#final-score {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--med-gray);
} 