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

@font-face {
  font-family: 'DejaVu Sans';
  src: url('./fonts/dejavu-sans/DejaVuSans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Emoji';
  src: url('./fonts/dejavu-sans/NotoColorEmoji.ttf') format('truetype');
  font-display: swap;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#canvas-container {
    width: 100vw;
    height: 100vh;
}

#controls-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    padding-right: 5px;
    padding-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 420px; /* Largeur augmentée */
    max-height: calc(100vh - 60px); /* Hauteur maximale */
    display: flex;         
    flex-direction: column;  
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top left;
    z-index:999999;
}

#panel-header, 
#tabs-navigation {
    flex-shrink: 0; 
}

#panel-scroll-content {
    flex: 1; 
    overflow-y: auto;       
    overflow-x: hidden;
    padding-right: 15px;     
    padding-top: 5px;
    min-height: 0;          
}

#panel-scroll-content::-webkit-scrollbar {
    width: 6px;
}

#panel-scroll-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-top: 5px; 
}

#panel-scroll-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
    border-radius: 10px;
}

#panel-scroll-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

@media (max-width: 768px) {
    #controls-panel {
        display: flex; 
        flex-direction: column;
    }
}

#controls-panel.collapsed {
    padding: 0;
    width: 38px !important;
    height: 38px !important;
    border-radius: 24px;
    background: rgba(230, 230, 260, 0.65);
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0.95;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90000 !important;
    overflow: hidden;
}

#controls-panel.collapsed:hover {
    opacity: 1;
    background: rgba(230, 230, 230, 0.85);
}

#controls-panel.collapsed * {
    display: none;
}

#controls-panel.collapsed::before {
  content: '⚙\fe0e';
  font-family: 
    'Segoe UI Symbol',
    'Apple Symbols',
    'Noto Sans Symbols', 
    'Noto Sans Symbols 2',
    'DejaVu Sans',
    system-ui,
    sans-serif;
    margin-left: -4px;
    margin-top: -10px;
    -webkit-font-feature-settings: "liga" 0;
    font-feature-settings: "liga" 0;
    font-variation-settings: "GRAD" 0;
    font-size: 34px;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: block;
    text-align: center;
    color:#6a6a99;
}

#panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

#panel-header h2 {
    margin: 0;
    border: none;
    padding: 0;
    color: #333;
    font-size: 18px;
}

#collapse-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    color: #667eea;
    transition: all 0.15s ease;
    margin: 0;
    width: auto;
    transform: scale(1);
}

#collapse-btn:hover {
    transform: scale(1.2);
    background: none;
}

#collapse-btn:active {
    transform: scale(1.05);
}

/* ================================================ */
/* TABS NAVIGATION - ICON ONLY */
/* ================================================ */
#tabs-navigation {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #888;
    margin-top: 0;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

