/* ==========================================================================
   LET'S HANG OUT! — PIXEL ART STYLESHEET
   100% Pure CSS (Pixelated Borders, Chiptune Aesthetics, Cozy Campsite)
   ========================================================================== */

:root {
    --bg-night-sky: #0c1017;
    --bg-camp-ground: #16202c;
    --bg-wood-dark: #2c1b10;
    --bg-wood-light: #52341e;
    
    --c-pixel-black: #080a0f;
    --c-pixel-white: #f5f7fa;
    --c-fire-orange: #ff7700;
    --c-fire-amber: #ffbb00;
    --c-fire-gold: #ffd966;
    --c-forest-green: #347c50;
    --c-water-blue: #3282b8;
    --c-retro-cream: #faedd0;
    --c-dialogue-bg: #1c2331;
    --c-border-shadow: #000000;

    --font-pixel-heading: 'Press Start 2P', monospace, cursive;
    --font-pixel-dialogue: 'VT323', monospace;
    --font-pixel-ui: 'Silkscreen', monospace;
}

/* ==========================================================================
   RESET Y CONFIGURACIÓN PIXELADA
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Forzar renderizado nítido de píxeles sin interpolación borrosa */
img, .pixelated {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

body.pixel-camp-body {
    background-color: var(--bg-night-sky);
    color: var(--c-pixel-white);
    font-family: var(--font-pixel-ui);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ==========================================================================
   CIELO NOCTURNO Y ESTRELLAS PIXEL ART
   ========================================================================== */
.pixel-stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: 
        radial-gradient(2px 2px at 40px 60px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 150px 120px, #ffbb00, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 280px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 420px 190px, #00d9ff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 560px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 700px 150px, #ffdd77, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 850px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 980px 110px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1100px 70px, #ff9900, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1250px 160px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 1300px 300px;
    opacity: 0.85;
}

/* Chispas flotantes de la fogata */
.pixel-embers-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.pixel-ember {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--c-fire-amber);
    box-shadow: 0 0 4px var(--c-fire-orange);
    animation: riseEmber 5s infinite linear;
}

@keyframes riseEmber {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) translateX(calc((var(--rand-x, 0.5) - 0.5) * 80px));
        opacity: 0;
    }
}

/* ==========================================================================
   CAJAS PIXEL ART (BISEL RETRO CON SOMBRAS ESCALONADAS)
   ========================================================================== */
.pixel-box {
    background-color: var(--c-dialogue-bg);
    border: 4px solid var(--c-border-shadow);
    box-shadow: 
        inset -4px -4px 0px 0px #101520,
        inset 4px 4px 0px 0px #313d52,
        0 6px 0 0 var(--c-border-shadow);
    position: relative;
}

.pixel-box-gold {
    background-color: #241a12;
    border: 4px solid var(--c-border-shadow);
    box-shadow: 
        inset -4px -4px 0px 0px #140c06,
        inset 4px 4px 0px 0px #ffaa22,
        0 8px 0 0 var(--c-border-shadow);
    position: relative;
}

/* ==========================================================================
   BARRA SUPERIOR HUD
   ========================================================================== */
.pixel-top-hud {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #121822;
    border-bottom: 4px solid var(--c-border-shadow);
    padding: 10px 20px;
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.4);
}

.hud-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-icon {
    width: 32px;
    height: 32px;
}

.hud-title {
    font-family: var(--font-pixel-heading);
    font-size: 13px;
    color: var(--c-fire-gold);
    text-shadow: 2px 2px 0 var(--c-border-shadow);
}

.hud-version-badge {
    background-color: #253346;
    border: 2px solid var(--c-border-shadow);
    font-size: 10px;
    padding: 2px 6px;
    color: #a0c2e6;
}

.hud-server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.pixel-lamp {
    width: 10px;
    height: 10px;
    border: 2px solid #000;
}
.pixel-lamp.green {
    background-color: #00ff66;
    box-shadow: 0 0 6px #00ff66;
}

.pixel-btn-mini {
    background: #2b394e;
    color: #fff;
    border: 2px solid #000;
    box-shadow: inset -2px -2px 0 #182230, inset 2px 2px 0 #465a78;
    padding: 4px 10px;
    cursor: pointer;
    font-family: var(--font-pixel-ui);
    font-size: 11px;
}
.pixel-btn-mini:hover {
    background: #394d69;
}

/* ==========================================================================
   CONTENIDO PRINCIPAL
   ========================================================================== */
.pixel-main-content {
    position: relative;
    z-index: 10;
    max-width: 1160px;
    margin: 0 auto;
    padding: 30px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* ==========================================================================
   HERO: FOGATA Y CAMPAMENTO
   ========================================================================== */
.camp-hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.hero-dialogue-cloud {
    background-color: #fff;
    color: #111;
    border: 4px solid #000;
    box-shadow: 4px 4px 0 0 #000;
    padding: 10px 18px;
    max-width: 640px;
    font-family: var(--font-pixel-dialogue);
    font-size: 20px;
    line-height: 1.2;
    position: relative;
}
.hero-dialogue-cloud::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}
.dialogue-speaker {
    font-weight: bold;
    color: var(--c-fire-orange);
    font-size: 16px;
    margin-bottom: 2px;
}

