body, html, #root, .container, .game-container-wrapper {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Courier New', Courier, monospace;
    color: white;
}

canvas {
    display: block;
}

.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.interactive {
    pointer-events: auto;
}

.menu {
    background: rgba(0,0,0,0.8) url('https://rosebud.ai/assets/menu_background.webp?IdJd') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    text-align: center;
}

.title-main {
    color: orange;
}

.title-sub {
    color: #8B4513; /* Brown */
    font-size: 2rem;
    display: block;
    margin-top: 10px;
}

button {
    background: #333;
    color: white;
    border: 2px solid #555;
    padding: 15px 40px;
    margin: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 250px;
}

.menu-footer {
    position: absolute;
    bottom: 20px;
    color: #00ff00; /* Green */
    font-size: 1.2rem;
    font-weight: bold;
}

.settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.settings-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: auto;
}

.settings-close:hover {
    color: red;
    background: none;
    border: none;
}

.settings-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.pause-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    padding: 0;
    line-height: 46px;
    border-radius: 50%;
    z-index: 20;
}

.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.pause-overlay h2 {
    font-size: 3rem;
    color: orange;
    margin-bottom: 2rem;
}

.dialogue-box {
    position: absolute;
    bottom: 50px;
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border: 2px solid white;
    max-width: 600px;
    text-align: center;
    font-size: 1.2rem;
}

.note-overlay {
    background: rgba(0,0,0,0.9);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.note-paper {
    background: #fdf5e6;
    color: #333;
    padding: 40px;
    width: 300px;
    height: 400px;
    transform: rotate(-2deg);
    box-shadow: 10px 10px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-align: center;
    position: relative;
}

.note-paper::after {
    content: 'Press Z to close';
    position: absolute;
    bottom: 10px;
    font-size: 0.8rem;
    color: #666;
}

.gameover {
    background: rgba(100,0,0,0.7);
}

.gameover h2 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
}

.victory {
    background: rgba(0,0,0,1);
    text-align: center;
}
