@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&display=swap');

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

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: 'VT323', monospace;
    font-size: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    width: 100%;
    max-width: 800px;
    min-height: 100vh;
    padding: 20px;
}

#screen {
    width: 100%;
}

/* Title Screen */
.title-screen {
    text-align: center;
    padding: 60px 20px;
}

.title-art {
    color: #ff6b35;
    font-family: 'Press Start 2P', monospace;
    font-size: 28px;
    line-height: 2;
    white-space: pre;
    margin-bottom: 10px;
    overflow-x: auto;
    letter-spacing: 2px;
}

.title-subtitle {
    color: #888;
    font-size: 22px;
    margin-bottom: 50px;
    font-style: italic;
}

.title-quote {
    color: #ff6b35;
    font-size: 18px;
    margin-bottom: 50px;
    padding: 0 40px;
    line-height: 1.6;
}

.start-btn {
    background: none;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    font-family: 'VT323', monospace;
    font-size: 28px;
    padding: 15px 50px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    margin-bottom: 20px;
}

.start-btn:hover {
    background: #ff6b35;
    color: #0a0a0a;
}

.title-footer {
    color: #444;
    font-size: 16px;
    margin-top: 30px;
}

/* Character Select */
.char-select {
    padding: 40px 20px;
}

.char-select h2 {
    color: #ff6b35;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    margin-bottom: 30px;
    text-align: center;
}

.char-option {
    border: 1px solid #333;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.char-option:hover {
    border-color: #ff6b35;
    background: #1a1a1a;
}

.char-option .char-name {
    color: #ff6b35;
    font-size: 24px;
    margin-bottom: 5px;
}

.char-option .char-desc {
    color: #888;
    font-size: 18px;
    line-height: 1.4;
}

.char-option .char-stats {
    color: #666;
    font-size: 16px;
    margin-top: 8px;
}

/* Status Bar */
.status-bar {
    border: 1px solid #333;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #111;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 22px;
}

.stat-value.money { color: #4ecdc4; }
.stat-value.time { color: #ffe66d; }
.stat-value.stress { color: #ff6b6b; }
.stat-value.progress { color: #95e87a; }

.stat-bar-container {
    width: 100%;
    height: 8px;
    background: #222;
    margin-top: 2px;
}

.stat-bar {
    height: 100%;
    transition: width 0.5s ease;
}

.stat-bar.stress-bar { background: #ff6b6b; }
.stat-bar.progress-bar { background: #95e87a; }

.week-display {
    grid-column: 1 / -1;
    text-align: center;
    color: #ff6b35;
    font-size: 18px;
    padding-top: 5px;
    border-top: 1px solid #222;
}

/* Game Screen */
.game-screen {
    padding: 20px 0;
}

.phase-label {
    color: #ff6b35;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.narrative {
    color: #ccc;
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 20px;
    border-left: 3px solid #333;
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-btn {
    background: none;
    border: 1px solid #333;
    color: #e0e0e0;
    font-family: 'VT323', monospace;
    font-size: 20px;
    padding: 15px 20px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    gap: 12px;
}

.choice-btn:hover {
    border-color: #ff6b35;
    background: #1a1a1a;
    color: #ff6b35;
}

.choice-key {
    color: #ff6b35;
    min-width: 24px;
}

.choice-text {
    flex: 1;
}

.choice-hint {
    color: #666;
    font-size: 16px;
}

/* Event Popup */
.event-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.event-box {
    max-width: 600px;
    padding: 40px;
    border: 2px solid #ff6b35;
    background: #111;
    text-align: center;
}

.event-type {
    color: #ff6b35;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.event-text {
    color: #ccc;
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-impact {
    color: #ff6b6b;
    font-size: 18px;
    margin-bottom: 25px;
}

.event-impact.positive {
    color: #95e87a;
}

.continue-btn {
    background: none;
    border: 1px solid #ff6b35;
    color: #ff6b35;
    font-family: 'VT323', monospace;
    font-size: 20px;
    padding: 10px 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.continue-btn:hover {
    background: #ff6b35;
    color: #0a0a0a;
}

/* Result Screen */
.result-screen {
    text-align: center;
    padding: 60px 20px;
}

.result-outcome {
    color: #ff6b35;
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    margin-bottom: 30px;
}

.result-narrative {
    color: #ccc;
    font-size: 22px;
    line-height: 1.8;
    margin-bottom: 40px;
    padding: 0 20px;
}

.result-stats {
    border: 1px solid #333;
    padding: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.result-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #1a1a1a;
    font-size: 20px;
}

.result-stat-label {
    color: #888;
}

.result-stat-value {
    color: #ff6b35;
}

.result-quote {
    color: #666;
    font-size: 18px;
    font-style: italic;
    margin-bottom: 40px;
    padding: 0 30px;
}

.play-again-btn {
    background: none;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    font-family: 'VT323', monospace;
    font-size: 24px;
    padding: 12px 40px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 10px;
}

.play-again-btn:hover {
    background: #ff6b35;
    color: #0a0a0a;
}

/* Outcome screen */
.outcome-screen {
    padding: 20px 0;
}

.outcome-text {
    color: #ccc;
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 20px;
    border-left: 3px solid #ff6b35;
}

.outcome-effects {
    margin-bottom: 25px;
    padding: 10px 20px;
}

.effect-line {
    font-size: 18px;
    padding: 4px 0;
}

.effect-line.negative { color: #ff6b6b; }
.effect-line.positive { color: #95e87a; }
.effect-line.neutral { color: #ffe66d; }

/* Share */
.share-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.share-text {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}

.share-btn {
    background: none;
    border: 1px solid #444;
    color: #888;
    font-family: 'VT323', monospace;
    font-size: 18px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 5px;
}

.share-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

/* Responsive */
@media (max-width: 600px) {
    body { font-size: 18px; }
    .title-art { font-size: 7px; }
    .narrative { font-size: 20px; padding: 15px; }
    .choice-btn { font-size: 18px; padding: 12px 15px; }
    .status-bar { padding: 10px 15px; }
    #game-container { padding: 10px; }
}

/* Fade transitions */
.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Log / history */
.history-toggle {
    color: #444;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
}

.history-toggle:hover {
    color: #888;
}

.history-log {
    border: 1px solid #222;
    padding: 15px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.history-log.open {
    display: block;
}

.history-entry {
    padding: 5px 0;
    border-bottom: 1px solid #111;
    color: #555;
    font-size: 16px;
}