.game-logo-marquee {
    margin-top: 10px;
}

.pixel-title-mega {
    font-family: var(--font-pixel-heading);
    font-size: clamp(2rem, 5vw, 3.8rem);
    color: var(--c-fire-amber);
    text-shadow: 
        4px 4px 0 var(--c-border-shadow),
        -2px -2px 0 var(--c-fire-orange);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.pixel-tagline {
    font-family: var(--font-pixel-dialogue);
    font-size: 21px;
    letter-spacing: 1.5px;
    color: #cad8e6;
    text-transform: uppercase;
}

/* Escenario con el camping y sprites */
.camp-stage-window {
    width: 100%;
    max-width: 860px;
    margin: 10px auto;
    overflow: hidden;
}

.stage-scenery {
    position: relative;
    width: 100%;
    background-color: #0d1219;
    min-height: 380px;
    overflow: hidden;
}

.bg-camp-pixel {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Sprites de personajes en la escena */
.pixel-sprite {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s steps(2);
}
.pixel-sprite:hover {
    transform: translateY(-6px);
}
.pixel-sprite img {
    width: 48px;
    height: auto;
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.6));
}

.sprite-speech {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    font-size: 11px;
    padding: 2px 6px;
    white-space: nowrap;
    margin-bottom: 4px;
    box-shadow: 2px 2px 0 #000;
    font-family: var(--font-pixel-dialogue);
    font-size: 16px;
}

/* Posicionamiento en el campamento */
.sprite-aurore { bottom: 22%; left: 38%; }
.sprite-knot { bottom: 20%; right: 40%; }
.sprite-perro { bottom: 16%; left: 50%; }
.sprite-perro img { width: 34px; }
.sprite-radio { bottom: 26%; right: 28%; }
.sprite-radio img { width: 32px; }

.pulse-music {
    animation: radioBounce 0.6s infinite alternate steps(2);
}
@keyframes radioBounce {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

.music-notes {
    font-size: 14px;
    color: var(--c-fire-gold);
    animation: floatNote 1.4s infinite linear;
}
@keyframes floatNote {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-16px); opacity: 0; }
}

.stage-footer-legend {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 12px;
    background: #0e141d;
    padding: 10px 16px;
    font-size: 11px;
    color: #92a4ba;
    border-top: 3px solid var(--c-border-shadow);
}

/* ==========================================================================
   BOTÓN DE DESCARGA: CARTUCHO RETRO / ARCADE
   ========================================================================== */
.launcher-download-section {
    display: flex;
    justify-content: center;
}

.retro-cartridge-panel {
    width: 100%;
    max-width: 820px;
    padding: 28px 24px;
    text-align: center;
}

.cartridge-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: var(--c-fire-gold);
    border-bottom: 2px dashed #4a341f;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.pixel-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    max-width: 680px;
    padding: 20px 24px;
    background-color: var(--c-fire-orange);
    color: #fff;
    text-decoration: none;
    border: 4px solid #000;
    box-shadow: 
        inset -4px -4px 0px 0px #9e3d00,
        inset 4px 4px 0px 0px #ffa84d,
        0 8px 0 0 #000;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.pixel-download-button:hover {
    background-color: #ff881a;
    transform: translateY(-3px);
    box-shadow: 
        inset -4px -4px 0px 0px #b84700,
        inset 4px 4px 0px 0px #ffbb66,
        0 11px 0 0 #000;
}

.pixel-download-button:active {
    transform: translateY(6px);
    box-shadow: 
        inset 4px 4px 0px 0px #9e3d00,
        0 2px 0 0 #000;
}

.btn-pixel-icon {
    font-size: 2.2rem;
}

.btn-text-block {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-headline {
    font-family: var(--font-pixel-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    text-shadow: 2px 2px 0 #000;
    color: #fff;
}

.btn-subtext {
    font-family: var(--font-pixel-dialogue);
    font-size: 17px;
    color: #ffe0b3;
    letter-spacing: 1px;
}

.btn-arrow-bounce {
    font-family: var(--font-pixel-heading);
    font-size: 1.5rem;
    animation: arrowPulse 0.7s infinite alternate steps(2);
}
@keyframes arrowPulse {
    0% { transform: translateX(0); }
    100% { transform: translateX(8px); }
}

.cartridge-specs-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.spec-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #140d07;
    border: 2px solid #000;
    padding: 6px 12px;
    font-size: 10px;
    color: #d1b899;
}

.spec-dot.green {
    width: 6px;
    height: 6px;
    background: #00ff66;
    border: 1px solid #000;
}

/* ==========================================================================
   SHOWCASE: SELECTOR DE PERSONAJES
   ========================================================================== */
.character-showcase-section {
    text-align: center;
}

.section-title-banner {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-pixel-heading);
    font-size: 16px;
    color: var(--c-fire-amber);
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 8px;
}
.deco-star { color: var(--c-fire-gold); font-size: 14px; }

