:root {
    --bg-color: #0d1117;
    --text-color: #e6edf3;
    --accent-color: #2ea043;
}

@font-face {
    font-family: 'Aspirer Neue';
    src: url('./LTAspirerNeue-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            background-color: #000; /* Black background for neon contrast */
            overflow: hidden; /* Disable scrolling */
            touch-action: none; /* Disable mobile touch gestures (zooming) */
}

canvas {
    position: absolute;
	display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ---------- Pause button ---------- */

.pause-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 20;
    font-size: 22px;
    line-height: 1;
    padding: 0.25em 0.45em;
    color: #19fff3;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(25,255,243,0.4);
    border-radius: 4px;
    cursor: pointer;
    text-shadow: 0 0 6px #19fff3;
    box-shadow: 0 0 6px rgba(25,255,243,0.15);
    transition: background 0.2s, opacity 0.2s;
}

.pause-btn:hover {
    background: rgba(25,255,243,0.12);
}

/* ---------- Pause menu ---------- */

.pause-content {
    width: min(340px, 88vw);
    text-align: center;
}

.pause-title {
    font-size: clamp(1.6rem, 6vw, 3rem);
    margin-bottom: 2rem;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin: 1.1rem 0;
    font-family: 'Aspirer Neue', 'Aldrich', sans-serif;
}

.slider-label {
    flex: 0 0 80px;
    font-size: clamp(0.65rem, 1.8vw, 0.85rem);
    letter-spacing: 0.2em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: #e6edf3 0 0 10px;
    text-align: right;
}

.slider-value {
    flex: 0 0 44px;
    font-size: clamp(0.65rem, 1.6vw, 0.8rem);
    letter-spacing: 0.08em;
    color: #19fff3;
    text-shadow: 0 0 6px #19fff3;
    text-align: left;
}

/* --- Custom neon range slider --- */

.neon-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: rgba(25, 255, 243, 0.409);
    border-radius: 2px;
    outline: none;
}

.neon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #19fff3;
    box-shadow: 0 0 8px #19fff3, 0 0 20px rgba(25,255,243,0.4);
    cursor: pointer;
    border: none;
    margin-top: -6px; /* vertically center on 4px track */
}

.neon-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #19fff3;
    box-shadow: 0 0 8px #19fff3, 0 0 20px rgba(25,255,243,0.4);
    cursor: pointer;
    border: none;
}

.neon-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
}

.neon-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(25,255,243,0.15);
}

/* ---------- Game-over overlay ---------- */

.overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    transition: opacity 0.4s ease;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    font-family: 'Aspirer Neue', 'Aldrich', sans-serif;
    color: #fff;
}

.neon-title {
    font-size: clamp(2rem, 8vw, 5rem);
    letter-spacing: 0.15em;
    color: #fff;
    text-shadow:
        0 0 7px #fff,
        0 0 20px #ff19be,
        0 0 40px #ff19be,
        0 0 80px #ff19be;
    margin-bottom: 1.5rem;
}

.score-block {
    margin: 1rem 0;
}

.score-label {
    font-size: clamp(0.7rem, 2vw, 1rem);
    letter-spacing: 0.3em;
    color: #888;
    margin-bottom: 0.2rem;
}

.score-value {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    color: #19fff3;
    text-shadow:
        0 0 7px #19fff3,
        0 0 20px #19fff3,
        0 0 40px #19fff3;
}

.score-value.hi {
    color: #ff9f19;
    text-shadow:
        0 0 7px #ff9f19,
        0 0 20px #ff9f19,
        0 0 40px #ff9f19;
}

.neon-btn {
    margin-top: 2rem;
    font-family: 'Aspirer Neue', 'Aldrich', sans-serif;
    font-size: clamp(1rem, 3vw, 1.4rem);
    letter-spacing: 0.2em;
    padding: 0.8em 2.4em;
    color: #fff;
    background: transparent;
    border: 2px solid #19fff3;
    border-radius: 4px;
    cursor: pointer;
    text-shadow:
        0 0 7px #19fff3,
        0 0 20px #19fff3;
    box-shadow:
        0 0 7px #19fff3,
        0 0 20px #19fff3,
        inset 0 0 7px rgba(25, 255, 243, 0.15);
    transition: background 0.2s, box-shadow 0.2s;
}

.neon-btn:hover {
    background: rgba(25, 255, 243, 0.12);
    box-shadow:
        0 0 14px #19fff3,
        0 0 40px #19fff3,
        inset 0 0 14px rgba(25, 255, 243, 0.25);
}

/* 1. Reset CSS to ensure full screen with no scrollbars */
