/* === CHASQUI: EL RESCATE DE LA LLAMA === */
/* Estilo visual inspirado en códices y textiles andinos */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --inca-red: #C41E3A;
    --inca-gold: #D4A017;
    --inca-orange: #E85D04;
    --inca-terracotta: #B7410E;
    --inca-brown: #5C3317;
    --inca-dark: #2C1810;
    --inca-cream: #F5E6D3;
    --inca-teal: #2E8B8B;
    --inca-green: #4A7C59;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--inca-dark);
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 675px;
    background: linear-gradient(180deg, #87CEEB 0%, #E8D5B7 40%, #C4A35A 70%, #8B6914 100%);
    overflow: hidden;
    border: 4px solid var(--inca-gold);
    box-shadow: 0 0 30px rgba(212, 160, 23, 0.3);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* === UI Layer === */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

#level-info {
    background: rgba(44, 24, 16, 0.85);
    border: 2px solid var(--inca-gold);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--inca-cream);
}

#level-info span {
    display: block;
    font-family: 'Cinzel', serif;
}

#level-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--inca-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#score {
    font-size: 12px;
    margin-top: 2px;
}

#ammo-display {
    background: rgba(44, 24, 16, 0.85);
    border: 2px solid var(--inca-gold);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--inca-cream);
    display: flex;
    align-items: center;
    gap: 8px;
}

#ammo-display span {
    font-size: 12px;
    font-family: 'Cinzel', serif;
}

#ammo-icons {
    display: flex;
    gap: 4px;
}

.ammo-icon {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #8B7355 30%, #5C4033 100%);
    border-radius: 50%;
    border: 1px solid var(--inca-gold);
}

.ammo-icon.used {
    opacity: 0.3;
    background: #444;
}

/* === Screens === */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(44, 24, 16, 0.92);
    z-index: 100;
    pointer-events: auto;
}

.screen.active {
    display: flex;
}

.screen-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.screen-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    color: var(--inca-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 8px;
    letter-spacing: 3px;
}

.screen-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: var(--inca-orange);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 16px;
    color: var(--inca-cream);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(135deg, var(--inca-red), var(--inca-terracotta));
    color: white;
    border: 3px solid var(--inca-gold);
    padding: 15px 40px;
    font-size: 18px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.6);
    background: linear-gradient(135deg, #D42B4A, #C85020);
}

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

.controls-info {
    margin-top: 30px;
    color: var(--inca-cream);
    opacity: 0.7;
    font-size: 14px;
}

.controls-info p {
    margin: 5px 0;
}

#win-score {
    font-size: 20px;
    color: var(--inca-gold);
    margin: 15px 0;
    font-family: 'Cinzel', serif;
}

/* === Trajectory Guide === */
#trajectory-guide {
    position: absolute;
    pointer-events: none;
}

/* === Responsive === */
@media (max-width: 768px) {
    .screen-content h1 {
        font-size: 32px;
    }
    .screen-content h2 {
        font-size: 18px;
    }
    .btn-primary {
        padding: 12px 30px;
        font-size: 16px;
    }
}
