*, *::before, *::after { 
    box-sizing: border-box; 
}

body { 
    background: #020617; 
    color: #fff; 
    font-family: 'Inter', sans-serif; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    margin: 0; 
    text-align: center; 
    overflow: hidden; 
    user-select: none; 
    transition: background 1s; 
}

#particles { 
    position: fixed; 
    inset: 0; 
    z-index: 0; 
    pointer-events: none; 
}

.bg-glow { 
    position: fixed; 
    inset: 0; 
    background: radial-gradient(ellipse 80% 60% at 50% 40%, #1e3a8a44 0%, transparent 70%); 
    z-index: 0; 
    pointer-events: none; 
}

.back-home { 
    position: fixed; 
    top: 20px; 
    left: 24px; 
    font-size: 0.85rem; 
    color: #475569; 
    text-decoration: none; 
    transition: color 0.2s; 
    z-index: 10; 
}

.back-home:hover { 
    color: #fff; 
}

.container { 
    position: relative; 
    z-index: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 40px 24px; 
    max-width: 560px; 
    width: 100%; 
}

h1 { 
    font-family: 'Syne', sans-serif; 
    font-size: clamp(2rem,8vw,3rem); 
    font-weight: 900; 
    margin: 0 0 4px; 
    letter-spacing: -2px; 
}

.subtitle { 
    font-size: 0.9rem; 
    color: #64748b; 
    margin-bottom: 32px; 
}

/* Stats */
.stats-row { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
    justify-content: center; 
    margin-bottom: 28px; 
}

.stat { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 3px; 
    background: rgba(15,23,42,0.6); 
    border: 1px solid rgba(51,65,85,0.5); 
    border-radius: 12px; 
    padding: 10px 16px; 
}

.stat-val { 
    font-family: 'Syne', sans-serif; 
    font-size: 1.4rem; 
    font-weight: 900; 
    color: #f8fafc; 
}

.stat-label { 
    font-size: 0.65rem; 
    color: #475569; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
}

/* Chair Animations & States */
.chair-wrap { 
    position: relative; 
    margin-bottom: 28px; 
}

.chair { 
    font-size: 8rem; 
    transition: transform 0.3s ease, filter 0.5s; 
    cursor: default; 
    animation: chairBreathe 4s ease-in-out infinite; 
}

@keyframes chairBreathe { 
    0%, 100% { transform: scale(1); } 
    50% { transform: scale(1.04); } 
}

.chair.sat { 
    animation: chairSat 0.3s ease; 
    filter: drop-shadow(0 0 20px rgba(96,165,250,0.5)); 
}

@keyframes chairSat { 
    0% { transform: scale(1); } 
    50% { transform: scale(0.92) translateY(4px); } 
    100% { transform: scale(1); } 
}

.chair.happy { 
    filter: drop-shadow(0 0 30px rgba(16,185,129,0.6)); 
}

.chair.sad { 
    filter: drop-shadow(0 0 30px rgba(239,68,68,0.4)); 
    animation: chairShake 0.4s ease; 
}

@keyframes chairShake { 
    0%, 100% { transform: rotate(0); } 
    25% { transform: rotate(-5deg); } 
    75% { transform: rotate(5deg); } 
}

.chair.lonely { 
    animation: chairWobble 2s ease-in-out infinite; 
}

@keyframes chairWobble { 
    0%, 100% { transform: rotate(0); } 
    25% { transform: rotate(-3deg); } 
    75% { transform: rotate(3deg); } 
}

/* Sitting Person */
.person { 
    font-size: 3.5rem; 
    position: absolute; 
    top: 10px; 
    left: 50%; 
    transform: translateX(-50%); 
    transition: opacity 0.4s; 
    opacity: 0; 
}

.person.sitting { 
    opacity: 1; 
}

/* Narrative Box */
.narrative {
    background: rgba(15,23,42,0.7); 
    border: 1px solid rgba(51,65,85,0.6);
    border-radius: 18px; 
    padding: 22px 28px; 
    width: 100%;
    backdrop-filter: blur(14px); 
    margin-bottom: 20px;
    min-height: 80px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.narrative-text { 
    font-size: 1rem; 
    color: #cbd5e1; 
    line-height: 1.6; 
    transition: opacity 0.3s; 
}

.narrative-text.fade { 
    opacity: 0; 
}

/* Actions & Mood Bar */
.actions { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    justify-content: center; 
    margin-bottom: 16px; 
}

.action-btn {
    padding: 10px 20px; 
    background: rgba(30,58,138,0.25);
    border: 1px solid rgba(51,65,85,0.6); 
    border-radius: 999px;
    color: #94a3b8; 
    font-family: 'Inter', sans-serif; 
    font-size: 0.85rem; 
    font-weight: 600;
    cursor: pointer; 
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

.action-btn:hover { 
    background: rgba(37,99,235,0.35); 
    color: #fff; 
    border-color: rgba(96,165,250,0.4); 
}

.action-btn:active { 
    transform: scale(0.96); 
}

.mood-bar-wrap { 
    width: 100%; 
    margin-bottom: 6px; 
}

.mood-label { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.7rem; 
    color: #475569; 
    margin-bottom: 4px; 
}

.mood-bar-bg { 
    width: 100%; 
    height: 8px; 
    background: rgba(30,58,138,0.25); 
    border-radius: 999px; 
    overflow: hidden; 
}

.mood-bar { 
    height: 100%; 
    border-radius: 999px; 
    background: #3b82f6; 
    transition: width 0.5s ease, background 0.5s; 
}
