* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #9bbc0f;
    font-family: 'Press Start 2P', monospace;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    overflow: hidden;
}

.container {
    background: #8bac0f;
    padding: 40px;
    border: 8px solid #0f380f;
    box-shadow: 
        inset -8px -8px 0 #306230,
        inset 8px 8px 0 #9bbc0f;
    display: flex;
    gap: 40px;
    position: relative;
}

.game-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-section h1 {
    margin-bottom: 20px;
}

#gameCanvas {
    background: #9bbc0f;
    border: 6px solid #0f380f;
    box-shadow: inset 0 0 0 4px #306230;
    image-rendering: pixelated;
    display: block;
}

.score-box {
    width: 300px;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #9bbc0f;
    border: 4px solid #0f380f;
    color: #0f380f;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
}

.info-section {
    background: #9bbc0f;
    padding: 20px;
    border: 4px solid #0f380f;
    color: #0f380f;
    max-width: 250px;
    font-size: 16px;
    line-height: 3.3rem;
}

.power-off {
    animation: powerOff 0.6s forwards;
}

@keyframes powerOff {
    0% { transform: scaleY(1); opacity: 1; }
    60% { transform: scaleY(0.05); }
    100% { transform: scaleY(0); opacity: 0; }
}

.power-on {
    animation: powerOn 0.6s forwards;
}

@keyframes powerOn {
    0% { transform: scaleY(0); opacity: 0; }
    60% { transform: scaleY(0.05); }
    100% { transform: scaleY(1); opacity: 1; }
}

.wrapper {
    padding-top: env(safe-area-inset-top);
}

.canvas-wrapper {
    position: relative;
    width: 400px;
    height: 600px;
    margin: auto;
    background: #0f380f;
}

#restartButton {
    width: 120px;
    height: 40px;
    background: #9bbc0f;
    color: #0f380f;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    border: 4px solid #0f380f;
    cursor: pointer;
    box-shadow: inset -4px -4px #306230, inset 4px 4px #8bac0f;
    text-align: center;
    line-height: 40px;
    margin-top: 10px;
}
#restartButton:active {
    box-shadow: inset 4px 4px #306230, inset -4px -4px #8bac0f;
}
