/* ====================================================
   JUMPER ENGINE CSS - GLYPHPULSE PLATFORMER
==================================================== */

.gp-jumper-container {
    width: 100%;
    /* 720px ensures wide enough margins to fit the timer at 125% Windows Scale */
    max-width: 720px; 
    margin: 0 auto;
    background: rgba(10, 15, 25, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.05);
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
}

/* Sky Scene */
.gp-jumper-scene {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(180deg, #1A3A5A 0%, #0F2035 100%);
    overflow: hidden;
    border-bottom: 2px solid rgba(0, 243, 255, 0.2);
}

.gp-jumper-world {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10000px; /* Large enough for scrolling */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Branch / Platform */
.gp-branch {
    position: absolute;
    width: 160px;
    height: 15px;
    background: #5C4033;
    border-radius: 8px;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.3), 0 5px 15px rgba(0,0,0,0.5);
    /* Simple CSS leaves */
    border-top: 4px solid #2E8B57;
}

.gp-branch::before, .gp-branch::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 20px;
    height: 10px;
    background: #2E8B57;
    border-radius: 0 0 10px 10px;
}
.gp-branch::before { left: 10px; }
.gp-branch::after { right: 15px; }

/* The Word above the branch */
.gp-jumper-word {
    position: absolute;
    bottom: 65px; /* Above the bot's head */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    pointer-events: none;
    text-transform: uppercase;
}

/* The Robot */
.gp-bot {
    position: absolute;
    font-size: 3rem;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
    /* Bot sits exactly on top of the branch it belongs to */
    margin-left: -24px; /* Center Emoji horizontally */
    margin-bottom: 0px; /* Sit on branch */
    filter: drop-shadow(0 5px 10px rgba(0, 243, 255, 0.5));
}

.gp-bot.jump {
    animation: botJump 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes botJump {
    0% { transform: translateY(0) scale(1, 1); }
    50% { transform: translateY(-40px) scale(0.9, 1.1); }
    100% { transform: translateY(0) scale(1, 1); }
}

/* Virtual Keyboard Area (Reusing typing_engine.css classes but nested here for layout) */
.gp-jumper-vk-area {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* UI Tabs Overlay */
.gp-mode-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.gp-tab-btn {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: #8892b0;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gp-tab-btn.active {
    background: rgba(0, 243, 255, 0.15);
    color: #fff;
    border-color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.gp-tab-btn:hover:not(.active) {
    background: rgba(0, 243, 255, 0.1);
    color: #fff;
}

.gp-jumper-scene .gp-char.space-char {
    display: none; /* Make dots invisible by default in game unless needed */
}

/* BIG NEON TIMER BOX IN RIGHT MARGIN */
.gp-jmp-big-timer {
    position: absolute;
    top: 25%;
    left: calc(100% + 10px); /* Tighter gap to save space */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem; /* Scaled down for 125% harmony */
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    
    /* Vivid Neon Red Numbers */
    color: rgba(255, 0, 85, 0.7);
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
    
    /* Neon Green Frame */
    background: rgba(0, 20, 10, 0.6);
    border: 2px solid rgba(0, 255, 100, 0.4);
    border-radius: 6px;
    padding: 8px 14px;
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.1), inset 0 0 10px rgba(0, 255, 100, 0.1);
    
    transition: all 0.3s ease;
    letter-spacing: -1px;
    min-width: 110px;
    text-align: center;
}

.gp-jmp-big-timer.finished {
    /* Maximum Neon Red Pop when finished */
    color: #ff0055;
    text-shadow: 0 0 20px #ff0055, 0 0 40px #ff0055;
    
    /* Brighter Green Frame */
    border-color: #00ff66;
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.4), inset 0 0 25px rgba(0, 255, 102, 0.3);
    transform: scale(1.05);
}

.gp-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.gp-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