.section-desc {
    font-family: var(--font-pixel-dialogue);
    font-size: 19px;
    color: #92a4ba;
    margin-bottom: 24px;
}

.character-selector-kiosk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 640px;
    margin: 0 auto;
    padding: 24px;
    background: #141b25;
}

.selector-arrow-btn {
    background: #ff7700;
    color: #fff;
    border: 4px solid #000;
    box-shadow: 
        inset -2px -2px 0 #9e3d00,
        inset 2px 2px 0 #ffa84d,
        0 4px 0 #000;
    font-family: var(--font-pixel-heading);
    font-size: 20px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.selector-arrow-btn:hover {
    background: #ff881a;
    transform: translateY(-2px);
}
.selector-arrow-btn:active {
    transform: translateY(2px);
    box-shadow: inset 2px 2px 0 #9e3d00, 0 1px 0 #000;
}

.avatar-display-pod {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.avatar-pedestal {
    width: 96px;
    height: 96px;
    background: #090d14;
    border: 3px solid #000;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.avatar-pedestal::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 60px;
    height: 8px;
    background: rgba(255, 187, 0, 0.2);
    border-radius: 50%;
}

.avatar-large {
    width: 64px;
    height: auto;
    z-index: 2;
    transition: transform 0.2s steps(2);
}

.avatar-name {
    font-family: var(--font-pixel-heading);
    font-size: 18px;
    color: var(--c-fire-gold);
    text-shadow: 2px 2px 0 #000;
}

.avatar-role {
    font-family: var(--font-pixel-dialogue);
    font-size: 20px;
    color: #c7d5e4;
}

.avatar-model-id {
    font-size: 11px;
    background: #253346;
    border: 2px solid #000;
    padding: 2px 8px;
    color: #a0c2e6;
}

/* ==========================================================================
   GRID DE CARACTERÍSTICAS
   ========================================================================== */
.camp-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 28px;
}

.feature-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-highlight {
    grid-column: 1 / -1;
    background-color: #17212e;
    border-color: #000;
    box-shadow: 
        inset -4px -4px 0px 0px #0c121a,
        inset 4px 4px 0px 0px #ffbb00,
        0 6px 0 0 #000;
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-number {
    font-family: var(--font-pixel-heading);
    font-size: 12px;
    background: var(--c-fire-orange);
    color: #fff;
    border: 2px solid #000;
    padding: 4px 8px;
}

.feature-card-header h3 {
    font-family: var(--font-pixel-heading);
    font-size: 14px;
    color: var(--c-fire-gold);
    text-shadow: 1px 1px 0 #000;
}

.feature-image-frame {
    width: 100%;
    height: 140px;
    background: #0d121a;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.feature-img-fish {
    max-width: 90%;
    height: auto;
    object-fit: contain;
}

.feature-text {
    font-size: 13.5px;
    color: #c7d5e4;
    line-height: 1.6;
}

.pixel-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #e6ebf0;
    background: #111720;
    border: 2px solid #000;
    padding: 12px;
}

/* ==========================================================================
   GUÍA DE CONTROLES
   ========================================================================== */
.controls-guide-section {
    padding: 24px;
    text-align: center;
}

.controls-title {
    font-family: var(--font-pixel-heading);
    font-size: 16px;
    color: var(--c-fire-gold);
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 20px;
}

.keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-gap: 16px;
}

.key-item {
    background: #101620;
    border: 2px solid #000;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pixel-key {
    display: inline-block;
    background: #e6e9ef;
    color: #111;
    font-family: var(--font-pixel-heading);
    font-size: 11px;
    padding: 6px 10px;
    border: 3px solid #000;
    box-shadow: 
        inset -2px -2px 0 #9ca2b0,
        inset 2px 2px 0 #fff,
        0 4px 0 #000;
}

.key-item span {
    font-size: 11.5px;
    color: #92a4ba;
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.pixel-footer {
    text-align: center;
    border-top: 4px solid #000;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-camp-sign {
    font-family: var(--font-pixel-dialogue);
    font-size: 20px;
    color: var(--c-fire-gold);
}

.footer-copy {
    font-size: 10px;
    color: #5d7088;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 768px) {
    .camp-features-grid {
        grid-template-columns: 1fr;
    }

    .pixel-title-mega {
        font-size: 1.8rem;
    }

    .pixel-top-hud {
        flex-direction: column;
        gap: 8px;
    }

    .pixel-download-button {
        flex-direction: column;
        text-align: center;
    }

    .btn-text-block {
        text-align: center;
    }
}
