/* Geometry Jump specific styles */

#game-ui {
    position: relative;
    width: 100%;
    max-width: 480px; /* Mobile width */
    height: 80vh;
    max-height: 800px;
    margin: 0 auto;
    background: #090a0f; /* Dark space background */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.25); /* Purple neon shadow */
    display: flex;
    flex-direction: column;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none; /* Prevent double-tap zoom & scrolling */
}

/* HUD Overlay */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    box-sizing: border-box;
    z-index: 10;
    pointer-events: none; /* Clicks pass to canvas */
}

.hud-cell {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hud-big {
    font-size: 20px;
    font-weight: 900;
    color: #06b6d4; /* Neon cyan */
    margin-bottom: 2px;
}

.hud-label {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Progress bar inside HUD */
.hud-progress-wrap {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #ec4899); /* Purple to Pink */
    box-shadow: 0 0 8px #a855f7;
    transition: width 0.05s linear;
}

#progress-text {
    color: #f8fafc;
    font-weight: 800;
    font-size: 11px;
    text-align: center;
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 10, 15, 0.9);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.3s ease;
}

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

.overlay-inner {
    background: rgba(20, 24, 33, 0.95);
    padding: 30px 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.15);
    width: 82%;
    max-width: 320px;
}

.menu-icon {
    font-size: 40px;
    margin-bottom: 10px;
    animation: pulse 2s infinite ease-in-out;
}

.overlay-inner h2 {
    font-size: 26px;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overlay-inner p {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

.primary-btn {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    transition: transform 0.1s, box-shadow 0.1s;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.primary-btn:active {
    transform: scale(0.96);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.lc-stars {
    font-size: 32px;
    margin-bottom: 8px;
}

.lc-score-line {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.go-lvl {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}
