@font-face {
    font-family: 'Press Start 2P';
    src: url('PressStart2P.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    height: 100vh;
    font-family: 'Press Start 2P', cursive;
}

#creator-container {
    width: 100vw;
    height: 100vh;
    background: url('character-background.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

#title {
    color: #FFD700;
    font-size: 42px;
    text-shadow: 3px 3px 0 #FF6B35;
}

#character-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.character-option {
    width: 220px;
    height: 220px;
    image-rendering: pixelated;
    cursor: pointer;
    border-radius: 20px;
    border: 4px solid transparent;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.character-option:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.character-option.selected {
    border-color: #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    transform: scale(1.08);
}

#start-button {
    padding: 18px 44px;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #fff;
    background: #4CAF50;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#start-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#start-button:not(:disabled) {
    animation: pulse-glow 2s ease-in-out infinite;
}

#start-button:not(:disabled):hover {
    background: #45a049;
}

#start-button:not(:disabled):active {
    transform: scale(0.97);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(76, 175, 80, 0.8);
    }
}
