/* ============================================================================= */
/* ESTILOS PREMIUM - ANATOMY SYSTEMS DASH (ALTA GAMA VISUAL)                     */
/* ============================================================================= */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0f172a 0%, #030712 100%);
    color: #f8fafc;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arcade-container {
    width: 96vw;
    max-width: 1080px;
    height: 94vh;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 25px;
    box-sizing: border-box;
}

/* Cabecera */
.arcade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.badge-arcade {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
}

.score-board {
    display: flex;
    gap: 15px;
}

.stat-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 8px 16px;
    text-align: center;
    min-width: 110px;
}

.stat-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.stat-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Lienzo */
.canvas-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    background: #020617;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(56, 189, 248, 0.15);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Pantalla Superpuesta (Overlay) */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.overlay-card {
    text-align: center;
    padding: 30px;
    max-width: 500px;
}

.arcade-trophy {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.overlay-card h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.overlay-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-arcade-start {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.5);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.btn-arcade-start:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    box-shadow: 0 15px 30px -5px rgba(56, 189, 248, 0.7);
}

/* Pie */
.arcade-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

.hint-text {
    font-size: 0.8rem;
    color: #64748b;
}

.btn-salir-arcade {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-salir-arcade:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
}

/* Móvil */
@media (max-width: 768px) {
    .arcade-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        padding: 10px;
    }
    .arcade-header, .arcade-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}