body {
    font-family: 'Press Start 2P', cursive;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #1a202c;
    color: #e2e8f0;
    margin: 0;
    overflow: hidden;
}
canvas {
    background-color: #2d3748;
    border: 2px solid #4a5568;
    border-radius: 8px;
    display: block;
}
.game-container {
    background-color: #2c5282;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-align: center;
}
.controls-info {
    margin-top: 16px;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #a0aec0;
}
.controls-info kbd {
    background-color: #4a5568;
    color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    border: 1px solid #718096;
}
.button {
    background-color: #38a169;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 15px;
    transition: background-color 0.2s;
    font-family: 'Press Start 2P', cursive;
}
.button:hover { background-color: #2f855a; }
.button.secondary { background-color: #4a5568; }
.button.secondary:hover { background-color: #2d3748; }
.button.tertiary { background-color: #b7791f; }
.button.tertiary:hover { background-color: #975a16; }
.button.quaternary { background-color: #4c51bf; }
.button.quaternary:hover { background-color: #434190; }
.button:disabled { background-color: #718096; cursor: not-allowed; }
.hidden { display: none; }
#backgroundMusic {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background-color: #2d3748;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: #e2e8f0;
    font-size: 0.8rem;
    line-height: 1.5;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #4a5568;
    padding-bottom: 15px;
}
.modal-header h2 { font-size: 1.2rem; font-weight: normal; }
.modal-close-button {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.5rem;
    cursor: pointer;
    font-family: sans-serif;
}
.shop-item {
    background-color: #4a5568;
    border: 1px solid #718096;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.shop-item img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 4px;
    background-color: #2d3748;
    object-fit: contain;
}
.shop-item-info { flex-grow: 1; }
.shop-item-info h3 { font-size: 0.9rem; font-weight: normal; }
.shop-item-info p { font-size: 0.7rem; color: #a0aec0; margin-top: 2px; }
.shop-item-info .perk { font-size: 0.65rem; color: #9ae6b4; }
.shop-item-info .side-effect { font-size: 0.65rem; color: #feb2b2; }
.shop-item-info .description { font-size: 0.7rem; color: #cbd5e0; }
.shop-item-actions .button { margin-left: 10px; padding: 8px 10px; font-size: 0.7rem; }
#totalScoreDisplay { font-size: 1rem; margin-top: 5px; margin-bottom: 8px; }
.game-container h1 { font-size: 1.5rem; line-height: 1.2; }
.equipped-badge, .active-badge {
    background-color: #38a169;
    color: white;
    padding: 2px 5px;
    font-size: 0.6rem;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: normal;
}

/* Credits Modal */
#creditsModal .modal-content p,
#creditsModal .modal-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 0.75rem;
}
#creditsModal .modal-content a { color: #63b3ed; text-decoration: underline; }
#creditsModal .modal-content a:hover { color: #90cdf4; }

/* Score display in shop modals */
#shopTotalScoreChar, #shopTotalScoreDown { font-size: 1rem; }
