﻿/* ============================================================
   VARIABLES CSS
   ============================================================ */
:root {
    --bg: #07090d;
    --panel: rgba(10, 16, 24, 0.86);
    --line: rgba(255, 255, 255, 0.18);
    --text: #f4f7fb;
    --muted: #afbac8;
    --accent: #3db5ff;
    --ok: #2add79;
    --bad: #ff6666;
    --warn: #ffc94a;
}

/* ============================================================
   RESET Y ESTILOS BASE
   ============================================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

#gameCanvas {
    width: 100vw;
    height: 100vh;
    display: block;
}

/* ============================================================
   HUD - MÉTRICAS
   ============================================================ */
.hud {
    position: fixed;
    top: 8px;
    left: 8px;
    right: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    pointer-events: none;
    z-index: 20;
}

.metric {
    background: rgba(10, 16, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 48px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.metric:hover {
    transform: translateY(-2px);
    border-color: rgba(61, 181, 255, 0.5);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.metric .label {
    font-size: 0.6rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric .value {
    margin-top: 3px;
    font-weight: 700;
    font-size: 0.9rem;
}

.progress-wrap {
    margin-top: 4px;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #75ceff);
}

/* ============================================================
   MISSION PANEL
   ============================================================ */
.mission-panel {
    position: fixed;
    left: 8px;
    right: 8px;
    top: 78px;
    z-index: 19;
    background: rgba(10, 16, 24, 0.9);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    backdrop-filter: blur(6px);
    display: grid;
    gap: 6px;
    visibility: hidden;
}

.mission-kicker {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 700;
}

.mission-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
}

.mission-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
}

.mission-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mission-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.7rem;
}

/* ============================================================
   NAVIGATION PANEL (BRÚJULA Y GUÍA)
   ============================================================ */
.navigation-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(15, 22, 33, 0.95) 0%, rgba(26, 34, 53, 0.95) 100%);
    border: 2px solid rgba(61, 181, 255, 0.4);
    border-radius: 12px;
    padding: 16px;
    max-width: 280px;
    color: #f4f7fb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(61, 181, 255, 0.2);
    font-family: 'Arial', sans-serif;
    z-index: 40;
    backdrop-filter: blur(8px);
}

.nav-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: #00ffcc;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    padding-bottom: 6px;
}

.nav-destination {
    font-size: 0.85rem;
    color: #75ceff;
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-distance {
    font-size: 0.8rem;
    color: #afbac8;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.nav-compass {
    display: flex;
    justify-content: center;
    align-items: center;
}

.compass-circle {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(0, 255, 204, 0.4);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 181, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(61, 181, 255, 0.2);
}

.compass-north {
    position: absolute;
    top: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.compass-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 18px solid rgba(0, 255, 204, 0.8);
    transform-origin: center 18px;
    filter: drop-shadow(0 0 4px rgba(0, 255, 204, 0.6));
    transition: transform 0.1s ease-out;
}

.compass-angle {
    position: absolute;
    bottom: 6px;
    font-size: 0.65rem;
    color: #ffed4e;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255, 237, 74, 0.4);
}

/* ============================================================
   MISSION MODAL
   ============================================================ */
.mission-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
    padding: 16px;
}

.mission-modal.hidden {
    display: none;
}

.mission-modal-content {
    background: linear-gradient(135deg, #0f1621 0%, #1a2235 100%);
    border: 2px solid rgba(61, 181, 255, 0.4);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(61, 181, 255, 0.2);
}

.mission-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(61, 181, 255, 0.2);
    background: rgba(61, 181, 255, 0.08);
}

.mission-modal-header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #00ffcc;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}

.modal-close {
    background: transparent;
    border: none;
    color: #00ffcc;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.2);
    color: #ff6b6b;
}

.mission-modal-body {
    padding: 20px;
    color: #f4f7fb;
}

