*, *::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;
    overflow: hidden;
    text-align: center;
    cursor: default;
    user-select: none;
}

#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%, rgba(30, 58, 138, 0.27) 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; 
}

.ui {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

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

.subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0;
}

.miss-counter {
    margin-top: 20px;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    color: #475569;
}

.miss-counter span {
    color: #f8fafc;
    font-weight: 700;
}

/* The button — positioned fixed so JS can calculate exact coordinates relative to viewport */
#impossibleBtn {
    position: fixed;
    padding: 16px 36px;
    background: rgba(37, 99, 235, 0.25);
    border: 1.5px solid rgba(96, 165, 250, 0.45);
    border-radius: 999px;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    z-index: 5;
    white-space: nowrap;
}

#impossibleBtn:hover {
    background: rgba(37, 99, 235, 0.5);
    border-color: #60a5fa;
    box-shadow: 0 0 24px rgba(96, 165, 250, 0.2);
}

/* Dynamic floating taunt overlay */
.taunt {
    position: fixed;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
    pointer-events: none;
    animation: tauntFloat 1.4s ease forwards;
    z-index: 20;
    white-space: nowrap;
}

@keyframes tauntFloat {
    0%   { opacity: 0; transform: translateY(0) scale(0.85); }
    20%  { opacity: 1; transform: translateY(-8px) scale(1); }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-30px) scale(0.9); }
}
