/* ============================================
   MoneyWise Game Theme - Game-Specific Styles
   ============================================ */

/* ============================================
   Game Header Bar (sticky top)
   ============================================ */
.game-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(22, 33, 62, 0.95) 100%);
    border-bottom: 1px solid var(--border-card);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.game-header .header-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.game-header .header-stat .header-stat-icon {
    font-size: 1rem;
    opacity: 0.7;
}

/* ============================================
   Timer Display
   ============================================ */
.timer-display {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 800;
    padding: 0.3rem 0.9rem;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
    transition: all 0.3s;
}

.timer-safe {
    background: rgba(0, 176, 255, 0.2);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 176, 255, 0.3);
}

.timer-warning {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: timer-pulse-yellow 1s infinite;
}

.timer-danger {
    background: rgba(255, 23, 68, 0.25);
    color: var(--accent-red);
    border: 1px solid rgba(255, 23, 68, 0.4);
    animation: timer-pulse-red 0.5s infinite;
}

.timer-critical {
    animation: timer-pulse-red 0.3s infinite;
    font-size: 1.5rem;
}

@keyframes timer-pulse-yellow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 12px rgba(255, 215, 0, 0.4); }
}

@keyframes timer-pulse-red {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 16px rgba(255, 23, 68, 0.5); }
}

/* ============================================
   Player Sidebar
   ============================================ */
.player-sidebar .player-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.35rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.player-sidebar .player-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-card);
}

.player-sidebar .player-item.bankrupt {
    opacity: 0.5;
    background: rgba(255, 23, 68, 0.08);
}

.player-sidebar .player-avatar {
    font-size: 1.4rem;
    width: 32px;
    text-align: center;
}

.player-sidebar .player-info {
    flex: 1;
    min-width: 0;
}

.player-sidebar .player-name {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-sidebar .player-balance {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
}

.player-sidebar .player-ready-badge {
    font-size: 0.55rem;
    border-radius: 4px;
    padding: 0.15em 0.4em;
}

/* ============================================
   Action Buttons Row
   ============================================ */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-card);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: var(--text-primary);
    text-decoration: none;
}

.action-btn .action-icon {
    font-size: 1.5rem;
}

.action-btn .action-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Job Board - Cork Board Style
   ============================================ */
.cork-board {
    background: #8B6914;
    background-image:
        radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px, 13px 13px;
    border-radius: var(--radius-card);
    padding: 1.5rem;
    border: 4px solid #6B4F12;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.job-card {
    background: #fffde7;
    color: #333;
    border: none;
    border-radius: 2px;
    padding: 1rem;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.3);
    transform: rotate(var(--rotate, 0deg));
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.job-card::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff6b6b 0%, #cc0000 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.job-card:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 4px 6px 16px rgba(0,0,0,0.4);
    z-index: 2;
}

.job-card .job-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.job-card .job-salary {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.1rem;
    color: #2e7d32;
}

.job-card .btn-apply {
    background: #2e7d32;
    color: #fff;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    width: 100%;
    margin-top: 0.5rem;
    transition: all 0.15s;
}

.job-card .btn-apply:hover {
    background: #1b5e20;
    transform: scale(1.02);
}

/* Hired stamp */
.stamp-hired {
    color: #2e7d32;
    border: 3px solid #2e7d32;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.8rem;
    transform: rotate(-8deg);
    opacity: 0.85;
}

/* Rejected stamp */
.stamp-rejected {
    color: #c62828;
    border: 3px solid #c62828;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    transform: rotate(-5deg);
    opacity: 0.85;
}

/* ============================================
   Housing Cards
   ============================================ */
.housing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 1rem;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.housing-card::before {
    content: attr(data-type-icon);
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 4rem;
    opacity: 0.06;
}

.housing-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.housing-card .housing-type {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.housing-card .housing-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.housing-card .housing-total {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1rem;
    color: var(--accent-gold);
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-card);
    margin-top: 0.4rem;
}

/* ============================================
   Bank Account Style
   ============================================ */
.bank-panel {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
    border: 1px solid #30363d;
    border-radius: var(--radius-card);
    padding: 1.5rem;
}

.bank-balance {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

/* Credit score gauge */
.credit-gauge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--accent-green) 0% var(--gauge-pct, 70%),
        var(--bg-card) var(--gauge-pct, 70%) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.credit-gauge::after {
    content: '';
    width: 90px;
    height: 90px;
    background: #0d1117;
    border-radius: 50%;
    position: absolute;
}

.credit-gauge .gauge-value {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
}

/* ============================================
   First Month Checklist
   ============================================ */
.checklist-overlay {
    background: var(--bg-card);
    border: 1px solid var(--accent-blue);
    border-left: 4px solid var(--accent-blue);
    border-radius: var(--radius-card);
    padding: 1.25rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.checklist-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.checklist-icon.pending {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--text-muted);
}

