:root {
    --green: #2ecc71;
    --dark: #121212;
    --card: #1e1e1e;
    --text: #ffffff;
}

body {
    background: var(--dark);
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
}

#game-container {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#top-bar {
    padding: 15px;
    background: var(--card);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

#money-display { color: var(--green); font-weight: bold; font-size: 1.2rem; }

#life-log {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column-reverse;
}

.log-entry {
    background: var(--card);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid var(--green);
}

#action-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 15px;
    background: var(--card);
}

.age-btn {
    grid-column: span 4;
    background: var(--green);
    border: none;
    padding: 15px;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.menu-btn { background: #333; border: none; color: white; padding: 10px; border-radius: 10px; }

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content { background: var(--card); padding: 25px; border-radius: 20px; width: 80%; text-align: center; }

.choice-btn { width: 100%; padding: 10px; margin-top: 8px; border-radius: 8px; background: #2a2a2a; color: white; border: 1px solid #444; }