body {
    margin: 0; background-color: #0b0c10; display: flex;
    justify-content: center; align-items: center; height: 100vh;
    font-family: 'Courier New', Courier, monospace; overflow: hidden;
    color: white; touch-action: none; 
}

#game-container {
    position: relative; box-shadow: 0 0 20px rgba(102, 252, 241, 0.2);
}

canvas {
    background-color: #1f2833; border: 2px solid #45a29e; display: block;
    max-width: 100vw; max-height: 100vh; width: 800px; object-fit: contain;
}

#ui-layer {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; background: rgba(11, 12, 16, 0.95); padding: 20px;
    border: 1px solid #66fcf1; border-radius: 10px; min-width: 300px;
}

h1 { margin: 0; color: #ff007f; text-shadow: 2px 2px #00ffff; font-size: 2.5rem; }
h3 { color: #66fcf1; border-bottom: 1px solid #45a29e; padding-bottom: 5px;}

input, button { font-size: 1.1rem; padding: 8px 12px; margin-top: 5px; font-family: inherit; }
input { background: #000; border: 1px solid #66fcf1; color: white; text-align: center;}
button { background: #ff007f; color: white; border: none; cursor: pointer; font-weight: bold; }
button:hover { background: #ff4da6; }

ul { list-style: none; padding: 0; text-align: left; margin: 0; }
li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #333; }

#mode-selector {
    margin: 15px 0; padding: 10px; background: rgba(31, 40, 51, 0.8);
    border: 1px dashed #45a29e; border-radius: 5px;
}
#mode-selector p { margin: 0 0 10px 0; font-size: 1rem; color: #c5c6c7; }
.mode-btn { background: transparent; color: #66fcf1; border: 1px solid #45a29e; margin: 0 5px; }
.mode-btn:hover { background: rgba(102, 252, 241, 0.2); }
.mode-btn.active { background: #66fcf1; color: #0b0c10; border-color: #66fcf1; box-shadow: 0 0 10px #66fcf1; }

#orientation-warning {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #0b0c10; color: #ff007f; z-index: 9999; 
    text-align: center; justify-content: center; align-items: center; flex-direction: column;
}

@media screen and (orientation: portrait) {
    #orientation-warning { display: flex; }
    #game-container { display: none; }
}