body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #020205; /* Deep space black */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.celestial-sphere {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 10%, #171629 0%, #07070b 50%, #020205 80%);
    filter: blur(2px);
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5em; /* Extreme spacing */
    padding: 0.6rem 2rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    color: #6a6a8a;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: clamp(1.5rem, 3.5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: clamp(1rem, 3vw, 3.5rem);
    margin: 0;
    margin-right: calc(-1 * clamp(1rem, 3vw, 3.5rem)); /* Offset letter spacing for perfect center */
    color: #e2e2e5;
    white-space: nowrap;
}

.subtitle {
    margin-top: 1.5rem;
    font-size: clamp(0.7rem, 1vw, 1.2rem);
    font-weight: 400;
    letter-spacing: clamp(0.8rem, 2vw, 2.5rem);
    margin-right: calc(-1 * clamp(0.8rem, 2vw, 2.5rem)); 
    color: #4a4a6a;
}

.timer {
    display: flex;
    gap: clamp(1rem, 4vw, 4rem);
    margin-top: 2rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number {
    font-size: 2.5rem;
    font-weight: 200;
    color: #b0b0c0;
    margin-bottom: 0.5rem;
}

.label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #4a4a6a;
    text-transform: uppercase;
}

.game-btn {
    margin-top: 2rem;
    background: transparent;
    border: 1px solid rgba(74, 74, 106, 0.5);
    color: #7a7a9a;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-btn:hover {
    background: rgba(74, 74, 106, 0.2);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Game Overlay */
.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 2, 5, 0.95);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.game-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.game-wrapper {
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    background: #050508;
}

canvas {
    display: block;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #4a4a6a;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ffffff;
}

.score-display {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #4a4a6a;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    z-index: 10;
}

#scoreValue {
    color: #ffffff;
    font-weight: 600;
}

.game-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.game-menu.hidden {
    opacity: 0;
    pointer-events: none;
}

.game-menu h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.5em;
    margin-right: -0.5em;
    margin-bottom: 1rem;
    color: #fff;
}

.game-menu p {
    color: #6a6a8a;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.final-score-text {
    font-size: 1.2rem !important;
    color: #ffffff !important;
}

.play-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 1rem 3rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Animated cursor glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(190, 40, 255, 0.6) 0%, rgba(150, 0, 255, 0.2) 40%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 99;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    will-change: transform;
    mix-blend-mode: screen;
}
