body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    font-family: 'Press Start 2P', monospace;
    color: #e0e0e0;
}

#menuScreen, #gameScreen {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.menu-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.game-title {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.game-instructions {
    font-size: clamp(0.8rem, 3vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 2rem;
}

#gameCanvas {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#instructionsCanvas {
    margin: 1rem auto;
    display: block;
    max-width: 100%;
    height: auto;
}

.button {
    font-family: 'Press Start 2P', monospace;
    background-color: transparent;
    border: 2px solid #e0e0e0;
    color: #e0e0e0;
    padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem);
    cursor: pointer;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #e0e0e0;
    color: #1a1a1a;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

.footer {
    text-align: center;
    padding: 1rem;
    font-size: clamp(0.4rem, 1.5vw, 0.6rem);
    width: 100%;
    box-sizing: border-box;
}

.footer a {
    color: #e0e0e0;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .menu-content {
        padding: 10px;
    }
    
    .button {
        width: 80%;
        max-width: 300px;
    }
}
.floating {
    animation: float 6s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    filter: drop-shadow(0 0 15px rgba(224, 224, 224, 0.2));
    transform-origin: center;
    perspective: 1000px;
}

@keyframes float {
    0% {
        transform: translateY(0) rotateX(0deg) scale(1);
        filter: drop-shadow(0 0 15px rgba(224, 224, 224, 0.2));
    }
    25% {
        transform: translateY(-10px) rotateX(2deg) scale(1.02);
        filter: drop-shadow(0 0 20px rgba(224, 224, 224, 0.3));
    }
    50% {
        transform: translateY(0) rotateX(0deg) scale(1);
        filter: drop-shadow(0 0 15px rgba(224, 224, 224, 0.2));
    }
    75% {
        transform: translateY(5px) rotateX(-1deg) scale(0.98);
        filter: drop-shadow(0 0 10px rgba(224, 224, 224, 0.1));
    }
    100% {
        transform: translateY(0) rotateX(0deg) scale(1);
        filter: drop-shadow(0 0 15px rgba(224, 224, 224, 0.2));
    }
}
#patchNotesOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#patchNotesOverlay.hidden {
    display: none;
}

.patch-notes-content {
    background-color: #1a1a1a;
    border: 2px solid #e0e0e0;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: #e0e0e0;
    font-family: 'Press Start 2P', monospace;
}

.patch-notes-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.patch-notes-list {
    margin: 20px 0;
}

.patch-notes-list ul {
    list-style-type: none;
    padding: 0;
}

.patch-notes-list li {
    margin: 10px 0;
}

.patch-notes-content .button {
    display: block;
    margin: 20px auto 0;
}
.button {
    font-family: 'Press Start 2P', monospace;
    background-color: #1a1a1a;
    border: 2px solid #e0e0e0;
    color: #e0e0e0;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    width: 250px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.button:hover {
    background-color: #e0e0e0;
    color: #1a1a1a;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}