.mission-intro {
    font-size: 1rem;
    color: #00ffcc;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.mission-objectives,
.mission-rules {
    margin-bottom: 20px;
}

.mission-objectives h3,
.mission-rules h3 {
    color: #00ffcc;
    font-size: 0.95rem;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mission-objectives ol {
    margin: 0;
    padding-left: 20px;
    list-style-type: decimal;
}

.mission-objectives li {
    margin-bottom: 10px;
    color: #afbac8;
    font-size: 0.9rem;
    line-height: 1.4;
}

.mission-objectives strong {
    color: #75ceff;
}

.mission-rules ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.mission-rules li {
    margin-bottom: 10px;
    color: #afbac8;
    font-size: 0.9rem;
    line-height: 1.4;
}

.mission-modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(61, 181, 255, 0.2);
    text-align: center;
}

.btn-start-mission {
    background: linear-gradient(135deg, #00ffcc 0%, #00d9b3 100%);
    border: none;
    color: #03121e;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.btn-start-mission:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 255, 204, 0.5);
}

.btn-start-mission:active {
    transform: translateY(-1px);
}

/* ============================================================
   NARRATIVE SELECTION MODAL
   ============================================================ */
.narrative-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px;
}

.narrative-modal-content {
    background: linear-gradient(135deg, #0a0e14 0%, #151d2b 50%, #0f1621 100%);
    border: 2px solid rgba(0, 255, 204, 0.5);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    box-shadow: 
        0 0 60px rgba(0, 255, 204, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: slideInNarrative 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInNarrative {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.narrative-modal-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 204, 0.1) 0%, transparent 70%);
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

.narrative-modal-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.4rem;
    background: linear-gradient(135deg, #00ffcc 0%, #00d9b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.3);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.narrative-modal-header p {
    margin: 0;
    font-size: 1rem;
    color: #afbac8;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.narrative-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 30px;
}

.narrative-card {
    background: linear-gradient(135deg, rgba(10, 16, 24, 0.6) 0%, rgba(21, 29, 43, 0.8) 100%);
    border: 2px solid rgba(61, 181, 255, 0.35);
    border-radius: 16px;
    padding: 30px 24px;
    cursor: pointer;
    text-align: center;
    color: #f4f7fb;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.narrative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.15), transparent);
    transition: left 0.6s ease;
}

.narrative-card:hover::before {
    left: 100%;
}

.narrative-card:hover {
    border-color: rgba(0, 255, 204, 0.7);
    background: linear-gradient(135deg, rgba(10, 16, 24, 0.8) 0%, rgba(21, 29, 43, 1) 100%);
    transform: translateY(-8px);
    box-shadow: 
        0 12px 40px rgba(0, 255, 204, 0.25),
        0 0 40px rgba(0, 255, 204, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.narrative-card:active {
    transform: translateY(-4px);
}

.narrative-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 8px;
    animation: float 3s ease-in-out infinite;
}

.narrative-card:hover .narrative-icon {
    animation: pulse 0.6s ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.narrative-card h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #00ffcc;
    font-weight: 700;
    letter-spacing: 0.02em;
    z-index: 1;
    position: relative;
}

.narrative-card p {
    margin: 8px 0 0 0;
    font-size: 0.95rem;
    color: #afbac8;
    line-height: 1.5;
    z-index: 1;
    position: relative;
}

.narrative-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    z-index: 1;
    position: relative;
}

.feature-tag {
    display: inline-block;
    background: rgba(0, 255, 204, 0.15);
    border: 1px solid rgba(0, 255, 204, 0.4);
    color: #00ffcc;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.narrative-card:hover .feature-tag {
    background: rgba(0, 255, 204, 0.3);
    border-color: rgba(0, 255, 204, 0.7);
}

/* ============================================================
   SELECTORES DE ROL (NARRATIVA)
   ============================================================ */
.role-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.role-btn {
    background: linear-gradient(135deg, rgba(61, 181, 255, 0.2) 0%, rgba(61, 181, 255, 0.1) 100%);
    border: 2px solid rgba(61, 181, 255, 0.4);
    border-radius: 12px;
    padding: 20px 16px;
    cursor: pointer;
    text-align: center;
    color: #f4f7fb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.role-btn:hover {
    background: linear-gradient(135deg, rgba(61, 181, 255, 0.35) 0%, rgba(61, 181, 255, 0.2) 100%);
    border-color: rgba(0, 255, 204, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(61, 181, 255, 0.3);
}

.role-btn:active {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgb(61, 181, 255) 0%, rgba(61, 181, 255, 0.7) 100%);
    border-color: rgb(0, 255, 204);
}

.role-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.role-name {
    font-weight: 700;
    font-size: 1rem;
    color: #00ffcc;
}

.role-desc {
    font-size: 0.75rem;
    color: #afbac8;
    line-height: 1.3;
}

/* ============================================================
   JOYSTICK Y CONTROLES
   ============================================================ */
.joystick-container {
    position: fixed;
    bottom: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 50;
}

.joystick-base {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.08);
    border: 2.5px solid rgba(0, 255, 204, 0.35);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 255, 204, 0.1);
    touch-action: none;
}

.joystick-handle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #00ffcc 0%, #00d9b3 100%);
    border-radius: 50%;
    position: absolute;
    cursor: grab;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.7), 0 0 40px rgba(0, 100, 200, 0.3);
    transition: none;
}

