/* =========================================
   🐰 LAMA RUN - EASTER EGG STYLES
   ========================================= */

#lama-run-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000; /* Au-dessus de tout */
    display: none; /* Caché par défaut */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', 'Roboto', sans-serif;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#lama-run-overlay.active {
    display: flex;
    opacity: 1;
}

/* === GLITCH TITLE === */
.lr-title {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff, 0 0 40px #00aaff;
    margin-bottom: 20px;
    letter-spacing: 5px;
    animation: lr-glitch-anim 2s infinite alternate;
}

@keyframes lr-glitch-anim {
    0% { transform: skew(0deg); text-shadow: 2px 2px #ff00de, -2px -2px #00ffff; }
    20% { transform: skew(-2deg); text-shadow: -2px -2px #ff00de, 2px 2px #00ffff; }
    40% { transform: skew(1deg); }
    100% { transform: skew(0deg); }
}

/* === CANVAS CONTAINER === */
.lr-game-container {
    position: relative;
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3), inset 0 0 50px rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a2e, #000);
}

canvas#lama-run-canvas {
    display: block;
    cursor: crosshair;
}

/* === UI HUD === */
.lr-hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    font-size: 1.5rem;
    text-shadow: 0 0 10px #fff;
    font-family: monospace;
    z-index: 10;
}

.lr-score span {
    color: #00ffff;
    font-weight: bold;
}

.lr-hiscore span {
    color: #ff00de;
    font-weight: bold;
}

/* === START / GAME OVER SCREEN === */
.lr-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 2rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    display: none; /* Géré par JS */
    z-index: 20;
    min-width: 300px;
}

.lr-menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lr-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lr-menu h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 10px #ff0055;
}

.lr-menu p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.lr-btn {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
    color: #fff;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
    transition: all 0.2s ease;
    margin: 10px;
    width: 200px;
}

.lr-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.8);
}

.lr-btn.quit {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    box-shadow: 0 0 15px rgba(255, 65, 108, 0.5);
}

.lr-btn.quit:hover {
    box-shadow: 0 0 25px rgba(255, 65, 108, 0.8);
}

@keyframes lr-pop {
    from { transform: translate(-50%, -60%) scale(0.9); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* === CLOSE BUTTON (Top Right) === */
.lr-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 200;
}

.lr-close:hover {
    border-color: #ff416c;
    color: #ff416c;
    transform: rotate(90deg);
}
