/* ============================================
   JUNGLE JUMP — Game Styles
   ============================================ */

body.jungle-page {
    background: #0a2e0a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

#jj-hud {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    margin-top: 8px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 200, 74, 0.2);
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.jj-hud-left { display: flex; align-items: center; gap: 8px; }
.jj-hud-right { display: flex; align-items: center; gap: 6px; }

.jj-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.jj-score-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    padding: 4px 16px;
    border-radius: 20px;
}

.jj-high-display {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.jj-reset-btn { margin-left: 8px !important; }

/* ===== GAME AREA ===== */
#jj-game-area {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    margin-top: 8px;
}

.jj-canvas-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0d2f0d;
    border: 2px solid rgba(74, 222, 128, 0.2);
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.08);
}

#jj-canvas {
    display: block;
    background: #0d2f0d;
}

/* ===== OVERLAYS ===== */
.jj-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    z-index: 10;
    border-radius: 16px;
    animation: fadeIn 0.3s ease;
}

.jj-overlay.hidden { display: none; }

.jj-overlay-content {
    text-align: center;
    background: rgba(255,255,255,0.08);
    padding: 36px 48px;
    border-radius: 24px;
    backdrop-filter: blur(4px);
    animation: modalPop 0.4s ease;
}

.jj-overlay-icon { font-size: 4rem; margin-bottom: 8px; animation: float 2s ease-in-out infinite; }
.jj-overlay-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.jj-overlay-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.jj-btn {
    padding: 12px 40px;
    border-radius: 100px;
    border: none;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}
.jj-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.5);
}
.jj-btn:active { transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 540px) {
    #jj-hud {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 4px;
    }
    .jj-title { font-size: 0.95rem; }
    .jj-score-display { font-size: 0.9rem; padding: 3px 10px; }
    .jj-high-display { font-size: 0.75rem; padding: 3px 8px; }
    .jj-overlay-content { padding: 24px 20px; }
    .jj-overlay-title { font-size: 1.4rem; }
    .jj-overlay-icon { font-size: 3rem; }
    .jj-btn { padding: 10px 30px; font-size: 0.9rem; }
}