.checklist-icon.done {
    background: var(--accent-green);
    color: #0a0a1a;
    border: 2px solid var(--accent-green);
    animation: check-pop 0.3s ease;
}

@keyframes check-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============================================
   Money Floating Animation
   ============================================ */
.money-float {
    position: fixed;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 9999;
    animation: float-up 1.5s ease-out forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.money-float.income {
    color: var(--accent-green);
}

.money-float.expense {
    color: var(--accent-red);
}

@keyframes float-up {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-80px) scale(0.8); }
}

/* Screen flash */
.screen-flash {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9998;
    animation: flash 0.3s ease-out forwards;
}

.screen-flash.green { background: radial-gradient(ellipse at center, rgba(0,230,118,0.15) 0%, transparent 70%); }
.screen-flash.red { background: radial-gradient(ellipse at center, rgba(255,23,68,0.15) 0%, transparent 70%); }

@keyframes flash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Screen shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.shake {
    animation: shake 0.2s ease 2;
}

/* ============================================
   Monthly Recap Overlay
   ============================================ */
.recap-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fade-in 0.3s;
}

.recap-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.recap-card .recap-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.recap-card .recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-card);
}

.recap-card .recap-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.recap-card .recap-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
}

.recap-card .recap-net {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.8rem;
    margin: 1rem 0;
}

.recap-card .recap-rank {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.recap-card .recap-skip {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes count-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.recap-animate {
    animation: count-up 0.4s ease forwards;
}

/* ============================================
   Toast Notifications (Game Style)
   ============================================ */
.game-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 120px);
    overflow: hidden;
}

.game-toast {
    min-width: 320px;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: toast-slide-in 0.3s ease forwards;
    cursor: pointer;
    border: 1px solid;
}

.game-toast.removing {
    animation: toast-slide-out 0.25s ease forwards;
}

.game-toast .toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.game-toast .toast-message {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Toast types */
.game-toast.toast-income {
    background: rgba(0, 230, 118, 0.12);
    border-color: rgba(0, 230, 118, 0.3);
    color: var(--accent-green);
}

.game-toast.toast-expense {
    background: rgba(255, 23, 68, 0.12);
    border-color: rgba(255, 23, 68, 0.3);
    color: var(--accent-red);
}

.game-toast.toast-achievement {
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--accent-gold);
}

.game-toast.toast-info {
    background: rgba(0, 176, 255, 0.12);
    border-color: rgba(0, 176, 255, 0.3);
    color: var(--accent-blue);
}

.game-toast.toast-warning {
    background: rgba(255, 152, 0, 0.12);
    border-color: rgba(255, 152, 0, 0.3);
    color: #ffb74d;
}

.game-toast.toast-danger {
    background: rgba(255, 23, 68, 0.15);
    border-color: rgba(255, 23, 68, 0.4);
    color: var(--accent-red);
}

.game-toast.toast-success {
    background: rgba(0, 230, 118, 0.12);
    border-color: rgba(0, 230, 118, 0.3);
    color: var(--accent-green);
}

@keyframes toast-slide-in {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-slide-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* ============================================
   Tier Badges
   ============================================ */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15em 0.5em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-1 { background: rgba(205,127,50,0.2); color: var(--tier-bronze); border: 1px solid rgba(205,127,50,0.4); }
.tier-2 { background: rgba(192,192,192,0.2); color: var(--tier-silver); border: 1px solid rgba(192,192,192,0.4); }
.tier-3 { background: rgba(255,215,0,0.2); color: var(--tier-gold); border: 1px solid rgba(255,215,0,0.4); }
.tier-4 { background: rgba(229,228,226,0.2); color: var(--tier-platinum); border: 1px solid rgba(229,228,226,0.4); }
.tier-5 { background: rgba(185,242,255,0.2); color: var(--tier-diamond); border: 1px solid rgba(185,242,255,0.4); }
.tier-6 {
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(185,242,255,0.15), rgba(255,215,0,0.15));
    background-size: 200% 200%;
    animation: tier-shimmer 3s ease infinite;
    color: #fff;
    border: 1px solid rgba(255,215,0,0.4);
}

@keyframes tier-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Avatar tier border */
.avatar-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 3px;
}

.avatar-frame.tier-border-1 { border: 2px solid var(--tier-bronze); }
.avatar-frame.tier-border-2 { border: 2px solid var(--tier-silver); }
.avatar-frame.tier-border-3 { border: 2px solid var(--tier-gold); }
.avatar-frame.tier-border-4 { border: 2px solid var(--tier-platinum); }
.avatar-frame.tier-border-5 { border: 2px solid var(--tier-diamond); }
.avatar-frame.tier-border-6 {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                linear-gradient(135deg, #ffd700, #b9f2ff, #ffd700) border-box;
    animation: tier-shimmer 3s ease infinite;
    background-size: 100% 100%, 200% 200%;
}

/* ============================================
   End Game / Awards Ceremony
   ============================================ */
.awards-backdrop {
    background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    min-height: 100vh;
}

.winner-crown {
    font-size: 3rem;
    animation: crown-bounce 1s ease infinite;
}

@keyframes crown-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.award-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    animation: award-slide-in 0.5s ease forwards;
    opacity: 0;
}