.tab-btn:active {
    transform: translateY(0px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.tab-btn.active:active {
    transform: translateY(0px);
}

.tab-icon {
    font-size: 28px;
    line-height: 1;
}

.tab-label {
    display: none; /* Masquer les labels */
}

/* ================================================ */
/* TAB CONTENT */
/* ================================================ */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* ================================================ */
/* STATS SECTION */
/* ================================================ */
.stats-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.stats-title {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
}

/* ================================================ */
/* UNLOCKED WORLDS */
/* ================================================ */
.unlocked-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.unlock-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.unlock-item.unlocked {
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4CAF50;
}

.unlock-item.locked {
    background: rgba(158, 158, 158, 0.1);
    border-left: 3px solid #9e9e9e;
    opacity: 0.7;
}

.unlock-icon {
    font-size: 18px;
}

.unlock-name {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* ================================================ */
/* QUESTS */
/* ================================================ */
.quests-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quest-item {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.quest-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quest-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.quest-icon {
    font-size: 20px;
}

.quest-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.quest-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 11px;
    font-weight: 600;
    color: #667eea;
    min-width: 35px;
}

.quest-reward {
    font-size: 11px;
    color: #764ba2;
    font-weight: 600;
    display: inline-block;
    padding: 2px 8px;
    background: rgba(118, 75, 162, 0.1);
    border-radius: 12px;
}

/* ================================================ */
/* BUTTONS */
/* ================================================ */
.danger-btn {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: white;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.danger-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c2185b 100%);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.control-group {
    margin-bottom: 15px;
}

.control-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.half-width {
    flex: 1;
    margin-bottom: 0;
}

.half-width label {
    font-size: 12px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

select, input[type="range"] {
    width: 100%;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

select:focus, input[type="range"]:focus {
    outline: none;
    border-color: #667eea;
}

input[type="range"] {
    padding: 0;
    height: 6px;
    background: #e0e0e0;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    background: #667eea;
    cursor: pointer;
    border-radius: 50%;
}

.value-display {
    display: inline-block;
    float: right;
    color: #667eea;
    font-weight: bold;
    font-size: 13px;
}

button {
    padding: 10px;
    margin-top: 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
}

button:disabled:active {
    transform: none !important;
}

#file-input, #textures-input {
    display: none;
}

.file-label {
    display: block;
    width: 100%;
    padding: 10px;
    background: #764ba2;
    color: white;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.file-label:hover {
    background: #653a8a;
}

#speed-indicator {
    position: absolute;
    bottom: 0px;
    right: 33px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.50);
    padding: 1px 2px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

#info {
    display:block;
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    padding-top: 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    max-width: 300px;
    transition: opacity 0.3s;
    z-index:1200;
}

#info.hidden {
    display: none;
}

#info-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    transition: color 0.2s;
}

#info-close:hover {
    color: #667eea;
}

#help-btn {
    position: absolute;
    bottom: 40px;
    right: 10px;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

#help-btn:hover {
    background: rgba(85, 104, 211, 0.95);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#help-btn:active {
    transform: scale(0.95);
}

#speed-control-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50px;
    padding: 12px 16px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 100;
    transition: opacity 0.3s ease;
    user-select: none;
}

#speed-arrow-up, #speed-arrow-down {
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.1s;
}

#speed-arrow-up.active { opacity: 1; transform: scale(1.3); }
#speed-arrow-down.active { opacity: 1; transform: scale(1.3); }

#speed-label {
    font-size: 12px;
    opacity: 0.8;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    #controls-panel {
        top: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px) !important; /* 100% moins les marges */
        max-width: none; /* Pas de limite de largeur */
        max-height: calc(100vh - 80px);
    }
    
    /* Stack les contrôles en colonne sur mobile */
    .control-row {
        flex-direction: column;
        gap: 15px;
    }

    #controls-panel.collapsed {
        width: 38px !important;
        height: 38px !important;
        border-radius: 24px;
    }
    
    #controls-panel.collapsed::before {
        font-size: 34px !important;
    }
    
    #help-btn {
        bottom: 40px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 22px;
    }
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-size: 18px;
    z-index: 1000;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mode-toggle-btn {
    position: fixed;
    bottom: 78px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
    margin: 0;
}

.mode-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.mode-toggle-btn:active {
    transform: scale(0.95);
}

.sun-icon, .moon-icon {
    font-size: 16px;
    transition: opacity 0.3s;
}

body.night-mode .sun-icon {
    display: none;
}

body.night-mode .moon-icon {
    display: block;
}

body:not(.night-mode) .sun-icon {
    display: block;
}

body:not(.night-mode) .moon-icon {
    display: none;
}

#pause-btn {
    bottom: 116px;
}

.mode-btn {
    background: #0088cc;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    margin-top: 4px;
    width: 100%;
}

.mode-btn.active {
    background: #007acc;
}

