:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ffd700;
    /* Gold */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    z-index: -1;
}

.stars-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(white 1px, transparent 1px),
        radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px, 100px 100px;
    background-position: 0 0, 25px 25px;
    opacity: 0.2;
    animation: twinkle 10s infinite linear;
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.2;
    }
}

.container {
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 2px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1.2rem;
    border-radius: 8px;
    color-scheme: dark;
}

.btn-glow {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1rem 3rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-glow:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hidden {
    display: none;
    opacity: 0;
}

#stats-section {
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.main-counter {
    margin: 3rem 0;
}

#seconds-counter {
    display: block;
    font-size: 4rem;
    /* Fallback */
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 300;
    font-family: 'Courier New', monospace;
    letter-spacing: -2px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #888;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #aaa;
}

.heartbeat .stat-value {
    color: #ff4d4d;
    animation: beat 1s infinite;
}

@keyframes beat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.1);
    }

    30% {
        transform: scale(1);
    }
}

.milestones {
    margin-top: 2rem;
}

.milestones h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.countdown {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    margin: 1rem 0;
}

.actions {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.btn-text {
    background: none;
    border: none;
    color: #666;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-text:hover {
    color: #fff;
}