@keyframes award-slide-in {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.award-card .award-icon {
    font-size: 2rem;
}

.award-card .award-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.award-card .award-winner {
    font-weight: 700;
    font-size: 1rem;
}

/* ============================================
   Avatar Selection (Join Screen)
   ============================================ */
.avatar-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    font-size: 1.6rem;
}

.avatar-circle:hover {
    border-color: var(--text-muted);
    transform: scale(1.1);
}

input[type="radio"]:checked + .avatar-circle {
    border-color: var(--accent-blue);
    background: rgba(0, 176, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 176, 255, 0.2), 0 4px 12px rgba(0, 176, 255, 0.3);
    transform: scale(1.1);
}

/* ============================================
   Landing Page
   ============================================ */
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-title .brand-dollar {
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* ============================================
   Confetti (pure CSS)
   ============================================ */
.confetti-container {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    pointer-events: none;
    z-index: 12000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall 3s ease forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   Achievements
   ============================================ */
.btn-achievement-header {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--accent-gold);
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-achievement-header:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.btn-achievement-header .achievement-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-card);
    transition: all 0.2s;
    position: relative;
}

.achievement-card.unlocked {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.25);
}

.achievement-card.locked {
    background: rgba(255, 255, 255, 0.02);
    opacity: 0.45;
}

.achievement-card.locked .achievement-icon {
    filter: grayscale(1);
}

.achievement-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.achievement-info {
    flex: 1;
    min-width: 0;
}

.achievement-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.achievement-card.locked .achievement-name {
    color: var(--text-muted);
}

.achievement-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.endgame-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: -0.4rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 4.5rem;
    opacity: 0;
    animation: award-slide-in 0.5s ease forwards;
}

.endgame-achievement-icon {
    font-size: 1rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 6px;
    cursor: default;
}

.achievement-check {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 800;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Animations & Visual Polish
   ============================================ */
@keyframes anim-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 230, 118, 0); }
    50% { box-shadow: 0 0 20px rgba(0, 230, 118, 0.3); }
}

@keyframes card-slide-in {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.balance-flash {
    animation: balance-blink 0.5s ease;
}

@keyframes balance-blink {
    0%, 100% { background: transparent; }
    50% { background: rgba(255, 255, 255, 0.08); }
}

.flash-green { animation: flash-green-bg 0.5s ease; }
.flash-red { animation: flash-red-bg 0.5s ease; }

@keyframes flash-green-bg {
    0%, 100% { background: transparent; }
    30% { background: rgba(0, 230, 118, 0.12); }
}

@keyframes flash-red-bg {
    0%, 100% { background: transparent; }
    30% { background: rgba(255, 23, 68, 0.12); }
}

.stat-card {
    animation: card-slide-in 0.4s ease forwards;
}

.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }

/* Education progress bar */
.progress {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Investment gain/loss flash */
.investment-gain { color: var(--accent-green); }
.investment-loss { color: var(--accent-red); }

/* ============================================
   Chat Room
   ============================================ */
.chat-messages {
    height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.4rem;
    margin-bottom: 0.5rem;
    scrollbar-width: thin;
}

.chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.chat-msg-mine {
    flex-direction: row-reverse;
}

.chat-avatar {
    font-size: 1rem;
    flex-shrink: 0;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
    max-width: 80%;
    word-break: break-word;
}

.chat-msg-mine .chat-bubble {
    background: rgba(0, 176, 255, 0.12);
    border-color: rgba(0, 176, 255, 0.25);
}

.chat-sender {
    display: block;
    font-weight: 700;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.chat-msg-mine .chat-sender {
    display: none;
}

.chat-input-row {
    display: flex;
    gap: 0.4rem;
}

.chat-input-row .form-control {
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
}

/* ============================================
   Paused Overlay
   ============================================ */
.paused-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.3s;
}

.paused-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 2.5rem;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.paused-invite-code {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.08);
    border: 2px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    display: inline-block;
}

/* ============================================
   Happiness Bar
   ============================================ */
.happiness-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.happiness-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease, background 0.3s;
}

.happiness-good { background: var(--accent-green); }
.happiness-warn { background: var(--accent-gold); }
.happiness-danger { background: var(--accent-red); animation: happiness-pulse 1s infinite; }

@keyframes happiness-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   Lifestyle Panel
   ============================================ */
.subscription-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.2s;
}

.subscription-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.subscription-active {
    background: rgba(0, 230, 118, 0.06) !important;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.activity-btn {
    white-space: nowrap;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .stat-card .stat-value { font-size: 1.2rem; }
    .game-toast { min-width: 280px; }
    .action-btn { min-width: 65px; padding: 0.5rem 0.75rem; }
    .action-btn .action-icon { font-size: 1.2rem; }
}
