@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@600;700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0b0c10;
    font-family: 'Rajdhani', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none; /* Prevents mobile scrolling */
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#scoreDisplay {
    position: absolute;
    top: 5%;
    font-size: 80px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.panel {
    text-align: center;
    background: rgba(11, 12, 16, 0.85);
    padding: 40px 50px;
    border-radius: 15px;
    border: 2px solid #1f2833;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto; /* Allow clicking the panels */
    cursor: pointer;
}

.panel h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 56px;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight {
    color: #45a29e;
}

.panel h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    color: #ff4757;
    margin: 0 0 15px 0;
    text-shadow: 0 0 15px rgba(255, 71, 87, 0.5);
}

.panel p {
    font-size: 22px;
    color: #c5c6c7;
    margin: 0 0 35px 0;
    line-height: 1.4;
}

.red-text {
    color: #ff4757;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.blue-text {
    color: #1e90ff;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

.pulse-text {
    font-size: 24px;
    color: #66fcf1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; text-shadow: 0 0 10px #66fcf1; }
    50% { transform: scale(1.05); opacity: 0.5; text-shadow: 0 0 20px #66fcf1; }
    100% { transform: scale(1); opacity: 1; text-shadow: 0 0 10px #66fcf1; }
}

.hidden {
    display: none !important;
}