.joystick-handle:active {
    cursor: grabbing;
    background: linear-gradient(135deg, #00e6b8 0%, #00c9a3 100%);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.9), 0 0 50px rgba(0, 100, 200, 0.5);
}

.joystick-info {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    color: #00ffcc;
    font-family: 'Courier New', monospace;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
}

.info-row {
    padding: 2px 0;
    letter-spacing: 0.5px;
}

.info-row span {
    font-weight: bold;
    color: #00ff99;
}

.controls {
    position: fixed;
    right: 8px;
    bottom: 8px;
    display: grid;
    gap: 6px;
    z-index: 20;
}

.controls-row {
    display: flex;
    gap: 6px;
}

.touch-btn {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    user-select: none;
    touch-action: none;
}

/* ============================================================
   NOTIFICACIONES (TOAST)
   ============================================================ */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
    background: rgba(10, 16, 24, 0.92);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    max-width: min(90vw, 340px);
    text-align: center;
}

.toast.show {
    opacity: 1;
}

/* ============================================================
   MINIMAPA
   ============================================================ */
.map-container {
    position: fixed;
    right: 8px;
    bottom: 118px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    z-index: 24;
    background: rgba(8, 12, 20, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.map-container:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
    border-color: rgba(61, 181, 255, 0.6);
}

#miniMapCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.map-label {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.54rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(244, 247, 251, 0.9);
    background: rgba(7, 10, 16, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 2px 7px;
    pointer-events: none;
}

/* ============================================================
   MODO MÓVIL Y MODO DISPLAY
   ============================================================ */
.mobile-mode {
    position: fixed;
    left: 8px;
    bottom: 8px;
    z-index: 21;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px;
    display: grid;
    gap: 6px;
    max-width: calc(100vw - 190px);
    visibility: hidden;
}

.mobile-mode .mode-label {
    margin: 0;
    font-size: 0.62rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mobile-mode .mode-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mobile-mode .mode-btn {
    font-size: 0.66rem;
    padding: 5px 7px;
}

.mode-btn {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border-radius: 8px;
    font-size: 0.72rem;
    padding: 6px 8px;
    cursor: pointer;
}

.mode-btn.active {
    background: var(--accent);
    color: #03121e;
    border-color: transparent;
    font-weight: 700;
}

.loop-tip {
    display: none;
}

.loop-tip strong {
    color: var(--text);
}

.legend {
    display: none;
}

.legend strong {
    color: var(--text);
}

/* ============================================================
   MODALES GENÉRICOS (Para futuro uso)
   ============================================================ */
.question-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0, 0, 0, 0.52);
    z-index: 50;
    padding: 14px;
}

.question-card {
    width: min(720px, 96vw);
    background: #0f1621;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    display: grid;
    gap: 10px;
}

.question-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.question-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.badge {
    font-size: 0.74rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 8px;
}

