*, *::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-x: hidden; 
    transition: background 0.5s, filter 0.3s; 
}

#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: 32px 24px 60px; 
    max-width: 640px; 
    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: 24px; 
}

/* Counter */
.cookie-count { 
    font-family: 'Syne', sans-serif; 
    font-size: clamp(2.5rem, 10vw, 4.5rem); 
    font-weight: 900; 
    line-height: 1; 
    margin-bottom: 4px; 
    color: #f8fafc; 
}

.cookie-label { 
    font-size: 0.8rem; 
    color: #475569; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 24px; 
}

/* Main Cookie */
.cookie-btn {
    width: 160px; 
    height: 160px; 
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.15);
    border: 2px solid rgba(251, 191, 36, 0.3);
    font-size: 5rem; 
    cursor: pointer; 
    margin-bottom: 28px;
    transition: transform 0.08s, box-shadow 0.2s;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.cookie-btn:hover { 
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.2); 
}

.cookie-btn:active { 
    transform: scale(0.92); 
}

/* Upgrades */
.upgrades-title { 
    font-size: 0.7rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: #475569; 
    margin-bottom: 12px; 
}

.upgrades-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    width: 100%; 
}

.upgrade-btn {
    display: flex; 
    align-items: center; 
    gap: 14px;
    background: rgba(15, 23, 42, 0.7); 
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 14px; 
    padding: 14px 18px; 
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    text-align: left; 
    width: 100%;
}

.upgrade-btn:hover:not(:disabled) { 
    background: rgba(30, 58, 138, 0.4); 
    border-color: rgba(96, 165, 250, 0.35); 
}

.upgrade-btn:active:not(:disabled) { 
    transform: scale(0.98); 
}

.upgrade-btn:disabled { 
    opacity: 0.35; 
    cursor: not-allowed; 
}

.upgrade-btn.owned { 
    border-color: rgba(16, 185, 129, 0.35); 
}

.upg-emoji { 
    font-size: 1.8rem; 
    flex-shrink: 0; 
}

.upg-info { 
    flex: 1; 
}

.upg-name { 
    font-family: 'Syne', sans-serif; 
    font-weight: 700; 
    font-size: 0.95rem; 
    color: #f8fafc; 
}

.upg-desc { 
    font-size: 0.78rem; 
    color: #64748b; 
    margin-top: 2px; 
}

.upg-cost { 
    font-family: 'Syne', sans-serif; 
    font-weight: 700; 
    font-size: 0.85rem; 
    color: #fbbf24; 
    white-space: nowrap; 
}

.upg-cost.free { 
    color: #10b981; 
}

/* Curse Log */
.curse-log { 
    margin-top: 24px; 
    width: 100%; 
    background: rgba(15, 23, 42, 0.6); 
    border: 1px solid rgba(51, 65, 85, 0.5); 
    border-radius: 14px; 
    padding: 14px 18px; 
    max-height: 120px; 
    overflow-y: auto; 
    text-align: left; 
}

.curse-log-title { 
    font-size: 0.65rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: #334155; 
    margin-bottom: 8px; 
}

.curse-entry { 
    font-size: 0.82rem; 
    color: #94a3b8; 
    padding: 3px 0; 
    border-bottom: 1px solid rgba(51, 65, 85, 0.3); 
}

.curse-entry:last-child { 
    border-bottom: none; 
}

.curse-entry.new { 
    color: #fbbf24; 
}

/* Floating Cookie Multipliers */
.float { 
    position: fixed; 
    font-family: 'Syne', sans-serif; 
    font-size: 1.1rem; 
    font-weight: 900; 
    color: #fbbf24; 
    pointer-events: none; 
    animation: floatUp 0.9s ease forwards; 
    z-index: 99; 
}

@keyframes floatUp { 
    0% { opacity: 1; transform: translateY(0); } 
    100% { opacity: 0; transform: translateY(-60px); } 
}
