/* Life Choices - Modern Professional Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    min-height: 100vh;
    max-height: 100vh;
    padding: 10px;
    margin: 0;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    max-height: 100vh;
    overflow-y: auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffd89b, #19547b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Stats Panel */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-icon {
    font-size: 2.5em;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.age-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 159, 64, 0.3));
}

/* Game Area */
.game-area {
    position: relative;
    min-height: 500px;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

/* Welcome Card */
.welcome-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.welcome-card h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffd89b, #19547b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-card p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Story Card */
.story-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.stage-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stage-icon {
    font-size: 2.5em;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.stage-name {
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.scenario-content {
    margin-bottom: 30px;
}

.scenario-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffd89b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.scenario-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ffd89b;
}

/* Choices */
.choices-container {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.choice-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.1em;
    position: relative;
    overflow: hidden;
}

.choice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.choice-btn:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.choice-btn:hover::before {
    left: 100%;
}

.choice-btn:active {
    transform: translateX(5px);
}

.choice-text {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.choice-effects {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.effect {
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
}

.effect.positive {
    color: #4ade80;
}

.effect.negative {
    color: #f87171;
}

/* Progress */
.progress-info {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* End Card */
.end-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.end-card h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffd89b, #19547b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.life-summary {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: left;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1.1em;
}

.summary-label {
    color: rgba(255, 255, 255, 0.8);
}

.summary-value {
    font-weight: bold;
    color: #ffd89b;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.achievement {
    background: rgba(255, 215, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.achievement-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.achievement-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement-desc {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

.end-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn span {
    font-size: 1.3em;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.3em;
}

.btn:active {
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

footer a {
    color: #ffd89b;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-card, .story-card, .end-card {
        padding: 25px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .end-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-icon {
        font-size: 2em;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1em;
    }
}
