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

#gameArea {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    height: 100vh;
}

#gameCanvas {
    border: 2px solid #333;
    background-color: #000;
    display: block;
    flex-shrink: 0;
}

#statusBar {
    width: 360px;
    background: #222;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

#restartGameBtn {
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    border: none;
    border-radius: 6px;
    background: #ff0;
    color: #222;
    font-family: 'Press Start 2P', system-ui;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    cursor: pointer;
    display: none;
}

#restartGameBtn:hover {
    background: #ffe066;
}

.character-select {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4) !important;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    color: white;
    z-index: 1000;
    min-width: 800px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    border: 2px solid #333;
    pointer-events: none;
}

.character-select > * {
    pointer-events: auto;
}

.character-options, .character-option, .character-input {
    background: transparent !important;
    box-shadow: none !important;
}

.game-title {
    font-size: 3rem;
    color: #ff0;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
}

.character-options {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    justify-content: center;
}

.character-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 200px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.character-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: #666;
}

.character-option.selected {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid gold;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.character-sprite {
    width: 64px;
    height: 64px;
    margin: 1rem auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    display: block;
}

.character-option.selected .character-sprite {
    filter: drop-shadow(0 0 10px gold);
}

.character-stats {
    margin: 1rem 0;
    font-size: 0.8rem;
    color: #aaa;
    width: 100%;
    text-align: center;
}

.stat {
    margin: 0.3rem 0;
}

.character-input {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.character-input input {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 300px;
    text-align: center;
    font-family: 'Press Start 2P', system-ui;
}

.character-input input:focus {
    outline: none;
    border-color: gold;
    background: rgba(255, 255, 255, 0.15);
}

.character-input button {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 4px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    font-family: 'Press Start 2P', system-ui;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.character-input button:hover:not(.disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.character-input button.disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.character-option h3 {
    margin: 0.5rem 0;
    color: gold;
    font-size: 1.2rem;
}

.character-option p {
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: #ccc;
    text-align: center;
}

@keyframes scorePopup {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.score-popup {
    position: absolute;
    color: #ff0;
    font-weight: bold;
    animation: scorePopup 1s ease-out forwards;
} 