.question-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.option-btn {
    width: 100%;
    text-align: left;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.option-btn:hover {
    border-color: var(--accent);
}

.feedback {
    display: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.feedback.ok {
    display: block;
    background: rgba(42, 221, 121, 0.15);
    border: 1px solid rgba(42, 221, 121, 0.5);
}

.feedback.bad {
    display: block;
    background: rgba(255, 102, 102, 0.15);
    border: 1px solid rgba(255, 102, 102, 0.5);
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.btn {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: var(--accent);
    color: #03121e;
    border: none;
}

.btn-outline {
    background: transparent;
    color: var(--text);
}

/* ============================================================
   MEDIA QUERIES - MÓVIL (hasta 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* HUD - Compacto a 1 columna */
    .hud {
        top: 6px;
        left: 6px;
        right: auto;
        width: auto;
        max-width: 120px;
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .metric {
        padding: 4px 6px;
        min-height: 32px;
        border-radius: 8px;
        gap: 2px;
    }

    .metric .label {
        font-size: 0.5rem;
        margin: 0;
    }

    .metric .value {
        font-size: 0.75rem;
        margin-top: 1px;
    }

    .progress-wrap {
        height: 4px;
        margin-top: 2px;
    }

    /* Mission Panel - Minimal */
    .mission-panel {
        visibility: hidden;
        display: none;
    }

    .joystick-container {
        bottom: 84px;
        left: auto;
        right: 16px;
        display: flex;
        gap: 8px;
    }

    .joystick-base {
        width: 112px;
        height: 112px;
    }

    .joystick-handle {
        width: 42px;
        height: 42px;
    }

    .joystick-info {
        display: none;
    }

    .controls {
        left: auto !important;
        right: 12px !important;
        bottom: 14px !important;
    }

    .controls .touch-btn {
        width: 46px;
        height: 46px;
        min-width: 46px;
        padding: 0;
        font-size: 15px;
        display: none;
    }

    .controls .controls-row:last-child {
        display: none !important;
    }

    .map-container {
        left: 6px !important;
        right: auto !important;
        top: auto !important;
        bottom: 8px !important;
        width: 110px;
        height: 110px;
        border: 1.5px solid rgba(255, 255, 255, 0.3);
    }

    #miniMapCanvas {
        width: 110px;
        height: 110px;
    }

    .map-label {
        font-size: 0.45rem;
        padding: 1px 5px;
        top: 4px;
    }

    .navigation-panel {
        top: auto;
        right: auto;
        bottom: 240px;
        left: 6px;
        max-width: 150px;
        padding: 8px;
        border-radius: 8px;
        border: 1px solid rgba(61, 181, 255, 0.3);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(61, 181, 255, 0.15);
    }

    .nav-header {
        font-size: 0.7rem;
        margin-bottom: 6px;
        padding-bottom: 4px;
        display: none;
    }

    .nav-destination {
        font-size: 0.65rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .nav-distance {
        font-size: 0.6rem;
        margin-bottom: 6px;
        flex-direction: column;
        gap: 2px;
    }

    .compass-circle {
        width: 60px;
        height: 60px;
        box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3), 0 0 10px rgba(61, 181, 255, 0.12);
    }

    .compass-north {
        top: 3px;
        font-size: 0.5rem;
    }

    .compass-arrow {
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-bottom: 10px solid rgba(0, 255, 204, 0.8);
        transform-origin: center 10px;
    }

    .compass-angle {
        bottom: 3px;
        font-size: 0.5rem;
    }
}

/* ============================================================
   MEDIA QUERIES - MOBILE LANDSCAPE (768px < width < 1024px)
   ============================================================ */
@media (max-width: 1023px) and (orientation: landscape) {
    .hud {
        top: 4px;
        left: 6px;
        right: 250px;
        width: auto;
        max-width: none;
        grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
        gap: 3px;
        height: auto;
    }

    .metric {
        padding: 2px 4px;
        min-height: 24px;
        border-radius: 6px;
    }

    .metric .label {
        font-size: 0.4rem;
        margin: 0;
    }

    .metric .value {
        font-size: 0.6rem;
        margin-top: 0px;
    }

    .progress-wrap {
        height: 3px;
        margin-top: 1px;
    }

    .navigation-panel {
        bottom: 8px;
        left: 6px;
        top: auto;
        right: auto;
        max-width: 140px;
        padding: 6px;
        border: 1px solid rgba(61, 181, 255, 0.25);
    }

    .nav-header {
        display: none;
    }

    .nav-destination {
        font-size: 0.6rem;
        margin-bottom: 3px;
    }

    .nav-distance {
        font-size: 0.55rem;
        margin-bottom: 4px;
    }

    .compass-circle {
        width: 55px;
        height: 55px;
    }

    .compass-arrow {
        border-left: 3.5px solid transparent;
        border-right: 3.5px solid transparent;
        border-bottom: 9px solid rgba(0, 255, 204, 0.8);
        transform-origin: center 9px;
    }

    .compass-angle {
        font-size: 0.48rem;
    }

    .map-container {
        width: 95px;
        height: 95px;
        bottom: 8px;
        right: 8px;
        left: auto;
        border: 1.5px solid rgba(255, 255, 255, 0.3);
    }

    #miniMapCanvas {
        width: 95px;
        height: 95px;
    }

    .map-label {
        font-size: 0.4rem;
        padding: 1px 4px;
    }
}

/* ============================================================
   MEDIA QUERIES - DESKTOP (901px en adelante)
   ============================================================ */
@media (min-width: 901px) {
    .hud {
        top: 12px;
        left: 12px;
        right: 12px;
        grid-template-columns: repeat(5, minmax(120px, 1fr));
        gap: 8px;
    }

    .metric {
        border-radius: 12px;
        padding: 10px;
        backdrop-filter: blur(6px);
        min-height: 58px;
    }

    .metric .label {
        font-size: 0.72rem;
    }

    .metric .value {
        font-size: 1.05rem;
        margin-top: 4px;
    }

    .progress-wrap {
        margin-top: 6px;
        height: 8px;
    }

    .mission-panel {
        top: 82px;
        left: 12px;
        right: auto;
        width: min(420px, calc(100vw - 24px));
        padding: 12px 14px;
    }

    .mission-title {
        font-size: 1.08rem;
    }

    .mission-text {
        font-size: 0.86rem;
    }

    .loop-tip {
        display: block;
        position: fixed;
        top: 86px;
        right: 12px;
        max-width: 300px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 10px;
        z-index: 20;
        font-size: 0.82rem;
        line-height: 1.4;
        color: var(--muted);
        pointer-events: auto;
    }

    .controls {
        left: 12px;
        right: auto;
        bottom: 12px;
        gap: 8px;
        visibility: hidden;
    }

    .controls-row {
        gap: 8px;
    }

    .touch-btn {
        width: 58px;
        height: 58px;
        border-radius: 12px;
        font-size: 1.1rem;
    }

    .legend {
        display: block;
        position: fixed;
        bottom: 12px;
        right: 12px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 10px;
        font-size: 0.82rem;
        color: var(--muted);
        z-index: 20;
        max-width: 360px;
        line-height: 1.35;
    }

    .map-container {
        bottom: 160px;
        right: 16px;
        width: 170px;
        height: 170px;
        border-radius: 50%;
    }

    .mobile-mode {
        left: 12px;
        bottom: 170px;
        max-width: 300px;
        visibility: hidden;
    }
}

/* ============================================================
   ROLE SELECTOR BUTTONS
   ============================================================ */
.role-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.role-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: rgba(61, 181, 255, 0.08);
    border: 2px solid rgba(61, 181, 255, 0.3);
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.role-btn:hover {
    background: rgba(61, 181, 255, 0.15);
    border-color: rgba(61, 181, 255, 0.6);
    transform: translateY(-4px);
}

.role-emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.role-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.role-desc {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ============================================================
   ENDING SCREEN
   ============================================================ */
.ending-content {
    display: grid;
    gap: 20px;
    text-align: center;
}

.ending-emoji {
    font-size: 4rem;
    margin-bottom: 12px;
}

.ending-message {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
}

.ending-stats {
    background: rgba(61, 181, 255, 0.1);
    border: 1px solid rgba(61, 181, 255, 0.3);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive: role buttons en mobile */
@media (max-width: 768px) {
    .role-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .role-emoji {
        font-size: 2rem;
    }
    
    .role-title {
        font-size: 0.9rem;
    }
    
    .role-desc {
        font-size: 0.7rem;
    }
}

/* ============================================================
   MEDIA QUERIES - Ocultar joystick en desktop (768px+)
   ============================================================ */
@media (min-width: 769px) {
    .joystick-container {
        display: none !important;
    }
}
/* ============================================================
VARIABLES CSS
============================================================ */
:root {
--bg: #07090d;
--panel: rgba(10, 16, 24, 0.86);
--line: rgba(255, 255, 255, 0.18);
--text: #f4f7fb;
--muted: #afbac8;
--accent: #3db5ff;
--ok: #2add79;
--bad: #ff6666;
--warn: #ffc94a;
}
/* ============================================================
RESET Y ESTILOS BASE
============================================================ */
* { box-sizing: border-box; }
body {
margin: 0;
overflow: hidden;
font-family: 'Inter', Helvetica, Arial, sans-serif;
background: var(--bg);
color: var(--text);
-webkit-font-smoothing: antialiased;
}
#gameCanvas {
width: 100vw;
height: 100vh;
display: block;
}
.hud {
position: fixed;
top: 8px;
left: 8px;
right: 8px;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
pointer-events: none;
z-index: 20;
}
.metric {
background: rgba(10, 16, 24, 0.72);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 12px;
padding: 8px 10px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
min-height: 48px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.metric:hover {
transform: translateY(-2px);
border-color: rgba(61, 181, 255, 0.5);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.metric .label {
font-size: 0.6rem;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.metric .value {
margin-top: 3px;
font-weight: 700;
font-size: 0.9rem;
}
.mission-panel {
position: fixed;
left: 8px;
right: 8px;
top: 78px;
z-index: 19;
background: rgba(10, 16, 24, 0.9);
border: 1px solid var(--line);
border-radius: 14px;
padding: 10px 12px;
backdrop-filter: blur(6px);
display: grid;
gap: 6px;
visibility: hidden;
}
.mission-kicker {
font-size: 0.62rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--accent);
font-weight: 700;
}
.mission-title {
font-size: 0.98rem;
font-weight: 700;
color: var(--text);
}
.mission-text {
font-size: 0.82rem;
line-height: 1.45;
color: var(--muted);
}
.mission-meta {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.mission-pill {
display: inline-flex;
align-items: center;
padding: 4px 8px;
border-radius: 999px;
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.05);
color: var(--text);
font-size: 0.7rem;
}
.progress-wrap {
margin-top: 4px;
width: 100%;
height: 6px;
background: rgba(255, 255, 255, 0.08);
border-radius: 999px;
overflow: hidden;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.progress {
height: 100%;
width: 0;
background: linear-gradient(90deg, var(--accent), #75ceff);
}
.loop-tip {
display: none;
}
.loop-tip strong { color: var(--text); }
.mode-label {
margin-top: 8px;
margin-bottom: 6px;
font-size: 0.74rem;
color: var(--text);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.mode-row {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.mode-btn {
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.06);
color: var(--text);
border-radius: 8px;
font-size: 0.72rem;
padding: 6px 8px;
cursor: pointer;
}
.mode-btn.active {
background: var(--accent);
color: #03121e;
border-color: transparent;
font-weight: 700;
}
.controls {
position: fixed;
right: 8px;
bottom: 8px;
display: grid;
gap: 6px;
z-index: 20;
}
.controls-row {
display: flex;
gap: 6px;
}
.touch-btn {
width: 46px;
height: 46px;
border-radius: 10px;
border: 1px solid var(--line);
background: var(--panel);
color: var(--text);
font-size: 0.95rem;
font-weight: 700;
user-select: none;
touch-action: none;
}
.legend {
display: none;
}
.legend strong {
color: var(--text);
}
.mobile-mode {
position: fixed;
left: 8px;
bottom: 8px;
z-index: 21;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 10px;
padding: 6px;
display: grid;
gap: 6px;
max-width: calc(100vw - 190px);
}
.mobile-mode .mode-label {
margin: 0;
font-size: 0.62rem;
color: var(--muted);
}
.mobile-mode .mode-row {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.mobile-mode .mode-btn {
font-size: 0.66rem;
padding: 5px 7px;
}
.question-modal {
position: fixed;
inset: 0;
display: none;
place-items: center;
background: rgba(0, 0, 0, 0.52);
z-index: 50;
padding: 14px;
}
.question-card {
width: min(720px, 96vw);
background: #0f1621;
border: 1px solid var(--line);
border-radius: 16px;
padding: 14px;
box-shadow: 0 20px 40px rgba(0,0,0,0.45);
display: grid;
gap: 10px;
}
.question-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
}
.question-head h2 {
margin: 0;
font-size: 1.05rem;
}
.badge {
font-size: 0.74rem;
color: var(--muted);
border: 1px solid var(--line);
border-radius: 999px;
padding: 4px 8px;
}
.question-text {
margin: 0;
color: var(--muted);
line-height: 1.45;
}
.option-btn {
width: 100%;
text-align: left;
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.04);
color: var(--text);
border-radius: 10px;
padding: 10px;
cursor: pointer;
}
.option-btn:hover { border-color: var(--accent); }
.feedback {
display: none;
border-radius: 10px;
padding: 10px;
font-size: 0.9rem;
line-height: 1.4;
}
.feedback.ok {
display: block;
background: rgba(42, 221, 121, 0.15);
border: 1px solid rgba(42, 221, 121, 0.5);
}
.feedback.bad {
display: block;
background: rgba(255, 102, 102, 0.15);
border: 1px solid rgba(255, 102, 102, 0.5);
}
.modal-actions {
display: flex;
justify-content: space-between;
gap: 8px;
}
.btn {
border: 1px solid var(--line);
border-radius: 10px;
padding: 9px 12px;
cursor: pointer;
font-weight: 600;
}
.btn-primary {
background: var(--accent);
color: #03121e;
border: none;
}
.btn-outline {
background: transparent;
color: var(--text);
}
.toast {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 60;
background: rgba(10, 16, 24, 0.92);
border: 1px solid var(--line);
border-radius: 10px;
padding: 10px 12px;
font-size: 0.85rem;
color: var(--text);
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease;
max-width: min(90vw, 340px);
text-align: center;
}
.toast.show {
opacity: 1;
}
.map-container {
position: fixed;
right: 8px;
bottom: 118px;
width: 140px;
height: 140px;
border-radius: 50%;
overflow: hidden;
border: 2px solid rgba(255, 255, 255, 0.4);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
z-index: 24;
background: rgba(8, 12, 20, 0.86);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}
.map-container:hover {
transform: scale(1.05);
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
border-color: rgba(61, 181, 255, 0.6);
}
#miniMapCanvas {
width: 100%;
height: 100%;
display: block;
}
.map-label {
position: absolute;
top: 6px;
left: 50%;
transform: translateX(-50%);
font-size: 0.54rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: rgba(244, 247, 251, 0.9);
background: rgba(7, 10, 16, 0.56);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 999px;
padding: 2px 7px;
pointer-events: none;
}
@media (min-width: 901px) {
.hud {
top: 12px;
left: 12px;
right: 12px;
grid-template-columns: repeat(5, minmax(120px, 1fr));
gap: 8px;
}
.metric {
border-radius: 12px;
padding: 10px;
backdrop-filter: blur(6px);
min-height: 58px;
}
.metric .label { font-size: 0.72rem; }
.metric .value { font-size: 1.05rem; margin-top: 4px; }
.progress-wrap { margin-top: 6px; height: 8px; }
.mission-panel {
top: 82px;
left: 12px;
right: auto;
width: min(420px, calc(100vw - 24px));
padding: 12px 14px;
}
.mission-title {
font-size: 1.08rem;
}
.mission-text {
font-size: 0.86rem;
}
.loop-tip {
display: block;
position: fixed;
top: 86px;
right: 12px;
max-width: 300px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
padding: 10px;
z-index: 20;
font-size: 0.82rem;
line-height: 1.4;
color: var(--muted);
pointer-events: auto;
}
.controls {
left: 12px;
right: auto;
bottom: 12px;
gap: 8px;
visibility: hidden;
}
.controls-row { gap: 8px; }
.touch-btn {
width: 58px;
height: 58px;
border-radius: 12px;
font-size: 1.1rem;
}
.legend {
display: block;
position: fixed;
bottom: 12px;
right: 12px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
padding: 10px;
font-size: 0.82rem;
color: var(--muted);
z-index: 20;
max-width: 360px;
line-height: 1.35;
}
.map-container {
bottom: 160px;
right: 16px;
width: 170px;
height: 170px;
border-radius: 50%;
}
.mobile-mode {
left: 12px;
bottom: 170px;
max-width: 300px;
visibility: hidden;
}
}
.joystick-container {
position: fixed;
bottom: 40px;
left: 40px;
display: flex;
flex-direction: column;
gap: 15px;
z-index: 50;
}
.joystick-base {
width: 160px;
height: 160px;
background: rgba(255, 255, 255, 0.08);
border: 2.5px solid rgba(0, 255, 204, 0.35);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
position: relative;
box-shadow: 0 0 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 255, 204, 0.1);
touch-action: none;
}
.joystick-handle {
width: 65px;
height: 65px;
background: linear-gradient(135deg, #00ffcc 0%, #00d9b3 100%);
border-radius: 50%;
position: absolute;
cursor: grab;
box-shadow: 0 0 20px rgba(0, 255, 204, 0.7), 0 0 40px rgba(0, 100, 200, 0.3);
transition: none;
}
.joystick-handle:active {
cursor: grabbing;
background: linear-gradient(135deg, #00e6b8 0%, #00c9a3 100%);
box-shadow: 0 0 25px rgba(0, 255, 204, 0.9), 0 0 50px rgba(0, 100, 200, 0.5);
}
.joystick-info {
background: rgba(0, 0, 0, 0.6);
border: 1px solid rgba(0, 255, 204, 0.3);
border-radius: 6px;
padding: 8px 12px;
font-size: 11px;
color: #00ffcc;
font-family: 'Courier New', monospace;
text-align: center;
min-width: 160px;
box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
}
.info-row {
padding: 2px 0;
letter-spacing: 0.5px;
}
.info-row span {
font-weight: bold;
color: #00ff99;
}
@media (max-width: 768px) {
.joystick-container {
bottom: 84px;
left: auto;
right: 16px;
display: flex;
gap: 8px;
}
.joystick-base {
width: 112px;
height: 112px;
}
.joystick-handle {
width: 42px;
height: 42px;
}
.joystick-info {
display: none;
}
.controls {
left: auto !important;
right: 12px !important;
bottom: 14px !important;
}
.controls .touch-btn {
width: 46px;
height: 46px;
min-width: 46px;
padding: 0;
font-size: 15px;
}
.controls .controls-row:last-child {
display: none !important;
}
.map-container {
left: 10px !important;
right: auto !important;
top: auto !important;
bottom: 10px !important;
}
#miniMapCanvas {
width: 150px;
height: 150px;
}
}
@media (min-width: 769px) {
.joystick-container {
display: none !important;
}
}
/* Estilos del Modal de MisiÃ³n */
.mission-modal {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
backdrop-filter: blur(4px);
padding: 16px;
}
.mission-modal.hidden {
display: none;
}
.mission-modal-content {
background: linear-gradient(135deg, #0f1621 0%, #1a2235 100%);
border: 2px solid rgba(61, 181, 255, 0.4);
border-radius: 16px;
max-width: 600px;
width: 100%;
max-height: 85vh;
overflow-y: auto;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(61, 181, 255, 0.2);
}
.mission-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
border-bottom: 1px solid rgba(61, 181, 255, 0.2);
background: rgba(61, 181, 255, 0.08);
}
.mission-modal-header h1 {
margin: 0;
font-size: 1.6rem;
color: #00ffcc;
text-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}
.modal-close {
background: transparent;
border: none;
color: #00ffcc;
font-size: 32px;
cursor: pointer;
padding: 0;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s ease, color 0.2s ease;
}
.modal-close:hover {
transform: scale(1.2);
color: #ff6b6b;
}
.mission-modal-body {
padding: 20px;
color: #f4f7fb;
}
.mission-intro {
font-size: 1rem;
color: #00ffcc;
margin: 0 0 20px 0;
font-weight: 600;
}
.mission-objectives,
.mission-rules {
margin-bottom: 20px;
}
.mission-objectives h3,
.mission-rules h3 {
color: #00ffcc;
font-size: 0.95rem;
margin: 0 0 12px 0;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.mission-objectives ol {
margin: 0;
padding-left: 20px;
list-style-type: decimal;
}
.mission-objectives li {
margin-bottom: 10px;
color: #afbac8;
font-size: 0.9rem;
line-height: 1.4;
}
.mission-objectives strong {
color: #75ceff;
}
.mission-rules ul {
margin: 0;
padding-left: 20px;
list-style-type: none;
}
.mission-rules li {
margin-bottom: 10px;
color: #afbac8;
font-size: 0.9rem;
line-height: 1.4;
}
.mission-modal-footer {
padding: 20px;
border-top: 1px solid rgba(61, 181, 255, 0.2);
text-align: center;
}
.btn-start-mission {
background: linear-gradient(135deg, #00ffcc 0%, #00d9b3 100%);
border: none;
color: #03121e;
font-weight: 700;
font-size: 1rem;
padding: 14px 32px;
border-radius: 10px;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}
.btn-start-mission:hover {
transform: translateY(-3px);
box-shadow: 0 8px 32px rgba(0, 255, 204, 0.5);
}
.btn-start-mission:active {
transform: translateY(-1px);
}
/* Panel de NavegaciÃ³n */
.navigation-panel {
position: fixed;
top: 20px;
right: 20px;
background: linear-gradient(135deg, rgba(15, 22, 33, 0.95) 0%, rgba(26, 34, 53, 0.95) 100%);
border: 2px solid rgba(61, 181, 255, 0.4);
border-radius: 12px;
padding: 16px;
max-width: 280px;
color: #f4f7fb;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(61, 181, 255, 0.2);
font-family: 'Arial', sans-serif;
z-index: 40;
backdrop-filter: blur(8px);
display: none;
}
.nav-header {
font-size: 1.1rem;
font-weight: 700;
color: #00ffcc;
margin-bottom: 12px;
text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
border-bottom: 1px solid rgba(0, 255, 204, 0.2);
padding-bottom: 8px;
}
.nav-destination {
font-size: 0.95rem;
color: #75ceff;
margin-bottom: 10px;
font-weight: 600;
}
.nav-distance {
font-size: 0.9rem;
color: #afbac8;
margin-bottom: 14px;
display: flex;
justify-content: space-between;
}
.nav-compass {
display: flex;
justify-content: center;
align-items: center;
}
.compass-circle {
width: 120px;
height: 120px;
border: 2px solid rgba(0, 255, 204, 0.4);
border-radius: 50%;
background: radial-gradient(circle, rgba(61, 181, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
position: relative;
display: flex;
align-items: center;
justify-content: center;
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(61, 181, 255, 0.2);
}
.compass-north {
position: absolute;
top: 8px;
font-size: 0.8rem;
font-weight: bold;
color: #ff6b6b;
text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}
.compass-arrow {
position: absolute;
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 20px solid rgba(0, 255, 204, 0.8);
transform-origin: center 20px;
filter: drop-shadow(0 0 4px rgba(0, 255, 204, 0.6));
transition: transform 0.1s ease-out;
}
.compass-angle {
position: absolute;
bottom: 8px;
font-size: 0.75rem;
color: #ffed4e;
font-weight: bold;
text-shadow: 0 0 6px rgba(255, 237, 74, 0.4);
}
@media (max-width: 768px) {
.navigation-panel {
top: auto;
right: auto;
bottom: 380px;
left: 20px;
max-width: 250px;
padding: 12px;
}
.compass-circle {
width: 90px;
height: 90px;
}
.compass-arrow {
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 15px solid rgba(0, 255, 204, 0.8);
transform-origin: center 15px;
}
}

