        /* Estilos adicionales para el juego de referidos */
        .visitas-container {
            display: flex;
            flex-direction: column; 
            padding: 1rem;
        }

        .visitas-card {
            margin-top: 1.3rem;
            background-color: #fff;
            border-radius: 10px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .visitas-counter {
            font-size: 4rem;
            font-weight: bold;
            color: #4e73df;
            margin: 1rem 0;
        }

        .link-container {
            background-color: #fff;
            border-radius: 10px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .link-box {
            display: flex;
            margin: 1.5rem 0;
            background-color: #f8f9fc;
            border-radius: 5px;
            overflow: hidden;
            border: 1px solid #e3e6f0;
        }

        .link-box input {
            flex-grow: 1;
            padding: 10px;
            border: none;
            background: transparent;
        }

        .btn-copy {
            padding: 10px 15px;
            background-color: #4e73df;
            color: white;
            border: none;
            cursor: pointer;
        }

        .compartir-buttons {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .btn-whatsapp,
        .btn-facebook,
        .btn-twitter {
            padding: 8px 15px;
            border-radius: 5px;
            color: white;
            text-decoration: none;
            display: grid;
            align-items: center;
            gap: 5px;
        }

        .btn-whatsapp {
            background-color: #25D366;
        }

        .btn-facebook {
            background-color: #3b5998;
        }

        .btn-twitter {
            background-color: #1DA1F2;
        }

        .participar-container {
            text-align: center;
            padding: 2rem;
        }

        .btn-primary {
            background-color: #4e73df;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
            margin-top: 1rem;
        }

        .ranking-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }

        .ranking-table th,
        .ranking-table td {
            padding: 8px 12px;
            text-align: left;
            border-bottom: 1px solid #e3e6f0;
        }

        .ranking-table th {
            background-color: #f8f9fc;
            font-weight: 600;
        }

        .usuario-actual {
            background-color: #e8f4ff;
            font-weight: 600;
        }

        .error-container {
            text-align: center;
            padding: 2rem;
            color: #e74a3b;
        }

        /* Ajustes para modo oscuro */
        .dark-background .visitas-card,
        .dark-background .link-container {
            background-color: #2c3041;
            color: #e0e0e0;
        }

        .dark-background .link-box {
            background-color: #212430;
            border-color: #3a3f51;
        }

        .dark-background .link-box input {
            color: #e0e0e0;
        }

        .dark-background .ranking-table th {
            background-color: #212430;
        }

        .dark-background .ranking-table td {
            border-color: #3a3f51;
        }

        .dark-background .usuario-actual {
            background-color: #28365f;
        }

        .ranking-container {
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-top: 20px;
            overflow: hidden;
        }

        .ranking-header {
            padding: 16px 20px;
            background-color: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
        }

        .ranking-header h3 {
            margin: 0;
            font-size: 18px;
            color: #343a40;
            font-weight: 600;
        }

        .ranking-subtitle {
            font-size: 14px;
            color: #6c757d;
            margin-top: 4px;
        }

        .ranking-table {
            width: 100%;
        }

        .ranking-table-header {
            display: grid;
            grid-template-columns: 50px 1fr 100px;
            padding: 12px 20px;
            font-weight: 600;
            color: #495057;
            background-color: #f8f9fa;
            border-bottom: 2px solid #e9ecef;
            font-size: 14px;
        }

        .ranking-list-content {
            max-height: 350px;
            overflow-y: auto;
        }

        .ranking-list-content li {
            display: grid;
            grid-template-columns: 50px 1fr 100px;
            padding: 12px 20px;
            border-bottom: 1px solid #e9ecef;
            align-items: center;
            transition: background-color 0.2s;
        }

        .ranking-list-content li:hover {
            background-color: #f8f9fa;
        }

        .ranking-list-content li:last-child {
            border-bottom: none;
        }

        .ranking-position {
            font-weight: 600;
            color: #495057;
        }

        .ranking-user {
            color: #212529;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ranking-visits {
            text-align: center;
            color: #0d6efd;
            font-weight: 500;
        }

        /* Top 3 destacados */
        .ranking-list-content li:nth-child(1) .ranking-position {
            color: #48ff00;
            font-size: 16px;
        }

        .ranking-list-content li:nth-child(2) .ranking-position {
            color: #ff6600;
            font-size: 15px;
        }

        .ranking-list-content li:nth-child(3) .ranking-position {
            color: #b700ff;
            font-size: 15px;
        }

        /* Animación de carga */
        .loading {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 30px;
            color: #6c757d;
            gap: 10px;
        }

        .loading-spinner {
            width: 20px;
            height: 20px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #0d6efd;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Modo oscuro */
        .dark-background .ranking-container {
            background-color: #212529;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .dark-background .ranking-header,
        .dark-background .ranking-table-header {
            background-color: #2c3034;
            border-color: #343a40;
        }

        .dark-background .ranking-header h3 {
            color: #f8f9fa;
        }

        .dark-background .ranking-subtitle {
            color: #adb5bd;
        }

        .dark-background .ranking-table-header {
            color: #e9ecef;
        }

        .dark-background .ranking-list-content li {
            border-color: #343a40;
        }

        .dark-background .ranking-list-content li:hover {
            background-color: #2c3034;
        }

        .dark-background .ranking-position {
            color: #e9ecef;
        }

        .dark-background .ranking-user {
            color: #f8f9fa;
        }

        .dark-background .ranking-visits {
            color: #0d6efd;
        }

        .dark-background .loading {
            color: #adb5bd;
        }

        .ranking-list {
            padding-left: 0px;
        }


        /* Añade esto al archivo assets/css/game.css */

        .user-ranking-position {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 10px 15px; 
            font-size: 16px;
            font-weight: 600;
            text-align: center;
            color: #333;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .user-ranking-position i {
            color: #ffc107;
            margin-right: 8px;
            font-size: 18px;
        }

        /* Estilos para modo oscuro */
        .dark-background .user-ranking-position {
            background-color: #2a2d36;
            color: #e1e3e5;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        }

        /* Variaciones por posición */
        .position-top-3 {
            background-color: #fff8e1;
            border-left: 4px solid #ffc107;
        }

        .dark-background .position-top-3 {
            background-color: #3a3e48;
            border-left: 4px solid #ffc107;
        }

        /* Animación suave al cargar */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .user-ranking-position {
            animation: fadeInDown 0.5s ease forwards;
        }

        /* Añadir al archivo assets/css/game.css */

        /* Estilos para el ranking desplegable */
        .ranking-dropdown {
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin-top: 20px;
            overflow: hidden;
        }

        .dark-background .ranking-dropdown {
            background-color: #2a2d36;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .ranking-dropdown-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .ranking-dropdown-header:hover {
            background-color: #f8f9fa;
        }

        .dark-background .ranking-dropdown-header:hover {
            background-color: #3a3e48;
        }

        .ranking-dropdown-header h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
        }

        .dropdown-icon {
            transition: transform 0.3s ease;
        }

        .dropdown-icon i {
            font-size: 14px;
            color: #6c757d;
        }

        .dark-background .dropdown-icon i {
            color: #a1a8b3;
        }

        .ranking-dropdown-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .ranking-subtitle {
            padding: 0 20px 10px;
            color: #6c757d;
            font-size: 13px;
        }

        .dark-background .ranking-subtitle {
            color: #a1a8b3;
        }

        /* Estilos para la tabla de ranking (mantener los existentes) */
        .ranking-table {
            padding: 0 20px 20px;
        }

        .ranking-list li.current-user {
            background-color: rgba(255, 255, 0, 0.2); /* Fondo amarillo suave */
            font-weight: bold;
            border-left: 3px solid gold;
        }
        
        /* Si prefieres un estilo más llamativo */
        .ranking-list li.current-user .ranking-user {
            color: #ff6700; /* Color naranja para el nombre */
            font-weight: bold;
        }