#fullscreen-btn {
    position: fixed;
    bottom: 8px;
    right: 10px;
    width: 29px;
    height: 28px;
    z-index: 999;
    padding: 3px 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 20px;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

#fullscreen-btn:active {
    background: rgba(0,0,0,0.7);
}

/* Lofi Player Widget */
#lofi-player-widget {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

#lofi-player-widget iframe {
    display: block;
}

/* ================================================ */
/* FLIGHT INSTRUMENTS */
/* ================================================ */
#flight-instruments {
    position: fixed;
    bottom: 30px;
    left: 10px;
    width: 170px;
    height: 150px;
    z-index: 900;
}

/* === COMPASS (GROS) === */
#compass {
    position: absolute;
    bottom: -8px;
    right: 82px;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

#compass-rose {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.compass-mark {
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.compass-n {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff4444;
}

.compass-e {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.compass-s {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.compass-w {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

#compass-needle {
    position: absolute;
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #ff4444 0%, #ff4444 50%, white 50%, white 100%);
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.8);
}

#compass-center {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

#compass-degrees {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 40px;
    text-align: center;
}

/* === ARTIFICIAL HORIZON (PETIT - AU-DESSUS DU COMPAS) === */
#artificial-horizon {
    position: absolute;
    top: 96px;
    right: 0;
    width: 65px;
    height: 65px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

#horizon-container {
    position: absolute;
    width: 200%;
    height: 200%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#horizon-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, #2196F3, #64B5F6);
}

#horizon-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0.5;
    background: white;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    z-index: 4000;
}

#horizon-ground {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, #8B4513, #654321);
}

#horizon-ball {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: 45%;
    left: 45%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    border: 1px solid yellow;
    z-index: 10;
}

#horizon-wings {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 11;
}

.wing-left, .wing-right {
    position: absolute;
    width: 16px;
    height: 2px;
    background: white;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.wing-left {
    left: 8px;
}

.wing-right {
    right: 8px;
}

/* === SPEEDOMETER (PETIT - À GAUCHE DU COMPAS) === */
#speedometer {
    position: absolute;
    bottom: 91px;
    left: 9px;
    width: 65px;
    height: 65px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.speed-mark {
    position: absolute;
    width: 2px;
    height: 6px;
    background: white;
    left: 50%;
    transform-origin: center bottom;
}

#speed-needle {
    position: absolute;
    width: 2px;
    height: 25px;
    background-color: rgb(0, 230, 118);
    bottom: 6%;
    left: 50%;
    transform-origin: center bottom;
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 5px rgba(0, 230, 118, 0.8);
}

#speed-center {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

#speed-value {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

/* Responsive for mobile */
@media (max-width: 768px) {
    #flight-instruments {
        bottom: 25px;
        left: 6px;
        width: 150px;
        height: 135px;
    }
    
    #compass {
        position: absolute;
        bottom: 0px;
        right: 63px;
    }
    
    #artificial-horizon, #speedometer {
        width: 58px;
        height: 58px;
    }
    
    .compass-mark {
        font-size: 12px;
    }
    
    #compass-degrees {
        font-size: 11px;
        bottom: -22px;
    }
    
    #speed-needle {
        height: 22px;
    }
    
    #speed-value {
        font-size: 9px;
        bottom: 6px;
    }
}

h4.now-playing-title, h5.now-playing-artist{ color:black!important; }

#altimeter-strip {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    z-index: 800;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#altimeter-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

#altimeter-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #4CAF50 0%, #2196F3 50%, #673AB7 100%);
    transition: height 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#altimeter-text {
    position: absolute;
    left: 15px;
    bottom: 10px;
    color: white;
    font-family: monospace;
    font-weight: bold;
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    font-size: 12px;
    transition: bottom 0.1s linear;
}
/* ================================================ */

/* ================================================ */
/* CURRENT WORLD HIGHLIGHT */
/* ================================================ */
.unlock-item.current-world {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(76, 175, 80, 0.6);
    }
}